Skip to main content

Unit 4 · Topic 4.7

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

L'Hospital's Rule handles limits of quotients that come out as 0/0 or ∞/∞. If the limit of f(x)g(x)\frac{f(x)}{g(x)} has one of those forms, it equals the limit of f′(x)g′(x)\frac{f'(x)}{g'(x)}, provided that new limit exists. You must show the indeterminate form before you use it.

Key terms

  • L'Hospital's Rule
  • indeterminate form
  • 0/0
  • ∞/∞

The rule and its conditions

Suppose f and g are differentiable near c (except possibly at c), and g′(x) ≠ 0 near c. If lim⁡x→cf(x)=0\displaystyle\lim_{x \to c} f(x) = 0 and lim⁡x→cg(x)=0\displaystyle\lim_{x \to c} g(x) = 0, or if both limits are ±∞, then lim⁡x→cf(x)g(x)=lim⁡x→cf′(x)g′(x),\lim_{x \to c} \frac{f(x)}{g(x)} = \lim_{x \to c} \frac{f'(x)}{g'(x)}, as long as the limit on the right exists (or is ±∞).

It also works for one-sided limits and for limits as x→∞ or x→−∞.

Why it makes sense: if f(c) = g(c) = 0, then near c local linearity (4.6) gives f(x) ≈ f′(c)(x − c) and g(x) ≈ g′(c)(x − c). Divide, and the (x − c) factors cancel, leaving about f′(c)g′(c)\frac{f'(c)}{g'(c)}.

How to use it

A safe routine:

  • Substitute first. Write down the form you get, like 0/0.
  • If and only if it's 0/0 or ∞/∞, differentiate the top and bottom separately.
  • Take the new limit. If it is still 0/0 or ∞/∞, you may apply the rule again.
  • If substitution gives a real number or (nonzero)/0, don't use the rule.

Not the quotient rule

L'Hospital's Rule differentiates the numerator and denominator separately: f′(x)g′(x)\frac{f'(x)}{g'(x)}. It does not use the quotient rule, which would compute the derivative of the whole fraction. That's a different thing entirely.

Growth rates

L'Hospital's Rule makes the growth-rate facts from 1.15 provable. lim⁡x→∞x2ex\displaystyle\lim_{x \to \infty} \frac{x^2}{e^x} is ∞/∞, then 2xex\frac{2x}{e^x} is ∞/∞, then 2ex→0\frac{2}{e^x} \to 0. So eˣ eventually beats any power of x. Similarly, lim⁡x→∞ln⁡xx=0\displaystyle\lim_{x \to \infty} \frac{\ln x}{\sqrt{x}} = 0, so ln x grows slower than any positive power.

Using it with tables

Sometimes f and g are given only by values. If f(3) = g(3) = 0, f and g are differentiable, and f′ and g′ are continuous at 3 with g′(3) ≠ 0, then lim⁡x→3f(x)g(x)=f′(3)g′(3)\displaystyle\lim_{x \to 3} \frac{f(x)}{g(x)} = \frac{f'(3)}{g'(3)}. Exam questions often ask this, sometimes needing the rule twice using f″ and g″.

What you won't be tested on

Other indeterminate forms, like ∞ − ∞, 0·∞, and exponent forms such as 1 raised to the ∞ power, are not assessed on the AP exam. Only 0/0 and ∞/∞ are tested, so don't spend study time on the others.

Worked examples

Try each one yourself first, then open the solution.

  1. Example 1

    Using the rule twice

    Find lim⁡x→0ex−1−xx2\displaystyle\lim_{x \to 0} \frac{e^x - 1 - x}{x^2}.

    Show the solution
    1. Step 1: Substitute: 1−1−00\dfrac{1 - 1 - 0}{0} = 0/0. Indeterminate, so the rule applies.
    2. Step 2: Differentiate top and bottom: lim⁡x→0ex−12x\displaystyle\lim_{x \to 0} \frac{e^x - 1}{2x}. Substitute: 0/0 again.
    3. Step 3: Apply the rule again: lim⁡x→0ex2\displaystyle\lim_{x \to 0} \frac{e^x}{2}.
    4. Step 4: Substitute: 12\frac{1}{2}.

    Answer: 12\frac{1}{2}

  2. Example 2

    An ∞/∞ limit at infinity

    Find lim⁡x→∞ln⁡xx\displaystyle\lim_{x \to \infty} \frac{\ln x}{\sqrt{x}}.

    Show the solution
    1. Step 1: As x→∞, ln x → ∞ and √x → ∞. Form: ∞/∞.
    2. Step 2: Differentiate: 1/x1/(2x)=2xx=2x\dfrac{1/x}{1/(2\sqrt{x})} = \dfrac{2\sqrt{x}}{x} = \dfrac{2}{\sqrt{x}}.
    3. Step 3: As x → ∞, 2x→0\frac{2}{\sqrt{x}} \to 0.

    Answer: 0

  3. Example 3

    Trap: using the rule on a limit that isn't indeterminate

    Find lim⁡x→0cos⁡xx+1\displaystyle\lim_{x \to 0} \frac{\cos x}{x + 1}. A student uses L'Hospital's Rule and gets lim⁡x→0−sin⁡x1=0\displaystyle\lim_{x \to 0} \frac{-\sin x}{1} = 0. What went wrong?

    Show the solution
    1. Step 1: Substitute first: cos⁡00+1=11=1\frac{\cos 0}{0 + 1} = \frac{1}{1} = 1.
    2. Step 2: That's a real number, not 0/0 or ∞/∞, so L'Hospital's Rule doesn't apply. Using it anyway gives a wrong answer.
    3. Step 3: The limit is simply 1, by direct substitution.

    Answer: 1. The student's answer of 0 is wrong because the conditions of L'Hospital's Rule weren't met.

Common mistakes

  • Using L'Hospital's Rule without first showing 0/0 or ∞/∞. On free response, you lose the point if the form isn't shown.
  • Applying the quotient rule instead of differentiating top and bottom separately.
  • Applying the rule to a limit that isn't indeterminate, which can give a wrong answer.

On the exam

  • In free response, write the limits of the numerator and denominator (for example, “lim⁡f(x)=0\lim f(x) = 0 and lim⁡g(x)=0\lim g(x) = 0”) before applying the rule. This often appears with functions given by tables or as a step in a bigger question.
  • In multiple choice, look for limits that are 0/0 forms involving eˣ, ln x or trig, where the rule is faster than algebra.

Connected topics

Videos

  • Calculus AB/BC – 4.7 Using L'Hopital's Rule for Determining Limits of Indeterminate Forms

    The AlgebrosWatch on YouTube (opens in a new tab)

  • Introduction to l'Hôpital's rule | Derivative applications | Differential Calculus | Khan Academy

    Khan AcademyWatch on YouTube (opens in a new tab)

  • Limits, L'Hôpital's rule, and epsilon delta definitions | Chapter 7, Essence of calculus

    3Blue1BrownWatch on YouTube (opens in a new tab)

  • AP Calculus AB TOPIC 4.7 Using L’Hospital’s Rule for Determining Limits of Indeterminate Forms

    Math Teacher GOATWatch on YouTube (opens in a new tab)

  • Understanding Limits and L'Hospital's Rule

    Professor Dave ExplainsWatch on YouTube (opens in a new tab)

  • Understand the Idea Behind L'Hôpital's Rule

    bprp calculus basicsWatch on YouTube (opens in a new tab)

Check yourself: 4.7 Using L'Hospital's Rule for Determining Limits of Indeterminate Forms

4 questions on 4.7 Using L'Hospital's Rule for Determining Limits of Indeterminate Forms. Pick an answer to see if you got it, and why.

Question 1 of 4

What is lim⁡x→0e3x−1sin⁡(2x)\displaystyle\lim_{x \to 0} \frac{e^{3x} - 1}{\sin(2x)}?

Question 2 of 4

What is lim⁡x→01−cos⁡(3x)x2\displaystyle\lim_{x \to 0} \frac{1 - \cos(3x)}{x^2}?

Question 3 of 4

L'Hospital's Rule can be applied directly to which of the following limits? I. lim⁡x→0sin⁡xx+1\displaystyle\lim_{x \to 0} \frac{\sin x}{x + 1} II. lim⁡x→∞exx2\displaystyle\lim_{x \to \infty} \frac{e^x}{x^2} III. lim⁡x→1ln⁡xx−1\displaystyle\lim_{x \to 1} \frac{\ln x}{x - 1}

Question 4 of 4

What is lim⁡x→0ex−1−xx2\displaystyle\lim_{x \to 0} \frac{e^x - 1 - x}{x^2} ?

0 of 4 answered

Something wrong or out of date here?

Something wrong with this page?

What's wrong?

Please don't include personal details.