Guides / Limits
L'Hôpital's rule: check the form, then differentiate top and bottom separately
Short answer
Plug in first. If you get 0/0 or ∞/∞, then lim f(x)/g(x) = lim f′(x)/g′(x): differentiate the top and the bottom separately (not with the quotient rule) and take the limit again. If it's still 0/0 or ∞/∞, apply the rule again. If you get anything else, such as 2/3 or 5/0, stop: the rule doesn't apply. Forms like 0 · ∞, ∞ − ∞, 1∞, 00 and ∞0 have to be rewritten as a fraction (or a log) first.
Why it works
Near a point a where f(a) = g(a) = 0, both functions look like their tangent lines: f(x) ≈ f′(a)(x − a) and g(x) ≈ g′(a)(x − a). The factor (x − a) cancels, and the ratio of the functions approaches the ratio of their slopes, f′(a)/g′(a). That's the whole idea: when both the top and the bottom head to zero, what matters is how fast each one gets there.
The same reasoning fails when the top and bottom don't both go to 0 (or both to ∞). Then the limit is already decided by plugging in, and the ratio of the slopes is a different number with nothing to do with it.
Example 1: 0/0
Find limx→0 (e2x − 1)/x.
- (e0 − 1)/0 = 0/0Plug in first. 0/0 is indeterminate, so the rule applies.
- limx→0 2e2x1Top: the derivative of e²ˣ − 1 is 2e²ˣ (chain rule). Bottom: the derivative of x is 1.
- = 2e0 = 2This limit isn't indeterminate, so plugging in finishes it.
Example 2: applying the rule more than once
Find limx→0 (x − sin x)/x3.
- (0 − 0)/0 = 0/0Indeterminate.
- limx→0 1 − cos x3x2Differentiate top and bottom. Plugging in gives 0/0 again.
- limx→0 sin x6xApply the rule a second time. Still 0/0.
- limx→0 cos x6A third time. Now the bottom is 6, not 0.
- = 16cos 0 = 1. Check the form before every application, not just the first.
Example 3: ∞/∞
Find limx→∞ (3x2 + x)/(5x2 − 2).
- ∞/∞Both the top and the bottom grow without bound.
- limx→∞ 6x + 110xDifferentiate top and bottom. Still ∞/∞.
- limx→∞ 610Once more.
- = 35The same answer as dividing top and bottom by x², the method in the limits guide.
Example 4: 0 · ∞, rewritten as a fraction
Find limx→0+ x2 ln x.
- 0 · (−∞)A product, not a fraction, so the rule can't be used yet.
- x2 ln x = ln xx−2Move one factor to the bottom as its reciprocal. Now it's −∞/∞.
- lim 1/x−2x−3 = lim −x22Differentiate top and bottom, then simplify: (1/x) · (x³/−2).
- = 0Put the log on top. Moving x² down as 1/ln x would give a harder derivative.
Example 5: 1∞, using a log
Find limx→0 (1 + 3x)1/x.
- 1∞The base goes to 1 and the exponent to ∞. That's indeterminate, not 1.
- ln L = limx→0 ln(1 + 3x)xTake the log of the expression. The power comes down: ln(ab) = b ln a. Now it's 0/0.
- = limx→0 3/(1 + 3x)1 = 3The rule, with the chain rule on top.
- L = e3 ≈ 20.09Step 3 found the limit of the log. Undo it: the limit itself is e³.
Common mistakes, and the exact line they happen on
1. Using the rule when the limit isn't indeterminate
Find limx→1 (x2 + 1)/(x + 1).
- limx→1 2x1 = 2This is the mistake. Plugging in gives 2/2, which isn't 0/0 or ∞/∞, so the rule says nothing here. The limit is just 2/2 = 1. Always plug in before differentiating.
2. Using the quotient rule
Find limx→0 (sin x)/x.
- 0/0Right so far.
- limx→0 x cos x − sin xx2 = 0This is the mistake. That's the derivative of the whole fraction (the quotient rule), which is a different function with a different limit. L'Hôpital's rule differentiates the top and bottom on their own: cos x / 1 → 1.
3. Reading 1∞ as 1, or forgetting to undo the log
Find limx→0 (1 + 3x)1/x (Example 5).
- 1 + 3x → 1, and 1 to any power is 1, so the limit is 1This is the mistake. The base is never exactly 1, and the exponent keeps growing, so the two effects compete. The limit is e³ ≈ 20.09.
- lim ln(1 + 3x)/x = 3, so the limit is 3The other version. 3 is the limit of the log. The answer is e³, not 3. Write ln L = … at the start so the last step can't get lost.
Practice
Find limx→0 (tan 4x)/x.
Show answer
0/0. Differentiate: 4 sec2(4x)/1 → 4.
Find limx→1 (ln x)/(x − 1).
Show answer
0/0. Differentiate: (1/x)/1 → 1.
Find limx→0 (1 − cos 2x)/x2.
Show answer
0/0, then 2 sin 2x / (2x), still 0/0, then 4 cos 2x / 2 → 2.
Find limx→∞ x3/ex.
Show answer
∞/∞ three times: 3x2/ex, 6x/ex, 6/ex → 0. Exponentials beat powers.
Find limx→∞ x1/x.
Show answer
∞0. Take a log: ln L = lim (ln x)/x, which is ∞/∞ and gives (1/x)/1 → 0. So L = e0 = 1.
Find limx→0 (ex − 1)/sin x.
Show answer
0/0. Differentiate: ex/cos x → 1/1 = 1.