When numerator and denominator of a fraction both tend to zero — or both blow up — you cannot read the limit off by substitution. These are indeterminate forms, and they appear constantly in analysis. L’Hôpital’s rule gives you a clean escape: replace the fraction by the ratio of the derivatives and try again.
A limit limx→ag(x)f(x) is indeterminate when naive substitution produces a meaningless expression such as 00 or ∞∞. The value of the limit depends on how fast each part approaches its limit, and L’Hôpital’s rule extracts exactly that information via derivatives.
Statement
Theorem (L’Hôpital’s Rule). Let f and g be differentiable on a deleted neighbourhood of a (where a∈R or a=±∞). Suppose
- g′(x)=0 near a, and
- the limit is of the form 00 — meaning limx→af(x)=limx→ag(x)=0 — or of the form ∞∞ — meaning limx→a∣g(x)∣=∞.
If
x→alimg′(x)f′(x)=L(L∈R∪{+∞,−∞}),(1)
then
x→alimg(x)f(x)=L.(2)
The rule applies equally to one-sided limits (x→a+ or x→a−).
Proof for the 00 case
Assume limx→af(x)=limx→ag(x)=0. Extend f and g to a by setting f(a)=g(a)=0; continuity at a is preserved.
For x=a in a deleted neighbourhood of a, apply Cauchy’s Mean Value Theorem to f and g on the closed interval with endpoints a and x:
g(x)f(x)=g(x)−g(a)f(x)−f(a)=g′(cx)f′(cx),
where cx lies strictly between a and x. As x→a, the intermediate point cx→a as well (by the squeeze ∣cx−a∣<∣x−a∣). Therefore:
x→alimg(x)f(x)=x→alimg′(cx)f′(cx)=c→alimg′(c)f′(c)=L.□
The ∞∞ case uses a more delicate application of Cauchy’s theorem — fixing a reference point and controlling the tail — but leads to the same conclusion under the same hypotheses.
Every indeterminate form other than 00 and ∞∞ can be rewritten algebraically until one of those two appears.
0⋅∞
If limf(x)=0 and limg(x)=∞, write
f(x)g(x)=1/g(x)f(x)(form 00)or1/f(x)g(x)(form ∞∞).
Choose whichever rewriting leads to simpler derivatives.
∞−∞
If limf(x)=limg(x)=∞, combine into a single fraction using a common denominator appropriate to the expression. The result is a 00 or ∞∞ form.
00, ∞0, 1∞
If the limit limh(x)k(x) has one of these forms, take the natural logarithm:
ln(h(x)k(x))=k(x)lnh(x).
This is a 0⋅∞ form, which then reduces further. Once you find limk(x)lnh(x)=M, the original limit is eM.
Examples
Example 1 (00). x→0limxsinx.
Both numerator and denominator vanish at 0. Apply L’Hôpital:
x→0limxsinx=x→0lim1cosx=1.
Example 2 (∞∞, iterated). x→∞limexxn for fixed n∈N.
Apply L’Hôpital n times. Each application reduces the power of the numerator by one:
x→∞limexxn=x→∞limexnxn−1=⋯=x→∞limexn!=0.
Every polynomial is eventually dominated by the exponential.
Example 3 (1∞). x→∞lim(1+x1)x.
Let L denote the limit. Taking the logarithm converts the form to 0⋅∞:
lnL=x→∞limxln(1+x1)=x→∞lim1/xln(1+1/x)(form 00).
Apply L’Hôpital (differentiating numerator and denominator with respect to x):
x→∞lim−1/x21+1/x−1/x2=x→∞lim1+1/x1=1,
so lnL=1 and L=e.
When the rule does not apply
L’Hôpital’s rule requires limf′(x)/g′(x) to exist. If f′/g′ oscillates without converging, the rule gives no information about f/g — which may still have a perfectly good limit. A standard example is
x→∞limxx+sinx:
f′/g′=1+cosx oscillates between 0 and 2, yet f/g=1+(sinx)/x→1.
Summary
- L’Hôpital’s rule: if f/g is a 00 or ∞∞ indeterminate form at a and limf′/g′ exists, then limf/g=limf′/g′.
- Proof (00 case): Cauchy’s MVT gives f(x)/g(x)=f′(cx)/g′(cx) for cx squeezed between a and x; as x→a so does cx.
- Other indeterminate forms reduce algebraically: 0⋅∞ via a single fraction; ∞−∞ by a common denominator; 00, ∞0, 1∞ by taking a logarithm.
- The rule is silent when limf′/g′ does not exist; absence of that limit does not imply limf/g fails.