What the theorem says
- limx→a f(x)/g(x) = limx→a f′(x)/g′(x)
It holds when three things are true:
- f(x) and g(x) both go to 0, or both go to ±∞, as x approaches a.
- f and g are differentiable near a, and g′(x) is not 0 there.
- The limit on the right exists, or is ±∞.
a can be a number or ±∞. Note that it is f′ divided by g′, each differentiated on its own, and not the
derivative of the quotient.
Worked examples
sin 2x / x as x → 0. Both go to 0. Differentiate: 2 cos 2x / 1, which is 2 at x = 0. The limit is 2.
(1 − cos x) / x² as x → 0. Both go to 0. Once: sin x / (2x), still 0/0. Twice: cos x / 2, which is 1/2 at 0. The rule may be used again as long as the form is still 0/0 or ∞/∞.
ln x / x as x → ∞. Both go to ∞. Differentiate: (1/x) / 1 = 1/x, which goes to 0. The logarithm grows slower than x.
x · ln x as x → 0⁺. A product 0 · (−∞) is rewritten as a quotient first: ln x / (1/x) is −∞/∞. Differentiate: (1/x) / (−1/x²) = −x, which goes to 0.
When it does not apply
- The form is not 0/0 or ∞/∞. (x + 1)/(x + 2) as x → 0 is 1/2. The rule would give 1/1 = 1, which is wrong. Always check the form first.
- The right-hand limit does not exist. (x + sin x)/x as x → ∞ is 1, but (1 + cos x)/1 has no limit. The rule then says nothing; it does not say the original limit is missing.
- Going round in circles. ex/ex stays the same however often you differentiate. Simplify first.
Common mistakes
- Differentiating the quotient. The rule is f′/g′, not (f/g)′ by the quotient rule.
- Forgetting to check the form after each step. Once the limit can be read off, stop.
Frequently asked questions
Why the two spellings, l’Hôpital and l’Hospital?
The French spelling changed in the 18th century, when the silent s was replaced by a circumflex. The
marquis de l’Hôpital published the rule in 1696, in the first calculus textbook; it was worked out by
his teacher, Johann Bernoulli.
Can I use it for sin x / x as x → 0?
It gives the right answer, 1, but it is circular: the derivative of sin x is worked out from that very
limit. As a proof it does not count; as a check it is fine.