AP Calculus BC · Study guide

Using L’Hospital’s Rule for Determining Limits of Indeterminate Forms

AP® Calculus BC · Unit 4 · Contextual Applications of Differentiation

L'Hospital's Rule

Some limits produce 0/0 or ∞/∞, forms that hide the answer. L'Hospital's Rule replaces the fraction with the ratio of the derivatives. This guide shows when the rule applies, why it works, and how to handle products and repeated use.

The idea in one paragraph

If \(\displaystyle\lim_{x \rightarrow c} \frac{f(x)}{g(x)}\) has the form \(\frac00\) or \(\frac{\pm\infty}{\pm\infty}\), and \(f\) and \(g\) are differentiable near \(c\), then the limit equals \(\displaystyle\lim_{x \rightarrow c} \frac{f'(x)}{g'(x)}\), provided that second limit exists. Differentiate the top and bottom separately (not the quotient rule). Check the form before every use; if the new limit is still indeterminate, use the rule again. Products like \(0 \cdot \infty\) must be rewritten as a fraction first.

1The rule

\[ \lim_{x \rightarrow c} \frac{f(x)}{g(x)} = \lim_{x \rightarrow c} \frac{f'(x)}{g'(x)} \quad\text{when the first limit has the form } \frac{0}{0} \text{ or } \frac{\pm\infty}{\pm\infty} \]

The same rule works for \(x \rightarrow c^{+}\), \(x \rightarrow c^{-}\), \(x \rightarrow \infty\) and \(x \rightarrow -\infty\).

2Why it works

Figure 1. When f and g are both 0 at a, each one looks like its tangent line near a. The (x − a) factors cancel in the ratio, leaving f′(a)/g′(a). That is the idea behind L'Hospital’s Rule.

3Using it

Worked Example 1 Use it twice

\(\displaystyle\lim_{x \rightarrow 0} \frac{e^x - 1 - x}{x^2}\)

  1. 1
    Check the form: top \(\rightarrow 1 - 1 - 0 = 0\), bottom \(\rightarrow 0\). Both approach 0, so L'Hospital's Rule applies.
  2. 2
    Differentiate top and bottom separately: \(\displaystyle\lim_{x \rightarrow 0} \frac{e^x - 1}{2x}\).
  3. 3
    Check again: still \(\frac00\). Apply the rule again: \(\displaystyle\lim_{x \rightarrow 0} \frac{e^x}{2}\).
  4. 4
    Now substitute: \(\dfrac{e^0}{2} = \dfrac12\).
Answer: \(\dfrac{1}{2}\)
Write it like this

“Both the numerator and the denominator approach 0, so L'Hospital's Rule applies: \(\displaystyle\lim_{x \rightarrow 0} \frac{e^x - 1 - x}{x^2} = \lim_{x \rightarrow 0} \frac{e^x - 1}{2x}\).”

State the form each time you apply the rule. It is the reason the rule is allowed.

Common Mistake 1 · Using the quotient rule

L'Hospital's Rule takes the derivative of the top and the derivative of the bottom on their own. The quotient rule computes the derivative of the whole fraction, which is a different thing.

Worked Example 2 Infinity over infinity

\(\displaystyle\lim_{x \rightarrow \infty} \frac{\ln x}{x}\)

  1. 1
    Both top and bottom grow without bound: form \(\frac{\infty}{\infty}\), so the rule applies.
  2. 2
    \(\displaystyle\lim_{x \rightarrow \infty} \frac{1/x}{1} = \lim_{x \rightarrow \infty} \frac{1}{x} = 0\).
Answer: 0. The logarithm grows much more slowly than \(x\).
Worked Example 3 Repeat until it resolves

\(\displaystyle\lim_{x \rightarrow \infty} \frac{x^2}{e^x}\)

  1. 1
    \(\frac{\infty}{\infty}\). Apply: \(\dfrac{2x}{e^x}\), still \(\frac{\infty}{\infty}\).
  2. 2
    Apply again: \(\dfrac{2}{e^x} \rightarrow 0\).
Answer: 0. The exponential grows faster than any power of \(x\).
Worked Example 4 From values

\(f(2) = g(2) = 0\), \(f'(2) = 3\), \(g'(2) = 5\)

Both functions are differentiable and \(f'\) and \(g'\) are continuous. Find \(\displaystyle\lim_{x \rightarrow 2} \frac{f(x)}{g(x)}\).

  1. 1
    The form is \(\frac00\), because \(f(2) = g(2) = 0\) and both are continuous.
  2. 2
    By L'Hospital's Rule the limit equals \(\displaystyle\lim_{x \rightarrow 2} \frac{f'(x)}{g'(x)} = \frac{3}{5}\).
Answer: \(\dfrac35\)

4Other forms

Products \(0 \cdot \infty\) and differences \(\infty - \infty\) are also indeterminate, but the rule needs a fraction. Rewrite: a product \(fg\) becomes \(\dfrac{f}{1/g}\) or \(\dfrac{g}{1/f}\); a difference of fractions becomes one fraction over a common denominator.

Worked Example 5 Rewrite a product first

\(\displaystyle\lim_{x \rightarrow 0^{+}} x\ln x\)

  1. 1
    Form: \(0 \cdot (-\infty)\). L'Hospital's Rule needs a fraction, so rewrite: \(x\ln x = \dfrac{\ln x}{1/x}\).
  2. 2
    Now the form is \(\frac{-\infty}{\infty}\). Apply: \(\dfrac{1/x}{-1/x^2} = -x\).
  3. 3
    \(-x \rightarrow 0\).
Answer: 0

5When not to use it

Worked Example 6 Not an indeterminate form

\(\displaystyle\lim_{x \rightarrow 2} \frac{x + 1}{x - 3}\)

  1. 1
    Substitute first: \(\dfrac{3}{-1} = -3\). Not \(\frac00\) or \(\frac{\infty}{\infty}\), so the rule does not apply, and the limit is just \(-3\).
  2. 2
    Using the rule anyway would give \(\dfrac{1}{1} = 1\), a wrong answer.
Answer: \(-3\)
Common Mistake 2 · Skipping the form check

The rule only applies to \(\frac00\) and \(\frac{\infty}{\infty}\). A form like \(\frac{3}{-1}\) or \(\frac{5}{0}\) is not indeterminate: the first is just a number, and the second means unbounded. Check the form first, every time.

Common Mistake 3 · Not checking again after one use

After applying the rule once, substitute again. If you get a number, stop. Applying the rule to a limit that is no longer indeterminate can turn a right answer into a wrong one.

Quick reference

FormWhat to do
\(\frac00\) or \(\frac{\pm\infty}{\pm\infty}\)Apply the rule: derivative of top over derivative of bottom
Still indeterminateApply again
\(0 \cdot \infty\)Rewrite as a fraction, then apply
\(\infty - \infty\)Combine into one fraction, then apply
Number, or nonzero over 0Not indeterminate: the rule does not apply