← Return to lesson

Class materials · 4.7

L’Hospital’s Rule

Lecture transcript

0:00

Look at this limit. The limit, as x approaches zero, of sine three x over e to the x minus one. Plug in zero. On top, sine of zero is zero. On the bottom, e to the zero minus one is one minus one, zero. We write those two limits separately. Back in Unit 1, that was your cue to factor, or use a conjugate. Here, nothing factors, and there's no square root to conjugate.

0:30

Algebra isn't coming to save us. So is that the end? Zero over zero, so no limit? No. That pattern doesn't decide anything yet. The limit could still be a number. Today we crack limits like this in one line. And just as important: when not to use the rule, and how to write it without a false equation. Where does a rule like that come from? From the last lesson: zooming in.

1:01

Up close, a curve is about the same as its tangent line. And the tangent line is L of x equals f of a, plus f prime of a, times x minus a. Fair warning: this is an idea, not a rigorous proof. The rigorous proof comes later, in college calculus. Now take two curves, f and g, that both cross the x-axis at the same point, a. Here's f, and here's g.

1:33

Since f of a is zero, near a, f of x is about f prime of a times x minus a. That's its tangent line. Same for g: g of x is about g prime of a times x minus a. Its tangent line. So divide them. What's left? Near a, with x not equal to a, f of x over g of x is about f prime of a times x minus a, over g prime of a times x minus a.

2:04

The x minus a on top and the x minus a on the bottom divide out. All that's left is the ratio of the slopes. Two straight lines leaving the same point: the ratio of their heights is the ratio of their slopes. The steeper line climbs faster, by exactly that ratio. One condition in this picture: g prime of a isn't zero, so we never divide by zero. Now the official rule. The setup: f and g are differentiable near a, and g prime isn't zero near a.

2:40

First, check. The limit of the top is zero, and separately, the limit of the bottom is zero. Both, not just the bottom. Or both of them head to infinity, plus or minus. Those patterns have a name: indeterminate forms. Zero over zero, and infinity over infinity. If the check passes, take the slope of the top over the slope of the bottom. In symbols: the limit of f over g equals the limit of f prime over g prime, as long as that new limit exists, or is infinite.

3:20

And a habit to lock in now: zero over zero is a label, not a value. Write each limit on its own, and never write equals zero over zero. This is L'Hospital's Rule. Why does infinity over infinity follow the same rule? Same deal: an idea, not a proof. The rigorous version waits for college. If f and g both blow up, flip them. One over f goes to zero, and one over g goes to zero.

3:54

Rewrite f over g as one over g, over one over f. Now it's zero over zero, and we can use the rule we just built. Take the derivatives of top and bottom: negative g prime over g squared, over negative f prime over f squared. Tidy it up: g prime over f prime, times f over g, squared. Call the original limit L, a number that isn't zero. Taking limits, L equals the limit of g prime over f prime, times L squared.

4:29

Divide by L and by L again, then flip both sides: L equals the limit of f prime over g prime. Same rule, just a flip and a little algebra. Now, back to our opening limit. Check, separately: the top goes to zero, and the bottom goes to zero. Zero over zero form, so the rule applies. Differentiate the top: three cosine three x.

5:00

Differentiate the bottom: e to the x. Now plug in zero: three times one, over one. Three. Done in one line. Before you fall too in love with the shortcut, two warnings. Warning one: the limit, as x approaches zero, of x plus one over x plus two. The top goes to one, and the bottom goes to two. So the answer is just one half. It was never zero over zero.

5:31

Use the rule on autopilot, and you get one over one, which is one. Dead wrong. It's a tool, not a reflex. Same if the top goes to three and the bottom goes to zero. That's not zero over zero either. For that one, go back to your Unit 1 tools. Warning two: it's the ratio of the derivatives, not the derivative of the ratio. So no quotient rule here. Differentiate the top alone, and the bottom alone.

6:02

One more note: other indeterminate forms, like infinity minus infinity, aren't tested on the AP exam. In this course, it's zero over zero and infinity over infinity. Now watch what this rule does to old limits from Unit 1. The limit, as x approaches two, of x squared plus two x minus eight, over x minus two. Top: four plus four minus eight, zero. Bottom: two minus two, zero.

6:35

The rule gives two x plus two, over one. Plug in two: six. The same six factoring gave us, now in one line. Now one at infinity: natural log of x, over x. Both go to infinity. The rule gives one over x, over one. That goes to zero. A ratio heading to zero means the bottom, x, grows much faster than the top, natural log of x.

7:05

There's a symbol for grows much slower than: this double less-than sign. So the Unit 1 order: natural log of x, much slower than x to the n, much slower than e to the x. Back then you took it on faith. Now it has a reason. And for the second step, with n equal to one: x over e to the x becomes one over e to the x, which goes to zero. Example one. The function f has a continuous derivative, and selected values are in the table.

7:41

Find the limit, as x approaches one, of f of x minus four, over x squared minus one, and show that L'Hospital's rule applies. Then find the limit, as x approaches one, of f of x over x plus one. Part a. The plan: at x equals one, check that the top goes to zero and the bottom goes to zero. Then use the rule. No formula for f? Don't sweat it. Those two table values are all we need.

8:14

Can we just plug one into f inside a limit? Yes. f has a derivative, so f is differentiable, and differentiable means continuous at one. So the limit of f of x minus four is f of one minus four: four minus four, zero. Separately, the bottom: one squared minus one, zero. Both limits are zero, and the bottom's derivative, two x, isn't zero near one.

8:46

So L'Hospital's rule applies. Your turn: write the next line before I do. Keep the limit sign in front: the limit of f of x minus four, over x squared minus one, equals the limit of f prime of x over two x. f prime is continuous, so now we plug in one: f prime of one over two, six over two, three. In part a, both limits were zero, so the rule gave three.

9:16

Part b. Same table, same f. The plan: check the form before touching any rule. f is continuous, so the top goes to f of one, four. The bottom goes to two. Four over two. That's not zero over zero, so L'Hospital's rule does not apply. Just divide: four over two, two. Differentiate on autopilot, and you'd get f prime of one over one, six. Wrong.

9:51

Same table, same f. The first line decides everything. Your workbook mixes limits that need the rule with ones that don't. Check the form first, every time. Here's one student's work on part a. First line: the limit equals zero over zero. What's wrong? Zero over zero isn't a number, so a limit can't equal it.

10:21

Then the student writes: equals f prime of x over two x, equals three. See what's missing? No limit sign. Now it claims f prime of x over two x equals three for every x. That's false. The fix: write the top limit and the bottom limit separately. And keep the limit sign, x approaching one, on every line until the moment you plug in. Example two, multiple choice.

10:54

The limit, as x approaches zero, of e to the two x, minus one, minus two x, over x squared. Which choice gives its value? The plan: check, use the rule, and check again before any second round. As x goes to zero, the top goes to one minus one minus zero, zero. The bottom, x squared, goes to zero. Use the rule once, with the chain rule on e to the two x.

11:25

The limit becomes two e to the two x minus two, over two x. Check again: two minus two on top, zero on the bottom. Still zero over zero. So use it a second time: four e to the two x, over two. Now plug in zero: four over two, two. The moment it stops being zero over zero, stop differentiating and plug in. So the answer is C.

11:57

In your workbook, one limit takes three rounds. Check before every round. Example three. Find the limit, as x approaches infinity, of the natural log of x squared plus one, over the natural log of x. The plan: check that both go to infinity, then use the rule. As x goes to infinity, x squared plus one goes to infinity, so its log does too. Separately, natural log of x goes to infinity.

12:30

Infinity over infinity, so the rule applies. The top's derivative is two x over x squared plus one. The bottom's is one over x. Clean up before anything else: dividing by one over x is multiplying by x. Two x squared, over x squared plus one. Divide top and bottom by x squared: two, over one plus one over x squared. One over x squared goes to zero, so the limit is two over one plus zero: two.

13:04

There's another infinity over infinity in your workbook. Check both, then go. So when a limit stumps algebra, like this one, check the top limit and the bottom limit, separately. Zero over zero is a label, not a value. Never write equals zero over zero. If both go to zero, or both go to infinity, take the derivative of the top over the derivative of the bottom. No quotient rule. If it isn't zero over zero or infinity over infinity, don't touch the rule.

13:39

And keep the limit sign on every line until you plug in. And that's all of Unit 4. Zooming in on one curve gave us tangent line approximations. Zooming in on two gave us L'Hospital's Rule. Next up, Unit 5, topic five point one. See you there.