Contents
Statement #
Let f and g be differentiable near a (except possibly at a), with g'(x) \neq 0 near a. If
produces the indeterminate form \dfrac{0}{0} or \dfrac{\pm\infty}{\pm\infty}, then:
provided the limit on the right exists (or is \pm\infty).
The rule also works for x \to \pm\infty and for one-sided limits.
Important Warning #
Differentiate the numerator and denominator separately. This is not the quotient rule.
When Can You Use It? #
Always check these conditions first:
- The limit has the form \frac{0}{0} or \frac{\infty}{\infty}.
- f and g are differentiable near the point.
- \lim \frac{f'}{g'} exists or is infinite.
If the form is not indeterminate, applying the rule gives wrong answers.
Step-by-Step Method #
- Substitute the limit value and confirm it is \frac{0}{0} or \frac{\infty}{\infty}.
- Differentiate the numerator and the denominator separately.
- Evaluate the new limit.
- If it is still indeterminate, apply the rule again.
Examples #
Example 1: \dfrac{0}{0} #
Direct substitution gives \frac{0}{0}. Applying the rule:
Example 2: \dfrac{\infty}{\infty} #
Applying the rule twice:
This shows that exponentials grow faster than polynomials.
Example 3: Repeated application #
Other Indeterminate Forms #
The rule applies directly only to \frac{0}{0} and \frac{\infty}{\infty}. Other forms must be rewritten first.
| Form | Strategy |
|---|---|
| 0 \cdot \infty | Rewrite as \dfrac{f}{1/g} or \dfrac{g}{1/f} |
| \infty - \infty | Combine into a single fraction |
| 0^0, 1^\infty, \infty^0 | Take the logarithm: \ln L = \lim g \cdot \ln f |
Example: 0 \cdot \infty #
Example: 1^\infty #
Common Mistakes #
- Using the rule when the form is not indeterminate.
- Applying the quotient rule instead of differentiating separately.
- Looping forever, for example with \lim_{x\to\infty} \frac{\sqrt{x^2+1}}{x}, where the derivatives keep swapping. Use algebra instead.
- Forgetting that the new limit must exist for the conclusion to hold.
Connection to Taylor Series #
L'Hôpital's rule is closely related to Taylor expansions. For \frac{0}{0} limits, replacing the functions by their Taylor polynomials often gives the same answer faster:
Quick Python Check #
import sympy as sp
x = sp.symbols("x")
print(sp.limit(sp.sin(x) / x, x, 0)) # 1
print(sp.limit(x**2 / sp.exp(x), x, sp.oo)) # 0
print(sp.limit(x * sp.log(x), x, 0, "+")) # 0
Comments
Loading comments…