Start the course

Limits

Limits at infinity and horizontal asymptotes, explained

8 min readUpdated

Quick answer

A limit at infinity describes the number a function's outputs approach as x grows without bound, written limx→∞f(x)= L. If that limit (or the one as x→−∞) is a number L, the line y=L is a horizontal asymptote. For a fraction of polynomials, divide every term by the highest power of x in the bottom, then let x grow.

Key points
  • cxn→0 as x→±∞ for any number c and any positive power n: this one fact does most of the work.
  • For a fraction of polynomials, compare degrees: top smaller gives 0, equal gives the ratio of leading numbers, top bigger gives no horizontal asymptote.
  • With square roots, x2=|x|, so the answer as x→−∞ can differ from the answer as x→∞.
  • ∞−∞ isn't 0: rewrite with the conjugate first.

What does a limit at infinity mean?

Many questions are about the long run: what happens to a drug's concentration after many hours, or to the average cost per item when a factory makes millions? In maths, that's the question of what the outputs f(x) do as x gets larger and larger without stopping. If the outputs settle down near one number L, we write

limx→∞f(x)=L

and read it "the limit of f(x) as x approaches infinity is L". Here ∞ is not a number you can plug in; x→∞ is shorthand for "x increases without bound". In the same way, x→−∞ means x decreases without bound (heads far to the left).

Definition: horizontal asymptote

The line y=L is a horizontal asymptote of the graph of f if limx→∞f(x)= L or limx→−∞f(x)= L: far to the right (or left), the graph gets closer and closer to that horizontal line.

-6-4-22460.511.522.5y = 2: horizontal asymptote
y= 2x2x2+1 approaches the dashed line y=2 far to the left and far to the right.

What is the limit of 1/x as x approaches infinity?

The limit is 0. As x grows, 1x becomes 110, 11000, 11,000,000, and so on: positive, but as close to 0 as we like. The same happens for any number divided by any positive power of x, from either direction:

The basic limit at infinity
For any number c and any positive power n: limx→∞cxn= 0 and limx→−∞cxn= 0.
Why it works
  1. As x grows without bound, so does xn (for negative x it may be negative, but its size still grows).
  2. A fixed number c divided by something whose size grows without bound gets as close to 0 as we like.

Every other technique in this article works by rewriting an expression so that it is built from pieces like cxn.

How do you find the limit at infinity of a fraction of polynomials?

Divide every term on the top and on the bottom by the highest power of x that appears in the bottom. That doesn't change the fraction (it's the same as dividing top and bottom by the same thing), but it turns most terms into cxn pieces that head to 0.

Worked example: Equal degrees

Find limx→∞3x2−x6x2+5.

  1. The highest power in the bottom is x2. Divide every term by x2: 3x2x2−xx26x2x2+5x2= 3−1x6+5x2.
  2. As x→∞, 1x→0 and 5x2→0.
  3. So the limit is 3−06+0= 36= 12.

Answer: 12, so y=12 is a horizontal asymptote.

Worked example: Smaller degree on top

Find limx→∞4x+1x2−3.

  1. Divide every term by x2: 4x+1x21−3x2.
  2. Every piece on top heads to 0, and the bottom heads to 1.
  3. The limit is 0+01−0=0.

Answer: 0, so y=0 is a horizontal asymptote.

Working through a few of these shows a pattern that you can use as a shortcut once you understand where it comes from. The degree of a polynomial is its highest power of x, and the leading coefficient is the number multiplying that power.

DegreesLimit as x→±∞Example
top smaller than bottom04x+1x2−3→0
top equal to bottomratio of leading coefficients3x2−x6x2+5→36= 12
top bigger than bottomgrows without bound (no horizontal asymptote)x3x+1→∞ as x→∞
Common mistake

Dividing by the highest power on the top when it's bigger than the bottom's, then concluding the answer is 0. Use the bottom's highest power, or simply compare degrees with the table.

How do you handle square roots in limits at infinity?

Square roots need one extra piece of care: x2 is not always x. It equals |x|, the size of x without its sign. When x→∞, x is positive and |x|=x; but when x→−∞, x is negative and |x|=−x. That's why a function with a square root can have two different horizontal asymptotes.

Worked example: Different answers on each side

Find limx→∞4x2+1x−3 and limx→−∞4x2+1x−3.

  1. Take x2 out of the root: 4x2+1= x2(4+1x2)= |x|4+1x2.
  2. As x→∞, |x|=x. Divide top and bottom by x: 4+1x21−3x→41= 2.
  3. As x→−∞, |x|=−x, so the top is −x4+1x2. Divide top and bottom by x: −4+1x21−3x→− 2.

Answer: 2 as x→∞ and −2 as x→−∞: two horizontal asymptotes, y=2 and y=−2.

What do you do with infinity minus infinity?

Expressions like x2+6x−x have two pieces that both grow without bound, giving the form ∞−∞. That form doesn't decide the answer: the difference depends on how fast each piece grows. Multiply and divide by the conjugate (the same two pieces added), which turns the difference into a fraction.

Worked example: Using the conjugate

Find limx→∞(x2+6x−x).

  1. Multiply by x2+6x+xx2+6x+x, which equals 1.
  2. The top becomes (x2+6x)−x2=6x, using (A−B)(A+B)=A2−B2. So the expression is 6xx2+6x+x.
  3. For x>0, x2+6x= x1+6x. Divide top and bottom by x: 61+6x+1.
  4. As x→∞: 61+1= 62= 3.

Answer: 3

Can a graph cross its horizontal asymptote?

Yes. A horizontal asymptote only describes the far left and far right of the graph, so in the middle the graph can cross it, even infinitely often. For example, sin⁡xx crosses the x-axis every time sin⁡x=0, yet it still approaches 0 as x→±∞, because the top stays between −1 and 1 while the bottom grows.

-12-8-448120.51crosses y = 0 often
y=sin⁡xx crosses its horizontal asymptote y=0 again and again, with smaller and smaller waves.

By contrast, a graph can never cross a vertical asymptote, because the function isn't defined there. Vertical asymptotes come from infinite limits, where the outputs grow without bound as x approaches a number.

What about exponential functions?

Exponentials settle or explode depending on the sign of the exponent: e−x→0 as x→∞, so y=0 is a horizontal asymptote of e−x, while ex grows without bound. Exponentials also grow faster than any power of x, so for example x5ex→0 as x→∞; L'Hôpital's rule is the tool that shows this.

Learn it step by step

The full lessons in the course explain this from the ground up, with graphs, worked examples, and practice problems that each have a complete worked solution.

Open the lesson

Frequently asked questions

How do you find a horizontal asymptote?

Find limx→∞f(x) and limx→−∞f(x). Each one that is a number L gives a horizontal asymptote y=L. For fractions of polynomials, the degree comparison gives the answer quickly.

Can a function have two horizontal asymptotes?

Yes, one on each side. Functions with square roots, like 4x2+1x−3, and some exponential functions approach different numbers far to the left and far to the right.

What if the degree of the top is bigger than the bottom?

Then the outputs grow without bound and there is no horizontal asymptote. If the top's degree is exactly one more, the graph approaches a slanted line instead.

Is infinity minus infinity equal to zero?

No. It's an undecided form: the answer depends on how fast each piece grows. Rewrite it, usually with the conjugate, before taking the limit.

What is the difference between a limit at infinity and an infinite limit?

A limit at infinity asks what happens as x→±∞ and gives horizontal asymptotes. An infinite limit is when the outputs grow without bound as x approaches a number, and gives vertical asymptotes.