Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Find Vertical Asymptotes

A vertical asymptote x=ax = a appears where a one-sided limit is ±∞\pm\infty, typically where a denominator is 00 while the numerator is not. Cancel common factors first, then check each side.

Recognize the task

"Find the vertical asymptotes", "describe the behaviour near x=ax = a", a rational function, tan⁡x\tan x, ln⁡x\ln x near 00. Test: a point where the function is undefined and the problem does not simplify away.

Two ways to do it

Zeros of the denominatorusual choice
g(a)=0, f(a)≠0  ⇒  x=a is a vertical asymptote of fgg(a) = 0,\ f(a) \neq 0 \;\Rightarrow\; x = a \text{ is a vertical asymptote of } \tfrac{f}{g}
After cancelling common factors. A factor that cancels gives a hole, not an asymptote.
Sign analysis for each sidewhich infinity
lim⁡x→a±f(x)g(x)=±∞ by the signs of f and g near a\lim_{x\to a^\pm}\frac{f(x)}{g(x)} = \pm\infty \text{ by the signs of } f \text{ and } g \text{ near } a
Decide the sign of every factor just left and just right of aa (sign analysis).

Steps

StepOn f(x)=x+1x2−x−2f(x) = \frac{x + 1}{x^2 - x - 2}
1Factor and cancel common factors. A cancelled factor marks a hole, not an asymptote.x+1(x−2)(x+1)=1x−2\frac{x + 1}{(x - 2)(x + 1)} = \frac{1}{x - 2} for x≠−1x \neq -1
2Set the remaining denominator to zero. Each solution is a candidate asymptote.x=2x = 2
3Check that the numerator is not zero there. Nonzero over zero: the one-sided limits are infinite.numerator 1≠01 \neq 0 ✓
4Find the sign of each one-sided limit. Just left of 22 the denominator is a small negative number; just right, a small positive one. See one-sided limits.lim⁡x→2−1x−2=−∞,lim⁡x→2+1x−2=+∞\lim_{x\to 2^-}\frac{1}{x - 2} = -\infty, \qquad \lim_{x\to 2^+}\frac{1}{x - 2} = +\infty
5Conclude. State the asymptotes and the holes separately.vertical asymptote x=2x = 2; hole at x=−1x = -1

Worked examples

Example 1 · one asymptote and one hole

cancel first
x+1x2−x−2=1x−2\frac{x + 1}{x^2 - x - 2} = \frac{1}{x - 2}, x≠−1x \neq -1
the factor (x+1)(x + 1) cancels
asymptote x=2x = 2 (−∞-\infty from the left, +∞+\infty from the right); hole at x=−1x = -1

Example 2 · two asymptotes

sign on each side
f(x)=x2+1x2−4=x2+1(x−2)(x+2)f(x) = \frac{x^2 + 1}{x^2 - 4} = \frac{x^2 + 1}{(x - 2)(x + 2)}
denominator zero at ±2\pm 2, numerator never zero
near 22: 5(0∓)(4)\frac{5}{(0^\mp)(4)}, so −∞-\infty from the left and +∞+\infty from the right
sign analysis
vertical asymptotes x=2x = 2 and x=−2x = -2

Example 3 · tangent

not a rational function
tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x}, cos⁡π2=0\cos\frac{\pi}{2} = 0, sin⁡π2=1\sin\frac{\pi}{2} = 1
nonzero over zero
lim⁡x→π/2−tan⁡x=+∞,lim⁡x→π/2+tan⁡x=−∞\lim_{x\to\pi/2^-}\tan x = +\infty, \qquad \lim_{x\to\pi/2^+}\tan x = -\infty
cos⁡x\cos x changes from positive to negative

Example 4 · logarithm at the edge of its domain

one side only
lim⁡x→0+ln⁡x=−∞\lim_{x\to 0^+}\ln x = -\infty
the left side is outside the domain
vertical asymptote x=0x = 0
one infinite one-sided limit is enough

See it happen

Factor first. In x+1(x−2)(x+1)\frac{x + 1}{(x - 2)(x + 1)} both top and bottom vanish at x=−1x = -1, which leaves a hole the graph passes through as if nothing happened; only the bottom vanishes at x=2x = 2, and there the graph shoots off to infinity.

Common mistakes

Asymptote at a hole

✗ x=−1x = -1 is a vertical asymptote
✓ the factor cancels; x=−1x = -1 is a removable discontinuity

Skipping the sign on each side

✗ "the limit at 22 is ∞\infty"
✓ −∞-\infty from the left, +∞+\infty from the right; they differ

Writing a vertical asymptote as y = …

✗ vertical asymptote y=2y = 2
✓ vertical asymptotes are vertical lines: x=2x = 2

Stopping at "undefined"

✗ "f(2)f(2) is undefined, so nothing can be said"
✓ undefined at a point is exactly where to look for an asymptote or a hole