Kim’s Math NotesCourse index

L’Hospital’s Rule

Which limit forms allow me to apply L’Hôpital’s rule?

Use L'Hospital's rule for 0/0 and infinity/infinity, writing each limit first, and only when the form is indeterminate.

Not the quotient rule

Common mistake limfg=lim(fg)′=limf′g−fg′g2.

Correction Differentiate the top and the bottom separately: limf′g′.

Write the two limits first

Common mistake limx→1f(x)−4x2−1=00=limf′(x)2x.

Correction lim(f(x)−4)=0 and lim(x2−1)=0, so the rule applies. Never write “=00”.

Why it works: zoom in on two curves

Where does a rule like that come from? From the last lesson: zooming in. 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.

Watch this part of the concept lesson

Read the rest of this scene

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. 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. 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.

The rule: check first

Now the official rule. The setup: f and g are differentiable near a, and g prime isn't zero near a. 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.

And a habit to lock in now: zero over zero is a label, not a value.

Watch this part of the concept lesson

Read the rest of this scene

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. 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. 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. Differentiate the bottom: e to the x.

Now plug in zero: three times one, over one. Three. Done in one line.

Our limit, and when not to use the rule

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.

Use the rule on autopilot, and you get one over one, which is one.

Watch this part of the concept lesson

Read the rest of this scene

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. 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.

Unit 1 limits in one line; who grows faster

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. The rule gives two x plus two, over one.

Plug in two: six.

Watch this part of the concept lesson

Read the rest of this scene

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. 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 1: a table, two limits

Example one. The function f has a continuous derivative, and selected values are in the table. 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. 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.

Watch this part of the concept lesson

Read the rest of this scene

Both limits are zero, and the bottom's derivative, two x, isn't zero near one. 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. 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. 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.

Common mistake: = 0/0 and a missing lim

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. 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.

Watch this part of the concept lesson

Read the rest of this scene

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 2: the rule, twice

Example two, multiple choice. 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.

Watch this part of the concept lesson

Read the rest of this scene

Use the rule once, with the chain rule on e to the two x. 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. In your workbook, one limit takes three rounds. Check before every round.

Example 3: infinity over infinity

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. Infinity over infinity, so the rule applies.

The top's derivative is two x over x squared plus one.

Watch this part of the concept lesson

Read the rest of this scene

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.

There's another infinity over infinity in your workbook. Check both, then go.

Worked examples

Example 1

f has a continuous derivative, with values in the table.
(a) Find limx→1f(x)−4x2−1. Show that L'Hospital's rule applies.
(b) Find limx→1f(x)x+1.
x1
f(x)4
f′(x)6
Hint

Plan: the top →0, the bottom →0, then the rule.

Answer and solution
  1. 3
  2. 2
  1. (a) f is continuous: f(x)−4→4−4=0 and x2−1→0. The 00 form, so the rule applies.
  2. limx→1f(x)−4x2−1=limx→1f′(x)2x=f′(1)2=62=3
  3. (b) f(x)→4, x+1→2: 42, not 00, so no L'Hospital. The limit is 2.
  4. The rule anyway gives f′(1)1=6: wrong.

Example 2

limx→0e2x−1−2xx2=
  1. 0
  2. 1
  3. 2
  4. nonexistent
Hint

Check, use the rule, check again.

Answer and solution

Answer C. 2

  1. Top -> 1 - 1 - 0 = 0, bottom -> 0: the 0/0 form.
  2. limx→02e2x−22x(still the 0/0 form)=limx→04e2x2=2
  3. Answer C.

Example 3

Find limx→∞ln(x2+1)lnx.
Hint

Top and bottom both go to ∞; then the rule.

Answer and solution

Answer 2

  1. ln(x^2 + 1) -> infinity and ln x -> infinity: the infinity/infinity form.
  2. limx→∞2xx2+11x=limx→∞2x2x2+1=limx→∞21+1x2=2

Workbook

Problem 1

What is limx→2x3−8ln(x−1)?
  1. 0
  2. 4
  3. 12
  4. nonexistent
Hint

Check the form first: the top and the bottom both go to 0.

Answer and solution

Answer C. 12

  1. Top -> 8 - 8 = 0, bottom -> ln 1 = 0: the 0/0 form.
  2. limx→23x21x−1=limx→23x2(x−1)=12
  3. Answer C.

Common mistake Applying the quotient rule instead of f'/g'.

Watch the worked solution to Problem 1

Problem 2

The functions f and g have continuous derivatives. f(3)=0, f′(3)=4, g(3)=0, and g′(3)=−2.
  1. Find limx→3f(x)g(x). Show that L'Hospital's rule applies.
  2. Find limx→3f(x)+x−3x2−9.
Hint

(a) 0/0, so the limit is f′(3)g′(3). (b) Check the form again first.

Answer and solution
  1. −2
  2. 56
  1. (a) lim f(x) = f(3) = 0 and lim g(x) = g(3) = 0: the 0/0 form, so the rule applies.
  2. limx→3f(x)g(x)=limx→3f′(x)g′(x)=4−2=−2
  3. (b) top→0+0,bottom→0:limx→3f′(x)+12x=4+16=56

Common mistake Using L'Hospital's rule in (b), where the form is not 0/0.

Watch the worked solution to Problem 2

Problem 3

What is limx→∞2ex+x3ex−1?
  1. 0
  2. 23
  3. 1
  4. ∞
Hint

Both go to ∞. Apply the rule; if it repeats itself, divide the top and the bottom by ex.

Answer and solution

Answer B. 23

  1. Top and bottom -> infinity. The rule: (2e^x + 1)/(3e^x), still infinity/infinity.
  2. limx→∞2ex3ex=23
  3. Answer B.

Common mistake Treating the limit as 2/3 only after several rounds without checking.

Watch the worked solution to Problem 3

Problem 4

Find limx→0x−sinxx3. Check the form before each use of L'Hospital's rule.
Hint

Three rounds. Check 0/0 before each one.

Answer and solution

Answer 1⋅16

  1. Top -> 0, bottom -> 0. The rule: (1 - cos x)/(3x^2); top -> 0, bottom -> 0 again.
  2. The rule: sin x/(6x); top -> 0, bottom -> 0 again.
  3. limx→0cosx6=16

Common mistake Stopping after one round while the form is still 0/0.

Watch the worked solution to Problem 4

Problem 5

A student writes limx→0ex+1x+1=limx→0ex1=1.
  1. Explain the student's mistake.
  2. Find the limit.
Hint

Find the limits of the top and the bottom first.

Answer and solution
  1. The limit is not an indeterminate form: the top approaches 2 and the bottom approaches 1, so the rule does not apply
  2. 2
  1. Top -> e^0 + 1 = 2, bottom -> 1: not 0/0 and not infinity/infinity, so L'Hospital's rule does not apply.
  2. limx→0ex+1x+1=21=2

Common mistake Using the rule on a limit that is not indeterminate (gives 1, not 2).

Watch the worked solution to Problem 5