The Problem It Solves
You are trying to find lim(x→2) (x²−4)/(x−2). Plug in x=2: you get (4−4)/(2−2) = 0/0. That is not zero. It is not undefined in the usual sense. It is indeterminate — the limit might be anything, and ordinary substitution gives you no information.
Algebra saves this particular case: factor the numerator to get (x−2)(x+2)/(x−2), cancel, get x+2, plug in 2, answer is 4. But what about lim(x→0) sin(x)/x? You cannot factor your way out of that. The numerator and denominator are fundamentally different kinds of functions and no algebraic manipulation simplifies it.
This is the gap L'Hôpital's Rule was invented to fill.
The Rule
If lim(x→a) f(x)/g(x) gives 0/0 or ∞/∞, and both f and g are differentiable near a, then:
You replace the fraction with a new fraction: derivative of top over derivative of bottom. Not the quotient rule. Two separate derivatives.
Students apply the quotient rule to f/g and get (f'g − fg')/g². That is wrong. L'Hôpital's says differentiate f and g separately, then form the new ratio f'(x)/g'(x). Two individual derivatives, not the quotient rule.
When It Applies — and When It Doesn't
L'Hôpital's Rule requires an indeterminate form. Check before applying. The qualifying forms are 0/0 and ∞/∞. That's it for the fraction version. If you get 0/3, the limit is just 0. If you get 5/0, the limit is ±∞ (or does not exist). L'Hôpital's does not apply to either.
Always try substitution first. Always try factoring or simplification first. L'Hôpital's is a fallback — powerful but not the first tool you reach for.
0/0 Examples
∞/∞ Examples
Other Indeterminate Forms: 0·∞, ∞−∞, 1^∞, 0⁰, ∞⁰
These are not directly in the ratio form L'Hôpital's needs, so you convert them first.
0·∞: Rewrite as a fraction. If you have f·g where f→0 and g→∞, write it as f/(1/g) or g/(1/f) to get 0/0 or ∞/∞.
1^∞, 0⁰, ∞⁰: Take ln first. If L = lim f(x)^g(x), then ln L = lim g(x)·ln f(x), which is 0·∞ form. Convert to a fraction and apply L'Hôpital's. Then exponentiate at the end: L = e^(ln L).
When L'Hôpital's Rule Fails
Applying L'Hôpital's when the form is not indeterminate gives a wrong answer. lim(x→0) x/sin(x): both→0, so 0/0 ✓, apply: 1/cos(x) = 1. Correct. But lim(x→0) (2+x)/sin(x): numerator→2, denominator→0. This is 2/0, not 0/0. L'Hôpital's does not apply — the limit is ±∞, not 1/cos(0) = 1.
Also: sometimes L'Hôpital's produces a circular loop that never terminates. lim(x→∞) eˣ/eˣ = 1, but applying L'Hôpital's gives eˣ/eˣ again — you go in circles forever. Recognise when the answer is already obvious.