Skip to content

L'Hôpital's rule: when and how to use it

5 min read

Short answer

If lim⁡f(x)g(x)\lim\dfrac{f(x)}{g(x)} gives 00\tfrac00 or ∞∞\tfrac\infty\infty, then lim⁡f(x)g(x)=lim⁡f′(x)g′(x)\lim\dfrac{f(x)}{g(x)}=\lim\dfrac{f'(x)}{g'(x)} provided the new limit exists. Differentiate the numerator and the denominator separately (not as a quotient), then evaluate again.

Allowed compared with Not allowedAllowed0/0 or ∞/∞ formf and g differentiablenear aDifferentiate top andbottom separatelyRepeat if still 0/0Not allowedNonzero/0 (notindeterminate)Using the quotientrule on f/gApplying it aftersubstitution gave anumberIgnoring that the newlimit may not exist
Check the form first. The rule is a tool for two specific situations.

The rule in one line

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)}. Near aa, both functions behave like their tangent lines, so the ratio of the limits of the slopes decides the ratio of the functions.

Other indeterminate forms

Forms like 0⋅∞0\cdot\infty and ∞−∞\infty-\infty are rewritten as a quotient first. For 0⋅∞0\cdot\infty, write f⋅g=f1/gf\cdot g=\dfrac{f}{1/g}. For powers such as 1∞1^\infty, 000^0 and ∞0\infty^0, take the logarithm: if y=fgy=f^g, then ln⁡y=gln⁡f\ln y=g\ln f, find that limit with the rule, and exponentiate.

Worked example

Evaluate lim⁡x→0sin⁡x−xx3\displaystyle\lim_{x\to0}\frac{\sin x-x}{x^3}.

Substitution gives 00\tfrac00. Differentiate: cos⁡x−13x2\dfrac{\cos x-1}{3x^2}, still 00\tfrac00. Again: −sin⁡x6x\dfrac{-\sin x}{6x}, still 00\tfrac00. Once more: −cos⁡x6→−16\dfrac{-\cos x}{6}\to-\tfrac16. The limit is −16-\tfrac16.

Try it yourself

Evaluate lim⁡x→∞ln⁡xx\displaystyle\lim_{x\to\infty}\frac{\ln x}{x}.

Show the answer

The form is ∞∞\tfrac\infty\infty. Differentiate: 1/x1=1x→0\dfrac{1/x}{1}=\dfrac1x\to0. The limit is 00: the logarithm grows more slowly than any positive power of xx.

Keep going with practice

Vidi's calculus practice flags the indeterminate form first, so you learn when the rule applies before you use it.