L'Hospital's Rule
Some limits produce 0/0 or ∞/∞, forms that hide the answer. L'Hospital's Rule replaces the fraction with the ratio of the derivatives. This guide shows when the rule applies, why it works, and how to handle products and repeated use.
If \(\displaystyle\lim_{x \rightarrow c} \frac{f(x)}{g(x)}\) has the form \(\frac00\) or \(\frac{\pm\infty}{\pm\infty}\), and \(f\) and \(g\) are differentiable near \(c\), then the limit equals \(\displaystyle\lim_{x \rightarrow c} \frac{f'(x)}{g'(x)}\), provided that second limit exists. Differentiate the top and bottom separately (not the quotient rule). Check the form before every use; if the new limit is still indeterminate, use the rule again. Products like \(0 \cdot \infty\) must be rewritten as a fraction first.
1The rule
The same rule works for \(x \rightarrow c^{+}\), \(x \rightarrow c^{-}\), \(x \rightarrow \infty\) and \(x \rightarrow -\infty\).
2Why it works
3Using it
\(\displaystyle\lim_{x \rightarrow 0} \frac{e^x - 1 - x}{x^2}\)
- 1Check the form: top \(\rightarrow 1 - 1 - 0 = 0\), bottom \(\rightarrow 0\). Both approach 0, so L'Hospital's Rule applies.
- 2Differentiate top and bottom separately: \(\displaystyle\lim_{x \rightarrow 0} \frac{e^x - 1}{2x}\).
- 3Check again: still \(\frac00\). Apply the rule again: \(\displaystyle\lim_{x \rightarrow 0} \frac{e^x}{2}\).
- 4Now substitute: \(\dfrac{e^0}{2} = \dfrac12\).
“Both the numerator and the denominator approach 0, so L'Hospital's Rule applies: \(\displaystyle\lim_{x \rightarrow 0} \frac{e^x - 1 - x}{x^2} = \lim_{x \rightarrow 0} \frac{e^x - 1}{2x}\).”
State the form each time you apply the rule. It is the reason the rule is allowed.
L'Hospital's Rule takes the derivative of the top and the derivative of the bottom on their own. The quotient rule computes the derivative of the whole fraction, which is a different thing.
\(\displaystyle\lim_{x \rightarrow \infty} \frac{\ln x}{x}\)
- 1Both top and bottom grow without bound: form \(\frac{\infty}{\infty}\), so the rule applies.
- 2\(\displaystyle\lim_{x \rightarrow \infty} \frac{1/x}{1} = \lim_{x \rightarrow \infty} \frac{1}{x} = 0\).
\(\displaystyle\lim_{x \rightarrow \infty} \frac{x^2}{e^x}\)
- 1\(\frac{\infty}{\infty}\). Apply: \(\dfrac{2x}{e^x}\), still \(\frac{\infty}{\infty}\).
- 2Apply again: \(\dfrac{2}{e^x} \rightarrow 0\).
\(f(2) = g(2) = 0\), \(f'(2) = 3\), \(g'(2) = 5\)
Both functions are differentiable and \(f'\) and \(g'\) are continuous. Find \(\displaystyle\lim_{x \rightarrow 2} \frac{f(x)}{g(x)}\).
- 1The form is \(\frac00\), because \(f(2) = g(2) = 0\) and both are continuous.
- 2By L'Hospital's Rule the limit equals \(\displaystyle\lim_{x \rightarrow 2} \frac{f'(x)}{g'(x)} = \frac{3}{5}\).
4Other forms
Products \(0 \cdot \infty\) and differences \(\infty - \infty\) are also indeterminate, but the rule needs a fraction. Rewrite: a product \(fg\) becomes \(\dfrac{f}{1/g}\) or \(\dfrac{g}{1/f}\); a difference of fractions becomes one fraction over a common denominator.
\(\displaystyle\lim_{x \rightarrow 0^{+}} x\ln x\)
- 1Form: \(0 \cdot (-\infty)\). L'Hospital's Rule needs a fraction, so rewrite: \(x\ln x = \dfrac{\ln x}{1/x}\).
- 2Now the form is \(\frac{-\infty}{\infty}\). Apply: \(\dfrac{1/x}{-1/x^2} = -x\).
- 3\(-x \rightarrow 0\).
5When not to use it
\(\displaystyle\lim_{x \rightarrow 2} \frac{x + 1}{x - 3}\)
- 1Substitute first: \(\dfrac{3}{-1} = -3\). Not \(\frac00\) or \(\frac{\infty}{\infty}\), so the rule does not apply, and the limit is just \(-3\).
- 2Using the rule anyway would give \(\dfrac{1}{1} = 1\), a wrong answer.
The rule only applies to \(\frac00\) and \(\frac{\infty}{\infty}\). A form like \(\frac{3}{-1}\) or \(\frac{5}{0}\) is not indeterminate: the first is just a number, and the second means unbounded. Check the form first, every time.
After applying the rule once, substitute again. If you get a number, stop. Applying the rule to a limit that is no longer indeterminate can turn a right answer into a wrong one.
Quick reference
| Form | What to do |
|---|---|
| \(\frac00\) or \(\frac{\pm\infty}{\pm\infty}\) | Apply the rule: derivative of top over derivative of bottom |
| Still indeterminate | Apply again |
| \(0 \cdot \infty\) | Rewrite as a fraction, then apply |
| \(\infty - \infty\) | Combine into one fraction, then apply |
| Number, or nonzero over 0 | Not indeterminate: the rule does not apply |