Finding vertical asymptotes
A vertical asymptote is the vertical line at x = k that a graph hugs while its outputs grow without bound, upward or downward, as x closes in on k from at least one side. For a rational function, factor, cancel the shared factors, and set each remaining denominator factor to zero. A cancelled factor leaves a hole, not an asymptote.
For students and parents planning test prep or coursework: one hour with George Li, one to one by video, is $180, $200 or $160, by subject. You leave with a written plan within one working day.
Book your first sessionFind the vertical asymptotes and any holes of f(x) = (x^2 - 25) / (x^2 + 3x - 10).
- Factor the top: x^2 - 25 = (x - 5)(x + 5).
- Factor the bottom: x^2 + 3x - 10 = (x + 5)(x - 2).
- Cancel the shared factor x + 5. What remains is (x - 5) / (x - 2), valid for x not equal to -5.
- The remaining denominator factor x - 2 gives a vertical asymptote at x = 2.
- The cancelled factor x + 5 gives a hole at x = -5. Its height is the reduced value (-5 - 5) / (-5 - 2) = 10/7.
- Check the behavior near 2: at x = 2.01 the reduced form is -2.99 / 0.01 = -299, and at x = 1.99 it is -3.01 / -0.01 = 301, so the outputs run off in opposite directions.
Answer one vertical asymptote at x = 2, and a hole at (-5, 10/7).
Original problem by George Li Tutoring; the method is the infinite-limit method of OpenStax, Calculus Volume 1
What does an infinite limit have to do with it?
The formal idea is a limit that is infinite. The line x = k is a vertical asymptote of f if the limit of f(x), as x approaches k from one side or the other, is positive or negative infinity. Only one side has to blow up. The graph does not need to stay on one side of the line either, as the worked example shows, where the two sides go in opposite directions.
A vertical asymptote is a place the function is not defined, but the reverse does not hold. A function can be undefined at a point, such as a hole, with the outputs staying near a finite number. Only unbounded outputs make an asymptote.
How do you find them from a formula?
For a fraction p(x) / q(x) of polynomials, work in this order.
- Factor the numerator and the denominator completely.
- Cancel any factor that appears on both. Each cancelled factor marks a hole.
- Set the factors that remain in the denominator to zero. Each solution is a vertical asymptote.
Take g(x) = (x + 1) / (x(x + 3)). Nothing cancels, so the asymptotes are x = 0 and x = -3. For h(x) = 1 / (x^2 + 4), the denominator is never zero over the reals, so there are none. For k(x) = 1 / (x - 3)^2, the asymptote is x = 3 and both sides go to positive infinity, because a square is never negative.
One more case deserves a check. If the numerator is zero at the same place as the denominator, and the factor does not cancel fully, look at the powers. In (x - 1) / (x - 1)^2, the factor cancels once and leaves 1 / (x - 1), which has an asymptote at 1.
Which other functions have vertical asymptotes?
| Function | Vertical asymptotes | Why |
|---|---|---|
| tan x | x = pi/2 + n pi, for every integer n | cos x is zero there, so the quotient sin x / cos x is unbounded |
| cot x | x = n pi, for every integer n | sin x is zero there |
| sec x and csc x | where cos x or sin x is zero, respectively | Each is a reciprocal of a function that reaches zero |
| ln x | x = 0 | The output falls without bound as x approaches 0 from the right |
| ln(x - 1) | x = 1 | The graph of ln x shifted right by 1 |
Sine and cosine have none, because they never leave the interval from -1 to 1. Exponentials such as e^x have none either, though they have horizontal asymptotes.
How do you read an asymptote off a graph?
Look for a branch that turns toward vertical near some x value, and draw a light vertical line there. If the graph touches the line, it was not an asymptote. If the curve climbs or falls along it without reaching it, it is. In a piecewise graph, check each side separately, because one side may be bounded.
What about the calculator?
A graphing tool can show where the graph turns steeply, but it can mislead you in two ways. A narrow window can hide an asymptote entirely, and a plotting tool may draw a near-vertical segment across the break, which looks like an asymptote at a place where the graph simply jumps. Use a calculator to locate candidates, and then confirm by factoring or by evaluating values on either side. On AP® Calculus questions that allow a calculator, the algebra still decides the answer. The tutoring track covers this.
For how asymptotes of other kinds relate, the guide to slant asymptotes picks up where this one stops.
Practice problems
These are original to George Li Tutoring. Find every vertical asymptote and hole.
- f(x) = 5 / (x^2 - 9)
- g(x) = (x^2 - 4) / (x - 2)
- h(x) = (x + 4) / (x^2 + x - 12)
- k(x) = tan(2x), for x between 0 and pi
Answers: 1) The denominator is (x - 3)(x + 3), so the asymptotes are x = 3 and x = -3, with no holes. 2) The top is (x - 2)(x + 2), so the factor cancels, leaving x + 2. There is a hole at (2, 4) and no asymptote. 3) The bottom is (x + 4)(x - 3), so x + 4 cancels, leaving a hole at x = -4 with height 1 / (-4 - 3) = -1/7, and a vertical asymptote at x = 3. 4) tan u is unbounded where u = pi/2 plus a multiple of pi, so 2x = pi/2 gives x = pi/4, and 2x = 3 pi/2 gives x = 3 pi/4.
When these feel slow, a tutor can look at your own work. The college calculus page explains how we teach limits, and the first session is the way in.
Common questions
Can a function cross a vertical asymptote?
No. A function cannot be defined at a vertical asymptote and also have unbounded values there. The graph can appear on both sides of the line, but it never touches it.
What is the difference between a hole and a vertical asymptote?
A hole is a single missing point where a common factor cancelled, and the outputs stay near a finite value. An asymptote is where the outputs grow without bound.
How many vertical asymptotes can a function have?
Any number, including none and infinitely many. A rational function has at most as many as the degree of its denominator, while tan x has infinitely many.
Do horizontal asymptotes matter here?
They describe the end behavior as x grows large, not the behavior near a finite value, so they are a separate question. A function can have both kinds.
Sources
- OpenStax, Calculus Volume 1, read
- OpenStax, Precalculus 2e, read