L'HΓ΄pital's Rule

This scene tackles limits that look like 0 divided by 0. Differentiate top and bottom separately and the limit appears.

When both sides shrink to zero, amounts stop deciding the ratio. What matters is which one shrinks faster. Comparing the two speeds gives the answer.

For example, when two puddles of πŸ’§ water both dry up, their remaining ratio is not set by the starting amounts. It is set by the ratio of their drying speeds.

lim⁑xβ†’af(x)g(x)=lim⁑xβ†’afβ€²(x)gβ€²(x)\lim_{x \to a}\frac{f(x)}{g(x)} = \lim_{x \to a}\frac{f'(x)}{g'(x)}
lim⁑xβ†’0sin⁑xx=lim⁑xβ†’0cos⁑x=1,lim⁑xβ†’βˆžln⁑xx=lim⁑xβ†’βˆž1x=0\lim_{x \to 0}\frac{\sin x}{x} = \lim_{x \to 0}\cos x = 1, \qquad \lim_{x \to \infty}\frac{\ln x}{x} = \lim_{x \to \infty}\frac{1}{x} = 0

Part of these learning paths

Examples & Exercises

Prove lim⁑xβ†’0sin⁑xx=1\lim_{x \to 0}\frac{\sin x}{x} = 1 by L'HΓ΄pital's rule. (State the 0/00/0 hypotheses.)

lim⁑xβ†’0sin⁑xx=lim⁑xβ†’0(sin⁑x)β€²(x)β€²=lim⁑xβ†’0cos⁑x=cos⁑0=1\lim_{x \to 0}\frac{\sin x}{x} = \lim_{x \to 0}\frac{(\sin x)'}{(x)'} = \lim_{x \to 0}\cos x = \cos 0 = 1
xβ‰ˆ0.0238x \approx 0.0238 (a 0/00/0 form): sin⁑xxβ‰ˆ0.9999\frac{\sin x}{x} \approx 0.9999, cos⁑x1β‰ˆ0.9997\frac{\cos x}{1} \approx 0.9997 β€” dragging right, both stick to 1.
Show proof
  1. Put f(x)=sin⁑xf(x) = \sin x and g(x)=xg(x) = x: then f(0)=g(0)=0f(0) = g(0) = 0 and gβ€²(x)=1β‰ 0g'(x) = 1 \neq 0 β€” a 0/00/0 form.

    Both functions are continuous on [0,x][0, x] and differentiable on (0,x)(0, x), so the hypotheses of Cauchy's mean value theorem are satisfied.

    For x>0x > 0, Cauchy's theorem on [0,x][0, x] gives sin⁑xβˆ’sin⁑0xβˆ’0=cos⁑ξx1\frac{\sin x - \sin 0}{x - 0} = \frac{\cos \xi_x}{1} for some ΞΎx∈(0,x)\xi_x \in (0, x).

  2. Since 0<ξx<x0 < \xi_x < x, squeezing gives ξx→0\xi_x \to 0 as x→0+x \to 0^+.

    Cosine is continuous (differentiable implies continuous), so cos⁑ξxβ†’cos⁑0=1\cos \xi_x \to \cos 0 = 1.

    That is L'HΓ΄pital's rule for the 0/00/0 case: the limit of the differentiated ratio equals the limit of the original ratio.

  3. For x<0x < 0, the same argument on [x,0][x, 0] yields ΞΎx∈(x,0)\xi_x \in (x, 0) and likewise cos⁑ξxβ†’1\cos \xi_x \to 1. Hence lim⁑xβ†’0sin⁑xx=1\lim_{x \to 0}\frac{\sin x}{x} = 1.

Prove lim⁑xβ†’βˆžln⁑xx=0\lim_{x \to \infty}\frac{\ln x}{x} = 0. (An ∞/∞\infty/\infty form: check the gβ†’βˆžg \to \infty and gβ€²β‰ 0g' \neq 0 hypotheses.)

f(x)g(x)=fβ€²(ΞΎx)gβ€²(ΞΎx)(1βˆ’g(A)g(x))+f(A)g(x)β†’xβ†’βˆžL\frac{f(x)}{g(x)} = \frac{f'(\xi_x)}{g'(\xi_x)}\left(1 - \frac{g(A)}{g(x)}\right) + \frac{f(A)}{g(x)} \xrightarrow[x\to\infty]{} L
(ln⁑x)β€²(x)β€²=1/x1=1xβ†’0β‡’lim⁑xβ†’βˆžln⁑xx=0\frac{(\ln x)'}{(x)'} = \frac{1/x}{1} = \frac{1}{x} \to 0 \quad\Rightarrow\quad \lim_{x\to\infty}\frac{\ln x}{x} = 0
xβ‰ˆ158.5x \approx 158.5 (an ∞/∞\infty/\infty form): ln⁑xxβ‰ˆ0.0320\frac{\ln x}{x} \approx 0.0320, 1xβ‰ˆ0.00631\frac{1}{x} \approx 0.00631 β€” dragging right, both stick to 0.
Show proof
  1. First the ∞/∞\infty/\infty lemma: suppose f,gf, g are continuous on [A0,∞)[A_0, \infty) and differentiable on (A0,∞)(A_0, \infty) with gβ€²β‰ 0g' \neq 0, g(x)β†’βˆžg(x) \to \infty, and fβ€²(x)gβ€²(x)β†’L\frac{f'(x)}{g'(x)} \to L (finite). Here A0A_0 is the fixed threshold from the derivative-limit hypothesis.

    For a working Aβ‰₯A0A \ge A_0 and x>Ax > A, Cauchy's theorem on [A,x][A, x] (continuity on [A,x][A, x], differentiability on (A,x)(A, x)) gives f(x)βˆ’f(A)g(x)βˆ’g(A)=fβ€²(ΞΎx)gβ€²(ΞΎx)\frac{f(x) - f(A)}{g(x) - g(A)} = \frac{f'(\xi_x)}{g'(\xi_x)} for some ΞΎx∈(A,x)\xi_x \in (A, x). Moreover gβ€²β‰ 0g' \neq 0 forces gg to be strictly monotone by Rolle's theorem: if g(x)=g(A)g(x) = g(A) then Rolle would give a zero of gβ€²g'.

    Hence g(x)β‰ g(A)g(x) \neq g(A) for x>Ax > A, justifying the division.

  2. The key identity, shifted by LL: f(x)g(x)βˆ’L=(fβ€²(ΞΎx)gβ€²(ΞΎx)βˆ’L)(1βˆ’g(A)g(x))+f(A)βˆ’Lg(A)g(x)\frac{f(x)}{g(x)} - L = \left(\frac{f'(\xi_x)}{g'(\xi_x)} - L\right)\left(1 - \frac{g(A)}{g(x)}\right) + \frac{f(A) - L g(A)}{g(x)}. Given Ξ΅>0\varepsilon > 0, first fix A0A_0 from the derivative-limit hypothesis so that ∣fβ€²(t)gβ€²(t)βˆ’L∣<Ξ΅4\left|\frac{f'(t)}{g'(t)} - L\right| < \frac{\varepsilon}{4} for t>A0t > A_0. Then choose the working Aβ‰₯A0A \ge A_0 (the role of AA is distinct from A0A_0: AA is the point frozen in the bounds below); then ΞΎx>Aβ‰₯A0\xi_x > A \ge A_0 makes the first factor below Ξ΅4\frac{\varepsilon}{4}.

    Since g(x)β†’βˆžg(x) \to \infty, for large xx we have ∣g(A)g(x)∣<1\left|\frac{g(A)}{g(x)}\right| < 1, hence ∣1βˆ’g(A)g(x)βˆ£β‰€1+∣g(A)g(x)∣<2\left|1 - \frac{g(A)}{g(x)}\right| \le 1 + \left|\frac{g(A)}{g(x)}\right| < 2. The first term is at most Ξ΅4β‹…2=Ξ΅2\frac{\varepsilon}{4} \cdot 2 = \frac{\varepsilon}{2}, and the second term ∣f(A)βˆ’Lg(A)∣∣g(x)∣\frac{|f(A) - L g(A)|}{|g(x)|} drops below Ξ΅2\frac{\varepsilon}{2} for large xx.

    Together, ∣f(x)g(x)βˆ’L∣<Ξ΅\left|\frac{f(x)}{g(x)} - L\right| < \varepsilon; with Ξ΅\varepsilon arbitrary, f(x)g(x)β†’L\frac{f(x)}{g(x)} \to L β€” L'HΓ΄pital's rule for the ∞/∞\infty/\infty case.

  3. Apply this to f(x)=ln⁑xf(x) = \ln x and g(x)=xg(x) = x: gβ€²(x)=1β‰ 0g'(x) = 1 \neq 0, g(x)β†’βˆžg(x) \to \infty, and fβ€²(x)gβ€²(x)=1/x1=1xβ†’0\frac{f'(x)}{g'(x)} = \frac{1/x}{1} = \frac{1}{x} \to 0. Hence lim⁑xβ†’βˆžln⁑xx=0\lim_{x \to \infty}\frac{\ln x}{x} = 0.

Prove lim⁑xβ†’0+xln⁑x=0\lim_{x \to 0^+} x \ln x = 0. (Hint: rewrite it as ln⁑x1/x\frac{\ln x}{1/x}.)

xln⁑x=ln⁑x1/x,(ln⁑x)β€²(1/x)β€²=1/xβˆ’1/x2=βˆ’xβ†’xβ†’0+0x \ln x = \frac{\ln x}{1/x}, \qquad \frac{(\ln x)'}{(1/x)'} = \frac{1/x}{-1/x^2} = -x \xrightarrow[x\to 0^+]{} 0
The same ∞/∞\infty/\infty machinery β€” at x=1000x = 1000, ln⁑xxβ‰ˆ0.00691\frac{\ln x}{x} \approx 0.00691, 1x=0.001\frac{1}{x} = 0.001. Rewriting xln⁑x=ln⁑x1/xx\ln x = \frac{\ln x}{1/x} gives fβ€²gβ€²=βˆ’xβ†’0\frac{f'}{g'} = -x \to 0 (e.g. at x=0.01x = 0.01, xln⁑xβ‰ˆβˆ’0.0461x\ln x \approx -0.0461, βˆ’x=βˆ’0.01-x = -0.01).
Show proof
  1. For x>0x > 0, xln⁑x=ln⁑x1/xx \ln x = \frac{\ln x}{1/x}. Put f(x)=ln⁑xf(x) = \ln x and g(x)=1/xg(x) = 1/x: then f(x)β†’βˆ’βˆžf(x) \to -\infty and g(x)β†’+∞g(x) \to +\infty, an ∞/∞\infty/\infty form, and gβ€²(x)=βˆ’1x2β‰ 0g'(x) = -\frac{1}{x^2} \neq 0.

  2. fβ€²(x)gβ€²(x)=1/xβˆ’1/x2=βˆ’xβ†’xβ†’0+0\frac{f'(x)}{g'(x)} = \frac{1/x}{-1/x^2} = -x \xrightarrow[x \to 0^+]{} 0. Restate problem 2's lemma in the flipped direction and re-verify its bounds: for fixed AA and 0<x<A0 < x < A, Cauchy's theorem on [x,A][x, A] (again gβ€²β‰ 0g' \neq 0 gives g(x)β‰ g(A)g(x) \neq g(A) by Rolle) yields the same identity f(x)g(x)βˆ’L=(fβ€²(ΞΎ)gβ€²(ΞΎ)βˆ’L)(1βˆ’g(A)g(x))+f(A)βˆ’Lg(A)g(x)\frac{f(x)}{g(x)} - L = \left(\frac{f'(\xi)}{g'(\xi)} - L\right)\left(1 - \frac{g(A)}{g(x)}\right) + \frac{f(A) - L g(A)}{g(x)} with L=0L = 0 and ξ∈(x,A)\xi \in (x, A).

    As xβ†’0+x \to 0^+, ∣g(x)∣=1/xβ†’βˆž|g(x)| = 1/x \to \infty, so for the fixed AA, ∣1βˆ’g(A)g(x)∣<2\left|1 - \frac{g(A)}{g(x)}\right| < 2 for small xx, and ∣f(A)βˆ’Lg(A)∣∣g(x)∣<Ξ΅2\frac{|f(A) - L g(A)|}{|g(x)|} < \frac{\varepsilon}{2} for small xx β€” the fixed-AA terms are small because ∣g(x)βˆ£β†’βˆž|g(x)| \to \infty. Choosing AA small first so ∣fβ€²(t)gβ€²(t)βˆ’L∣<Ξ΅4\left|\frac{f'(t)}{g'(t)} - L\right| < \frac{\varepsilon}{4} for t∈(0,A)t \in (0, A) makes the first term at most Ξ΅2\frac{\varepsilon}{2}, giving ∣f(x)g(x)βˆ’L∣<Ξ΅\left|\frac{f(x)}{g(x)} - L\right| < \varepsilon.

    Hence lim⁑xβ†’0+ln⁑x1/x=0\lim_{x \to 0^+}\frac{\ln x}{1/x} = 0.

  3. Hence lim⁑xβ†’0+xln⁑x=0\lim_{x \to 0^+} x \ln x = 0. The numbers agree: at x=0.01x = 0.01, xln⁑x=0.01β‹…ln⁑0.01β‰ˆβˆ’0.0461x\ln x = 0.01 \cdot \ln 0.01 \approx -0.0461 and the derivative ratio is βˆ’x=βˆ’0.01-x = -0.01, both tending to 0 as xβ†’0+x \to 0^+.

10. Differentiation