You plug a number into a limit, and the answer comes out as 0/0. It’s not zero, it’s not undefined in a useful way, and it’s not the end of the problem. It’s an indeterminate form, and it means the limit could be almost anything. One of the most powerful tools for resolving these situations is L’Hôpital’s Rule. In this guide, you’ll learn what the rule says, when you’re allowed to use it, how to apply it step by step, and the mistakes that trip up many calculus students.
A Quick Bit of History
The rule is named after the French mathematician Guillaume de l’Hôpital, who published it in 1696 in Analyse des infiniment petits, widely regarded as the first textbook on differential calculus. However, the result is generally credited to the Swiss mathematician Johann Bernoulli, who taught l’Hôpital and shared his discoveries with him. The name stuck anyway, and you’ll also see it written as “L’Hospital’s Rule,” an older spelling.
What Are Indeterminate Forms?
An indeterminate form is an expression whose value can’t be determined just by looking at the limits of its parts. Consider 0/0: the numerator is shrinking toward zero, which pushes the fraction toward zero, while the denominator is also shrinking, which pushes it toward infinity. Which effect wins depends entirely on how fast each part approaches zero.
The seven classic indeterminate forms are:
- 0/0 and ∞/∞ (handled directly by L’Hôpital’s Rule)
- 0 · ∞ and ∞ − ∞ (need to be rewritten as a fraction first)
- 00, 1∞ and ∞0 (usually handled with logarithms)
The Statement of L’Hôpital’s Rule
Suppose f and g are differentiable near a point a (except possibly at a itself), and g′(x) ≠ 0 near a. If
- lim f(x) = 0 and lim g(x) = 0, or
- lim f(x) = ±∞ and lim g(x) = ±∞,
then
lim f(x)/g(x) = lim f′(x)/g′(x),
provided the limit on the right exists (or is ±∞). The rule also works for one-sided limits and for limits as x → ±∞.
The key idea: you differentiate the numerator and the denominator separately. This is not the quotient rule. You are not taking the derivative of the fraction as a whole.
How to Apply the Rule: A Step-by-Step Method
- Substitute first. Plug in the value. If you get a real number, you’re done and the rule isn’t needed.
- Check the form. Confirm that you have exactly 0/0 or ∞/∞. If not, the rule does not apply as written.
- Differentiate top and bottom separately. Find f′(x) and g′(x).
- Evaluate the new limit. Substitute again.
- Repeat if necessary. If you get 0/0 or ∞/∞ again, you may apply the rule again, checking the conditions each time.
Worked Examples
Example 1: A polynomial fraction
Find limx→2 (x² − 4)/(x − 2). Substituting gives 0/0. Differentiating the top gives 2x, and the bottom gives 1. So the limit becomes limx→2 2x/1 = 4. You could also factor (x² − 4) as (x − 2)(x + 2), cancel, and get the same answer, which is a nice way to check your work.
Example 2: Logarithm versus polynomial
Find limx→∞ (ln x)/x. Both parts grow without bound, giving ∞/∞. The derivatives are 1/x and 1, so the new limit is limx→∞ 1/x = 0. This confirms a useful fact: logarithms grow more slowly than any positive power of x.
Example 3: Applying the rule twice
Find limx→0 (1 − cos x)/x². Substitution gives 0/0. First application: sin x / 2x, still 0/0. Second application: cos x / 2, which at x = 0 equals 1/2.
Handling the Other Indeterminate Forms
The rule only works on fractions, so the trick with other forms is to rewrite them first:
| Form | Strategy | Example |
|---|---|---|
| 0 · ∞ | Rewrite f · g as f / (1/g) or g / (1/f) | x ln x as x→0⁺ becomes ln x / (1/x) |
| ∞ − ∞ | Combine into a single fraction (common denominator or conjugate) | 1/x − 1/sin x becomes (sin x − x)/(x sin x) |
| 0⁰, 1^∞, ∞⁰ | Take the natural log, find the limit, then exponentiate | (1 + 1/x)^x as x→∞ leads to e |
Take x ln x as x → 0⁺. It’s a 0 · (−∞) form. Rewrite it as ln x / (1/x), which is −∞/∞. Differentiating gives (1/x) / (−1/x²) = −x, which approaches 0.
For the exponential forms, set y equal to the expression, take ln y, use L’Hôpital’s Rule on the resulting fraction, and then remember to convert back: if ln y → L, then y → eL. That last step is easy to forget.
Common Mistakes to Avoid
- Using the quotient rule instead. Differentiate the numerator and denominator independently.
- Skipping the check. Applying the rule to a limit that isn’t 0/0 or ∞/∞ gives wrong answers. For example, limx→0 (x + 1)/(x + 2) is simply 1/2. Applying the rule would incorrectly give 1.
- Assuming “no limit” means “no answer.” If lim f′/g′ doesn’t exist, the rule just doesn’t help, and the original limit may still exist. A classic case is limx→∞ (x + sin x)/x, which equals 1, even though the derivative ratio, 1 + cos x, oscillates forever.
- Going in circles. Sometimes repeated differentiation makes things worse, such as with fractions involving ex in both parts. In these cases, simplifying algebraically is often faster.
- Circular reasoning with sin x / x. Using the rule to prove lim sin x / x = 1 relies on knowing the derivative of sin x, which is itself usually derived from that very limit. In exams, check whether your instructor accepts this.
Why It Works: The Intuition
Near a point where both f and g are zero, each function behaves almost like its tangent line. So f(x) ≈ f′(a)(x − a) and g(x) ≈ g′(a)(x − a). When you divide them, the (x − a) factors cancel, leaving f′(a)/g′(a). In other words, when both quantities vanish, what really matters is how quickly each one is changing, and that is exactly what the derivative measures.
Conclusion
L’Hôpital’s Rule turns frustrating 0/0 and ∞/∞ limits into routine derivative problems. The secret to using it well is discipline: always confirm the indeterminate form, differentiate the top and bottom separately, and know when algebra might be the faster route. Master these habits, and you’ll handle a wide range of limit problems with confidence.
If you want to strengthen your foundation in limits, derivatives and integrals, take a look at the free calculus courses available on Cursa and keep building your math skills at your own pace.







