Vertical asymptotes: how to find them, with examples

An undefined input tells us there’s something to investigate, but it doesn’t tell us yet whether the graph has a vertical asymptote. We need to see what the function does as we approach that input. Let’s use one-sided limits to find the asymptotes and distinguish them from holes.

What is a vertical asymptote?

The line x = a is a vertical asymptote when the function tends to positive or negative infinity as x approaches a from at least one available side. In other words, the function values grow without bound in magnitude near that line.

The two sides can tend toward the same infinity or toward opposite infinities. A finite value assigned at a itself does not change those nearby limits; the asymptote describes the limiting behavior.

Example: A vertical asymptote at x = 0

f(x)=x+4x

The domain excludes 0. As x approaches 0, the x term approaches 0 while 4x becomes unbounded. Its sign depends on the side we approach from.

limx→0-(x+4x)=-∞
limx→0+(x+4x)=∞

So x = 0 is a vertical asymptote. We can also write the function as x2+4x: its denominator is 0 at 0, and there is no common factor to cancel.

How to find vertical asymptotes of a rational function

Factor the numerator and denominator, record the original domain restrictions, and cancel common factors. Real zeros that remain in the denominator of the reduced rational expression give vertical asymptotes. We use one-sided signs to determine whether the function tends to positive or negative infinity.

For a canceled factor, check the reduced expression at the excluded input. If that gives a finite limit, the original graph has a hole there instead.

Example: One hole and one vertical asymptote

f(x)=x+2(x-3)(x+2)

The original expression excludes −2 and 3. After canceling x + 2, we get 1x-3, with those original exclusions retained.

At x = −2, the reduced expression approaches -15, so the original function has a hole at (-2,-15). At x = 3, the remaining denominator approaches 0 and the function becomes unbounded, so x = 3 is a vertical asymptote.

Both sides can approach positive infinity

For f(x)=1(x-1)2, the squared denominator is positive on either side of 1 and approaches 0. Both one-sided limits are positive infinity.

Both sides grow without bound near x equals oneThe graph of one divided by x minus one squared rises toward positive infinity on both sides of the dashed vertical line x equals one. The function and asymptote labels are placed above the graph.f(x) = 1/(x − 1)²Vertical asymptote: x = 1−201242468xy
The function tends to positive infinity from both sides of x = 1.

Logarithms, trigonometric functions, and domain endpoints

For f(x) = ln x, the available approach to 0 is from the right, and ln x tends to negative infinity there. That gives the vertical asymptote x = 0. The absence of real logarithm values at negative inputs does not give a separate asymptote at every negative number.

Trigonometric functions can have vertical asymptotes too. For example, tanx=sinxcosx has them at x=π2+kπ, where k is any integer.

A domain endpoint can have a finite limit. For f(x)=x, the right-hand limit at 0 is 0, so there is no vertical asymptote there. The infinite-limit test is what distinguishes these cases.