AP Calculus AB and BC

Limits at Infinity and Horizontal Asymptotes

A limit at infinity is the value f(x) approaches as x grows without bound in the positive or negative direction. If that limit is a finite number L, the line y = L is a horizontal asymptote. For a rational function, divide every term by the highest power of x in the denominator and see what is left.

What a limit at infinity means

A limit at infinity describes where the outputs of a function settle as the input grows without bound. Writing lim⁡x→∞f(x)=L\lim_{x \to \infty} f(x) = L means f(x)f(x) gets as close to LL as you like once xx is large enough. Writing lim⁡x→−∞f(x)=L\lim_{x \to -\infty} f(x) = L says the same thing for inputs that are large and negative. This is Topic 1.15, Connecting Limits at Infinity and Horizontal Asymptotes.

When either of those limits is a finite number LL, the line y=Ly = L is a horizontal asymptote of the graph. The two directions are separate questions, so a function can have zero, one, or two horizontal asymptotes.

lim⁡x→∞cxp=0for any constant c and any p>0\lim_{x \to \infty} \frac{c}{x^p} = 0 \quad \text{for any constant } c \text{ and any } p > 0

Most limits at infinity in this course come down to that one fact: a constant divided by a growing power of xx goes to 00. The same holds as x→−∞x \to -\infty whenever xpx^p is defined for negative xx.

Rational functions: divide by the highest power

For a quotient of polynomials, divide every term in the numerator and the denominator by the highest power of xx that appears in the denominator. Each leftover term of the form cxp\frac{c}{x^p} goes to 00, and what remains is the limit. The result depends only on the two degrees and the two leading coefficients.

DegreesLimit as x→±∞x \to \pm\inftyHorizontal asymptote
Numerator degree is less than denominator degree00y=0y = 0
Degrees are equalRatio of the leading coefficientsyy equals that ratio
Numerator degree is greater than denominator degreeInfinite, so no finite limitNone

The table only summarizes the division, so you can always fall back on dividing if you forget a row. For 7x+2x2−1\frac{7x + 2}{x^2 - 1} the degrees are 11 and 22, so the limit is 00 in both directions. For x3x2+1\frac{x^3}{x^2 + 1} the numerator has the higher degree, the quotient behaves like xx when ∣x∣|x| is large, and there is no horizontal asymptote. When the numerator degree is exactly one more than the denominator degree, the graph follows a slant asymptote instead.

Square roots: watch the sign of x

When a square root is involved, the highest power is hidden inside it. The key identity is x2=∣x∣\sqrt{x^2} = |x|, which equals xx when xx is positive and −x-x when xx is negative. That sign is the reason a function like xx2+1\frac{x}{\sqrt{x^2 + 1}} has two different horizontal asymptotes.

lim⁡x→∞xx2+1=1lim⁡x→−∞xx2+1=−1\lim_{x \to \infty} \frac{x}{\sqrt{x^2 + 1}} = 1 \qquad \lim_{x \to -\infty} \frac{x}{\sqrt{x^2 + 1}} = -1

In the first limit, dividing top and bottom by x=x2x = \sqrt{x^2} gives 11+1x2\frac{1}{\sqrt{1 + \frac{1}{x^2}}}, which approaches 11. In the second, xx is negative, so x=−x2x = -\sqrt{x^2} and the same division leaves a factor of −1-1.

Check both directions

For a rational function, the limits at ∞\infty and −∞-\infty agree whenever they are finite. For functions built from roots, exponentials, or inverse tangent they often differ, so compute each one separately.

Exponentials, logarithms, and growth rates

A few end behaviors are worth knowing on sight.

  • ex→0e^x \to 0 as x→−∞x \to -\infty, and e−x→0e^{-x} \to 0 as x→∞x \to \infty. The line y=0y = 0 is a horizontal asymptote of y=exy = e^x on the left side only.
  • arctan⁡x→π2\arctan x \to \frac{\pi}{2} as x→∞x \to \infty, and arctan⁡x→−π2\arctan x \to -\frac{\pi}{2} as x→−∞x \to -\infty.
  • ln⁡x→∞\ln x \to \infty as x→∞x \to \infty, so y=ln⁡xy = \ln x has no horizontal asymptote even though it grows slowly.
  • sin⁡x\sin x and cos⁡x\cos x keep oscillating between −1-1 and 11, so neither has a limit at infinity.

For a quotient of two different types of function, compare growth rates. As x→∞x \to \infty, exe^x grows faster than every power of xx, and every positive power of xx grows faster than ln⁡x\ln x. A slower function divided by a faster one goes to 00:

lim⁡x→∞x3ex=0lim⁡x→∞ln⁡xx=0\lim_{x \to \infty} \frac{x^3}{e^x} = 0 \qquad \lim_{x \to \infty} \frac{\ln x}{x} = 0

Both are ∞∞\frac{\infty}{\infty} forms, so you can confirm them with L'Hopital's Rule.

Where students lose points

  • Doing arithmetic with ∞\infty. Expressions like ∞∞\frac{\infty}{\infty} and ∞−∞\infty - \infty are indeterminate forms that call for more work. They do not equal 11 or 00.
  • Checking only x→∞x \to \infty. A question that asks for all horizontal asymptotes needs both directions.
  • Dropping the sign with square roots. For negative xx, x2=−x\sqrt{x^2} = -x.
  • Writing the asymptote as a number. The limit is 22; the asymptote is the line y=2y = 2.
  • Assuming a graph cannot touch its horizontal asymptote. A graph can cross it. The asymptote only describes the behavior far to the left or right.

Worked examples

Worked example

A rational function with equal degrees

Evaluate lim⁡x→∞4x2−3x+12x2+5\lim_{x \to \infty} \frac{4x^2 - 3x + 1}{2x^2 + 5} and state the horizontal asymptote.

  1. The highest power of xx in the denominator is x2x^2. Divide every term in the numerator and denominator by x2x^2: 4−3x+1x22+5x2\frac{4 - \frac{3}{x} + \frac{1}{x^2}}{2 + \frac{5}{x^2}}.
  2. As x→∞x \to \infty, the terms 3x\frac{3}{x}, 1x2\frac{1}{x^2}, and 5x2\frac{5}{x^2} each go to 00.
  3. What remains is 4−0+02+0=2\frac{4 - 0 + 0}{2 + 0} = 2. The same steps give 22 as x→−∞x \to -\infty.

The limit is 22, so the horizontal asymptote is y=2y = 2.

Worked example

A square root as x goes to negative infinity

Evaluate lim⁡x→−∞3x−14x2+9\lim_{x \to -\infty} \frac{3x - 1}{\sqrt{4x^2 + 9}}.

  1. Factor x2x^2 out of the root: 4x2+9=x2 4+9x2=∣x∣4+9x2\sqrt{4x^2 + 9} = \sqrt{x^2}\,\sqrt{4 + \frac{9}{x^2}} = |x|\sqrt{4 + \frac{9}{x^2}}.
  2. Because x→−∞x \to -\infty, xx is negative and ∣x∣=−x|x| = -x. The denominator is −x4+9x2-x\sqrt{4 + \frac{9}{x^2}}.
  3. Divide the numerator and denominator by xx: 3−1x−4+9x2\frac{3 - \frac{1}{x}}{-\sqrt{4 + \frac{9}{x^2}}}.
  4. Let x→−∞x \to -\infty. The terms 1x\frac{1}{x} and 9x2\frac{9}{x^2} go to 00, leaving 3−4=−32\frac{3}{-\sqrt{4}} = -\frac{3}{2}.

−32-\frac{3}{2}. As x→∞x \to \infty the same function approaches 32\frac{3}{2}, so the graph has two horizontal asymptotes, y=32y = \frac{3}{2} and y=−32y = -\frac{3}{2}.

Worked example

An exponential quotient with two asymptotes

Find all horizontal asymptotes of f(x)=5exex+2f(x) = \frac{5e^x}{e^x + 2}.

  1. As x→∞x \to \infty, both the numerator and the denominator grow without bound. Divide top and bottom by exe^x: f(x)=51+2e−xf(x) = \frac{5}{1 + 2e^{-x}}.
  2. Since e−x→0e^{-x} \to 0 as x→∞x \to \infty, lim⁡x→∞f(x)=51+0=5\lim_{x \to \infty} f(x) = \frac{5}{1 + 0} = 5.
  3. As x→−∞x \to -\infty, use the original form. Here ex→0e^x \to 0, so the numerator goes to 00 and the denominator goes to 22: lim⁡x→−∞f(x)=02=0\lim_{x \to -\infty} f(x) = \frac{0}{2} = 0.

Two horizontal asymptotes: y=5y = 5 on the right and y=0y = 0 on the left.

Frequently asked questions

Can a graph cross its horizontal asymptote?

Yes. A horizontal asymptote describes the behavior of the graph as x→∞x \to \infty or x→−∞x \to -\infty and says nothing about the middle of the graph. For example, f(x)=xx2+1f(x) = \frac{x}{x^2 + 1} has the horizontal asymptote y=0y = 0 and passes through the origin.

How many horizontal asymptotes can a function have?

At most two: one for x→∞x \to \infty and one for x→−∞x \to -\infty. A rational function has at most one, because its two limits at infinity agree when they are finite.

What happens when the numerator has the higher degree?

The quotient grows without bound, so the limit at infinity is infinite and there is no horizontal asymptote. If the numerator degree is exactly one more than the denominator degree, the graph approaches a slanted line instead.