Sub topic 10
Vertical asymptotes
A vertical asymptote is a vertical line that the graph of a function approaches without ever touching, with the function values growing without bound. This chapter covers how to find vertical asymptotes from the formula of a rational function, how to tell which way the graph goes near each one, and which mistakes to avoid.
It assumes you can factor polynomials, find the excluded values of a rational expression, and cancel common factors, as covered in earlier chapters.
The working model
Let f(x) = p(x)/q(x), where p and q are polynomials. The line x = a is a vertical asymptote of f if, as x gets close to a from the left, from the right, or from both sides, f(x) grows without bound in the positive or negative direction. In limit notation, at least one of these holds: f(x) → ∞ or f(x) → −∞.
A rational function can only blow up when its denominator approaches zero. A nonzero number divided by a very small number is very large. So the candidates for vertical asymptotes are the zeros of the denominator. Not every candidate is an asymptote, because the numerator can also shrink to zero at the same place. Whether a zero of the denominator gives an asymptote or a hole depends on the cancelled form.
The procedure
- Factor the numerator and the denominator completely.
- Cancel common factors. Each cancelled factor gives a hole, not an asymptote. You will study holes in the next chapter.
- In the cancelled form, set the denominator equal to zero and solve. Each real solution a gives a vertical asymptote x = a.
- Study the sign of f on each side of each asymptote to see whether the graph goes up or down.
Worked example
Take f(x) = (x² − 1) / ((x − 1)(x + 3)²).
Factor the numerator: x² − 1 = (x − 1)(x + 1). The factor x − 1 appears in both numerator and denominator, so it cancels. This leaves a hole at x = 1.
The cancelled form is (x + 1)/(x + 3)². Its denominator is zero at x = −3, so x = −3 is the only vertical asymptote. The excluded value x = 1 is a hole, not an asymptote.
from sympy import symbols, cancel, fraction, solve, limit
x = symbols('x')
f = (x**2 - 1) / ((x - 1) * (x + 3)**2)
reduced = cancel(f)
num, den = fraction(reduced)
print(reduced) # (x + 1)/(x**2 + 6*x + 9)
print(solve(den, x)) # [-3]
print(limit(reduced, x, -3, '-')) # -oo
print(limit(reduced, x, -3, '+')) # -ooThe limit lines use a one-sided limit. The argument '-' approaches −3 from the left, and '+' approaches from the right. Both sides go to −∞ here. The next section explains why.
Direction of the graph near an asymptote
The graph can go to +∞ or −∞ on each side of an asymptote. The sign of f near x = a decides which. Write the factor from the denominator as (x − a)^m, where m is its multiplicity, meaning how many times the factor appears.
- If m is odd, (x − a)^m changes sign as x passes a. The graph goes up on one side and down on the other.
- If m is even, (x − a)^m is positive on both sides. The graph goes the same way on both sides, and the direction is set by the sign of the rest of the expression at a.
In the worked example, the factor (x + 3)² has even multiplicity. Near x = −3 the numerator x + 1 is about −2, which is negative, and (x + 3)² is a small positive number. A negative divided by a small positive number is a large negative number, so both sides go to −∞.
Compare g(x) = 1/(x − 2), where the multiplicity is 1.
from sympy import symbols, limit
x = symbols('x')
g = 1 / (x - 2)
print(limit(g, x, 2, '-')) # -oo
print(limit(g, x, 2, '+')) # ooJust left of 2, x − 2 is a small negative number, so g is a large negative number. Just right of 2, x − 2 is a small positive number, so g is a large positive number.
Sign table for several asymptotes
When a function has more than one asymptote, test one point in each interval and record the sign. Take h(x) = (x + 1)/((x − 2)(x + 3)). The zeros of the denominator are 2 and −3, and the zero of the numerator is −1.
| Interval | Test point | Sign of x + 1 | Sign of x − 2 | Sign of x + 3 | Sign of h |
|---|---|---|---|---|---|
| x < −3 | −4 | − | − | − | − |
| −3 < x < −1 | −2 | − | − | + | + |
| −1 < x < 2 | 0 | + | − | + | − |
| x > 2 | 3 | + | + | + | + |
From the table, h goes to −∞ as x approaches −3 from the left and to +∞ as x approaches −3 from the right. Both factors have multiplicity 1, so the sign changes across each asymptote. Check at x = 2: h is negative on the left and positive on the right, so it goes to −∞ from the left and +∞ from the right.
Domain, asymptotes and intercepts together
The domain of f is all real numbers except the zeros of the original denominator, before any cancelling. That includes both asymptotes and holes. This is why the original, uncancelled form matters when you state the domain, and the cancelled form matters when you find asymptotes.
Here is another example, this time with no cancellation. For f(x) = (2x² + 1)/(x² − 4), the numerator 2x² + 1 has no real zeros, so nothing cancels. The denominator factors as (x − 2)(x + 2), so the vertical asymptotes are x = −2 and x = 2.
from sympy import symbols, fraction, solve, limit, oo
x = symbols('x')
f = (2*x**2 + 1) / (x**2 - 4)
num, den = fraction(f)
print(solve(den, x)) # [-2, 2] -> vertical asymptotes x = -2 and x = 2
print(limit(f, x, oo)) # 2 -> horizontal asymptote y = 2A graph can never cross a vertical asymptote, because the function is undefined there. A graph can cross a horizontal asymptote, which you will see later.
Common errors
- Declaring every excluded value an asymptote. Excluded values from cancelled factors are holes. Always cancel before you decide.
- Cancelling terms instead of factors. In (x + 3)/(x² + 3x) you cannot cancel the 3s. Factor the denominator as x(x + 3) first, and then cancel the whole factor (x + 3).
- Using the original form after cancelling. Find asymptotes from the cancelled form, but list the holes from the factors you cancelled.
- Assuming the sign flips at every asymptote. It flips only for odd multiplicity. The worked example shows both sides going to −∞.
- Looking for asymptotes from a quadratic with no real zeros. The denominator x² + 1 is never zero for real x, so 1/(x² + 1) has no vertical asymptote. Complex zeros do not produce vertical asymptotes on the real graph.
- Confusing the asymptote with its equation. A vertical asymptote is the line x = a. Write the equation, not only the number a.
Exercises
Exercise
Find all vertical asymptotes and holes of f(x) = (x² − 9)/(x² − 5x + 6).
Show answer
Factor: the numerator is (x − 3)(x + 3) and the denominator is (x − 3)(x − 2). The factor x − 3 cancels, so there is a hole at x = 3. The cancelled form is (x + 3)/(x − 2), so the only vertical asymptote is x = 2. The hole has height (3 + 3)/(3 − 2) = 6, so it is at (3, 6).
Exercise
For f(x) = 3/(x − 4)², state the vertical asymptote and the direction of the graph on each side of it.
Show answer
The denominator is zero at x = 4, and nothing cancels, so the vertical asymptote is x = 4. The multiplicity of x − 4 is 2, which is even, so (x − 4)² is positive on both sides. The numerator 3 is positive, so f goes to +∞ on both sides.
Exercise
For f(x) = (x − 1)/((x − 1)²(x + 2)), explain why x = 1 is a vertical asymptote and not a hole, and give the behavior near x = −2.
Show answer
One factor x − 1 cancels, which leaves 1/((x − 1)(x + 2)). The factor x − 1 still appears in the denominator, so x = 1 is a vertical asymptote. There is no hole, because no cancelled factor is left over at x = 1 to produce a missing point. Near x = −2, the factor x + 2 has multiplicity 1, so the graph goes in opposite directions on the two sides. Just left of −2, (x − 1)(x + 2) is (−3)(small negative), which is positive, so f goes to +∞. Just right of −2, it is (−3)(small positive), which is negative, so f goes to −∞.