Rational Functions and Asymptotes
Find the vertical asymptotes, horizontal asymptotes and holes of rational functions, and explain how their graphs behave near each one.
Welcome back!
Step 1 of 10Learn
Graphs that never quite arrive
A pizza club charges a $40 membership plus $8 per pizza. The average cost per pizza after x pizzas is:
A(x) = (40 + 8x)/x
After 1 pizza, the average is $48. After 10, it's $12. After 100, $8.40. After 1,000, $8.04. The average keeps falling toward $8 but never reaches it, because the $40 fee is always spread over a finite number of pizzas. The line y = 8 is a horizontal asymptote: a line the graph approaches as x grows huge.
A(x) is a rational function, a ratio of two polynomials, f(x) = p(x)/q(x). Rational functions model averages, rates, concentrations and anything where a quantity is divided by another.
Their graphs have features polynomials never have:
- Vertical asymptotes, where the denominator is zero and the function blows up toward ±∞.
- Horizontal asymptotes, values the function approaches far to the left or right.
- Holes, single missing points where a factor cancels.
The parent function is f(x) = 1/x. It has a vertical asymptote at x = 0 (you can't divide by zero, and dividing by tiny numbers gives huge results) and a horizontal asymptote at y = 0 (dividing 1 by huge numbers gives results near zero).
Step 2 of 10Try the calculator
Average cost per pizza
Change the membership fee, price per pizza and number of pizzas. Watch the average approach the per-pizza price as the number grows.
- Average cost per pizza
- 12 $
- Gap above the asymptote
- 4 $
Step 3 of 10Practice · Chart
Average cost per pizza with a $40 fee
Tap the first point where the average drops below $10.
Tap the point that answers the question, then press Check.
| Pizzas bought | Average cost |
|---|---|
| 1 | $48 |
| 2 | $28 |
| 5 | $16 |
| 10 | $12 |
| 20 | $10 |
| 50 | $8.8 |
| 100 | $8.4 |
Step 4 of 10Learn
Finding vertical asymptotes and holes
Start by factoring the numerator and denominator completely. Then:
- A factor that cancels (appears in both top and bottom) creates a hole at its zero.
- A factor left in the denominator after canceling creates a vertical asymptote at its zero.
Example: f(x) = (x2 − 4)/(x2 − x − 2).
Factor: f(x) = (x − 2)(x + 2) / ((x − 2)(x + 1)).
The factor (x − 2) cancels, so there's a hole at x = 2. The simplified function is (x + 2)/(x + 1), and plugging in 2 gives the hole's y-value, 4/3. The factor (x + 1) stays in the denominator, so there's a vertical asymptote at x = −1.
Near a vertical asymptote, the function shoots up or down without bound. Near x = −1 here, the denominator is close to 0 while the numerator is close to 1, so the outputs are huge, positive on one side and negative on the other.
The common mistake is to set the original denominator equal to zero and call every solution an asymptote. That would wrongly put an asymptote at x = 2. Always cancel first.
Step 5 of 10Practice · Sort into groups
For f(x) = (x − 3)(x + 1) / ((x − 3)(x − 5)(x + 4)), classify each x-value.
Tap an item, then tap its group (or drag it there).
Step 6 of 10Learn
Horizontal asymptotes: compare the degrees
For large |x|, only the leading terms of the numerator and denominator matter. Compare their degrees:
- Top degree smaller than bottom degree: horizontal asymptote y = 0. Example: (3x + 1)/(x2 + 5). The bottom grows faster, so the fraction shrinks to 0.
- Degrees equal: horizontal asymptote y = ratio of leading coefficients. Example: (6x2 − x)/(2x2 + 7) → y = 6/2 = 3. The pizza function (8x + 40)/x has y = 8/1 = 8.
- Top degree bigger: no horizontal asymptote. The function grows without bound. If the top degree is exactly one more, there's a slant asymptote, which you can find by polynomial division.
A graph can cross a horizontal asymptote in the middle; the asymptote only describes the far left and right. A graph can never cross a vertical asymptote, because the function isn't defined there.
A quick summary: "bottom heavy, y = 0; balanced, divide the leaders; top heavy, none."
Step 7 of 10Explore
A rational function with asymptotes
This graph is y = (a x + 1)/(x − c). The vertical asymptote sits at x = c and the horizontal asymptote at y = a, the ratio of leading coefficients. Move both and watch the curve hug the new lines.
- Vertical asymptote x =
- 1
- Horizontal asymptote y =
- 2
Step 8 of 10Note
Step 9 of 10Practice · Match the pairs
Match each function to its horizontal asymptote.
Tap an answer, then tap the place where it belongs (or drag it there).
- (5x + 2)/(x − 1)
- (4x)/(x2 + 1)
- (x3 − 2)/(x + 7)
- (3x2 + 1)/(6x2 − x)
Step 10 of 10Practice · Choose one
Where does f(x) = (x + 2)/(x2 − 4) have a vertical asymptote?
Lesson complete!