• Practice
  • About 15 min
  • 5 practice questions

L'Hôpital's rule: when it helps and when it fails

Apply L'Hôpital's rule to 0/0 and ∞/∞ forms, rewrite 0 × ∞ and ∞ − ∞ forms so the rule can be used, and recognise the cases where the rule must not be used or does not give the answer.

If something looks wrong, please tell us.

Algebraic tricks are usually the fastest route to a limit, but some 0/0 forms resist them, such as (x − sin x)/x³. L'Hôpital's rule handles these by replacing the numerator and denominator with their derivatives. It is powerful, easy to misuse, and worth knowing together with its conditions.

The rule and its conditions

Suppose f(x) and g(x) both tend to 0, or both tend to ±∞, as x → a (a can be ∞). If f and g are differentiable near a, g′(x) ≠ 0 near a (except possibly at a itself) and lim f′(x)/g′(x) exists, then lim f(x)/g(x) = lim f′(x)/g′(x). Two things matter. First, you differentiate the numerator and the denominator separately; do not use the quotient rule. Second, the form must really be 0/0 or ∞/∞ before you start. You may apply the rule repeatedly as long as the form remains indeterminate.

Check the form first. Only 0/0 or ∞/∞ qualifies. Then differentiate top and bottom separately, and repeat if the form is still indeterminate.

Worked example 1: repeated use

Find lim(x→0) (e³ˣ − 1 − 3x)/x². At x = 0 the top is 1 − 1 − 0 = 0 and the bottom is 0, so the form is 0/0. Differentiate: (3e³ˣ − 3)/(2x), still 0/0. Differentiate again: 9e³ˣ/2 → 9/2. The limit is 9/2.

Worked example 2: a stubborn trigonometric limit

Find lim(x→0) (x − sin x)/x³. Differentiate: (1 − cos x)/(3x²), which is 0/0. Differentiate again: sin x/(6x). This is the standard limit, equal to 1/6. The limit is 1/6. Algebraic methods struggle here because there is no factor to cancel.

Worked example 3: the ∞/∞ form

Find lim(x→∞) (ln x)/x. Both tend to ∞. Differentiate: (1/x)/1 = 1/x → 0. The limit is 0: the logarithm grows more slowly than any positive power of x. In the same way, lim(x→∞) x²/eˣ = lim 2x/eˣ = lim 2/eˣ = 0.

Other indeterminate forms

A product 0 × ∞ is rewritten as a quotient. For lim(x→0⁺) x ln x, write it as (ln x)/(1/x), which is −∞/∞. Differentiating gives (1/x)/(−1/x²) = −x → 0. So x ln x → 0. A difference ∞ − ∞ is combined into one fraction. For lim(x→0) (1/x − 1/(eˣ − 1)), write (eˣ − 1 − x)/(x(eˣ − 1)), which is 0/0. Differentiate: (eˣ − 1)/(eˣ − 1 + xeˣ), still 0/0. Differentiate again: eˣ/(2eˣ + xeˣ) → 1/2. The limit is 1/2.

When the rule fails or must not be used

  • Not indeterminate: lim(x→0) (x + 1)/(x + 2) is simply 1/2. Differentiating top and bottom would give 1/1 = 1, which is wrong.
  • Derivative ratio has no limit: lim(x→∞) (x + sin x)/x is of the form ∞/∞. The derivative ratio is (1 + cos x)/1, which oscillates and has no limit, so the rule says nothing. Direct work gives 1 + (sin x)/x → 1 + 0 = 1.
  • Circular use: for lim(x→∞) x/√(x² + 1), each differentiation brings back the same type of ratio. Divide by x instead and get 1.

Key takeaways: test the form; differentiate numerator and denominator separately; repeat only while the form stays indeterminate; convert 0 × ∞ and ∞ − ∞ to a single fraction; if the derivative ratio has no limit, use another method.

Check your understanding

  1. 1. What is lim(x→0) (eˣ − 1 − x)/x²?

    1. 1
    2. 0
    3. 1/2
    4. 2
    Show answer

    Answer: C. The form is 0/0. Differentiate: (eˣ − 1)/(2x), still 0/0. Again: eˣ/2 → 1/2.

  2. 2. What is lim(x→∞) x³/eˣ?

    1. 0
    2. ∞
    3. 1
    4. 3
    Show answer

    Answer: A. The form is ∞/∞. Three applications give 6/eˣ → 0. Exponentials outgrow powers.

  3. 3. What is lim(x→0⁺) x ln x?

    1. −∞
    2. 1
    3. −1
    4. 0
    Show answer

    Answer: D. Write it as (ln x)/(1/x). Differentiating gives (1/x)/(−1/x²) = −x → 0.

  4. 4. For lim(x→0) (x + 1)/(x + 2), what is the correct value?

    1. 1
    2. 1/2
    3. 0
    4. does not exist
    Show answer

    Answer: B. The form is not indeterminate, so simply substitute: 1/2. L'Hôpital's rule would give the wrong value 1.

  5. 5. Why can L'Hôpital's rule not be used to find lim(x→∞) (x + sin x)/x?

    1. the ratio (1 + cos x) has no limit
    2. the form is really 0/0
    3. the true limit is infinite
    4. sin x has no derivative
    Show answer

    Answer: A. The form is ∞/∞, but (1 + cos x) oscillates, so the rule gives no conclusion. The limit is 1 + (sin x)/x → 1, found directly.

Privacy · Terms · Refunds · Delivery