01 / 21
\(\lim\)
\(\frac{f'(x)}{g'(x)}\)

L'Hôpital's
Rule

Master the technique for evaluating limits involving indeterminate forms by differentiating the numerator and denominator.

AP Calculus AB

What Is an Indeterminate Form?

When you substitute a limit value into a function and get an expression like \(\frac{0}{0}\) or \(\frac{\infty}{\infty}\), the result is called an indeterminate form. These expressions don't tell you what the limit actually is: the true value could be any real number, \(\infty\), or may not exist at all.

\(\frac{0}{0}\)
Both numerator and denominator approach zero
\(\frac{\infty}{\infty}\)
Both numerator and denominator grow without bound

Why Direct Substitution Fails

Consider \(\displaystyle\lim_{x \to 0} \frac{\sin x}{x}\). Plugging in \(x = 0\) gives \(\frac{0}{0}\), which is meaningless. Yet the limit equals 1. Direct substitution cannot resolve the "race" between numerator and denominator as both shrink toward zero.

0 π −π 2π −2π 1 Limit = 1
\(y = \frac{\sin x}{x}\)

The Big Idea Behind L'Hôpital's Rule

When \(\frac{f(x)}{g(x)}\) gives \(\frac{0}{0}\) or \(\frac{\infty}{\infty}\), both functions are approaching the same "finish line." The limit depends on how fast each function gets there: their rates of change.

L'Hôpital's Rule says: compare the derivatives instead. The ratio of the derivatives captures exactly the information that direct substitution lost.

L'Hôpital's Rule: Formal Statement

$$\lim_{x \to c} \frac{f(x)}{g(x)} = \lim_{x \to c} \frac{f'(x)}{g'(x)}$$

provided the right-hand limit exists (or is \(\pm\infty\)).

\(c\) can be finite
\(x \to 2\), \(x \to 0\), \(x \to -3\), etc.
\(c\) can be \(\pm\infty\)
\(x \to \infty\) or \(x \to -\infty\)

Three Conditions You Must Check

1
Indeterminate form: Confirm the limit gives \(\frac{0}{0}\) or \(\frac{\infty}{\infty}\) before applying the rule.
2
Differentiability: Both \(f(x)\) and \(g(x)\) must be differentiable near \(c\), and \(g'(x) \neq 0\) near \(c\).
3
Resulting limit exists: The limit of \(\frac{f'(x)}{g'(x)}\) must exist (or be \(\pm\infty\)). If it doesn't, L'Hôpital's Rule is inconclusive.

L'Hôpital's Rule vs. Quotient Rule

L'Hôpital's Rule Quotient Rule
Purpose Evaluate a limit Find a derivative
What you do Differentiate top and bottom separately Apply \(\frac{f'g - fg'}{g^2}\)
When to use Only for \(\frac{0}{0}\) or \(\frac{\infty}{\infty}\) Any time you need \(\frac{d}{dx}\left[\frac{f}{g}\right]\)
Common trap Applying the quotient rule by accident Confusing it with L'Hôpital's

How to Apply L'Hôpital's Rule

1
Substitute the limit value. Confirm the result is \(\frac{0}{0}\) or \(\frac{\infty}{\infty}\).
2
Differentiate the numerator \(f(x)\) to get \(f'(x)\). Differentiate the denominator \(g(x)\) to get \(g'(x)\). Do these separately.
3
Take the new limit: \(\displaystyle\lim_{x \to c} \frac{f'(x)}{g'(x)}\).
4
Repeat if the new limit is still indeterminate. Otherwise, state the answer.

Example 1: \(\frac{0}{0}\) Form

Evaluate \(\displaystyle\lim_{x \to 0} \frac{\sin x}{x}\).

1
Check the form: \(\frac{\sin 0}{0} = \frac{0}{0}\) ✓ Indeterminate.
2
Differentiate separately: \(f(x) = \sin x \Rightarrow f'(x) = \cos x\). \(g(x) = x \Rightarrow g'(x) = 1\).
3
New limit: \(\displaystyle\lim_{x \to 0} \frac{\cos x}{1} = \frac{\cos 0}{1} = \frac{1}{1}\).

Example 2: \(\frac{\infty}{\infty}\) Form

Evaluate \(\displaystyle\lim_{x \to \infty} \frac{e^x}{x^2}\).

1
Check: As \(x \to \infty\), both \(e^x \to \infty\) and \(x^2 \to \infty\). Form: \(\frac{\infty}{\infty}\) ✓
2
First application: \(\displaystyle\lim_{x \to \infty} \frac{e^x}{2x}\). Still \(\frac{\infty}{\infty}\): apply again.
3
Second application: \(\displaystyle\lim_{x \to \infty} \frac{e^x}{2} = \infty\).

Example 3: A More Subtle Limit

Evaluate \(\displaystyle\lim_{x \to 0} \frac{e^x - 1 - x}{x^2}\).

1
Check: \(\frac{e^0 - 1 - 0}{0^2} = \frac{0}{0}\) ✓
2
First application: \(\displaystyle\lim_{x \to 0} \frac{e^x - 1}{2x} = \frac{0}{0}\). Still indeterminate: apply again.
3
Second application: \(\displaystyle\lim_{x \to 0} \frac{e^x}{2} = \frac{1}{2}\).

Visualizing the Rate Comparison

Near \(x = 0\), the functions \(e^x - 1\) and \(x\) both approach 0, but at the same rate.

0 1 2 −1 0 1 2
\(y = x\)
\(y = e^x - 1\)
Same slope at origin

Other Indeterminate Forms

L'Hôpital's Rule only applies directly to \(\frac{0}{0}\) and \(\frac{\infty}{\infty}\). For other indeterminate forms, rewrite first:

\(0 \cdot \infty\)
Rewrite as \(\frac{f}{1/g}\) to get \(\frac{0}{0}\) or \(\frac{\infty}{\infty}\)
\(\infty - \infty\)
Combine into a single fraction, then apply
\(1^\infty,\; 0^0,\; \infty^0\)
Take \(\ln\), evaluate the limit, then exponentiate

Example 4: Converting \(0 \cdot \infty\)

Evaluate \(\displaystyle\lim_{x \to 0^+} x \ln x\).

1
Identify: As \(x \to 0^+\): \(x \to 0\) and \(\ln x \to -\infty\). Form: \(0 \cdot (-\infty)\).
2
Rewrite: \(x \ln x = \dfrac{\ln x}{1/x}\). Now: \(\frac{-\infty}{\infty}\) ✓
3
Apply: \(\displaystyle\lim_{x \to 0^+} \frac{1/x}{-1/x^2} = \lim_{x \to 0^+} (-x) = 0\).

Common Mistakes to Avoid

✕ Skipping the Check
Applying L'Hôpital's Rule when the form is NOT indeterminate (e.g., \(\frac{1}{0}\) or \(\frac{5}{3}\)) gives a wrong answer.
✕ Using Quotient Rule
L'Hôpital's says differentiate top and bottom separately, not with the quotient rule formula.
✕ Infinite Loop
Applying the rule endlessly without checking if the new limit can be evaluated directly, or if the form is no longer indeterminate.

Summary: When to Use What

Limit Form Strategy Example
\(\frac{0}{0}\) Apply L'Hôpital's directly \(\frac{\sin x}{x}\) as \(x \to 0\)
\(\frac{\infty}{\infty}\) Apply L'Hôpital's directly \(\frac{e^x}{x^2}\) as \(x \to \infty\)
\(0 \cdot \infty\) Rewrite as fraction, then apply \(x \ln x\) as \(x \to 0^+\)
\(\infty - \infty\) Combine fractions, then apply \(\frac{1}{x} - \frac{1}{\sin x}\)
\(1^\infty, 0^0, \infty^0\) Take \(\ln\), apply, exponentiate \(x^x\) as \(x \to 0^+\)

Question 1 of 5

What is \(\displaystyle\lim_{x \to 0} \frac{e^x - 1}{x}\)?

Question 2 of 5

Which indeterminate form does \(\displaystyle\lim_{x \to \infty} \frac{\ln x}{x}\) have?

Question 3 of 5

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

Question 4 of 5

A student applies L'Hôpital's Rule to \(\displaystyle\lim_{x \to 1} \frac{x^2 + 1}{x - 1}\). What error did they make?

Question 5 of 5

To evaluate \(\displaystyle\lim_{x \to 0^+} x \ln x\) using L'Hôpital's Rule, you should first rewrite it as: