← MathScape

L'Hospital's Rule

MATH162
Reference: Stewart 6.8  •  Chapter: 6  •  Section: 8

Navigation: Wiki Home > Skills > L'Hospital's Rule

L'Hospital's Rule

The Rule That Turns Limits Into Derivatives

When direct substitution gives you $\frac{0}{0}$ or $\frac{\infty}{\infty}$, you're stuck. The limit exists, but you can't find it by plugging in values. L'Hospital's Rule provides an elegant escape: differentiate the numerator and denominator separately, then try the limit again.

Why does this work? Intuitively, when both $f(x)$ and $g(x)$ approach 0 (or both approach $\infty$), the ratio $\frac{f(x)}{g(x)}$ depends on how fast each function approaches that value. Derivatives measure rates of change—exactly what we need.

This single technique handles most of the "hard" limits you'll encounter in calculus.

Prerequisite Map

Prerequisites
Indeterminate FormsDerivative RulesChain Rule
This skill
L'Hospital's Rule

Quick Reference

Property Value
Section Stewart 6.8
Course MATH162
Difficulty Intermediate
Time ~20 minutes

Key Concepts

The Rule

L'Hospital's Rule: Suppose $f$ and $g$ are differentiable and $g'(x) \neq 0$ near $a$ (except possibly at $a$). If

$$\lim_{x \to a} f(x) = 0 \text{ and } \lim_{x \to a} g(x) = 0$$

or

$$\lim_{x \to a} f(x) = \pm\infty \text{ and } \lim_{x \to a} g(x) = \pm\infty$$

then

$$\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 equals $\pm\infty$).

Critical Points to Remember

  1. Check the form FIRST. L'Hospital's Rule only applies to $\frac{0}{0}$ or $\frac{\infty}{\infty}$.
  1. Differentiate numerator and denominator SEPARATELY. This is NOT the quotient rule!
  1. The rule extends to one-sided limits and limits at $\pm\infty$.
  1. You may need to apply the rule multiple times if the result is still indeterminate.
  1. After differentiating, always check if the new limit is determinate — don't automatically differentiate again.

Procedure

Step 1: Verify the limit has form $\frac{0}{0}$ or $\frac{\infty}{\infty}$.

Step 2: Differentiate numerator and denominator separately: $$\lim_{x \to a} \frac{f(x)}{g(x)} = \lim_{x \to a} \frac{f'(x)}{g'(x)}$$

Step 3: Evaluate the new limit:

Common Mistake: Using the Quotient Rule

WRONG: $\lim_{x \to 0} \frac{\sin x}{x} = \lim_{x \to 0} \frac{\cos x \cdot x - \sin x \cdot 1}{x^2}$ ✗

RIGHT: $\lim_{x \to 0} \frac{\sin x}{x} = \lim_{x \to 0} \frac{\cos x}{1} = 1$ ✓

L'Hospital's Rule says: differentiate top and bottom separately, not using the quotient rule.

Common Mistake: Applying When It Doesn't Apply

WRONG: $$\lim_{x \to \pi} \frac{\sin x}{1 - \cos x} \stackrel{?}{=} \lim_{x \to \pi} \frac{\cos x}{\sin x}$$

This is wrong because at $x = \pi$:

The form is $\frac{0}{2}$, which is NOT indeterminate! The answer is simply $0$.

Always check the form before applying L'Hospital's Rule.

Why It Works (Intuition)

Near $x = a$, if $f(a) = g(a) = 0$, both functions look approximately linear:

Their ratio is approximately: $$\frac{f(x)}{g(x)} \approx \frac{f'(a)(x-a)}{g'(a)(x-a)} = \frac{f'(a)}{g'(a)}$$

The $(x - a)$ terms cancel, leaving the ratio of derivatives.

        f(x)                     f'(a)·(x-a)
        ────  ≈  ─────────────  =  ─────────
        g(x)     g'(a)·(x-a)       g'(a)

         tangent line approximation

Worked Examples

Example 1: Basic $\frac{0}{0}$

Find $\lim_{x \to 1} \frac{\ln x}{x - 1}$.

Check form: As $x \to 1$: $\ln 1 = 0$ and $1 - 1 = 0$. Form: $\frac{0}{0}$ ✓

Apply L'Hospital's Rule: $$\lim_{x \to 1} \frac{\ln x}{x - 1} = \lim_{x \to 1} \frac{1/x}{1} = \lim_{x \to 1} \frac{1}{x} = 1$$

Example 2: $\frac{\infty}{\infty}$ with Repeated Application

Find $\lim_{x \to \infty} \frac{e^x}{x^2}$.

Check form: As $x \to \infty$: $e^x \to \infty$ and $x^2 \to \infty$. Form: $\frac{\infty}{\infty}$ ✓

First application: $$\lim_{x \to \infty} \frac{e^x}{x^2} = \lim_{x \to \infty} \frac{e^x}{2x}$$

Check form again: Still $\frac{\infty}{\infty}$ ✓

Second application: $$\lim_{x \to \infty} \frac{e^x}{2x} = \lim_{x \to \infty} \frac{e^x}{2} = \infty$$

Conclusion: $\lim_{x \to \infty} \frac{e^x}{x^2} = \infty$

This shows that $e^x$ grows faster than any polynomial!

Example 3: Simplify Instead of Re-applying

Find $\lim_{x \to \infty} \frac{\ln x}{\sqrt{x}}$.

Check form: $\frac{\infty}{\infty}$ ✓

First application: $$\lim_{x \to \infty} \frac{\ln x}{\sqrt{x}} = \lim_{x \to \infty} \frac{1/x}{1/(2\sqrt{x})}$$

Simplify instead of differentiating again: $$\frac{1/x}{1/(2\sqrt{x})} = \frac{2\sqrt{x}}{x} = \frac{2}{\sqrt{x}}$$

$$\lim_{x \to \infty} \frac{2}{\sqrt{x}} = 0$$

Key insight: After one application, the expression simplified to something easy. Don't blindly re-apply!

Practice Problems

Level 1 Direct Application

Evaluate each limit using L'Hospital's Rule:

  1. $\displaystyle\lim_{x \to 0} \frac{e^x - 1}{x}$
  2. $\displaystyle\lim_{x \to 0} \frac{\sin x}{x}$
Thought Process

First verify each is $\frac{0}{0}$, then differentiate top and bottom separately.

For (a): $e^0 - 1 = 0$ and $0 = 0$. ✓ For (b): $\sin 0 = 0$ and $0 = 0$. ✓

Show Answer

(a) Form: $\frac{0}{0}$ ✓

$$\lim_{x \to 0} \frac{e^x - 1}{x} = \lim_{x \to 0} \frac{e^x}{1} = e^0 = \boxed{1}$$

(b) Form: $\frac{0}{0}$ ✓

$$\lim_{x \to 0} \frac{\sin x}{x} = \lim_{x \to 0} \frac{\cos x}{1} = \cos 0 = \boxed{1}$$

Level 2 Repeated Application

Evaluate $\displaystyle\lim_{x \to 0} \frac{1 - \cos x}{x^2}$.

Thought Process

Check: $1 - \cos 0 = 0$ and $0^2 = 0$. Form: $\frac{0}{0}$.

Apply L'Hospital's Rule once:

  • Numerator derivative: $\sin x$
  • Denominator derivative: $2x$

Check again: $\sin 0 = 0$ and $2(0) = 0$. Still $\frac{0}{0}$!

Apply again.

Show Answer

First check: $\frac{1 - \cos 0}{0^2} = \frac{0}{0}$ ✓

First application: $$\lim_{x \to 0} \frac{1 - \cos x}{x^2} = \lim_{x \to 0} \frac{\sin x}{2x}$$

Check again: $\frac{\sin 0}{2 \cdot 0} = \frac{0}{0}$ ✓

Second application: $$\lim_{x \to 0} \frac{\sin x}{2x} = \lim_{x \to 0} \frac{\cos x}{2} = \frac{\cos 0}{2} = \frac{1}{2}$$

$$\boxed{\lim_{x \to 0} \frac{1 - \cos x}{x^2} = \frac{1}{2}}$$

Level 3 Limits at Infinity

Evaluate each limit:

  1. $\displaystyle\lim_{x \to \infty} \frac{x^3}{e^x}$
  2. $\displaystyle\lim_{x \to \infty} \frac{\ln x}{x^{1/3}}$
Thought Process

For (a): Both numerator and denominator go to $\infty$. Keep applying L'Hospital's Rule until the polynomial power drops to 0.

For (b): Both go to $\infty$. After one application, simplify instead of differentiating again.

Show Answer

(a) Form: $\frac{\infty}{\infty}$ ✓

$$\lim_{x \to \infty} \frac{x^3}{e^x} = \lim_{x \to \infty} \frac{3x^2}{e^x} = \lim_{x \to \infty} \frac{6x}{e^x} = \lim_{x \to \infty} \frac{6}{e^x} = 0$$

$$\boxed{\lim_{x \to \infty} \frac{x^3}{e^x} = 0}$$

(b) Form: $\frac{\infty}{\infty}$ ✓

$$\lim_{x \to \infty} \frac{\ln x}{x^{1/3}} = \lim_{x \to \infty} \frac{1/x}{\frac{1}{3}x^{-2/3}} = \lim_{x \to \infty} \frac{3x^{2/3}}{x} = \lim_{x \to \infty} \frac{3}{x^{1/3}} = 0$$

$$\boxed{\lim_{x \to \infty} \frac{\ln x}{x^{1/3}} = 0}$$

Level 4 Tricky: When L'Hospital's Rule Fails

What happens if you try to use L'Hospital's Rule on $\displaystyle\lim_{x \to \infty} \frac{x}{\sqrt{x^2 + 1}}$?

Find the limit using a different method.

Thought Process

Check: $\frac{\infty}{\infty}$ ✓

Apply L'Hospital's Rule:

  • Numerator derivative: $1$
  • Denominator derivative: $\frac{x}{\sqrt{x^2+1}}$

New limit: $\lim_{x \to \infty} \frac{1}{x/\sqrt{x^2+1}} = \lim_{x \to \infty} \frac{\sqrt{x^2+1}}{x}$

This is the reciprocal of the original! L'Hospital's Rule leads to a loop.

Try algebraic simplification instead.

Show Answer

L'Hospital's Rule attempt: $$\lim_{x \to \infty} \frac{x}{\sqrt{x^2 + 1}} = \lim_{x \to \infty} \frac{1}{\frac{x}{\sqrt{x^2+1}}} = \lim_{x \to \infty} \frac{\sqrt{x^2+1}}{x}$$

This is the reciprocal of the original limit! Applying L'Hospital's Rule again gives us back the original. The rule doesn't help here.

Algebraic method: Divide numerator and denominator by $x$: $$\lim_{x \to \infty} \frac{x}{\sqrt{x^2 + 1}} = \lim_{x \to \infty} \frac{1}{\sqrt{1 + 1/x^2}} = \frac{1}{\sqrt{1 + 0}} = 1$$

$$\boxed{\lim_{x \to \infty} \frac{x}{\sqrt{x^2 + 1}} = 1}$$

Lesson: L'Hospital's Rule doesn't always lead to a simpler limit. Sometimes algebra is better.

Level 5 Growth Rate Comparison

Prove that for any positive integer $n$:

$$\lim_{x \to \infty} \frac{e^x}{x^n} = \infty$$

What does this tell us about the relative growth rates of exponential and polynomial functions?

Thought Process

Use L'Hospital's Rule repeatedly. Each application reduces the power of $x$ in the denominator by 1, while the numerator stays as $e^x$.

After $n$ applications, the denominator becomes a constant (specifically, $n!$).

Show Answer

Proof by repeated L'Hospital's Rule:

Form: $\frac{\infty}{\infty}$ ✓

Apply L'Hospital's Rule $n$ times:

$$\lim_{x \to \infty} \frac{e^x}{x^n} = \lim_{x \to \infty} \frac{e^x}{nx^{n-1}} = \lim_{x \to \infty} \frac{e^x}{n(n-1)x^{n-2}} = \cdots$$

After $n$ applications: $$= \lim_{x \to \infty} \frac{e^x}{n!} = \infty$$

Since $n! = n(n-1)(n-2)\cdots 2 \cdot 1$ is a constant, and $e^x \to \infty$.

Conclusion: $\lim_{x \to \infty} \frac{e^x}{x^n} = \infty$ for all positive integers $n$. $\square$

Interpretation: The exponential function $e^x$ grows faster than any polynomial $x^n$, no matter how large $n$ is. We write this as: $$x^n \ll e^x \quad \text{as } x \to \infty$$

This is a fundamental hierarchy: polynomials grow slower than exponentials.

Conceptual Questions (CCI-Style)

Level 2 Understanding the Rule

A student applies L'Hospital's Rule to $\lim_{x \to 0} \frac{x^2 + 1}{x}$ and gets:

$$\lim_{x \to 0} \frac{x^2 + 1}{x} = \lim_{x \to 0} \frac{2x}{1} = 0$$

What is wrong with this reasoning?

Thought Process

Check the form at $x = 0$:

  • Numerator: $0^2 + 1 = 1$
  • Denominator: $0$

What form is $\frac{1}{0}$?

Show Answer

The error: The student didn't verify the indeterminate form before applying L'Hospital's Rule.

At $x = 0$:

  • Numerator: $0^2 + 1 = 1$
  • Denominator: $0$

The form is $\frac{1}{0}$, which is NOT indeterminate. L'Hospital's Rule does not apply!

Correct analysis: The limit $\lim_{x \to 0} \frac{x^2 + 1}{x}$ does not exist because the numerator approaches 1 (positive) while the denominator approaches 0. From the right, the limit is $+\infty$; from the left, it's $-\infty$.

Level 3 Why Not the Quotient Rule?

Explain why L'Hospital's Rule uses $\frac{f'(x)}{g'(x)}$ rather than $\left(\frac{f(x)}{g(x)}\right)'$.

Thought Process

The quotient rule gives: $\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}$

What happens to this as $x \to a$ when $f(a) = g(a) = 0$?

Show Answer

The quotient rule gives: $$\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}$$

Near $a$ where $f(a) = g(a) = 0$:

  • Numerator: $f'g - fg' \to f'(a) \cdot 0 - 0 \cdot g'(a) = 0$
  • Denominator: $g^2 \to 0$

So $\left(\frac{f}{g}\right)'$ is still indeterminate $\frac{0}{0}$!

The ratio of derivatives $\frac{f'(x)}{g'(x)}$ is simpler because:

  • Near $a$: $f(x) \approx f'(a)(x-a)$ and $g(x) \approx g'(a)(x-a)$
  • So $\frac{f(x)}{g(x)} \approx \frac{f'(a)}{g'(a)}$

The rule captures the rate at which each function approaches 0, not the derivative of their ratio.

Mastery Checklist

Mental Model

The Speed Camera Analogy:

Imagine two cars (numerator and denominator) both approaching a finish line (0 or $\infty$). If they both cross at the same instant, who's "winning"? You need a speed camera (derivative) to measure who's approaching faster.

L'Hospital's Rule replaces the question "who reached the finish line?" with "who was going faster?"—which actually determines the race's outcome.


Connections

Looking back:

Looking ahead:


Previous Up Next
Recognizing Indeterminate Forms Skills Index Converting Indeterminate Products

Last updated: 2026-01-22