AP Calculus AB · Topic 4.7 · Reading guide, about 4 min

L'Hospital's rule for 0/0 and infinity/infinity

Use L'Hospital's rule to evaluate limits of the form 0/0 and infinity/infinity, with the form confirmed and stated in each step.

In one minute

Some limits look like a tie between two competing trends. In 00\frac{0}{0}, the numerator and denominator both shrink to zero, and in ∞∞\frac{\infty}{\infty} both grow without bound. The form alone does not tell you the answer, so we call it indeterminate. L'Hospital's rule converts these limits to ones that are often easy.

The rule is short: if the limit gives an indeterminate form of one of those two types, differentiate the top and the bottom separately and take the limit again. The skill is knowing when it applies and writing your justification clearly.

Key terms

L'Hospital's rule
If lim⁡fg\lim \frac{f}{g} is 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}, then it equals lim⁡f′g′\lim \frac{f'}{g'} when that limit exists.
Indeterminate form
A limit shape such as 00\frac{0}{0} or ∞∞\frac{\infty}{\infty} whose value cannot be decided from the form alone.
Check the form first
Substitute the limiting value into top and bottom and state what you see. Only then is the rule allowed.
Separate derivatives
Take f′f' and g′g' individually. Do not use the quotient rule on fg\frac{f}{g}.
Repeated application
If f′g′\frac{f'}{g'} is still indeterminate, apply the rule again until the form is resolved.
Not indeterminate
A shape like 21\frac{2}{1} or 10\frac{1}{0} is not a candidate. The rule must not be used there.
Growth comparison
Exponentials grow faster than powers, and powers grow faster than logarithms, as x→∞x \to \infty.

When the rule applies

The rule has two required checks. First, ff and gg must be differentiable near the point, and the denominator's derivative must not be zero near the point. Second, the limit must really have the form 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}. In an answer you write that form explicitly, for example "the limit is of the form 00\frac{0}{0}, so L'Hospital's rule applies".

Then you replace the quotient with f′(x)g′(x)\frac{f'(x)}{g'(x)}. If that new limit exists, it equals the original limit. If it does not exist for a reason other than blowing up, the rule says nothing, and you try something else. Only the forms 00\frac{0}{0} and ∞∞\frac{\infty}{\infty} are needed in this course; other forms are first rewritten or handled by algebra.

Worked example: zero over zero

Find lim⁡x→0e3x−1sin⁡(2x)\lim_{x\to 0}\frac{e^{3x}-1}{\sin(2x)}.

Check the form. At x=0x=0, the numerator is e0−1=0e^{0}-1=0 and the denominator is sin⁡0=0\sin 0=0. So the limit is of the form 00\frac{0}{0}, and L'Hospital's rule applies. Differentiate top and bottom separately. The top gives 3e3x3e^{3x} and the bottom gives 2cos⁡(2x)2\cos(2x), using the chain rule. So the limit equals lim⁡x→03e3x2cos⁡(2x)\lim_{x\to0}\frac{3e^{3x}}{2\cos(2x)}.

This new limit is not indeterminate: at x=0x=0, it is 3⋅12⋅1=32\frac{3\cdot 1}{2\cdot 1}=\frac{3}{2}. So the answer is 32\frac{3}{2}. As a check, use the known facts eh−1h→1\frac{e^{h}-1}{h}\to1 and sin⁡uu→1\frac{\sin u}{u}\to1: the expression is 3x2x⋅(e3x−1)/(3x)sin⁡(2x)/(2x)→32⋅11\frac{3x}{2x}\cdot\frac{(e^{3x}-1)/(3x)}{\sin(2x)/(2x)}\to\frac{3}{2}\cdot\frac{1}{1}. Both methods agree.

Worked example: infinity over infinity, applied twice

Find lim⁡x→∞x2ex\lim_{x\to\infty}\frac{x^2}{e^{x}}. As x→∞x\to\infty, both x2x^2 and exe^x grow without bound, so the form is ∞∞\frac{\infty}{\infty}. Apply the rule: lim⁡2xex\lim\frac{2x}{e^{x}}. This is again ∞∞\frac{\infty}{\infty}, so apply it again: lim⁡2ex\lim\frac{2}{e^{x}}. The numerator is constant and the denominator grows without bound, so the limit is 0. Therefore lim⁡x→∞x2ex=0\lim_{x\to\infty}\frac{x^2}{e^x}=0. The same idea shows lim⁡x→∞ln⁡xx=lim⁡1/x1=0\lim_{x\to\infty}\frac{\ln x}{x}=\lim\frac{1/x}{1}=0. Both results agree with the growth ordering: exponential beats power, and power beats log.

A third example needs two steps at a point: lim⁡x→01−cos⁡xx2\lim_{x\to0}\frac{1-\cos x}{x^2} is 00\frac{0}{0}. Differentiating gives sin⁡x2x\frac{\sin x}{2x}, again 00\frac{0}{0}. Differentiating again gives cos⁡x2\frac{\cos x}{2}, which tends to 12\frac{1}{2}.

What to do with each limit shape
Value on substitutionMeaningAction
00\frac{0}{0}IndeterminateApply L'Hospital's rule, or use algebra
∞∞\frac{\infty}{\infty}IndeterminateApply L'Hospital's rule
k0\frac{k}{0} with k≠0k \ne 0Not indeterminateCheck one-sided signs; the limit is infinite or does not exist
km\frac{k}{m} with m≠0m \ne 0Not indeterminateThe limit is the number km\frac{k}{m}

Limits from tables of values and misuse

Suppose f(2)=g(2)=0f(2)=g(2)=0, f′(2)=6f'(2)=6 and g′(2)=−3g'(2)=-3, with f′f' and g′g' continuous at 2. Then lim⁡x→2f(x)g(x)\lim_{x\to2}\frac{f(x)}{g(x)} is 00\frac{0}{0}, and the rule gives f′(2)g′(2)=6−3=−2\frac{f'(2)}{g'(2)}=\frac{6}{-3}=-2.

This rule also explains the growth ordering. Any power xnx^n divided by exe^x can be hit with the rule nn times, each time lowering the exponent by one until the numerator is a constant over exe^x, which goes to 0. So exe^x outgrows every power of xx. In the other direction, ln⁡xxn\frac{\ln x}{x^n} for n>0n>0 has derivative ratio 1/xnxn−1=1nxn\frac{1/x}{nx^{n-1}}=\frac{1}{nx^n}, which also goes to 0, so every power beats the logarithm.

The form check matters. For lim⁡x→0x+2x+1\lim_{x\to0}\frac{x+2}{x+1}, substitution gives 21=2\frac{2}{1}=2, which is the answer. If you misapplied the rule you would get 11=1\frac{1}{1}=1, which is wrong. Also, never apply the quotient rule to fg\frac{f}{g} when using this rule; the numerator and denominator are differentiated on their own.

How it connects

  • Back to 1.6: factoring and rationalizing resolve 00\frac{0}{0} by algebra; this rule resolves it by derivatives.
  • Back to 1.15: growth comparisons for exponentials, powers and logs are now justified with derivatives.
  • Back to 2.7: the derivatives of exe^x, sin⁡x\sin x and ln⁡x\ln x are used constantly here.
  • Forward to 5.1: the Mean Value Theorem also demands that you check hypotheses before using a conclusion.

Common mistakes

  • Using the rule without checking the form. 21\frac{2}{1} is not indeterminate. Substitute first and write down the form.
  • Using the quotient rule. The rule differentiates the numerator and denominator separately, giving f′g′\frac{f'}{g'}, not (fg)′\left(\frac{f}{g}\right)'.
  • Stopping while the form is still indeterminate. If f′g′\frac{f'}{g'} is still 00\frac{0}{0}, apply the rule again.
  • Skipping the written justification. A correct number with no form named often loses credit. Say "of the form 00\frac{0}{0}" every time.

How it shows up on the exam

  • A limit given by a formula with exponential, trig or log pieces, where you must identify the form and apply the rule with justification.
  • A table of ff, gg, f′f' and g′g' values at a point, asking for a limit of a quotient.
  • A short written argument asking why the rule applies, or why it does not apply to a given limit.

Check yourself

  1. What exactly must you verify before writing lim⁡fg=lim⁡f′g′\lim\frac{f}{g}=\lim\frac{f'}{g'}?
  2. Why would the rule give a wrong answer for lim⁡x→1x+3x+1\lim_{x\to1}\frac{x+3}{x+1}?
  3. How would you explain why x3x^3 is eventually dominated by exe^x using this rule?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.