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 limxaf(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 aRa \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 limxaf(x)=limxag(x)=0\lim_{x \to a} f(x) = \lim_{x \to a} g(x) = 0 — or of the form \tfrac{\infty}{\infty} — meaning limxag(x)=\lim_{x \to a} |g(x)| = \infty.

If

limxaf(x)g(x)  =  L(LR{+,}),(1)\lim_{x \to a} \frac{f'(x)}{g'(x)} \;=\; L \quad (L \in \mathbb{R} \cup \{+\infty,\, -\infty\}), \tag{1}

then

limxaf(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 (xa+x \to a^+ or xax \to a^-).

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

Assume limxaf(x)=limxag(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 xax \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 xax \to a, the intermediate point cxac_x \to a as well (by the squeeze cxa<xa|c_x - a| < |x - a|). Therefore:

limxaf(x)g(x)  =  limxaf(cx)g(cx)  =  limcaf(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.

00 \cdot \infty

If limf(x)=0\lim f(x) = 0 and limg(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 limf(x)=limg(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, 11^\infty

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

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

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

Examples

Example 1 (00\tfrac{0}{0}). limx0sinxx\displaystyle\lim_{x \to 0} \dfrac{\sin x}{x}.

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

limx0sinxx  =  limx0cosx1  =  1.\lim_{x \to 0} \frac{\sin x}{x} \;=\; \lim_{x \to 0} \frac{\cos x}{1} \;=\; 1.

Example 2 (\tfrac{\infty}{\infty}, iterated). limxxnex\displaystyle\lim_{x \to \infty} \dfrac{x^n}{e^x} for fixed nNn \in \mathbb{N}.

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

limxxnex  =  limxnxn1ex  =    =  limxn!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 (11^\infty). limx ⁣(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 00 \cdot \infty:

lnL  =  limxxln ⁣ ⁣(1+1x)  =  limxln(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):

limx1/x21+1/x1/x2  =  limx11+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 lnL=1\ln L = 1 and L=eL = e.

When the rule does not apply

L’Hôpital’s rule requires limf(x)/g(x)\lim f'(x)/g'(x) to exist. If f/gf'/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

limxx+sinxx:\lim_{x \to \infty} \frac{x + \sin x}{x}:

f/g=1+cosxf'/g' = 1 + \cos x oscillates between 00 and 22, yet f/g=1+(sinx)/x1f/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 limf/g\lim f'/g' exists, then limf/g=limf/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 xax \to a so does cxc_x.
  • Other indeterminate forms reduce algebraically: 00\cdot\infty via a single fraction; \infty - \infty by a common denominator; 000^0, 0\infty^0, 11^\infty by taking a logarithm.
  • The rule is silent when limf/g\lim f'/g' does not exist; absence of that limit does not imply limf/g\lim f/g fails.