L'Hôpital's Rule

Basis
Last updated: Tags: Calculus, Limit

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.

Indeterminate forms

A limit lim⁡x→af(x)g(x)\lim_{x \to a} \frac{f(x)}{g(x)} is indeterminate when naive substitution produces a meaningless expression such as 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}. 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 ff and gg be differentiable on a deleted neighbourhood of aa (where a∈Ra \in \mathbb{R} or a=±∞a = \pm\infty). Suppose

  1. g′(x)≠0g'(x) \neq 0 near aa, and
  2. the limit is of the form 00\tfrac{0}{0} — meaning lim⁡x→af(x)=lim⁡x→ag(x)=0\lim_{x \to a} f(x) = \lim_{x \to a} g(x) = 0 — or of the form ∞∞\tfrac{\infty}{\infty} — meaning lim⁡x→a∣g(x)∣=∞\lim_{x \to a} |g(x)| = \infty.

If

lim⁡x→af′(x)g′(x)  =  L(L∈R∪{+∞, −∞}),(1)\lim_{x \to a} \frac{f'(x)}{g'(x)} \;=\; L \quad (L \in \mathbb{R} \cup \{+\infty,\, -\infty\}), \tag{1}

then

lim⁡x→af(x)g(x)  =  L.(2)\lim_{x \to a} \frac{f(x)}{g(x)} \;=\; L. \tag{2}

The rule applies equally to one-sided limits (x→a+x \to a^+ or x→a−x \to a^-).

Proof for the 00\tfrac{0}{0} case

Assume lim⁡x→af(x)=lim⁡x→ag(x)=0\lim_{x \to a} f(x) = \lim_{x \to a} g(x) = 0. Extend ff and gg to aa by setting f(a)=g(a)=0f(a) = g(a) = 0; continuity at aa is preserved.

For x≠ax \neq a in a deleted neighbourhood of aa, apply Cauchy’s Mean Value Theorem to ff and gg on the closed interval with endpoints aa and xx:

f(x)g(x)  =  f(x)−f(a)g(x)−g(a)  =  f′(cx)g′(cx),\frac{f(x)}{g(x)} \;=\; \frac{f(x) - f(a)}{g(x) - g(a)} \;=\; \frac{f'(c_x)}{g'(c_x)},

where cxc_x lies strictly between aa and xx. As x→ax \to a, the intermediate point cx→ac_x \to a as well (by the squeeze ∣cx−a∣<∣x−a∣|c_x - a| < |x - a|). Therefore:

lim⁡x→af(x)g(x)  =  lim⁡x→af′(cx)g′(cx)  =  lim⁡c→af′(c)g′(c)  =  L.□\lim_{x \to a} \frac{f(x)}{g(x)} \;=\; \lim_{x \to a} \frac{f'(c_x)}{g'(c_x)} \;=\; \lim_{c \to a} \frac{f'(c)}{g'(c)} \;=\; L. \quad \square

The ∞∞\tfrac{\infty}{\infty} 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.

Reducing other indeterminate forms

Every indeterminate form other than 00\tfrac{0}{0} and ∞∞\tfrac{\infty}{\infty} can be rewritten algebraically until one of those two appears.

0⋅∞0 \cdot \infty

If lim⁡f(x)=0\lim f(x) = 0 and lim⁡g(x)=∞\lim g(x) = \infty, write

f(x) g(x)  =  f(x)1/g(x)    (form 00)org(x)1/f(x)    (form ∞∞).f(x)\,g(x) \;=\; \frac{f(x)}{1/g(x)} \;\;\text{(form }\tfrac{0}{0}\text{)} \qquad\text{or}\qquad \frac{g(x)}{1/f(x)} \;\;\text{(form }\tfrac{\infty}{\infty}\text{)}.

Choose whichever rewriting leads to simpler derivatives.

∞−∞\infty - \infty

If lim⁡f(x)=lim⁡g(x)=∞\lim f(x) = \lim g(x) = \infty, combine into a single fraction using a common denominator appropriate to the expression. The result is a 00\tfrac{0}{0} or ∞∞\tfrac{\infty}{\infty} form.

000^0, ∞0\infty^0, 1∞1^\infty

If the limit lim⁡h(x)k(x)\lim h(x)^{k(x)} has one of these forms, take the natural logarithm:

ln⁡ ⁣(h(x)k(x))  =  k(x)ln⁡h(x).\ln\!\bigl(h(x)^{k(x)}\bigr) \;=\; k(x)\ln h(x).

This is a 0⋅∞0 \cdot \infty form, which then reduces further. Once you find lim⁡k(x)ln⁡h(x)=M\lim k(x)\ln h(x) = M, the original limit is eMe^M.

Examples

Example 1 (00\tfrac{0}{0}). lim⁡x→0sin⁡xx\displaystyle\lim_{x \to 0} \dfrac{\sin x}{x}.

Both numerator and denominator vanish at 00. Apply L’Hôpital:

lim⁡x→0sin⁡xx  =  lim⁡x→0cos⁡x1  =  1.\lim_{x \to 0} \frac{\sin x}{x} \;=\; \lim_{x \to 0} \frac{\cos x}{1} \;=\; 1.

Example 2 (∞∞\tfrac{\infty}{\infty}, iterated). lim⁡x→∞xnex\displaystyle\lim_{x \to \infty} \dfrac{x^n}{e^x} for fixed n∈Nn \in \mathbb{N}.

Apply L’Hôpital nn times. Each application reduces the power of the numerator by one:

lim⁡x→∞xnex  =  lim⁡x→∞n xn−1ex  =  ⋯  =  lim⁡x→∞n!ex  =  0.\lim_{x \to \infty} \frac{x^n}{e^x} \;=\; \lim_{x \to \infty} \frac{n\,x^{n-1}}{e^x} \;=\; \cdots \;=\; \lim_{x \to \infty} \frac{n!}{e^x} \;=\; 0.

Every polynomial is eventually dominated by the exponential.

Example 3 (1∞1^\infty). lim⁡x→∞ ⁣(1+1x) ⁣x\displaystyle\lim_{x \to \infty} \!\left(1 + \dfrac{1}{x}\right)^{\!x}.

Let LL denote the limit. Taking the logarithm converts the form to 0⋅∞0 \cdot \infty:

ln⁡L  =  lim⁡x→∞xln⁡ ⁣ ⁣(1+1x)  =  lim⁡x→∞ln⁡(1+1/x)1/x(form 00).\ln L \;=\; \lim_{x \to \infty} x\ln\!\!\left(1 + \frac{1}{x}\right) \;=\; \lim_{x \to \infty} \frac{\ln(1 + 1/x)}{1/x} \quad \left(\text{form } \frac{0}{0}\right).

Apply L’Hôpital (differentiating numerator and denominator with respect to xx):

lim⁡x→∞−1/x21+1/x−1/x2  =  lim⁡x→∞11+1/x  =  1,\lim_{x \to \infty} \frac{\dfrac{-1/x^2}{1 + 1/x}}{-1/x^2} \;=\; \lim_{x \to \infty} \frac{1}{1 + 1/x} \;=\; 1,

so ln⁡L=1\ln L = 1 and L=eL = e.

When the rule does not apply

L’Hôpital’s rule requires lim⁡f′(x)/g′(x)\lim f'(x)/g'(x) to exist. If f′/g′f'/g' oscillates without converging, the rule gives no information about f/gf/g — which may still have a perfectly good limit. A standard example is

lim⁡x→∞x+sin⁡xx:\lim_{x \to \infty} \frac{x + \sin x}{x}:

f′/g′=1+cos⁡xf'/g' = 1 + \cos x oscillates between 00 and 22, yet f/g=1+(sin⁡x)/x→1f/g = 1 + (\sin x)/x \to 1.

Summary

  • L’Hôpital’s rule: if f/gf/g is a 00\tfrac{0}{0} or ∞∞\tfrac{\infty}{\infty} indeterminate form at aa and lim⁡f′/g′\lim f'/g' exists, then lim⁡f/g=lim⁡f′/g′\lim f/g = \lim f'/g'.
  • Proof (00\tfrac{0}{0} case): Cauchy’s MVT gives f(x)/g(x)=f′(cx)/g′(cx)f(x)/g(x) = f'(c_x)/g'(c_x) for cxc_x squeezed between aa and xx; as x→ax \to a so does cxc_x.
  • Other indeterminate forms reduce algebraically: 0⋅∞0\cdot\infty via a single fraction; ∞−∞\infty - \infty by a common denominator; 000^0, ∞0\infty^0, 1∞1^\infty by taking a logarithm.
  • The rule is silent when lim⁡f′/g′\lim f'/g' does not exist; absence of that limit does not imply lim⁡f/g\lim f/g fails.