Reading history

L’Hopital’s Rule

6 min read 1 views

Evaluate 0/0 and infinity/infinity limits with L'Hopital's rule, see why it works, handle other indeterminate forms and avoid the common traps.

Some limits give a meaningless result when you substitute, such as 0/0 or ∞/∞. Earlier you handled these with factoring, conjugates and special limits. L’Hôpital’s rule is a more powerful tool: in these two cases, you can replace the fraction f/g with the fraction of derivatives f′/g′ and try again. In this lesson you will see why the rule works, use it on many kinds of limits, rewrite other forms such as 0 · ∞ and 1^∞ so the rule applies, and learn when it must not be used.

In this lesson you will learn

  • The statement of L’Hôpital’s rule and its conditions
  • Why it works, using linear approximation
  • How to apply it more than once
  • How to handle 0 · ∞, ∞ − ∞, 1^∞, 0⁰ and ∞⁰
  • Common traps, including using the quotient rule by mistake

You should know indeterminate forms, linear approximation and the derivatives of eˣ and ln x.

The Rule

L’Hôpital’s rule

If lim f(x)/g(x) gives 0/0 or ∞/∞ as x → a (or as x → ±∞), and f and g are differentiable near a with g′(x) ≠ 0 there, then

lim f(x)/g(x) = lim f′(x)/g′(x),

provided the limit on the right exists (or is ±∞).

lim (sin 3x)/x        0/0 form
x→0
  = lim (3 cos 3x)/1  = 3

lim (eˣ − 1)/x        0/0 form
x→0
  = lim eˣ/1          = 1

Important: you differentiate the top and bottom separately. This is not the quotient rule.

Why It Works

Suppose f(a) = g(a) = 0. Near a, each function is close to its tangent line:

f(x) ≈ f(a) + f′(a)(x − a) = f′(a)(x − a)
g(x) ≈ g(a) + g′(a)(x − a) = g′(a)(x − a)

f(x)/g(x) ≈ f′(a)(x − a) / (g′(a)(x − a)) = f′(a)/g′(a)
xyf(x) = sin 3x (slope 3 at 0)g(x) = x (slope 1)Both are 0 at x = 0.Near 0, f/g ≈ 3x / x = 3

When both curves pass through zero at the same point, their ratio near that point is decided by how steeply each one passes through zero, that is, by the ratio of their slopes. The figure shows f(x) = sin 3x and g(x) = x near 0: f is three times as steep, so the limit of f/g is 3.

Using It More Than Once

If f′/g′ is still 0/0 or ∞/∞, apply the rule again. Check the form every time.

lim (1 − cos x)/x²         0/0
x→0
  = lim (sin x)/(2x)       still 0/0
  = lim (cos x)/2          = 1/2

lim x²/eˣ                  ∞/∞
x→∞
  = lim 2x/eˣ              still ∞/∞
  = lim 2/eˣ               = 0

The second example proves something important: eˣ grows faster than any power of x. Applying the rule n times to xⁿ/eˣ always leaves n!/eˣ → 0. In the same way, ln x grows more slowly than any power: lim (ln x)/x = lim (1/x)/1 = 0.

Other Indeterminate Forms

The rule only works on 0/0 and ∞/∞, so rewrite other forms first.

0 · ∞: move one factor to the bottom.

lim x ln x       (0 · (−∞))
x→0⁺
  = lim ln x / (1/x)          −∞/∞
  = lim (1/x) / (−1/x²)
  = lim (−x) = 0

∞ − ∞: combine into one fraction.

lim (1/x − 1/sin x)  = lim (sin x − x)/(x sin x)        0/0
x→0
  = lim (cos x − 1)/(sin x + x cos x)                    0/0
  = lim (−sin x)/(2 cos x − x sin x) = 0/2 = 0

1^∞, 0⁰, ∞⁰: take logarithms. Let y be the expression, find lim ln y, then the answer is e raised to that limit.

L = lim (1 + 1/x)ˣ        1^∞
    x→∞
ln y = x ln(1 + 1/x) = ln(1 + 1/x) / (1/x)        0/0
lim ln y = lim [ (−1/x²)/(1 + 1/x) ] / (−1/x²) = lim 1/(1 + 1/x) = 1
So L = e¹ = e

This proves the famous limit that defines e, the one behind continuously compounded interest.

When Not to Use It

Trap 1: not an indeterminate form
lim (x + 1)/(x + 2) as x→0 is simply 1/2.
Using the rule anyway gives 1/1 = 1, which is WRONG.

Trap 2: the rule goes round in circles
lim (eˣ + e⁻ˣ)/(eˣ − e⁻ˣ) as x→∞ → (eˣ − e⁻ˣ)/(eˣ + e⁻ˣ) → back again.
Divide top and bottom by eˣ instead: (1 + e⁻²ˣ)/(1 − e⁻²ˣ) → 1.

Trap 3: f′/g′ has no limit
lim (x + sin x)/x as x→∞ is 1, since sin x / x → 0.
But f′/g′ = 1 + cos x keeps oscillating. The rule tells you nothing here.

Common Mistakes

  1. Not checking the form first. Always substitute and confirm 0/0 or ∞/∞.
  2. Using the quotient rule. Differentiate top and bottom separately.
  3. Forgetting to rewrite 0 · ∞ or 1^∞.
  4. Forgetting e at the end of a log-limit: if lim ln y = 1, then lim y = e, not 1.
  5. Ignoring easier methods. Simple factoring is often quicker.

Practice Exercises

Exercise 1. Find lim (x³ − 8)/(x − 2) as x → 2.

Show answer

0/0. Rule: lim 3x²/1 = 12.

Exercise 2. Find lim (tan x − x)/x³ as x → 0.

Show answer

(sec²x − 1)/(3x²) = tan²x/(3x²) → 1/3, since tan x / x → 1.

Exercise 3. Find lim x^x as x → 0⁺.

Show answer

0⁰ form. ln y = x ln x → 0 (shown above), so the limit is e⁰ = 1.

Frequently Asked Questions

When can you use L’Hopital’s rule?

Only when substituting gives 0/0 or infinity/infinity, the top and bottom are differentiable near the point, and the limit of f’/g’ exists. Other forms such as 0 times infinity, infinity minus infinity, or 1 to the power infinity must be rewritten as a fraction first.

Is L’Hopital’s rule the same as the quotient rule?

No. The quotient rule finds the derivative of f/g. L’Hopital’s rule finds a limit of f/g by differentiating f and g separately and taking the limit of f’/g’. Using the quotient rule inside a limit problem is a common mistake.

Summary

  • For 0/0 or ∞/∞, lim f/g = lim f′/g′ when the right side exists.
  • It works because near a common zero, the ratio is the ratio of slopes.
  • Repeat the rule if needed, checking the form each time.
  • Rewrite 0 · ∞ and ∞ − ∞ as fractions; use logs for 1^∞, 0⁰ and ∞⁰.
  • eˣ beats every power of x, and every power of x beats ln x.

Next: Differentiation Practice Problems.

Lessons are also marked complete when you click Next.

Leave a Reply

Your email address will not be published. Required fields are marked *