Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Use L'Hôpital's Rule

For a 00\frac{0}{0} or ∞∞\frac{\infty}{\infty} limit, differentiate the top and the bottom separately (not as a quotient) and take the limit again. Repeat if the new limit is again indeterminate; stop as soon as it is not.

Recognize the task

Substitution gives exactly 00\frac{0}{0} or ±∞∞\pm\frac{\infty}{\infty}: ex−1x\frac{e^x - 1}{x} at 00, ln⁡xx\frac{\ln x}{x} at ∞\infty, x2ex\frac{x^2}{e^x} at ∞\infty. Other forms (0⋅∞0\cdot\infty, ∞−∞\infty - \infty, 1∞1^\infty) must be rewritten as a quotient first. Test: confirm the form before differentiating; on a non-indeterminate quotient the rule gives wrong answers.
The rule is stated as L'Hôpital's rule in the derivative rules lesson; the forms it handles are listed under indeterminate forms.

Two ways to do it

Differentiate top and bottomusual choice
lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x)(00 or ∞∞)\lim_{x\to a}\frac{f(x)}{g(x)} = \lim_{x\to a}\frac{f'(x)}{g'(x)} \qquad \Big(\tfrac{0}{0} \text{ or } \tfrac{\infty}{\infty}\Big)
L'Hôpital's rule: separate derivatives, never the quotient rule. The derivatives come from the derivative techniques.
Rewrite 0 · ∞ as a quotientfor products
f⋅g=f1/gorg1/ff\cdot g = \frac{f}{1/g} \quad \text{or} \quad \frac{g}{1/f}
Move one factor to the denominator as a reciprocal; choose the version whose derivatives are simpler.

Steps

StepOn lim⁡x→∞ln⁡xx\lim_{x\to\infty}\frac{\ln x}{x}
1Check the form by substitution. It must be exactly 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}. Anything else: either evaluate directly or rewrite first.Direct substitution ↗ln⁡xx→∞∞\frac{\ln x}{x} \to \frac{\infty}{\infty} ✓
2Differentiate the numerator and the denominator separately. Two independent derivatives. Do not touch the fraction as a whole.(ln⁡x)′(x)′=1/x1\frac{(\ln x)'}{(x)'} = \frac{1/x}{1}
3Take the new limit. If it is again indeterminate, apply the rule once more. If not, stop; differentiating again would be wrong.lim⁡x→∞1x=0\lim_{x\to\infty}\frac{1}{x} = 0
4State the result. Here it also confirms the growth hierarchy: ln⁡x\ln x grows slower than xx.lim⁡x→∞ln⁡xx=0\lim_{x\to\infty}\frac{\ln x}{x} = 0

Worked examples

Example 1 · logarithm over x

∞/∞, once
lim⁡x→∞ln⁡xx=lim⁡x→∞1/x1\lim_{x\to\infty}\frac{\ln x}{x} = \lim_{x\to\infty}\frac{1/x}{1}
differentiate top and bottom
=0= 0

Example 2 · polynomial over exponential

∞/∞, twice
lim⁡x→∞x2ex=lim⁡x→∞2xex\lim_{x\to\infty}\frac{x^2}{e^x} = \lim_{x\to\infty}\frac{2x}{e^x}
still ∞∞\frac{\infty}{\infty}
=lim⁡x→∞2ex=0= \lim_{x\to\infty}\frac{2}{e^x} = 0
second application; now determinate

Example 3 · a 0 · ∞ product

rewrite first
lim⁡x→0+xln⁡x=lim⁡x→0+ln⁡x1/x\lim_{x\to 0^+} x\ln x = \lim_{x\to 0^+}\frac{\ln x}{1/x}
now −∞∞\frac{-\infty}{\infty}
=lim⁡x→0+1/x−1/x2=lim⁡x→0+(−x)= \lim_{x\to 0^+}\frac{1/x}{-1/x^2} = \lim_{x\to 0^+}(-x)
differentiate, simplify
=0= 0

See it happen

Near the point, both ff and gg are nearly their tangent lines, so f(x)g(x)≈f′(a)(x−a)g′(a)(x−a)=f′(a)g′(a)\frac{f(x)}{g(x)} \approx \frac{f'(a)(x - a)}{g'(a)(x - a)} = \frac{f'(a)}{g'(a)}. L'Hôpital compares the slopes with which the two functions reach 00 (or run off to infinity).

Common mistakes

Using the quotient rule

✗ differentiating fg\frac{f}{g} as one function
✓ differentiate top and bottom separately: f′g′\frac{f'}{g'}

Applying it to a determinate form

✗ lim⁡x→0x+1x+2=lim⁡11=1\lim_{x\to 0}\frac{x + 1}{x + 2} = \lim\frac{1}{1} = 1
✓ substitution gives 12\frac{1}{2}; the rule did not apply

Not stopping

✗ differentiating 1/x1\frac{1/x}{1} once more
✓ once the form is determinate, evaluate; extra steps change the answer

Treating 0 · ∞ as 0

✗ xln⁡x→0⋅(−∞)=0x\ln x \to 0\cdot(-\infty) = 0 "obviously"
✓ rewrite as a quotient; x⋅1x→1x\cdot\frac{1}{x} \to 1 shows the form is indeterminate