How to use L'Hôpital's rule
Last updated: 2026-11-26
L'Hôpital's rule applies to a limit of a quotient that has the form 0/0 or infinity over infinity. If its other conditions hold, you can differentiate the top and the bottom separately and take the limit of that new quotient. Check the form before you differentiate.
Start learning No account needed
1. Check, then differentiate
Suppose you want the limit of f(x) / g(x) as x approaches a point or grows without bound. In the second case, read "near the point" below as "for all large x". The rule needs these things:
- f and g both approach 0, or both grow without bound in size.
- Both are differentiable near the point, though not necessarily at it.
- The derivative g'(x) is not zero near the point, apart from possibly at it.
- The quotient f'(x) / g'(x) has a limit, which may be a number or plus or minus infinity.
When they hold, the original limit equals the limit of f'(x) / g'(x). If the new quotient is again 0/0 or infinity over infinity, you can check the conditions again and apply the rule once more.
2. A worked example with two applications
Find the limit as x approaches 0 of (ex − 1 − x) / x2. At x = 0 the top is 1 − 1 − 0 = 0 and the bottom is 0, so the form is 0/0.
Differentiate each part: the top becomes ex − 1 and the bottom 2x. Both are still 0 at x = 0. Differentiate each part again: ex over 2. This quotient approaches 1/2, so the original limit is 1/2. Because that last limit exists, both steps are justified. The derivative of the bottom is nonzero near 0 each time (2x, then 2), except that 2x is zero at 0 itself, which the rule allows.
A numerical check should drift toward 0.5, and it does.
| x | (ex − 1 − x) / x2 |
|---|---|
| 0.1 | 0.517092 |
| 0.01 | 0.501671 |
| 0.001 | 0.500167 |
A table like this supports an answer but does not prove it, since it samples only a few points on one side.
3. Mistake one: no indeterminate form
Take the limit as x approaches 2 of (x2 + 1) / (x + 3). The top approaches 5 and the bottom approaches 5, so the limit is 1 by direct substitution. Differentiating anyway gives 2x / 1, which approaches 4. That is wrong, because the rule did not apply.
4. Mistake two: using the quotient rule
Take the limit as x approaches 1 of (x2 − 1) / (x − 1), which is 0/0. The rule says to use 2x / 1, which approaches 2. Factoring agrees, since the quotient equals x + 1 away from 1. The quotient rule differentiates the whole fraction instead: (2x(x − 1) − (x2 − 1)) / (x − 1)2, which simplifies to 1. That is the slope of the quotient, not its limit.
5. When the rule gives no answer
Consider (x + sin x) / x as x grows without bound. Top and bottom both grow, but the quotient of derivatives is (1 + cos x) / 1, which keeps swinging between 2 and 0 and has no limit. The rule is silent here. The original limit still exists: the quotient equals 1 + (sin x) / x, and that last term is no larger in size than 1 / x for positive x, so the limit is 1.
6. Test yourself
Close this page. For each limit, write the form first and then decide whether the rule applies: sin(3x) / x as x approaches 0; x / ex as x grows without bound; (cos x) / (x + 1) as x approaches 0. For the ones where it applies, differentiate top and bottom separately and check your answer with a few nearby values.
Related guides: how to study for a math exam and how to test yourself.
The worked example is checked by a short script, scripts/how-to-use-lhopitals-rule-worked-example.py.
What the sources found, and their limits
Wikipedia, L'Hôpital's rule. It supports the statement of the rule, the indeterminate forms, the four conditions, why a form that is not indeterminate can give a false result, and the case where the limit of the derivatives does not exist. Source: L'Hôpital's rule, read on 2026-11-25.
Wikibooks, Calculus: L'Hôpital's Rule. It supports checking for an indeterminate form, differentiating the top and the bottom, and applying the rule again while the form stays indeterminate. Source: the Wikibooks chapter, read on 2026-11-25. Limits: the limits worked on this page are ours, and we did not prove the rule.
How Professor Turing helps
Professor Turing is a tutor for adults learning any subject, in college or on their own. It asks you questions instead of giving the final answer, does not grade a bare guess, and remembers what you got wrong. No account is needed to start. It's an AI tutor, free to try.
Bring a limit where you are unsure the rule applies. Its first reply asks what you already know before it teaches anything. If you answer with a bare guess, it asks how you got there instead of saying right or wrong, and when you stay stuck it changes its approach and makes the next step smaller, so you work it out yourself. You must be 18 or older, and guest conversations are deleted 7 days after the last activity.
FAQ
Can I use L'Hôpital's rule on any quotient? No. Start by checking that the limit has the form 0/0 or infinity over infinity, then check the other conditions. If the top and bottom approach finite limits and the bottom limit is not zero, the answer is the quotient of those two limits.
Do I use the quotient rule with L'Hôpital's rule? No. Differentiate the numerator on its own and the denominator on its own, then take the limit of the new quotient.
Start with what you're working on
Tell the tutor which topic you are studying and let it ask you the questions.
Start learning No account needed
See also: all study guides