Graphing Rational Functions
A rational function is a ratio of polynomials, and its graph is shaped by asymptotes — lines the graph approaches but never touches. Vertical and horizontal asymptotes are the main features.
Vertical asymptotes come from denominator zeros; horizontal asymptotes come from comparing the degrees of top and bottom. Find both and the graph's skeleton appears.
Vertical asymptotes
Set the denominator equal to zero and solve. Each solution that does not also cancel from the numerator is a vertical asymptote.
For , the denominator is zero at , so is a vertical asymptote.
Horizontal asymptotes from degrees
Compare the degrees of numerator and denominator. Equal degrees give a horizontal asymptote at the ratio of leading coefficients.
For , both are degree 1, so the horizontal asymptote is . A smaller top degree gives ; a larger top has none.
Worked examples
Example 1: both asymptotes
Find the vertical and horizontal asymptotes of .
Answer: Vertical , horizontal
Example 2: horizontal at zero
What is the horizontal asymptote of ?
Answer:
Example 3: a factor that cancels
Does have a vertical asymptote at ?
Answer: No — a hole at , not a vertical asymptote
Try one yourself
Common questions
How do I find vertical asymptotes?
Set the denominator equal to zero and solve. Each non-canceling zero is a vertical asymptote.
How do I find the horizontal asymptote?
Compare degrees: equal degrees give the ratio of leading coefficients; smaller top gives ; larger top gives none.
What if a factor cancels?
A canceling factor makes a hole, not a vertical asymptote, at that x-value.
Want the video version?
Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.