Sub topic 10
Vertical Asymptotes
Prerequisites and the basic idea
This chapter assumes that you can factor polynomials, solve equations, and identify the domain of a function.
A vertical asymptote is a vertical line that a graph approaches while the function values increase or decrease without bound. For a rational function
\[ f(x)=\frac{P(x)}{Q(x)}, \]
a vertical asymptote may occur at a value \(x=a\) where the denominator is zero.
First factor the numerator and denominator completely. Cancel common factors only to simplify the expression. Then set the remaining denominator equal to zero.
Finding vertical asymptotes
Consider
\[ f(x)=\frac{x^2-9}{x^2-5x+6}. \]
Factor both polynomials:
\[ f(x)=\frac{(x-3)(x+3)}{(x-2)(x-3)}. \]
The original denominator is zero when \(x=2\) or \(x=3\). After cancellation,
\[ f(x)=\frac{x+3}{x-2}, \]
but the original function is still undefined at both values.
The factor \(x-3\) cancels, so \(x=3\) is a hole. The factor \(x-2\) remains in the denominator, so \(x=2\) is a vertical asymptote.
| Denominator factor after cancellation | Graph feature |
|---|---|
| \(x-a\) remains | Vertical asymptote \(x=a\) |
| \(x-a\) cancels | Hole at \(x=a\) |
A canceled factor does not produce a vertical asymptote because its effect is removable. The graph approaches a finite height near the hole.
One-sided behavior
Near a vertical asymptote, the function can approach positive or negative infinity. The direction depends on the signs of the numerator and denominator on each side.
For
\[ f(x)=\frac{1}{x-2}, \]
values just to the left of \(2\) make \(x-2\) negative, so
\[ \lim_{x\to 2^-}f(x)=-\infty. \]
Values just to the right make \(x-2\) positive, so
\[ \lim_{x\to 2^+}f(x)=+\infty. \]
The two-sided limit does not exist as a finite number, but the line \(x=2\) is still a vertical asymptote.
Checking with a computer algebra system
SymPy can find denominator zeros and evaluate one-sided limits:
from sympy import symbols, fraction, solve, limit, oo
x = symbols('x')
f = (2*x**2 + 1) / (x**2 - 4)
numerator, denominator = fraction(f)
print(solve(denominator, x)) # [-2, 2]
print(limit(f, x, -2, dir='-')) # oo
print(limit(f, x, -2, dir='+')) # -ooThe numerator has no real zeros, so both denominator zeros produce vertical asymptotes: \(x=-2\) and \(x=2\).
Exercise
Find the vertical asymptotes and holes of \(f(x)=\frac{x^2-1}{(x-1)(x+2)}\).
Show answer
Factor the numerator: \(x^2-1=(x-1)(x+1)\). The factor \(x-1\) cancels, so there is a hole at \(x=1\). The remaining denominator is \(x+2\), so the vertical asymptote is \(x=-2\).