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

L'Hôpital's
Rule

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

Calculus 1

What Is an Indeterminate Form?

When you try to evaluate a limit by direct substitution and get an expression like \(\frac{0}{0}\) or \(\frac{\infty}{\infty}\), the result is not determined by that form alone. These are called indeterminate forms: the actual limit could be any real number, \(\infty\), \(-\infty\), or may not exist at all.

The Seven Indeterminate Forms

Primary Forms
\(\dfrac{0}{0}\) and \(\dfrac{\infty}{\infty}\) are the two forms where L'Hôpital's Rule applies directly.
Other Forms
\(0 \cdot \infty\), \(\infty - \infty\), \(0^0\), \(1^{\infty}\), and \(\infty^0\) require algebraic rewriting first.

Why Do We Need This Rule?

Consider \(\displaystyle\lim_{x \to 0} \frac{\sin x}{x}\). Direct substitution gives \(\frac{0}{0}\). But the graph reveals both functions approach 0 at different rates: the ratio of their slopes determines the limit.

x y π −π 1 −1
\(\sin x\)
\(y = x\)
Both → 0

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

Three Conditions to Check

1
Indeterminate form: Direct substitution yields \(\frac{0}{0}\) or \(\frac{\infty}{\infty}\). If you get a determinate form (like \(\frac{5}{0}\) or \(\frac{3}{7}\)), stop: the rule does not apply.
2
Differentiability: Both \(f\) and \(g\) must be differentiable near \(c\), and \(g'(x) \neq 0\) in a punctured neighborhood of \(c\).
3
Resulting limit exists: \(\displaystyle\lim_{x \to c} \frac{f'(x)}{g'(x)}\) must exist (or be \(\pm\infty\)). If it doesn't, the rule gives no conclusion.

L'Hôpital's vs. Quotient Rule

L'Hôpital's Rule Quotient Rule
Purpose Evaluate limits Find derivatives
Formula \(\frac{f'(x)}{g'(x)}\) \(\frac{f'g - fg'}{g^2}\)
When to use \(\frac{0}{0}\) or \(\frac{\infty}{\infty}\) Any quotient derivative
Key difference Differentiate separately Uses the product of terms

Step-by-Step Application

1
Try direct substitution. Plug in the value. If you get a real number, you are done: no rule needed.
2
Confirm indeterminate form. Verify the result is \(\frac{0}{0}\) or \(\frac{\infty}{\infty}\).
3
Differentiate separately. Compute \(f'(x)\) and \(g'(x)\) independently (not the quotient rule).
4
Take the new limit: \(\displaystyle\lim_{x \to c}\frac{f'(x)}{g'(x)}\). If still indeterminate, repeat.
5
State the answer. The original limit equals this new limit.

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

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

1
Direct substitution: \(\frac{\sin 0}{0} = \frac{0}{0}\) — indeterminate.
2
Differentiate: \(f(x) = \sin x \Rightarrow f'(x) = \cos x\), and \(g(x) = x \Rightarrow g'(x) = 1\).
3
New limit: \(\displaystyle\lim_{x \to 0}\frac{\cos x}{1} = \frac{\cos 0}{1} = 1\).

Example 2: Repeated Application

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

1
Direct sub: \(\frac{1 - 1}{0} = \frac{0}{0}\) — indeterminate.
2
First application: \(\displaystyle\lim_{x \to 0}\frac{\sin x}{2x} = \frac{0}{0}\) — still indeterminate!
3
Apply again: \(\displaystyle\lim_{x \to 0}\frac{\cos x}{2} = \frac{1}{2}\).

Example 3: The \(\frac{\infty}{\infty}\) Form

Evaluate \(\displaystyle\lim_{x \to \infty}\frac{\ln x}{x}\)

1
As \(x \to \infty\): \(\ln x \to \infty\) and \(x \to \infty\), so we have \(\frac{\infty}{\infty}\).
2
Differentiate: \(f'(x) = \frac{1}{x}\) and \(g'(x) = 1\).
3
New limit: \(\displaystyle\lim_{x \to \infty}\frac{1/x}{1} = \lim_{x \to \infty}\frac{1}{x} = 0\).

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

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

1
Form: \(0^+ \cdot (-\infty) = 0 \cdot \infty\). Not directly \(\frac{0}{0}\) or \(\frac{\infty}{\infty}\).
2
Rewrite as a fraction: \(\displaystyle x \ln x = \frac{\ln x}{1/x} = \frac{\ln x}{x^{-1}}\). Now as \(x \to 0^+\): \(\frac{-\infty}{\infty}\).
3
Apply rule: \(\displaystyle\frac{1/x}{-x^{-2}} = \frac{1/x}{-1/x^2} = -x \to 0\).

Graphical Intuition

When \(f(c)=0\) and \(g(c)=0\), near \(x=c\) each function is well approximated by its tangent line. The limit of the ratio becomes the ratio of slopes:

\(c\)
\(f(x)\)
\(g(x)\)
slope = \(f'(c)\)
slope = \(g'(c)\)
\(f(c) = g(c) = 0\)

When the Rule Does Not Apply

Not Indeterminate
If substitution gives \(\frac{5}{0}\), \(\frac{3}{7}\), or any determinate form, do not use L'Hôpital's. Evaluate directly.
New Limit DNE
If \(\lim \frac{f'(x)}{g'(x)}\) oscillates (like \(\frac{\sin x}{\cos x}\) as \(x \to \infty\)), the rule gives no conclusion. The original limit may still exist by other methods.
Circular reasoning
Using L'Hôpital to prove \(\lim_{x\to 0}\frac{\sin x}{x}=1\) is circular if that limit was used to derive \(\frac{d}{dx}\sin x = \cos x\).

Common Mistakes to Avoid

✕ Using the Quotient Rule
Students compute \(\frac{f'g - fg'}{g^2}\) instead of \(\frac{f'}{g'}\). L'Hôpital differentiates the numerator and denominator separately.
✕ Skipping the Check
Applying the rule without first verifying the form is \(\frac{0}{0}\) or \(\frac{\infty}{\infty}\). Using it on \(\frac{1}{0}\) gives a wrong answer.
✕ Infinite Looping
Applying L'Hôpital forever when another technique (factoring, conjugates) would resolve the limit faster.

Summary of Indeterminate Forms

Form L'Hôpital Directly? Strategy
\(\frac{0}{0}\) Yes Apply rule directly
\(\frac{\infty}{\infty}\) Yes Apply rule directly
\(0 \cdot \infty\) After rewrite Rewrite as \(\frac{0}{0}\) or \(\frac{\infty}{\infty}\)
\(\infty - \infty\) After rewrite Combine into single fraction
\(0^0,\; 1^{\infty},\; \infty^0\) After rewrite Take \(\ln\), then apply rule

Question 1 of 5

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

Question 2 of 5

For which of the following limits is L'Hôpital's Rule applicable without rewriting?

Question 3 of 5

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

Question 4 of 5

A student applies L'Hôpital's Rule to \(\displaystyle\lim_{x \to 0}\frac{x^2 \sin(1/x)}{x}\) and writes \(\displaystyle\lim_{x \to 0}\frac{2x\sin(1/x) - \cos(1/x)}{1}\). What is the problem?

Question 5 of 5

What is \(\displaystyle\lim_{x \to \infty}\frac{x^3}{e^x}\)?