AP Calc 4.7Unit 4: Contextual Applications of Differentiation · 6 min video

L'Hospital's Rule Explained

Why L'Hospital's Rule works, when you may use it, and the forms it does not apply to. Two worked examples, the usual mistake and two check questions.

What this lesson covers

This lesson explains why L'Hospital's Rule works and when you may use it. Near the point, the top and bottom of a 0/0 limit act like their tangent lines, so their ratio is the ratio of their derivatives.

The method is to check the form first, differentiate the top and bottom separately instead of using the quotient rule, and repeat if the result is still 0/0. A product or difference that is indeterminate has to be rewritten as one fraction before the rule applies. The lesson includes two worked examples, one infinity over infinity limit, the most common mistake, and two check questions.

  • 4.7Using L'Hospital's Rule for Determining Limits of Indeterminate Forms

Practice it on CalcLearn

Transcript

0:00A limit that looks like 0/0

Watch this fraction as x slides toward zero: e^(3x) − 1, over sin x. The top shrinks to zero. The bottom shrinks to zero. But the ratio doesn't vanish. At x = 0.1 it's about 3.5. At 0.01, about 3.05. It's closing in on 3.

Plugging in zero gives 0 over 0, which tells you nothing. So where does the 3 come from? From the derivatives. This is L'Hospital's Rule, AP Calculus topic 4.7.

0:33Why 0/0 tells you nothing

First, why 0 over 0 tells you nothing. x over x goes to 1 as x goes to 0. x² over x goes to 0. 5x over x goes to 5. All three start as 0 over 0, and all three end somewhere different. That's why 0 over 0 is called an indeterminate form: it's a race between the top and the bottom, and you need more information to know who wins.

0:59Why the rule works

Here's the picture. The top, f(x) = e^(3x) − 1, and the bottom, g(x) = sin x, both pass through zero at x = 0. Zoom in on that point. The closer you look, the straighter each curve gets. Up close, f looks like its tangent line, with slope f′(0) = 3. And g looks like its tangent line, with slope g′(0) = 1.

So near zero, f(x) is about 3 times x, and g(x) is about 1 times x. The x's cancel, and the ratio is about 3 over 1. The heights shrink together, but their ratio is the ratio of the slopes.

That's the whole idea. When the top and bottom both head to zero, their ratio is decided by how fast each one gets there: their derivatives.

1:48The rule

Here's the rule. If f and g both approach 0, or both approach infinity, as x approaches a, then the limit of f over g equals the limit of f′ over g′, as long as that second limit exists. Differentiate the top and the bottom separately. This is not the quotient rule. Nothing gets crossed or multiplied.

And check the form first. On the AP exam, write down that the top and the bottom both go to zero, or both to infinity, before you use it.

2:17Example 1

Example one. The limit as x approaches 3 of x² − 2x − 3, over x² − 9. Check the form. At 3, the top is 9 − 6 − 3, which is 0, and the bottom is 9 − 9, also 0. Zero over zero, so the rule applies.

Differentiate each one. The top becomes 2x − 2, and the bottom becomes 2x. At 3, that's 4 over 6, which is two thirds. Factoring agrees. The top is (x − 3)(x + 1) and the bottom is (x − 3)(x + 3). Cancel, plug in, and you get 4 over 6 again.

2:57Example 2 and infinity over infinity

Example two. The limit as x approaches 0 of 1 − cos 2x, over x². At 0, the top is 1 − 1, which is 0, and the bottom is 0. Apply the rule: the top becomes 2 sin 2x, and the bottom becomes 2x.

Plug in 0 again: still 0 over 0. That's allowed. Just use the rule a second time. The top becomes 4 cos 2x, and the bottom becomes 2. Now plug in: 4 times 1, over 2, which is 2. The rule works the same way for infinity over infinity. As x goes to infinity, 4x² − x over 2x² + 7 gives infinity over infinity. Two rounds of the rule give 8 over 4, which is 2.

3:44When you can't use it

Now, when you may not use it. The rule works only on 0 over 0 and infinity over infinity. Not on 3 over 0, not on 1 over 2. And not on forms like zero times infinity, or infinity minus infinity, until you rewrite them as a single fraction that is 0 over 0 or infinity over infinity.

For example, as x goes to 0 from the right, x ln x is 0 times negative infinity. Rewrite it as ln x over 1/x: now it's negative infinity over infinity. The rule gives 1/x over −1/x², which simplifies to −x, and that goes to 0.

4:24The usual mistake

Here's the mistake that costs the most points. Take the limit as x approaches 0 of x² + 3, over x + 1. Someone sees a fraction and differentiates: 2x over 1, which goes to 0. But plug in first. The top is 3 and the bottom is 1. The limit is just 3. It was never 0 over 0, so the rule never applied, and using it gave a wrong answer.

So the order is always: plug in, check for 0 over 0 or infinity over infinity, and only then differentiate.

4:55Check yourself

Your turn. Find the limit as x approaches 0 of sin 5x, over e^x − 1. Pause and work it out. At 0, the top is sin 0, which is 0, and the bottom is 1 − 1, which is 0. Differentiate: 5 cos 5x over e^x. At 0 that's 5 over 1, so the answer is 5. If you got 1, you dropped the 5 from the chain rule.

One more. Find the limit as x approaches 2 of x² + 1, over x − 1. Pause. Plug in first: the top is 5 and the bottom is 1. It isn't indeterminate, so the limit is just 5. Using the rule anyway gives 2x over 1, which is 4. That's the trap.

5:48Recap

Recap. Zero over zero and infinity over infinity are indeterminate: they need more work. Near the point, the top and bottom act like their tangent lines, so their ratio is the ratio of their derivatives. Check the form first. Differentiate the top and the bottom separately, and repeat if you still get zero over zero. If it isn't indeterminate, just plug in. For more examples, and the cases where you can't use it, go to calclearn.org, guides, L'Hospital's rule.