MathPath
Grades 1–13 Math Hub
Grades 12–13 · AP Calculus AB/BC · Formula Deep Dive

L'Hôpital's Rule: Indeterminate Limits, Graph & Examples

When a fraction's numerator and denominator both race to $0$ (or both race to $\pm\infty$), L'Hôpital's Rule lets you compare their rates of change by differentiating top and bottom separately.

$$\lim_{x \to c} \frac{f(x)}{g(x)} = \lim_{x \to c} \frac{f'(x)}{g'(x)} \quad \left(\text{for } \frac{0}{0} \text{ or } \frac{\infty}{\infty}\right)$$

Variables: Requires an indeterminate form $\frac{0}{0}$ or $\frac{\pm\infty}{\pm\infty}$.

When to use: Evaluating tricky limits where direct substitution fails.

Resolving the $\frac{0}{0}$ Hole in $\frac{\sin x}{x}$

xy-6-4-22461limit = 1 (0/0)

At $x = 0$, $\frac{\sin 0}{0} = \frac{0}{0}$ leaves an open hole on the graph, yet both sides smoothly approach $1$—confirmed in one step by $\lim_{x \to 0}\frac{\cos x}{1} = 1$.

Intuitive Linear-Approximation Proof ($\frac{0}{0}$ Case)

Near $x = c$, differentiable functions look like their tangent lines.

  1. Assume $f(c) = 0$ and $g(c) = 0$, with $g'(c) \neq 0$.
  2. Near $c$, tangent lines approximate $f(x) \approx f'(c)(x - c)$ and $g(x) \approx g'(c)(x - c)$.
  3. Divide the two approximations: $\frac{f(x)}{g(x)} \approx \frac{f'(c)(x - c)}{g'(c)(x - c)} = \frac{f'(c)}{g'(c)}$.
  4. Taking $x \to c$ gives $\lim_{x \to c}\frac{f(x)}{g(x)} = \lim_{x \to c}\frac{f'(x)}{g'(x)}$ (formally proved via Cauchy's Mean Value Theorem).

Indeterminate Forms & How to Handle Them

Direct Forms: $\frac{0}{0}$ or $\frac{\pm\infty}{\pm\infty}$

Apply L'Hôpital's Rule directly—and repeat if the new limit is still $\frac{0}{0}$ or $\frac{\infty}{\infty}$.

Product Form $0 \cdot \infty$

Rewrite $f \cdot g$ as $\frac{f}{1/g}$ or $\frac{g}{1/f}$ to turn it into $\frac{0}{0}$ or $\frac{\infty}{\infty}$ first.

Power Forms $1^\infty, 0^0, \infty^0$

Take $y = f(x)^{g(x)}$, apply $\ln y = g(x)\ln f(x)$, find $\lim \ln y = L$, then exponentiate to $e^L$.

NON-Indeterminate Forms

NEVER apply L'Hôpital's Rule to $\frac{2}{0}$ or $\frac{0}{5}$—check direct substitution first!

Step-by-Step Worked Examples

Example 1: Applying L'Hôpital's Rule Twice

Problem: Evaluate $\lim_{x \to 0} \frac{1 - \cos x}{x^2}$.
  1. Check form: $\frac{1 - 1}{0} = \frac{0}{0}$ ✓ (indeterminate).
  2. Apply L'Hôpital once: $\lim_{x \to 0}\frac{\sin x}{2x}$ — still $\frac{0}{0}$!
  3. Apply L'Hôpital a second time: $\lim_{x \to 0}\frac{\cos x}{2} = \frac{1}{2}$.

Example 2: Exponential vs. Polynomial Growth ($\frac{\infty}{\infty}$)

Problem: Evaluate $\lim_{x \to \infty} \frac{x^2}{e^x}$.
  1. Check form: $\frac{\infty}{\infty}$ ✓.
  2. First L'Hôpital: $\lim_{x \to \infty}\frac{2x}{e^x}$ (still $\frac{\infty}{\infty}$).
  3. Second L'Hôpital: $\lim_{x \to \infty}\frac{2}{e^x} = 0$ (exponentials always beat polynomials!).

Common Mistakes to Avoid

Mistake 1: Using the Quotient Rule Instead of Differentiating Separately

✗ Wrong: Computing $\frac{f'g - fg'}{g^2}$ inside L'Hôpital's Rule.
✓ Correct: Differentiate numerator and denominator **independently**: $\frac{f'(x)}{g'(x)}$.

Why: L'Hôpital's Rule is NOT taking the derivative of the fraction—it compares the ratio of derivatives.

Mistake 2: Applying L'Hôpital When the Limit Is NOT $\frac{0}{0}$ or $\frac{\infty}{\infty}$

✗ Wrong: Applying L'Hôpital to $\lim_{x \to 0}\frac{\cos x}{x + 1}$ to get $\frac{-\sin 0}{1} = 0$.
✓ Correct: Direct substitution immediately gives $\frac{\cos 0}{0 + 1} = \frac{1}{1} = 1$!

Why: L'Hôpital's Rule gives completely wrong answers if the original limit is not indeterminate.

Frequently Asked Questions

How many times can I apply L'Hôpital's Rule in one problem?

As many times as needed, provided you verify that the new fraction is STILL $\frac{0}{0}$ or $\frac{\infty}{\infty}$ before each application.

On AP Calculus FRQs, how should I justify L'Hôpital's Rule?

Write $\lim f(x) = 0$ and $\lim g(x) = 0$ separately (do NOT write '$= 0/0$' as a mathematical equality) before stating 'by L'Hôpital's Rule'.

Does L'Hôpital's Rule work for one-sided limits ($x \to c^+$) and $x \to \infty$?

Yes, it works for two-sided limits, one-sided limits, and limits at $\pm\infty$.

Practice & Related Resources

Apply L'Hôpital's Rule on interactive problems, printable PDF worksheets, and calculators.

Common Transcendental Derivatives →Derivative Rules →Grade 13 Calculus Quizzes →All Calculus Formulas → ← Back to Calculus Formulas Cheat Sheet