TExcelTAD
Home › Calculus Essentials › Limit Laws and Limits at Infinity

Limit Laws and Limits at Infinity

Limit laws let you break a complicated limit into simple pieces, and limits at infinity describe where a function settles as its input grows without bound. Together they let you compute most limits by hand and explain the long-run behaviour of formulas, from algorithm costs to learning-rate schedules.

The limit laws

Suppose lim⁡x→af(x)=A\lim_{x \to a} f(x) = A and lim⁡x→ag(x)=B\lim_{x \to a} g(x) = B, with AA and BB finite. Then:

Law Statement
Sum / difference lim⁡(f±g)=A±B\lim (f \pm g) = A \pm B
Constant multiple lim⁡c⋅f=c⋅A\lim c \cdot f = c \cdot A
Product lim⁡f⋅g=A⋅B\lim f \cdot g = A \cdot B
Quotient lim⁡f/g=A/B\lim f/g = A/B, provided B≠0B \ne 0
Power lim⁡fn=An\lim f^n = A^n
Root lim⁡fn=An\lim \sqrt[n]{f} = \sqrt[n]{A} (for even nn, need A>0A > 0)

Two building blocks finish the job: lim⁡x→ac=c\lim_{x \to a} c = c and lim⁡x→ax=a\lim_{x \to a} x = a. From these, every polynomial pp satisfies lim⁡x→ap(x)=p(a)\lim_{x \to a} p(x) = p(a): you can just substitute. The same holds for a rational function wherever the denominator is not zero.

lim⁡x→23x2−2x+5x+1=3⋅4−4+52+1(sum, product, quotient laws)=133\begin{aligned} \lim_{x \to 2} \frac{3x^2 - 2x + 5}{x + 1} &= \frac{3 \cdot 4 - 4 + 5}{2 + 1} && \text{(sum, product, quotient laws)} \\ &= \frac{13}{3} \end{aligned}

When substitution gives 0/00/0, the quotient law does not apply. That is a signal to simplify first (factor, cancel, use a conjugate), as in Limits, or later to use L'Hôpital's rule.

The squeeze theorem

If g(x)≤f(x)≤h(x)g(x) \le f(x) \le h(x) near aa and both gg and hh approach the same limit LL, then ff is squeezed to LL too. Classic use: x2sin⁡(1/x)x^2 \sin(1/x) as x→0x \to 0. Since −1≤sin⁡(1/x)≤1-1 \le \sin(1/x) \le 1,

−x2≤x2sin⁡(1/x)≤x2and both bounds→0, so the limit is 0.-x^2 \le x^2 \sin(1/x) \le x^2 \qquad \text{and both bounds} \to 0, \text{ so the limit is 0.}

Limits at infinity

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. The line y=Ly = L is then a horizontal asymptote. The key fact is

lim⁡x→∞1xp=0,for any p>0\lim_{x \to \infty} \frac{1}{x^p} = 0, \qquad \text{for any } p > 0

For a rational function, divide top and bottom by the highest power of xx in the denominator:

4x2+3x2x2−7=4+3/x2−7/x2→42=2\frac{4x^2 + 3x}{2x^2 - 7} = \frac{4 + 3/x}{2 - 7/x^2} \to \frac{4}{2} = 2

Rule of thumb, comparing the degree of the numerator mm and the denominator nn:

Degrees Limit as x→∞x \to \infty
m<nm < n 00
m=nm = n ratio of leading coefficients
m>nm > n ±∞\pm\infty (no horizontal asymptote)

Let's check one numerically and with SymPy:

python · try it yourself
import sympy as sp

def r(x):
    return (4 * x**2 + 3 * x) / (2 * x**2 - 7)

for x in [10, 100, 1_000, 10_000, 100_000]:
    print(f"x = {x:>7}   r(x) = {r(x):.8f}")

x = sp.symbols('x')
print("SymPy:", sp.limit((4 * x**2 + 3 * x) / (2 * x**2 - 7), x, sp.oo))
x =      10   r(x) = 2.22797927
x =     100   r(x) = 2.01570550
x =    1000   r(x) = 2.00150701
x =   10000   r(x) = 2.00015007
x =  100000   r(x) = 2.00001500
SymPy: 2

Growth rates

Not all functions that tend to infinity do so at the same speed. As x→∞x \to \infty:

ln⁡x≪x≪x≪xln⁡x≪x2≪x3≪2x≪x!\ln x \ll \sqrt{x} \ll x \ll x \ln x \ll x^2 \ll x^3 \ll 2^x \ll x!

f≪gf \ll g here means f(x)/g(x)→0f(x)/g(x) \to 0. SymPy can confirm ratios like these:

python · try it yourself
import sympy as sp

x = sp.symbols('x', positive=True)
print("ln(x)/sqrt(x)  ->", sp.limit(sp.log(x) / sp.sqrt(x), x, sp.oo))
print("x**10/2**x     ->", sp.limit(x**10 / 2**x, x, sp.oo))
print("x*ln(x)/x**2   ->", sp.limit(x * sp.log(x) / x**2, x, sp.oo))
print("(1+1/x)**x     ->", sp.limit((1 + 1 / x)**x, x, sp.oo))
print("exp(-x)        ->", sp.limit(sp.exp(-x), x, sp.oo))
ln(x)/sqrt(x)  -> 0
x**10/2**x     -> 0
x*ln(x)/x**2   -> 0
(1+1/x)**x     -> E
exp(-x)        -> 0

Note: x**10 / 2**x does go to 0, but slowly at first: at x=10x = 10 the ratio is about 9.8 million. "Eventually" in a limit can mean "much later than you think".

In software

  • Big-O is a statement about limits at infinity. f=O(g)f = O(g) means f(n)/g(n)f(n)/g(n) stays bounded as n→∞n \to \infty. The growth chain above is exactly why O(nlog⁡n)O(n \log n) sorting beats O(n2)O(n^2) for large inputs, and why exponential-time algorithms are hopeless (see DSA).
  • Asymptotes in UI and ML: an exponential approach 1−e−t/τ1 - e^{-t/\tau} heads towards 1 and is used for smooth "ease-out" animation; learning-rate schedules like lr0/(1+k⋅t)\text{lr}_0 / (1 + k \cdot t) tend to 0 as training steps t→∞t \to \infty.
  • Numeric overflow: knowing exp⁡(−x)→0\exp(-x) \to 0 tells you that for large xx the computed value underflows to 0.0, which can later cause division by zero. Rewriting formulas to work with limits in mind (for example log1p, expm1) keeps code stable.

Exercises

Exercise 1: Just substitute

Use the limit laws to find lim⁡x→−1x3−2xx2+1\lim_{x \to -1} \frac{x^3 - 2x}{x^2 + 1}.

Answer

12\frac{1}{2}

Solution

The denominator is not zero at −1-1, so substitution is allowed:

numerator: (−1)3−2(−1)=−1+2=1denominator: (−1)2+1=2limit=12\begin{aligned} \text{numerator: } & (-1)^3 - 2(-1) = -1 + 2 = 1 \\ \text{denominator: } & (-1)^2 + 1 = 2 \\ \text{limit} & = \tfrac{1}{2} \end{aligned}

Exercise 2: Horizontal asymptote

Find lim⁡x→∞6x3−x3−2x3\lim_{x \to \infty} \frac{6x^3 - x}{3 - 2x^3}.

Answer

−3

Solution
divide by x3:6−1/x23/x3−2→6−2=−3\text{divide by } x^3{:}\quad \frac{6 - 1/x^2}{3/x^3 - 2} \to \frac{6}{-2} = -3

Exercise 3: Squeeze

Find lim⁡x→∞cos⁡(x)x\lim_{x \to \infty} \frac{\cos(x)}{x}.

Answer

0

Solution
−1≤cos⁡x≤1  ⟹  −1/x≤cos⁡(x)/x≤1/xfor x>0both −1/x and 1/x→0, so the squeeze theorem gives 0\begin{aligned} &-1 \le \cos x \le 1 \implies -1/x \le \cos(x)/x \le 1/x \quad \text{for } x > 0 \\ &\text{both } -1/x \text{ and } 1/x \to 0, \text{ so the squeeze theorem gives 0} \end{aligned}

Exercise 4: Who grows faster?

Find where n2n^2 first becomes smaller than 1.1n1.1^n for whole numbers n≥2n \ge 2 (they start with n2>1.1nn^2 > 1.1^n). Then confirm with SymPy that n2/1.1n→0n^2/1.1^n \to 0.

Answer

At n=96n = 96; the limit is 0.

Solution
python · try it yourself
import sympy as sp

n = 2
while n**2 >= 1.1**n:
    n += 1
print("first n with 1.1**n > n**2:", n)

k = sp.symbols('k', positive=True)
print(sp.limit(k**2 / sp.Rational(11, 10)**k, k, sp.oo))
first n with 1.1**n > n**2: 96
0

Any exponential bnb^n with b>1b > 1 eventually beats any power npn^p, but for bb close to 1 "eventually" takes a while.

Test yourself

What is lim⁡x→∞5x3+2x4−x\lim_{x \to \infty} \frac{5x^3 + 2}{x^4 - x}?

  1. 5
  2. ∞\infty
  3. −2
  4. 0

When can you not use the quotient law lim⁡f/g=(lim⁡f)/(lim⁡g)\lim f/g = (\lim f)/(\lim g)?

  1. When lim⁡g=0\lim g = 0
  2. When lim⁡f=0\lim f = 0
  3. When ff is a polynomial
  4. Never, it always works

Which grows fastest as x→∞x \to \infty?

  1. x100x^{100}
  2. xln⁡xx \ln x
  3. 1.01x1.01^x
  4. x\sqrt{x}