Calculus · Grade 12 and undergraduate

L'Hôpital's Rule and Indeterminate Forms

Quick answer

L'Hôpital's rule says that if f(x)/g(x) takes the form 0/0 or ∞/∞ as x → a, then its limit equals the limit of f′(x)/g′(x), when that limit exists. The reason is local linearity: near a, f and g behave like their tangent lines, so their ratio behaves like the ratio of their slopes. Other indeterminate forms are first rewritten as quotients — a product as a fraction, a difference over a common denominator, a power through logarithms.

What you'll learn

  • Check that a limit has the form 0/0 or ∞/∞ before using L'Hôpital's rule
  • Apply the rule, repeatedly if needed
  • Rewrite 0·∞ and ∞ − ∞ forms as quotients
  • Use logarithms for the forms 1^∞, 0⁰ and ∞⁰

The rule

Some limits resist algebra: lim⁡x→0ex−1x\displaystyle\lim_{x \to 0} \frac{e^x - 1}{x} is 00\tfrac{0}{0}, and nothing factors. Derivatives settle it.

L'Hôpital's rule

Suppose ff and gg are differentiable near aa (except possibly at aa), with g′(x)≠0g'(x) \ne 0 there, and f(x)g(x)\tfrac{f(x)}{g(x)} has the form 00\tfrac{0}{0} or ±∞±∞\tfrac{\pm\infty}{\pm\infty} as x→ax \to a. Then

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)}

provided the limit on the right exists or is ±∞\pm\infty. The same holds for one-sided limits and for x→±∞x \to \pm\infty.

So lim⁡x→0ex−1x=lim⁡x→0ex1=1\displaystyle\lim_{x \to 0} \frac{e^x - 1}{x} = \lim_{x \to 0} \frac{e^x}{1} = 1, confirming the estimate from the first lesson.

Why the slopes decide it

Take the simplest case: f(a)=g(a)=0f(a) = g(a) = 0, and both are differentiable at aa with g′(a)≠0g'(a) \ne 0. Near aa, each function is close to its tangent line, and both tangent lines pass through (a,0)(a, 0):

f(x)≈f′(a)(x−a),g(x)≈g′(a)(x−a)f(x) \approx f'(a)(x - a), \qquad g(x) \approx g'(a)(x - a)

The factor x−ax - a cancels in the ratio, leaving f′(a)g′(a)\tfrac{f'(a)}{g'(a)}. Exactly,

f(x)g(x)=f(x)−f(a)g(x)−g(a)=f(x)−f(a)x−ag(x)−g(a)x−a  ⟶  f′(a)g′(a)\frac{f(x)}{g(x)} = \frac{f(x) - f(a)}{g(x) - g(a)} = \frac{\tfrac{f(x) - f(a)}{x - a}}{\tfrac{g(x) - g(a)}{x - a}} \;\longrightarrow\; \frac{f'(a)}{g'(a)}

When both functions vanish at the same point, their ratio is decided by how fast each one leaves zero — their derivatives. The general statement, for ∞∞\tfrac{\infty}{\infty} and when f′(a)f'(a) does not exist, is proved with Cauchy’s mean value theorem.

Other indeterminate forms

The rule handles only quotients. The remaining indeterminate forms are rewritten into one first:

FormRewrite
0⋅∞0 \cdot \inftyfg=f1/gf g = \tfrac{f}{1/g}, a 00\tfrac{0}{0} or ∞∞\tfrac{\infty}{\infty} form
∞−∞\infty - \inftycombine over a common denominator, or factor
1∞1^\infty, 000^0, ∞0\infty^0take ln⁡\ln: ln⁡(fg)=gln⁡f\ln(f^g) = g \ln f, a 0⋅∞0 \cdot \infty form

For the power forms, find the limit LL of ln⁡y\ln y, and then the original limit is eLe^L.

Worked examples

Common mistakes

Practice problems

  1. Find lim⁡x→0sin⁡4xx\lim_{x \to 0} \tfrac{\sin 4x}{x}.

    Answer

    44

    Full solution

    Form 00\tfrac{0}{0}. The rule gives 4cos⁡4x1→4\tfrac{4\cos 4x}{1} \to 4.

  2. Find lim⁡x→2x3−8x−2\lim_{x \to 2} \tfrac{x^3 - 8}{x - 2}.

    Answer

    1212

    Full solution

    Form 00\tfrac{0}{0}. The rule gives 3x21→12\tfrac{3x^2}{1} \to 12. (Factoring gives x2+2x+4→12x^2 + 2x + 4 \to 12 too.)

  3. Find lim⁡x→∞ln⁡xx\lim_{x \to \infty} \tfrac{\ln x}{\sqrt{x}}.

    Answer

    00

    Full solution

    Form ∞∞\tfrac{\infty}{\infty}. The rule gives 1/x1/(2x)=2xx=2x→0\tfrac{1/x}{1/(2\sqrt{x})} = \tfrac{2\sqrt{x}}{x} = \tfrac{2}{\sqrt{x}} \to 0.

  4. Find lim⁡x→01−cos⁡xx2\lim_{x \to 0} \tfrac{1 - \cos x}{x^2}.

    Answer

    12\tfrac{1}{2}

    Full solution

    Form 00\tfrac{0}{0}. Once: sin⁡x2x\tfrac{\sin x}{2x}, still 00\tfrac{0}{0}. Twice: cos⁡x2→12\tfrac{\cos x}{2} \to \tfrac{1}{2}.

  5. Find lim⁡x→∞xe−x\lim_{x \to \infty} x e^{-x}.

    Answer

    00

    Full solution

    Form ∞⋅0\infty \cdot 0. Rewrite as xex\tfrac{x}{e^x}, form ∞∞\tfrac{\infty}{\infty}. The rule gives 1ex→0\tfrac{1}{e^x} \to 0.

  6. Find lim⁡x→0+xx\lim_{x \to 0^+} x^x.

    Answer

    11

    Full solution

    Form 000^0. ln⁡(xx)=xln⁡x→0\ln(x^x) = x\ln x \to 0 (Example 2). So xx→e0=1x^x \to e^0 = 1.

  7. Find lim⁡x→0(1x−1sin⁡x)\lim_{x \to 0} \left(\tfrac{1}{x} - \tfrac{1}{\sin x}\right).

    Answer

    00

    Full solution

    Form ∞−∞\infty - \infty. Combine: sin⁡x−xxsin⁡x\tfrac{\sin x - x}{x \sin x}, form 00\tfrac{0}{0}.

    Once: cos⁡x−1sin⁡x+xcos⁡x\tfrac{\cos x - 1}{\sin x + x\cos x}, still 00\tfrac{0}{0}. Twice: −sin⁡x2cos⁡x−xsin⁡x→02=0\tfrac{-\sin x}{2\cos x - x\sin x} \to \tfrac{0}{2} = 0.

  8. Find lim⁡x→∞(1+3x)x\lim_{x \to \infty} \left(1 + \tfrac{3}{x}\right)^x.

    Answer

    e3e^3

    Full solution

    ln⁡y=xln⁡ ⁣(1+3x)=ln⁡(1+3/x)1/x\ln y = x\ln\!\left(1 + \tfrac{3}{x}\right) = \tfrac{\ln(1 + 3/x)}{1/x}, form 00\tfrac{0}{0}. The rule gives 31+3/x→3\tfrac{3}{1 + 3/x} \to 3, so y→e3y \to e^3.

  9. Find lim⁡x→∞3x2+x5x2−2\lim_{x \to \infty} \tfrac{3x^2 + x}{5x^2 - 2} with L’Hôpital’s rule, and check it against the leading-coefficient method.

    Answer

    35\tfrac{3}{5}

    Full solution

    Once: 6x+110x\tfrac{6x + 1}{10x}, still ∞∞\tfrac{\infty}{\infty}. Twice: 610=35\tfrac{6}{10} = \tfrac{3}{5}. The ratio of leading coefficients is also 35\tfrac{3}{5}.

  10. A student computes lim⁡x→0cos⁡xx+1\lim_{x \to 0} \tfrac{\cos x}{x + 1} with L’Hôpital’s rule and gets −sin⁡01=0\tfrac{-\sin 0}{1} = 0. What went wrong?

    Hint

    What form does the limit have?

    Answer

    The form is 11\tfrac{1}{1}, not indeterminate. The limit is 11.

    Full solution

    Substitution gives cos⁡00+1=1\tfrac{\cos 0}{0 + 1} = 1, a determinate value.

    The rule applies only to 00\tfrac{0}{0} and ∞∞\tfrac{\infty}{\infty}; used here it produces a wrong answer.

Frequently asked questions

What is L'Hôpital's rule?

If f(x)/g(x) has the form 0/0 or ∞/∞ as x approaches a, then lim f(x)/g(x) = lim f′(x)/g′(x), provided the second limit exists or is infinite.

When can I use L'Hôpital's rule?

Only for the indeterminate forms 0/0 and ∞/∞. For any other form, rewrite first; using it on a determinate form gives wrong answers.

Do I use the quotient rule in L'Hôpital's rule?

No. Differentiate the numerator and the denominator separately; the fraction is not differentiated as a quotient.

How do I handle 1^∞ or 0⁰?

Take the natural log of the expression, which turns the power into a product. Find that limit, then exponentiate the answer.

Can I apply the rule more than once?

Yes, as long as each new quotient is still 0/0 or ∞/∞.

What to learn next