Limit Laws and Indeterminate Forms

Published on 2026-11-04·v1.0

Learning Objectives

  • State the limit laws with their hypotheses, and say which direction each implication runs.
  • Evaluate limits of polynomials and rational functions by direct substitution, and recognize when substitution is not allowed.
  • Explain why 0/00/0 is called indeterminate, and resolve it by factoring, rationalizing, or combining fractions.
  • State and apply the Squeeze Theorem, including what goes wrong when its hypotheses are weakened.
  • Explain why an algebraically equivalent rewrite can give a correct answer in floating point when the original expression gives a wrong one.

Context & Motivation

The previous lesson, limits-intuition-and-the-formal-definition, defined a limit and proved two of them with ε\varepsilon and δ\delta. That does not scale. A real derivative computation involves dozens of limits, and no one writes an ε\varepsilon-δ\delta proof for each. The limit laws are the fix: they say that limits pass through sums, products, and quotients, so that a limit of a complicated expression is assembled from limits of simple parts, the way a compiler evaluates an expression tree from its leaves.

The laws have one gap, and it is the interesting part. The quotient law needs the limit of the denominator to be nonzero. The most important limits in calculus are exactly the ones where numerator and denominator both go to zero. Those are the indeterminate forms, and they need a different method: rewrite the expression until the troublesome factor disappears. That rewriting is also a practical numerical technique. Evaluating 0/00/0-like expressions directly in floating point loses digits, and the algebraically simplified form recovers them, as a table in Example 2 shows.

Core Theory

The limit laws

Theorem (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, where AA and BB are real numbers (both limits exist and are finite). Then:

  • lim⁡(f+g)=A+B\lim (f+g)=A+B and lim⁡(f−g)=A−B\lim (f-g)=A-B;
  • lim⁡(cf)=cA\lim (cf)=cA for any constant cc;
  • lim⁡(fg)=AB\lim (fg)=AB;
  • lim⁡(f/g)=A/B\lim (f/g)=A/B, provided B≠0B\ne0;
  • lim⁡f(x)n=An\lim f(x)^n=A^n for a positive integer nn;
  • lim⁡f(x)n=An\lim \sqrt[n]{f(x)}=\sqrt[n]{A} for a positive integer nn, provided, when nn is even, that A>0A>0, or A=0A=0 with f(x)≥0f(x)\ge0 near aa.

The laws come from the definition. For the sum, given ε\varepsilon, take δ1\delta_1 that puts ff within ε/2\varepsilon/2 of AA and δ2\delta_2 that puts gg within ε/2\varepsilon/2 of BB. With δ=min⁡(δ1,δ2)\delta=\min(\delta_1,\delta_2), the triangle inequality gives ∣f+g−(A+B)∣≤∣f−A∣+∣g−B∣<ε\lvert f+g-(A+B)\rvert\le\lvert f-A\rvert+\lvert g-B\rvert<\varepsilon.

Each hypothesis does work, and the implications go one way only:

  • The parts must have limits. The functions 1/x1/x and −1/x-1/x have no limit at 00, yet their sum is the constant 00, whose limit is 00. The product x⋅1xx\cdot\tfrac1x has limit 11 at 00, although the factors have limits 00 and "none". So when a part lacks a limit, the law is silent: the combination may or may not have one.
  • The quotient needs B≠0B\ne0. When B=0B=0 the law gives no answer. (See Indeterminate forms below.)
  • The even root needs A>0A>0, or A=0A=0 with f≥0f\ge0 near aa. For f(x)=x2f(x)=x^2 at 00 we have A=0A=0 and x2=∣x∣→0\sqrt{x^2}=\lvert x\rvert\to0, which is fine. For f(x)=xf(x)=x at 00 we also have A=0A=0, but f<0f<0 on the left, so x\sqrt{x} is undefined there and the two-sided limit does not exist. Only the right-hand limit exists.
  • Composition needs more than a limit. If lim⁡x→ag(x)=B\lim_{x\to a}g(x)=B, the tempting rule lim⁡f(g(x))=lim⁡u→Bf(u)\lim f(g(x))=\lim_{u\to B}f(u) fails in general. Let g(x)=0g(x)=0 for all xx, and f(u)=1f(u)=1 for u≠0u\ne0 with f(0)=0f(0)=0. Then f(g(x))=0f(g(x))=0 for every xx, so its limit is 00, while lim⁡u→0f(u)=1\lim_{u\to0}f(u)=1. The rule holds in two situations. One is that ff is continuous at BB (made precise in continuity-and-the-intermediate-value-theorem), which is true of every polynomial, rational function away from its poles, exponential, and so on. The other is that g(x)≠Bg(x)\ne B for x≠ax\ne a near aa, so the value of ff at BB is never used.

Direct substitution. Applying the laws repeatedly to x→ax\to a gives: for a polynomial pp, lim⁡x→ap(x)=p(a)\lim_{x\to a}p(x)=p(a); for a rational function p/qp/q with q(a)≠0q(a)\ne0, lim⁡x→ap(x)/q(x)=p(a)/q(a)\lim_{x\to a}p(x)/q(x)=p(a)/q(a). For example lim⁡x→3x2+1x+1=104=52\lim_{x\to3}\dfrac{x^2+1}{x+1}=\dfrac{10}{4}=\dfrac52.

Indeterminate forms

When substitution into a quotient gives 0/00/0, the laws do not decide the limit. The form is called indeterminate because the same shape can hide different answers. All four of these are of the form 0/00/0 at x=0x=0:

text
f(x) limit as x->0+ limit as x->0- x/x 1 1 2x/x 2 2 x^2/x 0 0 x/x^2 +infinity -infinity

Knowing that numerator and denominator both go to zero says nothing about the ratio; what matters is how fast each goes. Distinguish this from a nonzero numerator over a zero denominator, which is not indeterminate: x+2x−1\dfrac{x+2}{x-1} at x=1x=1 has numerator tending to 33 and denominator to 00, so the values grow without bound, to +∞+\infty from the right and −∞-\infty from the left, and the two-sided limit does not exist.

The strategy for 0/00/0 is to rewrite the expression, for x≠ax\ne a, into one the laws can handle. Because a limit never uses the value at x=ax=a, the rewrite only needs to be valid for x≠ax\ne a.

  • Factor and cancel a common factor that vanishes at aa.
  • Rationalize an expression with a square root by multiplying numerator and denominator by the conjugate.
  • Combine fractions over a common denominator.

For ∞/∞\infty/\infty as x→∞x\to\infty, divide numerator and denominator by the highest power of xx. For instance, 3x2−xx2+5=3−1/x1+5/x2\dfrac{3x^2-x}{x^2+5}=\dfrac{3-1/x}{1+5/x^2}, and since 1/x→01/x\to0 and 1/x2→01/x^2\to0 (for any ε>0\varepsilon>0, 1/x<ε1/x<\varepsilon once x>1/εx>1/\varepsilon, and 1/x2≤1/x1/x^2\le1/x for x≥1x\ge1; limits-at-infinity-and-asymptotic-growth states the definition at infinity), the limit is 3−01+0=3\dfrac{3-0}{1+0}=3. The other indeterminate forms (0⋅∞0\cdot\infty, ∞−∞\infty-\infty, 1∞1^\infty, and so on) are rewritten into these two; lhopitals-rule treats them systematically.

The Squeeze Theorem

Theorem (Squeeze). Suppose g(x)≤f(x)≤h(x)g(x)\le f(x)\le h(x) for all xx in an open interval containing aa, except possibly at aa itself, and lim⁡x→ag(x)=lim⁡x→ah(x)=L\lim_{x\to a}g(x)=\lim_{x\to a}h(x)=L. Then lim⁡x→af(x)=L\lim_{x\to a}f(x)=L.

Both hypotheses are needed. If the inequality holds only on one side of aa, you get a one-sided conclusion at most. If the bounds have different limits, nothing follows: −1≤sin⁡(1/x)≤1-1\le\sin(1/x)\le1 holds everywhere, but −1-1 and 11 trap no single value, and as the previous lesson showed, lim⁡x→0sin⁡(1/x)\lim_{x\to0}\sin(1/x) does not exist.

The most useful application is lim⁡x→0sin⁡xx=1\lim_{x\to0}\dfrac{\sin x}{x}=1. Comparing areas in the unit circle gives sin⁡x<x<tan⁡x\sin x<x<\tan x for 0<x<π/20<x<\pi/2. Dividing by sin⁡x\sin x and inverting gives cos⁡x<sin⁡xx<1\cos x<\dfrac{\sin x}{x}<1. Since cos⁡x→1\cos x\to1 and the function sin⁡x/x\sin x/x is even, the same bounds hold for −π/2<x<0-\pi/2<x<0, and the squeeze gives the limit 11. Numerically, at x=0.1x=0.1 the three quantities are 0.995000.99500, 0.998330.99833, and 11.

Worked Examples

Example 1: factor and cancel

Find lim⁡x→2x2−5x+6x−2\lim_{x\to2}\dfrac{x^2-5x+6}{x-2}. Substitution gives 0/00/0, and the quotient law does not apply. Factor the numerator: x2−5x+6=(x−2)(x−3)x^2-5x+6=(x-2)(x-3). For x≠2x\ne2, the quotient equals x−3x-3, so the limit is 2−3=−12-3=-1.

Check from both sides: at x=1.99x=1.99 the quotient is −1.01-1.01, at 2.012.01 it is −0.99-0.99. Note what was and was not claimed: the original function is still undefined at 22. The limit is −1-1 because the function agrees with x−3x-3 everywhere else.

Example 2: rationalize, and why it matters in floating point

Find lim⁡x→0x+4−2x\lim_{x\to0}\dfrac{\sqrt{x+4}-2}{x}. Multiply by the conjugate x+4+2\sqrt{x+4}+2:

x+4−2x⋅x+4+2x+4+2=(x+4)−4x(x+4+2)=1x+4+2(x≠0).\frac{\sqrt{x+4}-2}{x}\cdot\frac{\sqrt{x+4}+2}{\sqrt{x+4}+2}=\frac{(x+4)-4}{x(\sqrt{x+4}+2)}=\frac{1}{\sqrt{x+4}+2}\quad(x\ne0).

By the root, sum, and quotient laws the limit is 14+2=14\dfrac{1}{\sqrt4+2}=\dfrac14.

Now evaluate both forms in double precision:

text
x (sqrt(x+4)-2)/x 1/(sqrt(x+4)+2) 1e-01 0.2484567313 0.2484567313 1e-04 0.2499984375 0.2499984375 1e-08 0.2499999763 0.2499999998 1e-12 0.2500222251 0.2500000000 1e-14 0.2220446049 0.2500000000 1e-15 0.0000000000 0.2500000000

The first column subtracts two nearly equal numbers, x+4\sqrt{x+4} and 22, and the subtraction exposes rounding errors made earlier, in computing x+4x+4 and its square root. The subtraction itself is exact, but the error it leaves is divided by a tiny xx. By x=10−15x=10^{-15} it returns 00. The rationalized form has no subtraction of close values and stays at 0.250.25. The algebra that solves the limit by hand is the same algebra that makes the code accurate.

Example 3: the Squeeze Theorem

Show lim⁡x→0x2sin⁡(1/x)=0\lim_{x\to0}x^2\sin(1/x)=0. The laws cannot be used directly, because sin⁡(1/x)\sin(1/x) has no limit. But −1≤sin⁡(1/x)≤1-1\le\sin(1/x)\le1 for x≠0x\ne0, and multiplying by x2≥0x^2\ge0 preserves the inequalities:

−x2≤x2sin⁡(1/x)≤x2.-x^2\le x^2\sin(1/x)\le x^2.

Both bounds tend to 00 as x→0x\to0, so the limit is 00. Numerically, at x=0.1x=0.1 the middle value is −0.00544-0.00544 with bounds ±0.01\pm0.01; at x=0.001x=0.001 it is 8.27×10−78.27\times10^{-7} with bounds ±10−6\pm10^{-6}. The multiplication by x2≥0x^2\ge0 was needed: multiplying an inequality by a negative number reverses it, which is a common slip when the bounding factor can change sign.

Example 4: a limit through the laws and a known limit

Find lim⁡x→01−cos⁡xx2\lim_{x\to0}\dfrac{1-\cos x}{x^2}, the limit that fooled the floating-point table in the previous lesson. Use 1−cos⁡x=2sin⁡2(x/2)1-\cos x=2\sin^2(x/2):

1−cos⁡xx2=2sin⁡2(x/2)x2=12(sin⁡(x/2)x/2)2.\frac{1-\cos x}{x^2}=\frac{2\sin^2(x/2)}{x^2}=\frac12\left(\frac{\sin(x/2)}{x/2}\right)^2.

As x→0x\to0, x/2→0x/2\to0 too, and x/2≠0x/2\ne0 for x≠0x\ne0, so the second situation of the composition rule applies and sin⁡(x/2)x/2→1\dfrac{\sin(x/2)}{x/2}\to1 by the Squeeze Theorem result above. The power and constant-multiple laws give 12⋅12=12\tfrac12\cdot1^2=\tfrac12. The rewrite is the same one used in the stable column of the earlier table.

Common Misconceptions & Pitfalls

  • "0/0=10/0=1" or "0/0=00/0=0." Neither: the form is indeterminate, and the table above shows four different outcomes from it. Each limit needs its own rewrite.
  • "If lim⁡(f+g)\lim(f+g) exists then lim⁡f\lim f and lim⁡g\lim g exist." The converse is the law; this direction is false (1/x1/x and −1/x-1/x).
  • "I substituted, got k/0k/0 with k≠0k\ne0, so the limit is ∞\infty." Only if the sign is the same from both sides. In (x+2)/(x−1)(x+2)/(x-1) it is not, and the two-sided limit does not exist.
  • "Cancelling changed the function, so the limit is wrong." The limit never looks at x=ax=a. Cancelling a factor valid for x≠ax\ne a is legitimate.
  • "Absolute values behave like ordinary algebra." ∣x−3∣/(x−3)\lvert x-3\rvert/(x-3) tends to 11 from the right and −1-1 from the left. Split into the two cases before simplifying.
  • "A calculator that shows 00 settles it." The table in Example 2 returned 00 at x=10−15x=10^{-15} for a limit of 1/41/4.
  • "Squeeze with any bounds." The bounds must hold near aa and share the same limit. Bounds like ±1\pm1 for sin⁡(1/x)\sin(1/x) squeeze nothing.

Summary

Limit laws let limits of sums, products, quotients, powers, and roots be computed from limits of parts, as long as the parts have finite limits (the quotient also needs a nonzero denominator limit, an even root a positive one, or zero with a nonnegative argument). They run in one direction only: a combination can have a limit when its parts do not. Substitution works for polynomials and for rational functions away from zero denominators. When it produces 0/00/0 the answer is not determined by the form, and the remedy is to rewrite for x≠ax\ne a by factoring, rationalizing, or combining fractions; for ∞/∞\infty/\infty divide by the highest power. The Squeeze Theorem handles oscillating factors by trapping them between two functions with the same limit, and gives sin⁡x/x→1\sin x/x\to1, which in turn gives (1−cos⁡x)/x2→12(1-\cos x)/x^2\to\tfrac12. The same rewrites that solve these limits by hand are the ones that keep floating-point evaluation accurate. The next lesson, limits-at-infinity-and-asymptotic-growth, applies these tools as xx grows without bound.

Documentation Links