Skip to content
Family Table Math

Infinite Limits and Vertical Asymptotes

Sometimes, as xx gets close to a number, f(x)f(x) doesn’t settle down at all. It shoots up (or down) past every number you can name. We describe this with an infinite limit, and the graph has a vertical asymptote. This page shows how to find infinite limits by looking at signs, without needing a graph.

lim⁡x→af(x)=∞\lim_{x \to a} f(x) = \infty

means f(x)f(x) becomes larger than any number you choose, as long as xx is close enough to aa (but not equal to it). Similarly, −∞-\infty means f(x)f(x) becomes more negative than any number.

∞\infty is not a number, so an infinite limit is really a limit that does not exist. Writing =∞= \infty tells you how it fails: by growing without bound in the positive direction.

The line x=ax = a is a vertical asymptote of ff if at least one of the one-sided limits at aa is ∞\infty or −∞-\infty:

lim⁡x→a−f(x)=±∞orlim⁡x→a+f(x)=±∞\lim_{x \to a^-} f(x) = \pm\infty \quad\text{or}\quad \lim_{x \to a^+} f(x) = \pm\infty
Left: y = 1 over (x minus 2) goes down to negative infinity on the left of x = 2 and up to infinity on the right. Right: y = 1 over (x minus 2) squared goes up to infinity on both sides of x = 2 2 4 −2 2 y = 1/(x - 2) x = 2 2 4 −2 2 y = 1/(x - 2)² x = 2
For 1x−2\tfrac{1}{x - 2} the two sides go opposite ways; for 1(x−2)2\tfrac{1}{(x - 2)^2} both sides go to ∞\infty.

When substituting gives a nonzero number over 00, the function is blowing up. To decide between ∞\infty and −∞-\infty, check the sign on each side:

  1. Find the limit of the top (a nonzero number, say positive or negative).
  2. Decide whether the bottom is a small positive number (0+0^+) or a small negative number (0−0^-) on that side. Plug in a value just beside aa if you’re unsure.
  3. Combine the signs: positive over 0+0^+ is ∞\infty; positive over 0−0^- is −∞-\infty; and so on.

A squared factor like (x−2)2(x - 2)^2 is positive on both sides, so both one-sided limits have the same sign.

For a rational function, factor first:

  • A zero of the denominator whose factor cancels completely gives a hole, not an asymptote.
  • A zero of the denominator whose factor doesn’t cancel completely gives a vertical asymptote. For example, x−2(x−2)2=1x−2\dfrac{x - 2}{(x - 2)^2} = \dfrac{1}{x - 2} still has an asymptote at x=2x = 2.
  • lim⁡x→0+ln⁡x=−∞\displaystyle\lim_{x \to 0^+} \ln x = -\infty, so x=0x = 0 is a vertical asymptote of y=ln⁡xy = \ln x.
  • tan⁡x=sin⁡xcos⁡x\tan x = \dfrac{\sin x}{\cos x} has vertical asymptotes wherever cos⁡x=0\cos x = 0: x=π2+kπx = \dfrac{\pi}{2} + k\pi (radians).

Find lim⁡x→3+1x−3\displaystyle\lim_{x \to 3^+} \frac{1}{x - 3} and lim⁡x→3−1x−3\displaystyle\lim_{x \to 3^-} \frac{1}{x - 3}.

Solution. The top is 11 (positive). For xx slightly bigger than 33 (like 3.013.01), x−3x - 3 is a small positive number. For xx slightly smaller (like 2.992.99), it’s a small negative number:

lim⁡x→3+1x−3=10+=∞,lim⁡x→3−1x−3=10−=−∞\lim_{x \to 3^+} \frac{1}{x - 3} = \frac{1}{0^+} = \infty, \qquad \lim_{x \to 3^-} \frac{1}{x - 3} = \frac{1}{0^-} = -\infty

The two-sided limit does not exist, and x=3x = 3 is a vertical asymptote. (Writing 10+\tfrac{1}{0^+} is shorthand for your reasoning, not real arithmetic.)

Find lim⁡x→2x+1x2−4x+4\displaystyle\lim_{x \to 2} \frac{x + 1}{x^2 - 4x + 4}.

Solution. The bottom factors as (x−2)2(x - 2)^2. Substituting gives 30\tfrac{3}{0}, so the function blows up.

The top approaches 33 (positive). The bottom (x−2)2(x - 2)^2 is positive on both sides of 22. So both one-sided limits are 30+=∞\tfrac{3}{0^+} = \infty:

lim⁡x→2x+1(x−2)2=∞\lim_{x \to 2} \frac{x + 1}{(x - 2)^2} = \infty

Find the vertical asymptotes of g(x)=x2−1x2+x−2g(x) = \dfrac{x^2 - 1}{x^2 + x - 2}, and describe the behaviour of gg near each one.

Solution. Factor:

g(x)=(x−1)(x+1)(x+2)(x−1)=x+1x+2for x≠1g(x) = \frac{(x - 1)(x + 1)}{(x + 2)(x - 1)} = \frac{x + 1}{x + 2} \quad\text{for } x \ne 1

At x=1x = 1 the factor cancels, so there’s a hole, not an asymptote. At x=−2x = -2 it doesn’t cancel, so x=−2x = -2 is a vertical asymptote.

Near x=−2x = -2, the top x+1x + 1 approaches −1-1 (negative).

  • Just right of −2-2 (e.g. −1.99-1.99), x+2x + 2 is 0+0^+: −10+=−∞\dfrac{-1}{0^+} = -\infty.
  • Just left of −2-2 (e.g. −2.01-2.01), x+2x + 2 is 0−0^-: −10−=∞\dfrac{-1}{0^-} = \infty.
lim⁡x→−2+g(x)=−∞,lim⁡x→−2−g(x)=∞\lim_{x \to -2^+} g(x) = -\infty, \qquad \lim_{x \to -2^-} g(x) = \infty

Find lim⁡x→π2−tan⁡x\displaystyle\lim_{x \to \frac{\pi}{2}^-} \tan x and lim⁡x→π2+tan⁡x\displaystyle\lim_{x \to \frac{\pi}{2}^+} \tan x. (Radians.)

Solution. Write tan⁡x=sin⁡xcos⁡x\tan x = \dfrac{\sin x}{\cos x}. As x→π2x \to \dfrac{\pi}{2}, sin⁡x→1\sin x \to 1 and cos⁡x→0\cos x \to 0.

Just left of π2\dfrac{\pi}{2} (in the first quadrant), cos⁡x\cos x is small and positive. Just right (in the second quadrant), cos⁡x\cos x is small and negative:

lim⁡x→π2−tan⁡x=10+=∞,lim⁡x→π2+tan⁡x=10−=−∞\lim_{x \to \frac{\pi}{2}^-} \tan x = \frac{1}{0^+} = \infty, \qquad \lim_{x \to \frac{\pi}{2}^+} \tan x = \frac{1}{0^-} = -\infty

So x=π2x = \dfrac{\pi}{2} is a vertical asymptote of y=tan⁡xy = \tan x.

Saying a limit that “equals infinity” exists. If a question asks whether lim⁡x→af(x)\displaystyle\lim_{x \to a} f(x) exists and the answer is ∞\infty, the limit does not exist. Saying it’s ∞\infty is a description, not a value.

Assuming nonzero/0 is always positive infinity. The sign depends on the side. In Example 1, the left side goes to −∞-\infty. Always check each side.

Calling a hole an asymptote. In Example 3, x=1x = 1 makes the denominator 00, but the factor cancels. That’s a hole. Factor before deciding.

Getting the sign of 0⁺ or 0⁻ wrong. If you’re unsure, substitute a number just beside aa (like a+0.01a + 0.01) and look at the sign of each factor.

Treating ∞ − ∞ as 0. In Practice 8, both 1x\tfrac{1}{x} and 1x2\tfrac{1}{x^2} go to ∞\infty as x→0+x \to 0^+, but their difference doesn’t go to 00. Combine into one fraction first.

1. (Warm-up) Find lim⁡x→5−2x−5\displaystyle\lim_{x \to 5^-} \frac{2}{x - 5}.

Solution

The top is 22 (positive). For xx just less than 55, x−5x - 5 is 0−0^-:

lim⁡x→5−2x−5=−∞\lim_{x \to 5^-} \frac{2}{x - 5} = -\infty

2. (Warm-up) Find lim⁡x→−13(x+1)2\displaystyle\lim_{x \to -1} \frac{3}{(x + 1)^2}.

Solution

The top is 33 and (x+1)2(x + 1)^2 is a small positive number on both sides, so

lim⁡x→−13(x+1)2=∞\lim_{x \to -1} \frac{3}{(x + 1)^2} = \infty

3. (Warm-up) Find the vertical asymptote of f(x)=x+4x−7f(x) = \dfrac{x + 4}{x - 7}.

Solution

The denominator is 00 at x=7x = 7, and the top is 11≠011 \ne 0 there. The vertical asymptote is x=7x = 7.

4. (Core) Find lim⁡x→2+x+3x2−4\displaystyle\lim_{x \to 2^+} \frac{x + 3}{x^2 - 4} and lim⁡x→2−x+3x2−4\displaystyle\lim_{x \to 2^-} \frac{x + 3}{x^2 - 4}.

Solution

Factor the bottom: (x−2)(x+2)(x - 2)(x + 2). The top approaches 55, and x+2x + 2 approaches 44 (both positive).

Right of 22: x−2x - 2 is 0+0^+, so the bottom is 0+0^+ and the limit is ∞\infty.

Left of 22: x−2x - 2 is 0−0^-, so the bottom is 0−0^- and the limit is −∞-\infty.

5. (Core) Find the vertical asymptotes and holes of f(x)=x2−9x2−2x−3f(x) = \dfrac{x^2 - 9}{x^2 - 2x - 3}.

Solutionf(x)=(x−3)(x+3)(x−3)(x+1)=x+3x+1for x≠3f(x) = \frac{(x - 3)(x + 3)}{(x - 3)(x + 1)} = \frac{x + 3}{x + 1} \quad\text{for } x \ne 3

At x=3x = 3 the factor cancels: a hole at height 3+33+1=32\dfrac{3 + 3}{3 + 1} = \dfrac{3}{2}, so at (3,32)\left(3, \tfrac{3}{2}\right).

At x=−1x = -1 the top is 2≠02 \ne 0: a vertical asymptote x=−1x = -1.

6. (Core) Find lim⁡x→0x−1x2\displaystyle\lim_{x \to 0} \frac{x - 1}{x^2}.

Solution

The top approaches −1-1 (negative) and x2x^2 is 0+0^+ on both sides:

lim⁡x→0x−1x2=−10+=−∞\lim_{x \to 0} \frac{x - 1}{x^2} = \frac{-1}{0^+} = -\infty

7. (Core) Find lim⁡x→π2−sec⁡x\displaystyle\lim_{x \to \frac{\pi}{2}^-} \sec x. (Radians.)

Solution

sec⁡x=1cos⁡x\sec x = \dfrac{1}{\cos x}. Just left of π2\dfrac{\pi}{2}, cos⁡x\cos x is small and positive, so

lim⁡x→π2−sec⁡x=10+=∞\lim_{x \to \frac{\pi}{2}^-} \sec x = \frac{1}{0^+} = \infty

8. (Challenge) Find lim⁡x→0+(1x−1x2)\displaystyle\lim_{x \to 0^+} \left(\frac{1}{x} - \frac{1}{x^2}\right).

Solution

Both terms go to ∞\infty, which tells you nothing (it’s an ∞−∞\infty - \infty form). Combine over x2x^2:

1x−1x2=x−1x2\frac{1}{x} - \frac{1}{x^2} = \frac{x - 1}{x^2}

The top approaches −1-1 and the bottom is 0+0^+, so

lim⁡x→0+(1x−1x2)=−∞\lim_{x \to 0^+} \left(\frac{1}{x} - \frac{1}{x^2}\right) = -\infty

9. (Challenge) Write a rational function with vertical asymptotes x=2x = 2 and x=−3x = -3, a hole at x=1x = 1, and lim⁡x→2+f(x)=∞\displaystyle\lim_{x \to 2^+} f(x) = \infty.

Solution

Answers vary. One example:

f(x)=x−1(x−1)(x−2)(x+3)f(x) = \frac{x - 1}{(x - 1)(x - 2)(x + 3)}

The factor x−1x - 1 cancels, giving a hole at x=1x = 1. The factors x−2x - 2 and x+3x + 3 don’t cancel, giving the two asymptotes.

Check the sign near 2+2^+: for x≠1x \ne 1, f(x)=1(x−2)(x+3)f(x) = \dfrac{1}{(x - 2)(x + 3)}. Just right of 22, x−2x - 2 is 0+0^+ and x+3≈5>0x + 3 \approx 5 \gt 0, so f(x)→∞f(x) \to \infty.