Skip to content
🎯⭐ INTERACTIVE LESSON

L'Hôpital's Rule

Learn step-by-step with interactive practice!

L'Hôpital's Rule - Complete Interactive Lesson

Part 1: Indeterminate Forms and the Rule

L'Hospital's Rule

Part 1 of 5 — Indeterminate Forms and the Rule

Topic Overview

PartTopic
1Indeterminate forms and the rule
200\frac{0}{0} limits, including repeated use
3∞∞\frac{\infty}{\infty} limits and growth rates
4Limits from tables and graphs, and justification
5Traps and final assessment

When Direct Substitution Gives 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}

Substituting into lim⁡x→af(x)g(x)\lim_{x \to a} \frac{f(x)}{g(x)} can give:

Result of substitutionWhat it means
A number over a nonzero numberThat quotient is the limit
A nonzero number over 00Unbounded: the limit is ±∞\pm\infty or does not exist
00\frac{0}{0}Indeterminate: more work is needed
∞∞\frac{\infty}{\infty} (any signs)Indeterminate: more work is needed

On the AP exam, L'Hospital's Rule is used for exactly these two indeterminate forms, 00\frac{0}{0} and ∞∞\frac{\infty}{\infty}.

L'Hospital's Rule

Suppose ff and gg are differentiable near x=ax = a (except possibly at aa), with g′(x)≠0g'(x) \ne 0 near aa, and

lim⁡x→af(x)=0 and lim⁡x→ag(x)=0orlim⁡x→af(x)=±∞ and lim⁡x→ag(x)=±∞.\lim_{x \to a} f(x) = 0 \text{ and } \lim_{x \to a} g(x) = 0 \quad \text{or} \quad \lim_{x \to a} f(x) = \pm\infty \text{ and } \lim_{x \to a} g(x) = \pm\infty.

Then

lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x)\boxed{\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.

Two Things to Check First

  1. The form: both limits are 00, or both are infinite. If not, the rule does not apply.
  2. Differentiability: you will differentiate the numerator and the denominator.

Worked Example

lim⁡x→0sin⁡(3x)x\lim_{x \to 0} \frac{\sin(3x)}{x}

Check: sin⁡(0)=0\sin(0) = 0 and the denominator is 00, so the form is 00\frac{0}{0}.

lim⁡x→0sin⁡(3x)x=lim⁡x→03cos⁡(3x)1=3\lim_{x \to 0} \frac{\sin(3x)}{x} = \lim_{x \to 0} \frac{3\cos(3x)}{1} = 3

Key Fact: Differentiate the numerator and the denominator separately. This is NOT the quotient rule.

Check the form first 🎯

Classify before you compute. 🔍

Apply the rule. ✍️

Key Takeaways — Part 1

  • L'Hospital's Rule is for 00\frac{0}{0} and ∞∞\frac{\infty}{\infty} only
  • Check the form before using it
  • Replace fg\frac{f}{g} by f′g′\frac{f'}{g'}: two separate derivatives, never the quotient rule
  • If substitution gives an ordinary number, that number is the limit

Up Next: Part 2 — 00\frac{0}{0} limits, including using the rule more than once.

Part 2: 0/0 Limits and Repeated Use

L'Hospital's Rule

Part 2 of 5 — 00\frac{0}{0} Limits, Including Repeated Use

Worked Example 1: Logarithm

lim⁡x→1ln⁡xx−1\lim_{x \to 1} \frac{\ln x}{x - 1}

Check: ln⁡1=0\ln 1 = 0 and 1−1=01 - 1 = 0, so the form is 00\frac{0}{0}.

lim⁡x→1ln⁡xx−1=lim⁡x→11/x1=1\lim_{x \to 1} \frac{\ln x}{x - 1} = \lim_{x \to 1} \frac{1/x}{1} = 1

Worked Example 2: Trig with a Shift

lim⁡x→πsin⁡xx−π\lim_{x \to \pi} \frac{\sin x}{x - \pi}

Check: sin⁡π=0\sin \pi = 0 and π−π=0\pi - \pi = 0: 00\frac{0}{0}.

lim⁡x→πsin⁡xx−π=lim⁡x→πcos⁡x1=cos⁡π=−1\lim_{x \to \pi} \frac{\sin x}{x - \pi} = \lim_{x \to \pi} \frac{\cos x}{1} = \cos \pi = -1

Worked Example 3: Agreement with Factoring

lim⁡x→2x2−4x−2\lim_{x \to 2} \frac{x^2 - 4}{x - 2}

The rule gives lim⁡x→22x1=4\lim_{x \to 2} \frac{2x}{1} = 4, the same answer as factoring: (x−2)(x+2)x−2=x+2→4\frac{(x-2)(x+2)}{x-2} = x + 2 \to 4. Both methods are valid; use whichever is quicker.

Using the Rule More Than Once

After one application, substitute again. If the new limit is still 00\frac{0}{0} (or ∞∞\frac{\infty}{\infty}), you may apply the rule again.

lim⁡x→01−cos⁡xx2\lim_{x \to 0} \frac{1 - \cos x}{x^2}

StepExpressionSubstitution gives
Start1−cos⁡xx2\frac{1 - \cos x}{x^2}00\frac{0}{0}
Rule oncesin⁡x2x\frac{\sin x}{2x}00\frac{0}{0} again
Rule twicecos⁡x2\frac{\cos x}{2}12\frac{1}{2}

So lim⁡x→01−cos⁡xx2=12\lim_{x \to 0} \frac{1 - \cos x}{x^2} = \frac{1}{2}.

Limits That Are Derivatives in Disguise

lim⁡h→0e2+h−e2h\lim_{h \to 0} \frac{e^{2 + h} - e^2}{h} is 00\frac{0}{0}. Treating hh as the variable, the rule gives lim⁡h→0e2+h1=e2\lim_{h \to 0} \frac{e^{2+h}}{1} = e^2. You can also recognize it as the derivative of exe^x at x=2x = 2.

Key Fact: Re-check the form before every application. Once substitution gives an ordinary number, stop.

Practice — 0/0 limits 🎯

Track the form at each step. 🔍

Apply the rule (maybe twice). ✍️

Key Takeaways — Part 2

  • Verify 00\frac{0}{0}, then differentiate the top and the bottom separately
  • Substitute again after each application; repeat only while the form is still indeterminate
  • L'Hospital's Rule agrees with factoring and with "derivative in disguise" reasoning

Up Next: Part 3 — ∞∞\frac{\infty}{\infty} limits and growth rates.

Part 3: ∞/∞ Limits and Growth Rates

L'Hospital's Rule

Part 3 of 5 — ∞∞\frac{\infty}{\infty} Limits and Growth Rates

Worked Example 1: ln⁡x\ln x Against xx

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

Check: both ln⁡x\ln x and xx grow without bound, so the form is ∞∞\frac{\infty}{\infty}.

lim⁡x→∞ln⁡xx=lim⁡x→∞1/x1=0\lim_{x \to \infty} \frac{\ln x}{x} = \lim_{x \to \infty} \frac{1/x}{1} = 0

Worked Example 2: A Power Against exe^x (Twice)

lim⁡x→∞x2ex\lim_{x \to \infty} \frac{x^2}{e^x}

x2ex  →  2xex  →  2ex  →  0\frac{x^2}{e^x} \;\to\; \frac{2x}{e^x} \;\to\; \frac{2}{e^x} \;\to\; 0

The first two quotients are both ∞∞\frac{\infty}{\infty}, so the rule is used twice; the last one is 2∞\frac{2}{\infty}, which is 00.

Worked Example 3: A One-Sided ∞∞\frac{\infty}{\infty} Limit

lim⁡x→0+ln⁡x1/x\lim_{x \to 0^+} \frac{\ln x}{1/x}

As x→0+x \to 0^+, ln⁡x→−∞\ln x \to -\infty and 1x→+∞\frac{1}{x} \to +\infty: an ∞∞\frac{\infty}{\infty} form (the signs may differ).

lim⁡x→0+1/x−1/x2=lim⁡x→0+(−x)=0\lim_{x \to 0^+} \frac{1/x}{-1/x^2} = \lim_{x \to 0^+} (-x) = 0

Growth Rates as x→∞x \to \infty

Repeated use of the rule shows a clear ranking:

ln⁡x  ≪  xp  (p>0)  ≪  ex\ln x \;\ll\; x^p \; (p > 0) \;\ll\; e^x

Limit as x→∞x \to \inftyResultReason
ln⁡xxp\frac{\ln x}{x^p}, p>0p > 000Logarithms grow slower than any positive power
xnex\frac{x^n}{e^x}00Exponentials grow faster than any power
exxn\frac{e^x}{x^n}∞\inftyFlip of the row above

When Algebra Is Faster

For a rational function such as lim⁡x→∞3x2+15x2−x\lim_{x \to \infty} \frac{3x^2 + 1}{5x^2 - x}, the rule works twice (6x10x−1\frac{6x}{10x - 1} is still ∞∞\frac{\infty}{\infty}, then 610=35\frac{6}{10} = \frac{3}{5}), but dividing by x2x^2 gives 35\frac{3}{5} at once. Use L'Hospital's Rule when logarithms, exponentials or trig functions block the algebra.

Practice — ∞/∞ limits 🎯

Which grows faster? 🔍

Apply the rule. ✍️

Key Takeaways — Part 3

  • ∞∞\frac{\infty}{\infty} (with any signs) is the second form the rule handles
  • Growth ranking as x→∞x \to \infty: ln⁡x≪xp≪ex\ln x \ll x^p \ll e^x
  • For rational functions, dividing by the highest power is usually faster

Up Next: Part 4 — limits from tables and graphs, and how to justify the rule.

Part 4: Tables, Graphs and Justification

L'Hospital's Rule

Part 4 of 5 — Limits from Tables and Graphs, and Justification

On the AP exam the functions are often given only by a table or a graph. The rule works the same way: check the form from the given values, then use the given derivatives.

Worked Example: A Table

ff is twice differentiable, with f(3)=0f(3) = 0 and f′(3)=6f'(3) = 6. Find lim⁡x→3f(x)x2−9\lim_{x \to 3} \frac{f(x)}{x^2 - 9}.

Justification and computation:

  • ff is differentiable, so it is continuous: lim⁡x→3f(x)=f(3)=0\lim_{x \to 3} f(x) = f(3) = 0.
  • lim⁡x→3(x2−9)=0\lim_{x \to 3} (x^2 - 9) = 0.
  • The limit has the form 00\frac{0}{0}, so L'Hospital's Rule applies:

lim⁡x→3f(x)x2−9=lim⁡x→3f′(x)2x=f′(3)6=66=1\lim_{x \to 3} \frac{f(x)}{x^2 - 9} = \lim_{x \to 3} \frac{f'(x)}{2x} = \frac{f'(3)}{6} = \frac{6}{6} = 1

Why "twice differentiable" matters: it makes f′f' continuous, so lim⁡x→3f′(x)=f′(3)\lim_{x \to 3} f'(x) = f'(3) and you may substitute the table value.

Writing the Justification

Before using the rule in a free-response answer, state the limits of the numerator and the denominator:

"Since lim⁡x→af(x)=0\lim_{x \to a} f(x) = 0 and lim⁡x→ag(x)=0\lim_{x \to a} g(x) = 0, L'Hospital's Rule applies, so 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)}."

For an ∞∞\frac{\infty}{\infty} limit, state that both limits are infinite instead.

Write thisNot just this
lim⁡f(x)=0\lim f(x) = 0 and lim⁡g(x)=0\lim g(x) = 0"It's indeterminate"
f′(x)g′(x)\frac{f'(x)}{g'(x)} with each derivative shownThe final number alone
The limit of the new quotient, then the valuef′(a)g′(a)\frac{f'(a)}{g'(a)} with no limit step when f′f', g′g' are not known to be continuous

AP Tip: Writing "00\frac{0}{0}" by itself does not show which limits you checked. Name both limits, then apply the rule.

Worked Example: A Graph

Near x=2x = 2 the graphs of ff and gg above are straight lines, and both pass through (2,0)(2, 0), so lim⁡x→2f(x)=0\lim_{x \to 2} f(x) = 0 and lim⁡x→2g(x)=0\lim_{x \to 2} g(x) = 0.

The slopes are f′(2)=3f'(2) = 3 (from (2,0)(2, 0) to (3,3)(3, 3)) and g′(2)=−1g'(2) = -1 (from (0,2)(0, 2) to (2,0)(2, 0)). Because the derivatives are constant near 22,

lim⁡x→2f(x)g(x)=lim⁡x→2f′(x)g′(x)=3−1=−3.\lim_{x \to 2} \frac{f(x)}{g(x)} = \lim_{x \to 2} \frac{f'(x)}{g'(x)} = \frac{3}{-1} = -3.

Tables and justification 🎯

Read the graph above. 🔍

Limit from given values. ✍️

Key Takeaways — Part 4

  • From a table or graph, use the given values to show both limits are 00 (or both infinite)
  • Then use the given derivative values: f′(a)g′(a)\frac{f'(a)}{g'(a)} when f′f' and g′g' are continuous
  • In free response, name both limits before you apply the rule

Up Next: Part 5 — common traps and the final assessment.

Part 5: Traps and Final Assessment

L'Hospital's Rule

Part 5 of 5 — Common Traps and Final Assessment

Trap 1: Using the Rule When the Form Is Not Indeterminate

lim⁡x→0cos⁡x1+x\lim_{x \to 0} \frac{\cos x}{1 + x}

Substitution gives 11=1\frac{1}{1} = 1, which is the limit. Differentiating anyway gives −sin⁡x1→0\frac{-\sin x}{1} \to 0, a wrong answer. The rule's conclusion is only guaranteed for 00\frac{0}{0} and ∞∞\frac{\infty}{\infty}.

Trap 2: Using the Quotient Rule

The rule uses f′(x)g′(x)\frac{f'(x)}{g'(x)}, two separate derivatives. The quotient rule computes (fg)′\left(\frac{f}{g}\right)', a different expression that does not give the limit.

Trap 3: Applying It Again After the Form Is Gone

lim⁡x→01−cos⁡xx2+x\lim_{x \to 0} \frac{1 - \cos x}{x^2 + x}

Once: sin⁡x2x+1\frac{\sin x}{2x + 1}. Substitution now gives 01=0\frac{0}{1} = 0, so the limit is 00. Applying the rule a second time would give cos⁡x2→12\frac{\cos x}{2} \to \frac{1}{2}, which is wrong.

Trap 4: Skipping the Justification

On free response, state that the numerator and the denominator both approach 00 (or both are infinite) before using the rule.

TrapFix
Not indeterminateSubstitute first; if you get a number, stop
Quotient ruleDifferentiate top and bottom separately
One step too manyRe-check the form after every application
No justificationName both limits, then apply the rule

Final Assessment — Set 1 🎯

Final Assessment — Set 2 🎯

Spot the trap. 🔍

Final challenge. ✍️

L'Hospital's Rule — Complete! 🎓

PartTopicStatus
1Indeterminate forms and the rule✅
200\frac{0}{0} limits, including repeated use✅
3∞∞\frac{\infty}{\infty} limits and growth rates✅
4Tables, graphs and justification✅
5Traps and final assessment✅

Key Fact: Check the form, differentiate the top and the bottom separately, and re-check the form after every step.