Skip to content

L'Hôpital's Rule

Evaluating indeterminate forms using derivatives

Written and reviewed by the Study Mondo Education TeamLast updated
🎯⭐ INTERACTIVE LESSON

Try the Interactive Version!

Learn step-by-step with practice exercises built right in.

Start Interactive Lesson →

🔄 L'Hôpital's Rule

What is L'Hôpital's Rule?

L'Hôpital's Rule (pronounced "low-pea-tahl") is a powerful technique for evaluating limits that result in indeterminate forms like 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}.

💡 Key Idea: When direct substitution gives 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}, take the derivative of the top and bottom separately, then try again!


The Rule (Formal Statement)

Suppose 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 (or both approach ±∞\pm\infty).

If lim⁡x→af′(x)g′(x)\lim_{x \to a} \frac{f'(x)}{g'(x)} exists, 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)}

Important: This works for x→ax \to a, x→a+x \to a^+, x→a−x \to a^-, x→∞x \to \infty, or x→−∞x \to -\infty!


When to Use L'Hôpital's Rule

Indeterminate Forms That Work

L'Hôpital's Rule applies ONLY to these forms:

  1. 00\frac{0}{0} ← most common
  2. ∞∞\frac{\infty}{\infty} ← also very common

Forms That DON'T Work Directly

These are NOT indeterminate forms for L'Hôpital's Rule:

  • 10\frac{1}{0} (this is ±∞\pm\infty, not indeterminate)
  • 0∞\frac{0}{\infty} (this equals 0)
  • ∞0\frac{\infty}{0} (this is ±∞\pm\infty)

But wait! We can sometimes convert other indeterminate forms:

  • 0⋅∞0 \cdot \infty → rewrite as 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}
  • ∞−∞\infty - \infty → combine and rewrite as a fraction
  • 000^0, 1∞1^\infty, ∞0\infty^0 → use logarithms first!

How to Apply L'Hôpital's Rule

Step-by-Step Process

Step 1: Try direct substitution first

Step 2: Check if you get 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}

  • If YES → L'Hôpital's Rule applies!
  • If NO → use another method

Step 3: Take derivatives of numerator and denominator separately 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)}

Step 4: Evaluate the new limit

  • If you get a number, you're done!
  • If you get 00\frac{0}{0} or ∞∞\frac{\infty}{\infty} again, apply L'Hôpital's Rule again!
  • If you get something else, stop and use a different method

Example 1: Basic Application

Evaluate lim⁡x→0sin⁡xx\lim_{x \to 0} \frac{\sin x}{x}

Step 1: Direct substitution

sin⁡00=00\frac{\sin 0}{0} = \frac{0}{0} ← indeterminate form!


Step 2: Apply L'Hôpital's Rule

Take derivatives of top and bottom separately:

lim⁡x→0sin⁡xx=lim⁡x→0(sin⁡x)′(x)′\lim_{x \to 0} \frac{\sin x}{x} = \lim_{x \to 0} \frac{(\sin x)'}{(x)'}

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


Step 3: Evaluate

=cos⁡01=11=1= \frac{\cos 0}{1} = \frac{1}{1} = 1

Answer: lim⁡x→0sin⁡xx=1\lim_{x \to 0} \frac{\sin x}{x} = 1


Example 2: Apply Twice

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

First attempt: Direct substitution

1−cos⁡002=1−10=00\frac{1 - \cos 0}{0^2} = \frac{1-1}{0} = \frac{0}{0} ← use L'Hôpital's!


Apply L'Hôpital's Rule (first time)

lim⁡x→01−cos⁡xx2=lim⁡x→0(1−cos⁡x)′(x2)′\lim_{x \to 0} \frac{1 - \cos x}{x^2} = \lim_{x \to 0} \frac{(1-\cos x)'}{(x^2)'}

=lim⁡x→0sin⁡x2x= \lim_{x \to 0} \frac{\sin x}{2x}


Check: Direct substitution again

sin⁡02(0)=00\frac{\sin 0}{2(0)} = \frac{0}{0} ← still indeterminate!


Apply L'Hôpital's Rule (second time)

lim⁡x→0sin⁡x2x=lim⁡x→0(sin⁡x)′(2x)′\lim_{x \to 0} \frac{\sin x}{2x} = \lim_{x \to 0} \frac{(\sin x)'}{(2x)'}

=lim⁡x→0cos⁡x2= \lim_{x \to 0} \frac{\cos x}{2}

=cos⁡02=12= \frac{\cos 0}{2} = \frac{1}{2}

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


Example 3: Infinity Form

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

Step 1: Check the form

As x→∞x \to \infty: ln⁡x→∞\ln x \to \infty and x→∞x \to \infty

Form: ∞∞\frac{\infty}{\infty} ← L'Hôpital's applies!


Step 2: Apply L'Hôpital's Rule

lim⁡x→∞ln⁡xx=lim⁡x→∞(ln⁡x)′(x)′\lim_{x \to \infty} \frac{\ln x}{x} = \lim_{x \to \infty} \frac{(\ln x)'}{(x)'}

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

=lim⁡x→∞1x=0= \lim_{x \to \infty} \frac{1}{x} = 0

Answer: lim⁡x→∞ln⁡xx=0\lim_{x \to \infty} \frac{\ln x}{x} = 0

Interpretation: Logarithms grow slower than linear functions!


Converting Other Indeterminate Forms

Form: 0⋅∞0 \cdot \infty

Strategy: Rewrite as a fraction

lim⁡x→0+xln⁡x\lim_{x \to 0^+} x \ln x

This is 0⋅(−∞)0 \cdot (-\infty) form.

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

Now it's −∞∞\frac{-\infty}{\infty} form!

Apply L'Hôpital's: =lim⁡x→0+1/x−1/x2=lim⁡x→0+x2−x=lim⁡x→0+(−x)=0= \lim_{x \to 0^+} \frac{1/x}{-1/x^2} = \lim_{x \to 0^+} \frac{x^2}{-x} = \lim_{x \to 0^+} (-x) = 0

Form: ∞−∞\infty - \infty

Strategy: Combine into a single fraction

lim⁡x→0+(1x−1sin⁡x)\lim_{x \to 0^+} \left(\frac{1}{x} - \frac{1}{\sin x}\right)

This is ∞−∞\infty - \infty form.

Combine: lim⁡x→0+sin⁡x−xxsin⁡x\lim_{x \to 0^+} \frac{\sin x - x}{x \sin x}

Now it's 00\frac{0}{0} form → use L'Hôpital's!

Form: 1∞1^\infty, 000^0, ∞0\infty^0

Strategy: Take natural log first, use L'Hôpital's, then exponentiate

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

This is 000^0 form.

Let y=xxy = x^x, then ln⁡y=xln⁡x\ln y = x \ln x

Find lim⁡x→0+ln⁡y=lim⁡x→0+xln⁡x=0\lim_{x \to 0^+} \ln y = \lim_{x \to 0^+} x \ln x = 0 (from earlier)

Therefore: lim⁡x→0+y=e0=1\lim_{x \to 0^+} y = e^0 = 1


Example: Exponential Form

Evaluate lim⁡x→∞(1+1x)x\lim_{x \to \infty} \left(1 + \frac{1}{x}\right)^x

This is 1∞1^\infty form.

Step 1: Take natural log

Let y=(1+1x)xy = \left(1 + \frac{1}{x}\right)^x

ln⁡y=xln⁡(1+1x)\ln y = x \ln\left(1 + \frac{1}{x}\right)


Step 2: Evaluate limit of ln⁡y\ln y

lim⁡x→∞ln⁡y=lim⁡x→∞xln⁡(1+1x)\lim_{x \to \infty} \ln y = \lim_{x \to \infty} x \ln\left(1 + \frac{1}{x}\right)

This is ∞⋅0\infty \cdot 0 form.

Rewrite: lim⁡x→∞ln⁡(1+1/x)1/x\lim_{x \to \infty} \frac{\ln(1 + 1/x)}{1/x} (now 00\frac{0}{0} form)


Step 3: Apply L'Hôpital's

=lim⁡x→∞11+1/x⋅(−1/x2)−1/x2= \lim_{x \to \infty} \frac{\frac{1}{1+1/x} \cdot (-1/x^2)}{-1/x^2}

=lim⁡x→∞11+1/x=1= \lim_{x \to \infty} \frac{1}{1+1/x} = 1


Step 4: Exponentiate

lim⁡x→∞y=elim⁡ln⁡y=e1=e\lim_{x \to \infty} y = e^{\lim \ln y} = e^1 = e

Answer: lim⁡x→∞(1+1x)x=e\lim_{x \to \infty} \left(1 + \frac{1}{x}\right)^x = e

This is actually the definition of ee! 🎉


⚠️ Common Mistakes

Mistake 1: Using When It Doesn't Apply

WRONG: Using L'Hôpital's for lim⁡x→0x1=0\lim_{x \to 0} \frac{x}{1} = 0

This is NOT indeterminate! Just substitute.

Mistake 2: Taking Derivative of the Whole Fraction

WRONG: ddx[f(x)g(x)]\frac{d}{dx}\left[\frac{f(x)}{g(x)}\right] (using quotient rule)

RIGHT: f′(x)g′(x)\frac{f'(x)}{g'(x)} (derivatives separately!)

L'Hôpital's says take derivatives of top and bottom separately, not the derivative of the quotient!

Mistake 3: Not Checking the Form

Always verify you have 00\frac{0}{0} or ∞∞\frac{\infty}{\infty} before applying!

Mistake 4: Applying Infinitely

If L'Hôpital's keeps giving 00\frac{0}{0}, you might be in a loop. Try a different method!

Mistake 5: Forgetting to Simplify

Sometimes simplifying algebraically is easier than using L'Hôpital's multiple times.


When NOT to Use L'Hôpital's Rule

Alternative 1: Algebra is Easier

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

Yes, L'Hôpital's would work, but factoring is simpler!

Alternative 2: Standard Limits

You should know: lim⁡x→0sin⁡xx=1\lim_{x \to 0} \frac{\sin x}{x} = 1

Don't need L'Hôpital's every time!

Alternative 3: The Form Doesn't Match

If you get 50\frac{5}{0}, that's ∞\infty (or −∞-\infty), not indeterminate!


Quick Reference Chart

Original FormWhat to DoResult Form
00\frac{0}{0}L'Hôpital's directlyApply rule
∞∞\frac{\infty}{\infty}L'Hôpital's directlyApply rule
0⋅∞0 \cdot \inftyRewrite as fraction00\frac{0}{0} or ∞∞\frac{\infty}{\infty}
∞−∞\infty - \inftyCombine fractions00\frac{0}{0} or ∞∞\frac{\infty}{\infty}
1∞1^\infty, 000^0, ∞0\infty^0Take ln first0⋅∞0 \cdot \infty → fraction

Growth Rates Using L'Hôpital's

L'Hôpital's Rule helps us compare growth rates:

Logarithms grow slower than polynomials: lim⁡x→∞ln⁡xxp=0 for any p>0\lim_{x \to \infty} \frac{\ln x}{x^p} = 0 \text{ for any } p > 0

Polynomials grow slower than exponentials: lim⁡x→∞xnex=0 for any n\lim_{x \to \infty} \frac{x^n}{e^x} = 0 \text{ for any } n

Order from slowest to fastest: ln⁡x≪xp≪ex≪x!\ln x \ll x^p \ll e^x \ll x!


Historical Note

Named after Guillaume de l'Hôpital (1661-1704), though it was actually discovered by his teacher Johann Bernoulli!

L'Hôpital paid Bernoulli to teach him calculus and share his discoveries. The rule appeared in L'Hôpital's book, the first calculus textbook ever published!


📝 Practice Strategy

  1. Always try direct substitution first - might not be indeterminate!
  2. Check the form - only 00\frac{0}{0} and ∞∞\frac{\infty}{\infty} work directly
  3. Convert other forms to one of the two usable forms
  4. Take derivatives separately - not the derivative of the quotient!
  5. Simplify when possible - sometimes algebra is faster
  6. Be ready to apply multiple times - but watch for loops
  7. For exponential forms, take ln first, then exponentiate at the end

📚 Practice Problems

1Problem 1medium

❓ Question:

Evaluate lim⁡x→0ex−1−xx2\lim_{x \to 0} \frac{e^x - 1 - x}{x^2} using L'Hôpital's Rule.

💡 Show Solution

Step 1: Direct substitution

e0−1−002=1−1−00=00\frac{e^0 - 1 - 0}{0^2} = \frac{1 - 1 - 0}{0} = \frac{0}{0}

Indeterminate form! ✓


Step 2: Apply L'Hôpital's Rule (first time)

Take derivatives of numerator and denominator separately:

Numerator: (ex−1−x)′=ex−1(e^x - 1 - x)' = e^x - 1

Denominator: (x2)′=2x(x^2)' = 2x

lim⁡x→0ex−1−xx2=lim⁡x→0ex−12x\lim_{x \to 0} \frac{e^x - 1 - x}{x^2} = \lim_{x \to 0} \frac{e^x - 1}{2x}


Step 3: Check the new limit

e0−12(0)=1−10=00\frac{e^0 - 1}{2(0)} = \frac{1-1}{0} = \frac{0}{0}

Still indeterminate! Apply L'Hôpital's again.


Step 4: Apply L'Hôpital's Rule (second time)

Numerator: (ex−1)′=ex(e^x - 1)' = e^x

Denominator: (2x)′=2(2x)' = 2

lim⁡x→0ex−12x=lim⁡x→0ex2\lim_{x \to 0} \frac{e^x - 1}{2x} = \lim_{x \to 0} \frac{e^x}{2}


Step 5: Evaluate

=e02=12= \frac{e^0}{2} = \frac{1}{2}

Answer: lim⁡x→0ex−1−xx2=12\lim_{x \to 0} \frac{e^x - 1 - x}{x^2} = \frac{1}{2}

2Problem 2medium

❓ Question:

Evaluate lim⁡x→∞x2ex\lim_{x \to \infty} \frac{x^2}{e^x} using L'Hôpital's Rule. What does this tell you about growth rates?

💡 Show Solution

Step 1: Check the form

As x→∞x \to \infty: numerator x2→∞x^2 \to \infty and denominator ex→∞e^x \to \infty

Form: ∞∞\frac{\infty}{\infty} ← L'Hôpital's applies!


Step 2: Apply L'Hôpital's Rule (first time)

lim⁡x→∞x2ex=lim⁡x→∞(x2)′(ex)′\lim_{x \to \infty} \frac{x^2}{e^x} = \lim_{x \to \infty} \frac{(x^2)'}{(e^x)'}

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


Step 3: Check the form again

As x→∞x \to \infty: 2x→∞2x \to \infty and ex→∞e^x \to \infty

Still ∞∞\frac{\infty}{\infty} form!


Step 4: Apply L'Hôpital's Rule (second time)

lim⁡x→∞2xex=lim⁡x→∞(2x)′(ex)′\lim_{x \to \infty} \frac{2x}{e^x} = \lim_{x \to \infty} \frac{(2x)'}{(e^x)'}

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


Step 5: Evaluate

=2∞=0= \frac{2}{\infty} = 0

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


Interpretation:

Even though x2x^2 grows to infinity, exe^x grows so much faster that the ratio goes to 0.

Growth rate conclusion: Exponential functions grow faster than any polynomial!

In general: lim⁡x→∞xnex=0\lim_{x \to \infty} \frac{x^n}{e^x} = 0 for any positive integer nn.

3Problem 3expert

❓ Question:

Evaluate lim⁡x→0+(sin⁡x)x\lim_{x \to 0^+} (\sin x)^x using L'Hôpital's Rule.

💡 Show Solution

Step 1: Identify the form

As x→0+x \to 0^+: sin⁡x→0+\sin x \to 0^+

So (sin⁡x)x(\sin x)^x is the form 000^0 (indeterminate!)

Can't use L'Hôpital's directly on this form.


Step 2: Use logarithms

Let y=(sin⁡x)xy = (\sin x)^x

Take natural log of both sides: ln⁡y=ln⁡[(sin⁡x)x]=xln⁡(sin⁡x)\ln y = \ln[(\sin x)^x] = x \ln(\sin x)


Step 3: Find limit of ln⁡y\ln y

lim⁡x→0+ln⁡y=lim⁡x→0+xln⁡(sin⁡x)\lim_{x \to 0^+} \ln y = \lim_{x \to 0^+} x \ln(\sin x)

This is 0⋅(−∞)0 \cdot (-\infty) form.


Step 4: Rewrite as a fraction

lim⁡x→0+xln⁡(sin⁡x)=lim⁡x→0+ln⁡(sin⁡x)1/x\lim_{x \to 0^+} x \ln(\sin x) = \lim_{x \to 0^+} \frac{\ln(\sin x)}{1/x}

This is −∞∞\frac{-\infty}{\infty} form → can use L'Hôpital's!


Step 5: Apply L'Hôpital's Rule

Numerator: (ln⁡(sin⁡x))′=1sin⁡x⋅cos⁡x=cos⁡xsin⁡x=cot⁡x(\ln(\sin x))' = \frac{1}{\sin x} \cdot \cos x = \frac{\cos x}{\sin x} = \cot x

Denominator: (1/x)′=−1/x2(1/x)' = -1/x^2

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

=lim⁡x→0+cos⁡xsin⁡x⋅(−x2)= \lim_{x \to 0^+} \frac{\cos x}{\sin x} \cdot (-x^2)

=lim⁡x→0+−x2cos⁡xsin⁡x= \lim_{x \to 0^+} \frac{-x^2 \cos x}{\sin x}


Step 6: Simplify and apply L'Hôpital's again

=lim⁡x→0+−x2cos⁡xsin⁡x=lim⁡x→0+(−x⋅xcos⁡xsin⁡x)= \lim_{x \to 0^+} \frac{-x^2 \cos x}{\sin x} = \lim_{x \to 0^+} \left(-x \cdot \frac{x\cos x}{\sin x}\right)

Since lim⁡x→0sin⁡xx=1\lim_{x \to 0} \frac{\sin x}{x} = 1, we have lim⁡x→0xsin⁡x=1\lim_{x \to 0} \frac{x}{\sin x} = 1

=lim⁡x→0+(−x)⋅cos⁡x⋅1=0⋅1=0= \lim_{x \to 0^+} (-x) \cdot \cos x \cdot 1 = 0 \cdot 1 = 0


Step 7: Exponentiate to find yy

lim⁡x→0+ln⁡y=0\lim_{x \to 0^+} \ln y = 0

Therefore: lim⁡x→0+y=e0=1\lim_{x \to 0^+} y = e^0 = 1

Answer: lim⁡x→0+(sin⁡x)x=1\lim_{x \to 0^+} (\sin x)^x = 1

4Problem 4medium

❓ Question:

Evaluate lim(x→0) (eˣ - 1)/x using L'Hôpital's Rule.

💡 Show Solution

Step 1: Check form: As x→0: eˣ - 1 → e⁰ - 1 = 0 x → 0 Form is 0/0 ✓ Can use L'Hôpital's

Step 2: Apply L'Hôpital's Rule: lim(x→0) (eˣ - 1)/x = lim(x→0) d/dx[eˣ - 1]/d/dx[x]

Step 3: Differentiate: d/dx[eˣ - 1] = eˣ d/dx[x] = 1

Step 4: Evaluate new limit: lim(x→0) eˣ/1 = e⁰/1 = 1

Answer: 1

5Problem 5hard

❓ Question:

Find lim(x→∞) (ln(x))/x using L'Hôpital's Rule.

💡 Show Solution

Step 1: Check form: As x→∞: ln(x) → ∞ x → ∞ Form is ∞/∞ ✓ Can use L'Hôpital's

Step 2: Apply L'Hôpital's Rule: lim(x→∞) (ln(x))/x = lim(x→∞) d/dx[ln(x)]/d/dx[x]

Step 3: Differentiate: d/dx[ln(x)] = 1/x d/dx[x] = 1

Step 4: Evaluate new limit: lim(x→∞) (1/x)/1 = lim(x→∞) 1/x = 0

Step 5: Interpretation: Logarithm grows slower than any positive power of x

Answer: 0

Explain using:

📋 AP Calculus AB — Exam Format Guide

⏱ 3 hours 15 minutes📝 51 questions📊 4 sections
SectionFormatQuestionsTimeWeightCalculator
Multiple Choice (No Calculator)MCQ3060 min33.3%🚫
Multiple Choice (Calculator)MCQ1545 min16.7%✅
Free Response (Calculator)FRQ230 min16.7%✅
Free Response (No Calculator)FRQ460 min33.3%🚫

📊 Scoring: 1-5

5
Extremely Qualified
~20%
4
Well Qualified
~17%
3
Qualified
~19%
2
Possibly Qualified
~22%
1
No Recommendation
~22%

💡 Key Test-Day Tips

  • ✓Show all work on FRQs
  • ✓Use proper notation
  • ✓Check units
  • ✓Manage your time

⚠️ Common Mistakes: L'Hôpital's Rule

Avoid these 4 frequent errors

🌍 Real-World Applications: L'Hôpital's Rule

See how this math is used in the real world

📝 Worked Example: Related Rates — Expanding Circle

Problem:

A stone is dropped into a still pond, creating a circular ripple. The radius of the ripple is increasing at a rate of 22 cm/s. How fast is the area of the circle increasing when the radius is 1010 cm?

2Write the relationship between variables
3Differentiate both sides with respect to time
4Substitute known values

📌 Related Topics in Unit 4: Contextual Applications of Differentiation

❓ Frequently Asked Questions

What is L'Hôpital's Rule?▾
Evaluating indeterminate forms using derivatives
How can I study L'Hôpital's Rule effectively?▾
Start by reading the study notes and working through the examples on this page. Then use the flashcards to test your recall. Practice with the 5 problems provided, checking solutions as you go. Regular review and active practice are key to retention.
Is this L'Hôpital's Rule study guide free?▾
Yes — all study notes, flashcards, and practice problems for L'Hôpital's Rule on Study Mondo are free to access. No account is needed.
What course covers L'Hôpital's Rule?▾
L'Hôpital's Rule is part of the AP Calculus AB course on Study Mondo, specifically in the Unit 4: Contextual Applications of Differentiation section. You can explore the full course for more related topics and practice resources.
Are there practice problems for L'Hôpital's Rule?▾
Yes, this page includes 5 practice problems with detailed solutions. Each problem includes a step-by-step explanation to help you understand the approach.