Calculus3Rates and Approximation3 of 4
Rates and Approximation · 3

L'Hôpital's Rule

1

Comparing slopes when plugging in gives 00\frac00

Let's find the limit of e2x−1sin⁡x\frac{\tp{e^{2x}-1}}{\bt{\sin x}} as xx approaches 00. Plugging in 00 gives 00\frac{\tp{0}}{\bt{0}}. We call that an indeterminate form, because the form itself doesn't tell us what the limit is. These aren't polynomials, so factoring won't help. When the top and bottom both approach 00, the limit depends on how fast each one gets there.

Both curves pass through the origin, so each height is its secant slope from the origin times the run x\rn{x}. The run is the same for both, so it cancels when we divide.

0.5\htmlClass{lc-mute}{0.5}
0.5\htmlClass{lc-mute}{0.5}
y=e2x−1\htmlClass{lc-pink}{y = e^{2x} - 1}
y=sin⁡x\htmlClass{lc-blue}{y = \sin x}
(0,0)\htmlClass{lc-mute}{(0, 0)}
x\htmlClass{lc-orange}{x}
e2x−1\htmlClass{lc-pink}{e^{2x} - 1}
sin⁡x\htmlClass{lc-blue}{\sin x}
e2x−1=e2x−1x⏟secant slope⋅x⏟runsin⁡x=sin⁡xx⏟secant slope⋅x⏟run\displaystyle \begin{aligned}\tp{e^{2x}-1} &= \underbrace{\tp{\frac{e^{2x}-1}{\rn{x}}}}_{\text{secant slope}}\cdot\underbrace{\rn{x}}_{\text{run}}\\[8pt] \bt{\sin x} &= \underbrace{\bt{\frac{\sin x}{\rn{x}}}}_{\text{secant slope}}\cdot\underbrace{\rn{x}}_{\text{run}}\end{aligned}
e2x−1sin⁡x\displaystyle \frac{\tp{e^{2x}-1}}{\bt{\sin x}} =  e2x−1x    sin⁡xx  \displaystyle = \frac{\;\tp{\dfrac{e^{2x}-1}{\rn{x}}}\;}{\;\bt{\dfrac{\sin x}{\rn{x}}}\;}
Find lim⁡x→0e2x−1sin⁡x\lim_{x\to0}\frac{\tp{e^{2x}-1}}{\bt{\sin x}}
0.5\htmlClass{lc-mute}{0.5}
0.5\htmlClass{lc-mute}{0.5}
y=e2x−1\htmlClass{lc-pink}{y = e^{2x} - 1}
y=sin⁡x\htmlClass{lc-blue}{y = \sin x}
(0,0)\htmlClass{lc-mute}{(0, 0)}
Text solution
Plug inThe top and the bottom are both 00 at x=0x = 0.
x\displaystyle x =0:e0−1sin⁡0\displaystyle = 0:\qquad \frac{\tp{e^{0}-1}}{\bt{\sin 0}} =00\displaystyle = \fzz
Secant slopes become tangent slopesAs xx approaches 00, each secant slope approaches the derivative at 00. The derivative of e2x−1\tp{e^{2x}-1} is 2e2x\tp{2e^{2x}}, and the derivative of sin⁡x\bt{\sin x} is cos⁡x\bt{\cos x}.
lim⁡x→0  e2x−1x    sin⁡xx  \displaystyle \lim_{x\to0}\frac{\;\tp{\dfrac{e^{2x}-1}{\rn{x}}}\;}{\;\bt{\dfrac{\sin x}{\rn{x}}}\;} =2e0cos⁡0\displaystyle = \frac{\tp{2e^{0}}}{\bt{\cos 0}} =21\displaystyle = \frac{\tp{2}}{\bt{1}} =2\displaystyle = 2
The same answer from tangent linesNear 00, e2x−1\tp{e^{2x}-1} is close to its tangent line y=2x\tp{y = 2x}, and sin⁡x\bt{\sin x} is close to y=x\bt{y = x}.
e2x−1sin⁡x≈2xx\displaystyle \frac{\tp{e^{2x}-1}}{\bt{\sin x}} \approx \frac{\tp{2x}}{\bt{x}} =2\displaystyle = 2

The only property we used was that both functions were 00 at the point. Whenever two functions f\tp{f} and g\bt{g} both equal 00 at aa, each height is its secant slope times the run x−a\rn{x - a}. The shared run cancels, so the ratio of the functions approaches the ratio of their derivatives. This is L'Hôpital's rule.

L'Hôpital's rule
lim⁡x→af(x)g(x)\displaystyle \lim_{x\to a}\frac{\tp{f(x)}}{\bt{g(x)}} =lim⁡x→af′(x)g′(x)\displaystyle = \lim_{x\to a}\frac{\tp{f'(x)}}{\bt{g'(x)}}
(lim⁡x→af(x)=0,  lim⁡x→ag(x)=0)\displaystyle {\Big(\lim_{x\to a} \tp{f(x)} = 0,\ \ \lim_{x\to a} \bt{g(x)} = 0\Big)}

We differentiate the top and the bottom separately. We don't use the quotient rule, because we aren't finding the derivative of the fraction. We're comparing the top curve's slope with the bottom curve's slope. And before using the derivatives, check that the top and bottom both approach 00. If they don't, the rule doesn't apply.

If we only know that both functions are 00 at the point, and their derivatives there, the limit is the ratio of those derivatives, as long as the derivative on the bottom isn't 00.

f(2)=g(2)=0f′(2)=6,g′(2)=3\displaystyle \begin{aligned}\tp{f(2)} = \bt{g(2)} &= 0\\ \tp{f'(2)} &= 6,\qquad \bt{g'(2)} = 3\end{aligned}
lim⁡x→2f(x)g(x)\displaystyle \lim_{x\to2}\frac{\tp{f(x)}}{\bt{g(x)}} =f′(2)g′(2)\displaystyle = \frac{\tp{f'(2)}}{\bt{g'(2)}} =63\displaystyle = \frac63 =2\displaystyle = 2

On a limit we already know from factoring, the rule gives the same answer.

lim⁡x→2x2−4x−2=lim⁡x→2(x−2)(x+2)x−2=lim⁡x→2(x+2)=4\displaystyle \begin{aligned}&\lim_{x\to2}\frac{\tp{x^2-4}}{\bt{x-2}}\\ &\quad= \lim_{x\to2}\frac{\tp{(x-2)(x+2)}}{\bt{x-2}}\\ &\quad= \lim_{x\to2}(x+2) = 4\end{aligned}
lim⁡x→2x2−4x−2=lim⁡x→22x1=4\displaystyle \begin{aligned}&\lim_{x\to2}\frac{\tp{x^2-4}}{\bt{x-2}}\\ &\quad= \lim_{x\to2}\frac{\tp{2x}}{\bt{1}} = 4\end{aligned}
2

Applying the rule again, and when to stop

The rule gives us a new fraction with the same limit. Sometimes that new fraction is 00\frac{\tp{0}}{\bt{0}} again, and sometimes plugging in already gives a number. Here's one of each.

Find lim⁡x→01−cos⁡xx2\lim_{x\to0}\frac{\tp{1-\cos x}}{\bt{x^2}} and lim⁡x→0sin⁡xx2+x\lim_{x\to0}\frac{\tp{\sin x}}{\bt{x^2+x}}
0.5\htmlClass{lc-mute}{0.5}
0.5\htmlClass{lc-mute}{0.5}
1−cos⁡x\htmlClass{lc-pink}{1 - \cos x}
x2\htmlClass{lc-blue}{x^2}
Text solution
One use gives 00\frac00 againThe slopes of 1−cos⁡x\tp{1-\cos x} and x2\bt{x^2} at 00 are both 00, so sin⁡x2x\frac{\tp{\sin x}}{\bt{2x}} is 00\frac{\tp{0}}{\bt{0}} at 00. It still has the same limit, because the rule is about the slopes near 00.
lim⁡x→01−cos⁡xx200\displaystyle \uf{\fzz}{\lim_{x\to0}\frac{\tp{1-\cos x}}{\bt{x^2}}} =lim⁡x→0sin⁡x2x00\displaystyle = \uf{\fzz}{\lim_{x\to0}\frac{\tp{\sin x}}{\bt{2x}}}
Use the rule a second timeNow plugging in gives a number. It's the same 12\frac12 we found earlier by multiplying the top and bottom by 1+cos⁡x1 + \cos x.
lim⁡x→0sin⁡x2x00\displaystyle \uf{\fzz}{\lim_{x\to0}\frac{\tp{\sin x}}{\bt{2x}}} =lim⁡x→0cos⁡x2\displaystyle = \lim_{x\to0}\frac{\tp{\cos x}}{\bt{2}} =12\displaystyle = \frac12

For sin⁡xx2+x\frac{\tp{\sin x}}{\bt{x^2+x}}, one use of the rule is enough. Plugging in after it gives 11\frac{\tp{1}}{\bt{1}}, which is a number, so the limit is 11 and we stop. Factoring an x\bt{x} out of the bottom gives the same 11.

lim⁡x→0sin⁡xx2+x00=lim⁡x→0cos⁡x2x+1=11=1\displaystyle \begin{aligned}&\uf{\fzz}{\lim_{x\to0}\frac{\tp{\sin x}}{\bt{x^2+x}}}\\ &\quad= \lim_{x\to0}\frac{\tp{\cos x}}{\bt{2x+1}} = \frac{\tp{1}}{\bt{1}} = 1\end{aligned}
sin⁡xx2+x=sin⁡xx⋅1x+1→  1⋅1=1\displaystyle \begin{aligned}&\frac{\tp{\sin x}}{\bt{x^2+x}} = \frac{\tp{\sin x}}{\bt{x}}\cdot\frac{1}{\bt{x+1}}\\ &\quad\to\; 1\cdot 1 = 1\end{aligned}

If we apply the rule again out of habit, we get −sin⁡x2\frac{\tp{-\sin x}}{\bt{2}}, which gives 00, and that's wrong. Comparing slopes gave us the limit only because both functions were 00 at the point. Here cos⁡x\tp{\cos x} and 2x+1\bt{2x + 1} both have height 11 at 00, so near 00 their ratio is close to 11.

lim⁡x→0cos⁡x2x+1\displaystyle \lim_{x\to0}\frac{\tp{\cos x}}{\bt{2x+1}} =1  ≠  0\displaystyle = 1 \;\neq\; 0 =lim⁡x→0−sin⁡x2\displaystyle = \lim_{x\to0}\frac{\tp{-\sin x}}{\bt{2}}

When should we stop applying L’Hôpital’s rule?

3

When the top and bottom both go to infinity

Now let's find the limit of x3\tp{x^3} over ex\bt{e^x} as xx goes to infinity. The top and the bottom both go to infinity, so we have ∞∞\frac{\tp{\infty}}{\bt{\infty}}, and the limit depends on which one grows faster. The same rule works for this form too, and for limits where xx goes to infinity or negative infinity.

The rule for both forms
lim⁡f(x)g(x)\displaystyle \lim\frac{\tp{f(x)}}{\bt{g(x)}} =lim⁡f′(x)g′(x)\displaystyle = \lim\frac{\tp{f'(x)}}{\bt{g'(x)}}
(00 or ±∞±∞;  x→a or x→±∞)\displaystyle {\Big(\fzz \ \text{or}\ \fpm;\ \ x\to a \ \text{or}\ x\to\pm\infty\Big)}

On 3x2+1x2+5\frac{\tp{3x^2+1}}{\bt{x^2+5}}, the rule gives 6x2x=3\frac{\tp{6x}}{\bt{2x}} = 3, the same as comparing the leading coefficients. For fractions of polynomials, comparing leading coefficients is quicker. We need the rule to compare functions that aren't polynomials, like x3\tp{x^3} and ex\bt{e^x}.

Find lim⁡x→∞x3ex\lim_{x\to\infty}\frac{\tp{x^3}}{\bt{e^x}} and lim⁡x→∞ln⁡xx\lim_{x\to\infty}\frac{\tp{\ln x}}{\bt{\sqrt x}}
lim⁡x→∞x3ex\displaystyle \lim_{x\to\infty}\frac{\tp{x^3}}{\bt{e^x}} =  ?\displaystyle = \;?
lim⁡x→∞ln⁡xx\displaystyle \lim_{x\to\infty}\frac{\tp{\ln x}}{\bt{\sqrt x}} =  ?\displaystyle = \;?
Text solution
Differentiate until the power of xx is goneEach time, the power of xx on top goes down by 11, while the bottom stays ex\bt{e^x}. After three steps the top is the constant 6\tp{6}.
lim⁡x→∞x3ex∞∞\displaystyle \uf{\fii}{\lim_{x\to\infty}\frac{\tp{x^3}}{\bt{e^x}}} =lim⁡x→∞3x2ex∞∞\displaystyle = \uf{\fii}{\lim_{x\to\infty}\frac{\tp{3x^2}}{\bt{e^x}}} =lim⁡x→∞6xex∞∞\displaystyle = \uf{\fii}{\lim_{x\to\infty}\frac{\tp{6x}}{\bt{e^x}}} =lim⁡x→∞6ex\displaystyle = \lim_{x\to\infty}\frac{\tp{6}}{\bt{e^x}} =0\displaystyle = 0
Simplify before plugging inFor ln⁡xx\frac{\tp{\ln x}}{\bt{\sqrt x}}, the new fraction looks like 00\frac{\tp{0}}{\bt{0}}, but it simplifies to 2x\frac{\tp{2}}{\bt{\sqrt{x}}}.
lim⁡x→∞ln⁡xx∞∞\displaystyle \uf{\fii}{\lim_{x\to\infty}\frac{\tp{\ln x}}{\bt{\sqrt x}}} =lim⁡x→∞  1x    12x  \displaystyle = \lim_{x\to\infty}\frac{\;\tp{\dfrac1x}\;}{\;\bt{\dfrac{1}{2\sqrt x}}\;} =lim⁡x→∞2x\displaystyle = \lim_{x\to\infty}\frac{\tp{2}}{\bt{\sqrt x}} =0\displaystyle = 0

For any whole-number power xn\tp{x^n}, applying the rule nn times leaves a constant over ex\bt{e^x}, so exe^x grows faster than any power of xx. A logarithm goes the other way. For ln⁡xx\frac{\tp{\ln x}}{\bt{x}}, one derivative turns ln⁡x\tp{\ln x} into 1x\tp{\frac1x}, and the logarithm is gone.

lim⁡x→∞ln⁡xx∞∞\displaystyle \uf{\fii}{\lim_{x\to\infty}\frac{\tp{\ln x}}{\bt{x}}} =lim⁡x→∞  1x  1\displaystyle = \lim_{x\to\infty}\frac{\;\tp{\dfrac1x}\;}{\bt{1}} =0\displaystyle = 0

The same happens for ln⁡xxp\frac{\tp{\ln x}}{\bt{x^p}} with any p>0p > 0. So as xx goes to infinity, ln⁡x\ln x grows slowest, then positive powers of xx, and exe^x grows fastest.

Growth rates
lim⁡x→∞ln⁡xxp=0lim⁡x→∞xpex=0(p>0)\displaystyle {\begin{aligned}\lim_{x\to\infty}\frac{\tp{\ln x}}{\bt{x^{p}}} &= 0\\ \lim_{x\to\infty}\frac{\tp{x^{p}}}{\bt{e^{x}}} &= 0\end{aligned} \qquad (p > 0)}

Why does exe^x eventually grow faster than x3x^3?

4

Products that give 0⋅∞0 \cdot \infty

Now let's find the limit of xln⁡x\pa{x}\pb{\ln x} as xx approaches 00 from the right. Here x\pa{x} goes to 0\pa{0} and ln⁡x\pb{\ln x} goes to −∞\pb{-\infty}, and 0⋅(−∞)\pa{0} \cdot (\pb{-\infty}) doesn't tell us what the product approaches.

L'Hôpital's rule only works on a fraction. But multiplying by x\pa{x} is the same as dividing by 1x\pa{\frac1x}, so we can keep ln⁡x\pb{\ln x} on top and move x\pa{x} to the bottom as 1x\pa{\frac1x}.

x ln⁡x\displaystyle \pa{x}\,\pb{\ln x} =ln⁡x  1x  −∞∞\displaystyle = \uf{\frac{\pb{-\infty}}{\pa{\infty}}}{\frac{\pb{\ln x}}{\;\pa{\dfrac1x}\;}}
Find lim⁡x→0+xln⁡x\lim_{x\to0^+} \pa{x}\pb{\ln x}
lim⁡x→0+x ln⁡x\displaystyle \lim_{x\to0^+} \pa{x}\,\pb{\ln x} =  ?\displaystyle = \;?
Text solution
Keep ln⁡x\pb{\ln x} on topThe derivative of ln⁡x\pb{\ln x} is 1x\pb{\frac1x}, so the logarithm is gone, and the new fraction simplifies to −x-x.
lim⁡x→0+ln⁡x  1x  −∞∞\displaystyle \uf{\frac{\pb{-\infty}}{\pa{\infty}}}{\lim_{x\to0^+}\frac{\pb{\ln x}}{\;\pa{\dfrac1x}\;}} =lim⁡x→0+  1x    −1x2  \displaystyle = \lim_{x\to0^+}\frac{\;\pb{\dfrac1x}\;}{\;\pa{-\dfrac{1}{x^2}}\;} =lim⁡x→0+(−x)\displaystyle = \lim_{x\to0^+}(-x) =0\displaystyle = 0
Why not move ln⁡x\pb{\ln x} down?Moving ln⁡x\pb{\ln x} down as 1ln⁡x\pb{\frac{1}{\ln x}} gives 00\frac{\pa{0}}{\pb{0}} too, but the bottom's derivative needs the chain rule, and the new fraction simplifies to 0⋅∞\pa{0}\cdot\pb{\infty} again, with an extra factor of ln⁡x\pb{\ln x}.
x ln⁡x\displaystyle \pa{x}\,\pb{\ln x} =x  1ln⁡x  00\displaystyle = \uf{\frac{\pa{0}}{\pb{0}}}{\frac{\pa{x}}{\;\pb{\dfrac{1}{\ln x}}\;}}
→1  −1x(ln⁡x)2  \displaystyle \to\quad \frac{\pa{1}}{\;\pb{-\dfrac{1}{x(\ln x)^2}}\;} =−x (ln⁡x)20⋅∞\displaystyle = \uf{\pa{0}\cdot\pb{\infty}}{-\pa{x}\,\pb{(\ln x)^2}}
x e−x\pa{x}\,\pb{e^{-x}} as x→∞x \to \inftyThis time we keep x\pa{x} on top. Since e−x\pb{e^{-x}} is 1ex\pb{\frac{1}{e^x}}, it goes to the bottom as ex\pb{e^x}.
lim⁡x→∞x e−x\displaystyle \lim_{x\to\infty} \pa{x}\,\pb{e^{-x}} =lim⁡x→∞xex∞∞\displaystyle = \uf{\frac{\pa{\infty}}{\pb{\infty}}}{\lim_{x\to\infty}\frac{\pa{x}}{\pb{e^x}}} =lim⁡x→∞1ex\displaystyle = \lim_{x\to\infty}\frac{\pa{1}}{\pb{e^x}} =0\displaystyle = 0

Which factor should we move to the bottom as its reciprocal?

5

Differences that give ∞−∞\infty - \infty

Let's find the limit of 1x−1ex−1\pa{\frac1x} - \pb{\frac{1}{e^x-1}} as xx approaches 00 from the right. Both terms go to infinity, but ∞−∞\pa{\infty} - \pb{\infty} doesn't mean 00, because the difference could go to infinity or approach any number. The difference is the vertical distance between the two curves, and in the figure it stays small, about 12\frac12 at both marked values of xx.

1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
2\htmlClass{lc-mute}{2}
4\htmlClass{lc-mute}{4}
6\htmlClass{lc-mute}{6}
1x\htmlClass{lc-green}{\dfrac{1}{x}}
1ex−1\htmlClass{lc-violet}{\dfrac{1}{e^x - 1}}
1x→∞1ex−1→∞\displaystyle \begin{aligned}\pa{\frac1x} &\to \pa{\infty}\\[6pt] \pb{\frac{1}{e^x-1}} &\to \pb{\infty}\end{aligned}

To find what that distance approaches, we need a single fraction for L'Hôpital's rule, so we combine the two terms over the common denominator x(ex−1)\bt{x(e^x - 1)}.

1x−1ex−1\displaystyle \pa{\frac1x} - \pb{\frac{1}{e^x-1}} =ex−1−xx(ex−1)00\displaystyle = \uf{\fzz}{\frac{\tp{e^x-1-x}}{\bt{x(e^x-1)}}}
Find lim⁡x→0+(1x−1ex−1)\lim_{x\to0^+}\Big(\pa{\frac1x} - \pb{\frac{1}{e^x-1}}\Big)
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
3\htmlClass{lc-mute}{3}
1x\htmlClass{lc-green}{\dfrac{1}{x}}
1ex−1\htmlClass{lc-violet}{\dfrac{1}{e^x - 1}}
Text solution
One use gives 00\frac00 againThe bottom is a product, x(ex−1)\bt{x(e^x - 1)}, so its derivative needs the product rule.
lim⁡x→0+ex−1−xx(ex−1)00\displaystyle \uf{\fzz}{\lim_{x\to0^+}\frac{\tp{e^x-1-x}}{\bt{x(e^x-1)}}} =lim⁡x→0+ex−1(ex−1)+xex00\displaystyle = \uf{\fzz}{\lim_{x\to0^+}\frac{\tp{e^x-1}}{\bt{(e^x-1)+xe^x}}}
Use the rule a second timeNow plugging in gives 12\frac{\tp{1}}{\bt{2}}. Even though both curves go to ∞\infty, the vertical distance between them approaches 12\frac12.
lim⁡x→0+ex2ex+xex\displaystyle \lim_{x\to0^+}\frac{\tp{e^x}}{\bt{2e^x+xe^x}} =12\displaystyle = \frac12

When an ∞−∞\pa{\infty} - \pb{\infty} limit has square roots instead of fractions, multiply and divide by the conjugate to turn the difference into a single fraction.

6

Indeterminate powers

Now let's find the limit of (1+x)1x(\pb{1 + x})^{\pa{\frac1x}} as xx approaches 00. The base 1+x\pb{1 + x} approaches 1\pb{1}, and the exponent 1x\pa{\frac1x} goes to positive or negative infinity. We call this a 1∞\pb{1}^{\pa{\infty}} form. 11 to any power is 11, but here the base is never actually 11, and small values of xx show the power getting closer to a number near 2.72.7.

x=0.01:1.01100≈2.70x=0.001:1.0011000≈2.72\displaystyle \begin{aligned} x = 0.01:&\quad \pb{1.01}^{\pa{100}} \approx 2.70\\ x = 0.001:&\quad \pb{1.001}^{\pa{1000}} \approx 2.72\end{aligned}

To find that number with L'Hôpital's rule, we need to bring the exponent down. Remember from logarithmic differentiation that ln⁡(ab)=bln⁡a\ln(\pb{a}^{\pa{b}}) = \pa{b}\pb{\ln a}. Since eln⁡a=ae^{\pb{\ln a}} = \pb{a}, we can write any power ab\pb{a}^{\pa{b}} as ebln⁡ae^{\pa{b}\pb{\ln a}}.

Rewrite with base e
ab\displaystyle \pb{a}^{\pa{b}} =e b ln⁡a\displaystyle = e^{\,\pa{b}\,\pb{\ln a}}
(1+x)1x\displaystyle (\pb{1+x})^{\pa{\frac1x}} =e1xln⁡(1+x)\displaystyle = e^{\pa{\frac1x}\pb{\ln(1+x)}} =eln⁡(1+x)x\displaystyle = e^{\frac{\pb{\ln(1+x)}}{\pa{x}}}
Find lim⁡x→0(1+x)1x\lim_{x\to0} (\pb{1+x})^{\pa{\frac1x}}, lim⁡x→0+xx\lim_{x\to0^+} \pb{x}^{\pa{x}}, and lim⁡x→∞x1x\lim_{x\to\infty} \pb{x}^{\pa{\frac1x}}
lim⁡x→0(1+x)1x\displaystyle \lim_{x\to0} (\pb{1+x})^{\pa{\frac{\scriptstyle 1}{\scriptstyle x}}} =  ?\displaystyle = \;?
lim⁡x→0+xx\displaystyle \lim_{x\to0^+} \pb{x}^{\pa{x}} =  ?\displaystyle = \;?
lim⁡x→∞x1x\displaystyle \lim_{x\to\infty} \pb{x}^{\pa{\frac{\scriptstyle 1}{\scriptstyle x}}} =  ?\displaystyle = \;?
Text solution
Find the limit of the exponentThe exponent gives 00\frac{\pb{0}}{\pa{0}} at x=0x = 0, so we apply L'Hôpital's rule.
lim⁡x→0ln⁡(1+x)x00\displaystyle \uf{\frac{\pb{0}}{\pa{0}}}{\lim_{x\to0}\frac{\pb{\ln(1+x)}}{\pa{x}}} =lim⁡x→0  11+x  1\displaystyle = \lim_{x\to0}\frac{\;\pb{\dfrac{1}{1+x}}\;}{\pa{1}} =1\displaystyle = 1
Raise ee to that limitBecause eue^u is continuous, the limit of the power is ee raised to the limit of the exponent. The answer is e1e^1, not 11.
lim⁡x→0(1+x)1x\displaystyle \lim_{x\to0}(\pb{1+x})^{\pa{\frac1x}} =elim⁡x→0ln⁡(1+x)x\displaystyle = e^{\textstyle\lim_{x\to0}\frac{\pb{\ln(1+x)}}{\pa{x}}} =e1\displaystyle = e^{1} =e\displaystyle = e
00\pb{0}^{\pa{0}} and ∞0\pb{\infty}^{\pa{0}} the same wayWe already found that xln⁡x\pa{x}\pb{\ln x} and ln⁡xx\frac{\pb{\ln x}}{\pa{x}} both approach 00, so both exponents approach 00.
xx\displaystyle \pb{x}^{\pa{x}} =exln⁡x  →  e0\displaystyle = e^{\pa{x}\pb{\ln x}} \;\to\; e^{0} =1(x→0+)\displaystyle = 1 \qquad (x\to0^+)
x1x\displaystyle \pb{x}^{\pa{\frac1x}} =eln⁡xx  →  e0\displaystyle = e^{\frac{\pb{\ln x}}{\pa{x}}} \;\to\; e^{0} =1(x→∞)\displaystyle = 1 \qquad (x\to\infty)

Summary

When to use L'Hôpital's rule
lim⁡f(x)g(x)\displaystyle \lim\frac{\tp{f(x)}}{\bt{g(x)}} =lim⁡f′(x)g′(x)(00 or ±∞±∞)\displaystyle = \lim\frac{\tp{f'(x)}}{\bt{g'(x)}} \qquad \Big(\fzz \ \text{or}\ \fpm\Big)
lim⁡x→0e2x−1sin⁡x\displaystyle \lim_{x\to0}\frac{\tp{e^{2x}-1}}{\bt{\sin x}} =lim⁡x→02e2xcos⁡x\displaystyle = \lim_{x\to0}\frac{\tp{2e^{2x}}}{\bt{\cos x}} =2\displaystyle = 2
00,∞∞,0⋅∞,∞−∞\displaystyle {\fzz,\quad \fii,\quad \pa{0}\cdot\pb{\infty},\quad \pa{\infty}-\pb{\infty}}
1∞,00,∞0\displaystyle {\pb{1}^{\pa{\infty}},\quad \pb{0}^{\pa{0}},\quad \pb{\infty}^{\pa{0}}}

Plug in first. L'Hôpital's rule only works when plugging in gives 00\frac{\tp{0}}{\bt{0}} or ±∞±∞\frac{\tp{\pm\infty}}{\bt{\pm\infty}}. If only the top went to 00, the fraction would approach 00, and if only the bottom went to 00, its absolute value would grow without bound. When both approach 00 together, the limit depends on how fast each goes to 00, and the form alone can't tell you the answer.

Take the derivative of the top and the derivative of the bottom separately. Do not use the quotient rule.

When to apply the rule again, and when to stop
lim⁡x→0sin⁡xx2+x00=lim⁡x→0cos⁡x2x+1=11=1\displaystyle \begin{aligned}&\uf{\fzz}{\lim_{x\to0}\frac{\tp{\sin x}}{\bt{x^2+x}}}\\ &\quad= \lim_{x\to0}\frac{\tp{\cos x}}{\bt{2x+1}} = \frac{\tp{1}}{\bt{1}} = 1\end{aligned}

Each time you apply L'Hôpital's rule, plug in again. If the new fraction gives 00\frac{\tp{0}}{\bt{0}} or ±∞±∞\frac{\tp{\pm\infty}}{\bt{\pm\infty}}, apply the rule again. When plugging in gives a number, that number is the limit, and you stop.

Applying the rule again to cos⁡x2x+1\frac{\tp{\cos x}}{\bt{2x+1}} gives −sin⁡x2\frac{\tp{-\sin x}}{\bt{2}}, which approaches 00 instead of the correct limit 11. Taking derivatives when the top and bottom don't both approach 00 or ±∞\pm\infty can give a wrong answer.

Growth rates as xx goes to infinity
lim⁡x→∞ln⁡xxp\displaystyle \lim_{x\to\infty}\frac{\tp{\ln x}}{\bt{x^{p}}} =0(p>0)\displaystyle = 0 \qquad (p > 0)
lim⁡x→∞xpex\displaystyle \lim_{x\to\infty}\frac{\tp{x^{p}}}{\bt{e^{x}}} =0(p>0)\displaystyle = 0 \qquad (p > 0)

As xx goes to infinity, ln⁡x\ln x grows slower than any positive power of xx, and any positive power of xx grows slower than exe^x.

Every time you differentiate the top and bottom separately, the exponent of xx goes down, while the bottom is still ex\bt{e^x}, so xpex\frac{\tp{x^p}}{\bt{e^x}} approaches 00. For ln⁡xxp\frac{\tp{\ln x}}{\bt{x^p}}, applying the rule gives 1xpxp−1\frac{\tp{\dfrac{1}{x}}}{\bt{p x^{p-1}}}, which simplifies to 1pxp\frac{\tp{1}}{\bt{p x^p}} and approaches 00. So logarithms grow slower than power functions.

Rewriting products and differences as fractions
x ln⁡x\displaystyle \pa{x}\,\pb{\ln x} =ln⁡x  1x  \displaystyle = \frac{\pb{\ln x}}{\;\pa{\dfrac1x}\;}
1x−1ex−1\displaystyle \pa{\frac1x} - \pb{\frac{1}{e^x-1}} =ex−1−xx(ex−1)\displaystyle = \frac{\tp{e^x-1-x}}{\bt{x(e^x-1)}}

L'Hôpital's rule only works on a fraction.

For a 0⋅∞\pa{0} \cdot \pb{\infty} product, move one factor to the bottom as its reciprocal to get 00\frac{\tp{0}}{\bt{0}} or ±∞±∞\frac{\tp{\pm\infty}}{\bt{\pm\infty}}. Keep the factor whose derivative gets simpler on top, like keeping ln⁡x\pb{\ln x} on top and moving x\pa{x} down as 1x\pa{\frac1x}, or moving e−x\pb{e^{-x}} down as ex\pb{e^x}.

For an ∞−∞\pa{\infty} - \pb{\infty} difference, combine the terms into a single fraction using a common denominator. Then check whether the fraction gives 00\frac{\tp{0}}{\bt{0}} or ±∞±∞\frac{\tp{\pm\infty}}{\bt{\pm\infty}}.

Indeterminate powers
(1+x)1x=eln⁡(1+x)x→e1=e\displaystyle \begin{aligned}(\pb{1+x})^{\pa{\frac1x}} &= e^{\frac{\pb{\ln(1+x)}}{\pa{x}}}\\ &\to e^{1} = e\end{aligned}

For the indeterminate forms 1∞\pb{1}^{\pa{\infty}}, 00\pb{0}^{\pa{0}}, and ∞0\pb{\infty}^{\pa{0}}, rewrite the power with base ee using ab=ebln⁡a\pb{a}^{\pa{b}} = e^{\pa{b}\pb{\ln a}}.

Find the limit of the exponent first. If the exponent approaches LL, the original limit is eLe^L, not LL itself.

7

Practice

Enter exact values, or ∞\infty, −∞-\infty, or does not exist.

1
Evaluate lim⁡x→1ln⁡xx2−1\displaystyle\lim_{x\to1}\frac{\ln x}{x^2-1}.

Plug in x=1x = 1. What are ln⁡1\ln 1 and 12−11^2 - 1?

Differentiate the top and bottom, then plug in x=1x = 1 again. Is the new fraction still 00\frac00, or is it a number?

Plugging in x=1x = 1 gives 00\frac{\tp{0}}{\bt{0}}, so we can use L'Hôpital's rule.
x\displaystyle x =1:ln⁡112−1\displaystyle = 1:\qquad \frac{\tp{\ln 1}}{\bt{1^2 - 1}} =00\displaystyle = \fzz
Take the derivative of the top and bottom to get 1x2x\frac{\tp{\dfrac{1}{x}}}{\bt{2x}}. Now plug in x=1x = 1. That gives 12\frac{\tp{1}}{\bt{2}}, which is an actual number, so we don't use L'Hôpital's rule again.
lim⁡x→1ln⁡xx2−100\displaystyle \uf{\fzz}{\lim_{x\to1}\frac{\tp{\ln x}}{\bt{x^2-1}}} =lim⁡x→1  1x  2x\displaystyle = \lim_{x\to1}\frac{\;\tp{\dfrac1x}\;}{\bt{2x}} =12\displaystyle = \frac{1}{2}
2
Evaluate lim⁡x→0ex+xcos⁡x+x\displaystyle\lim_{x\to0}\frac{e^x + x}{\cos x + x}.

Plug in x=0x = 0 first. What are the top and bottom?

Plug in x=0x = 0 first. Both the top and bottom are continuous, and the bottom isn't 00, so we can find the limit by substitution.
x\displaystyle x =0:e0+0cos⁡0+0\displaystyle = 0:\qquad \frac{\tp{e^0 + 0}}{\bt{\cos 0 + 0}} =11\displaystyle = \frac{\tp{1}}{\bt{1}} =1\displaystyle = 1
3
The function ff is differentiable, with f(1)=0f(1) = 0 and f′(1)=4f'(1) = 4. Find lim⁡x→1f(x2)ln⁡x\displaystyle\lim_{x\to1}\frac{f(x^2)}{\ln x}.

Since ff is differentiable, it's continuous. What do f(x2)f(x^2) and ln⁡x\ln x approach as x→1x \to 1?

What's the derivative of f(x2)f(x^2)? The inside function is x2x^2.

Check the formBecause ff is differentiable, it's continuous, so f(x2)\tp{f(x^2)} approaches f(1)=0\tp{f(1) = 0}. That gives 00\frac{\tp{0}}{\bt{0}}, so we can use L'Hôpital's rule.
lim⁡x→1f(x2)\displaystyle \lim_{x\to1} \tp{f(x^2)} =f(1)=0,lim⁡x→1ln⁡x\displaystyle = \tp{f(1) = 0}, \qquad \lim_{x\to1}\bt{\ln x} =ln⁡1=000\displaystyle = \bt{\ln 1 = 0} \qquad \fzz
Differentiate top and bottomFor the top, the chain rule on f(x2)\tp{f(x^2)} gives an extra factor of 2x\tp{2x}.
(f(x2))′\displaystyle \big(\tp{f(x^2)}\big)' =f′(x2)⋅2x,(ln⁡x)′\displaystyle = \tp{f'(x^2)\cdot 2x}, \qquad (\bt{\ln x})' =1x\displaystyle = \bt{\frac1x}
Both functions are 00 at x=1x = 1, so the limit is the ratio of their derivatives at x=1x = 1, as long as the derivative on the bottom isn't 00. With f′(1)=4\tp{f'(1) = 4}, the top's derivative at 11 is f′(1)⋅2=8\tp{f'(1)\cdot 2 = 8}, and the bottom's is 11=1\bt{\frac11 = 1}.
lim⁡x→1f(x2)ln⁡x\displaystyle \lim_{x\to1}\frac{\tp{f(x^2)}}{\bt{\ln x}} =f′(1)⋅2⋅1  11  \displaystyle = \frac{\tp{f'(1)\cdot 2\cdot 1}}{\;\bt{\dfrac11}\;} =4⋅21\displaystyle = \frac{4\cdot 2}{1} =8\displaystyle = 8
4
Let f(x)=x−sin⁡xx3f(x) = \dfrac{x - \sin x}{x^3} for x≠0x \neq 0, and f(0)=kf(0) = k. Find the value of kk for which ff is continuous at x=0x = 0.

For ff to be continuous at 00, what must f(0)f(0) equal?

Set up the limitFor ff to be continuous at 00, f(0)f(0) must equal the limit of f(x)f(x) as xx approaches 00.
k\displaystyle k =f(0)\displaystyle = f(0) =lim⁡x→0x−sin⁡xx3\displaystyle = \lim_{x\to0}\frac{\tp{x-\sin x}}{\bt{x^3}}
Plugging in x=0x = 0 gives 00\frac{\tp{0}}{\bt{0}}, so we can use L'Hôpital's rule.
x\displaystyle x =0:0−sin⁡003\displaystyle = 0:\qquad \frac{\tp{0 - \sin 0}}{\bt{0^3}} =00\displaystyle = \fzz
We get 00\frac{\tp{0}}{\bt{0}} each time until the third derivative, where the denominator is no longer 00.
lim⁡x→0x−sin⁡xx300=lim⁡x→01−cos⁡x3x200=lim⁡x→0sin⁡x6x00=lim⁡x→0cos⁡x6=16\displaystyle \begin{aligned}&\uf{\fzz}{\lim_{x\to0}\frac{\tp{x-\sin x}}{\bt{x^3}}} = \uf{\fzz}{\lim_{x\to0}\frac{\tp{1-\cos x}}{\bt{3x^2}}}\\ &\quad= \uf{\fzz}{\lim_{x\to0}\frac{\tp{\sin x}}{\bt{6x}}} = \lim_{x\to0}\frac{\tp{\cos x}}{\bt{6}} = \frac16\end{aligned}
So kk must equal this limit.
k\displaystyle k =16\displaystyle = \frac16
5
Evaluate lim⁡x→∞e2xx2\displaystyle\lim_{x\to\infty}\frac{e^{2x}}{x^2}.

The form is ∞∞\frac{\infty}{\infty}. Apply L'Hôpital's rule and simplify until the bottom is a constant. What does the top approach?

As xx goes to infinity, both e2x\tp{e^{2x}} and x2\bt{x^2} go to infinity, so we have ∞∞\frac{\tp{\infty}}{\bt{\infty}}.
x→∞:e2x→∞,x2→∞∞∞\displaystyle x\to\infty:\qquad \tp{e^{2x}}\to\tp{\infty}, \qquad \bt{x^2}\to\bt{\infty} \qquad \fii
Differentiating gives 2e2x2x\frac{\tp{2e^{2x}}}{\bt{2x}}, which simplifies to e2xx\frac{\tp{e^{2x}}}{\bt{x}}. That fraction is still ∞∞\frac{\tp{\infty}}{\bt{\infty}}, so take the derivative of the top and bottom again. That gives 2e2x1\frac{\tp{2e^{2x}}}{\bt{1}}. The denominator is fixed at 1\bt{1} and 2e2x\tp{2e^{2x}} goes to infinity, so the limit is ∞\infty.
lim⁡x→∞e2xx2∞∞=lim⁡x→∞2e2x2x=lim⁡x→∞e2xx∞∞=lim⁡x→∞2e2x1=∞\displaystyle \begin{aligned}&\uf{\fii}{\lim_{x\to\infty}\frac{\tp{e^{2x}}}{\bt{x^2}}} = \lim_{x\to\infty}\frac{\tp{2e^{2x}}}{\bt{2x}}\\ &\quad= \uf{\fii}{\lim_{x\to\infty}\frac{\tp{e^{2x}}}{\bt{x}}} = \lim_{x\to\infty}\frac{\tp{2e^{2x}}}{\bt{1}} = \infty\end{aligned}
6
Evaluate lim⁡x→∞xsin⁡πx\displaystyle\lim_{x\to\infty} x\sin\frac{\pi}{x}.

The expression has the form ∞⋅0\infty\cdot 0. Is it easier to move xx to the bottom as 1x\frac1x, or sin⁡πx\sin\frac{\pi}{x} as 1sin⁡πx\dfrac{1}{\sin\dfrac{\pi}{x}}?

As x→∞x \to \infty, x\pa{x} goes to ∞\pa{\infty} while sin⁡πx\pb{\sin\frac{\pi}{x}} goes to 0\pb{0}, so we have ∞⋅0\pa{\infty} \cdot \pb{0}.
x→∞:x→∞,sin⁡πx→sin⁡0=0∞⋅0\displaystyle x\to\infty:\qquad \pa{x}\to\pa{\infty}, \qquad \pb{\sin\frac{\pi}{x}}\to\pb{\sin 0 = 0} \qquad \pa{\infty}\cdot \pb{0}
Rewrite as a fractionMoving x\pa{x} to the bottom as 1x\pa{\frac{1}{x}} gives a fraction with the form 00\frac{\pb{0}}{\pa{0}}.
x sin⁡πx\displaystyle \pa{x}\,\pb{\sin\frac{\pi}{x}} =sin⁡πx  1x  00\displaystyle = \uf{\frac{\pb{0}}{\pa{0}}}{\frac{\pb{\sin\dfrac{\pi}{x}}}{\;\pa{\dfrac1x}\;}}
Differentiate the top with the chain rule, and differentiate the bottom.
(sin⁡πx)′\displaystyle \Big(\pb{\sin\frac{\pi}{x}}\Big)' =cos⁡πx⋅(−πx2),(1x)′\displaystyle = \pb{\cos\frac{\pi}{x}\cdot\Big(-\frac{\pi}{x^2}\Big)}, \qquad \Big(\pa{\frac1x}\Big)' =−1x2\displaystyle = \pa{-\frac{1}{x^2}}
Cancelling −1x2-\frac{1}{x^2} from the top and bottom leaves πcos⁡πx\pi\cos\frac{\pi}{x}, which approaches π\pi as x→∞x \to \infty.
lim⁡x→∞cos⁡πx⋅(−πx2)−1x2\displaystyle \lim_{x\to\infty}\frac{\pb{\cos\dfrac{\pi}{x}\cdot\Big(-\dfrac{\pi}{x^2}\Big)}}{\pa{-\dfrac{1}{x^2}}} =lim⁡x→∞πcos⁡πx\displaystyle = \lim_{x\to\infty}\pi\cos\frac{\pi}{x} =πcos⁡0\displaystyle = \pi\cos 0 =π\displaystyle = \pi
7
Evaluate lim⁡x→1(xx−1−1ln⁡x)\displaystyle\lim_{x\to1}\Big(\frac{x}{x-1} - \frac{1}{\ln x}\Big).

What's the common denominator of the two fractions?

As xx approaches 11 from the right, both terms go to infinity. From the left, both go to negative infinity. Either way, we have ∞−∞\pa{\infty}-\pb{\infty}.
x→1+:xx−1→∞,1ln⁡x→∞x→1−:xx−1→−∞,1ln⁡x→−∞\displaystyle \begin{aligned}x\to1^+:&\qquad \pa{\frac{x}{x-1}}\to\pa{\infty}, \qquad \pb{\frac{1}{\ln x}}\to\pb{\infty}\\ x\to1^-:&\qquad \pa{\frac{x}{x-1}}\to\pa{-\infty}, \qquad \pb{\frac{1}{\ln x}}\to\pb{-\infty}\end{aligned}
Combine into one fractionPutting the two terms over the common denominator (x−1)ln⁡x\bt{(x - 1)\ln x} gives one fraction, and it's 00\frac{\tp{0}}{\bt{0}} as xx approaches 11 from either side. So L'Hôpital's rule finds the limit from both sides at once.
xx−1−1ln⁡x\displaystyle \pa{\frac{x}{x-1}} - \pb{\frac{1}{\ln x}} =xln⁡x−(x−1)(x−1)ln⁡x00\displaystyle = \uf{\fzz}{\frac{\tp{x\ln x - (x-1)}}{\bt{(x-1)\ln x}}}
Apply L'Hôpital's ruleDifferentiating the top and bottom gives 00\frac{\tp{0}}{\bt{0}} again, so we apply the rule a second time and plug in x=1x = 1.
lim⁡x→1xln⁡x−x+1(x−1)ln⁡x=lim⁡x→1ln⁡xln⁡x+x−1x00=lim⁡x→1  1x  1x+1x2=11+1=12\displaystyle \begin{aligned}&\lim_{x\to1}\frac{\tp{x\ln x - x + 1}}{\bt{(x-1)\ln x}} = \uf{\fzz}{\lim_{x\to1}\frac{\tp{\ln x}}{\bt{\ln x + \dfrac{x-1}{x}}}}\\ &\quad= \lim_{x\to1}\frac{\;\tp{\dfrac1x}\;}{\bt{\dfrac1x + \dfrac{1}{x^2}}} = \frac{1}{1+1} = \frac12\end{aligned}
8
Evaluate lim⁡x→∞(ex+x)1x\displaystyle\lim_{x\to\infty}\big(e^x + x\big)^{\frac1x}.

After applying L'Hôpital's rule once to the exponent, the fraction is still ∞∞\frac{\infty}{\infty}. Divide the top and the bottom by exe^x.

As xx goes to infinity, the base goes to infinity and the exponent goes to 00, so we have ∞0\pb{\infty}^{\pa{0}}.
x→∞:ex+x→∞,1x→0∞0\displaystyle x\to\infty:\qquad \pb{e^x + x}\to\pb{\infty}, \qquad \pa{\frac1x}\to\pa{0} \qquad \pb{\infty}^{\pa{0}}
Rewrite as a power of eWrite the power with base ee. The exponent is a fraction of the form ∞∞\frac{\pb{\infty}}{\pa{\infty}}.
(ex+x)1x\displaystyle \big(\pb{e^x+x}\big)^{\pa{\frac1x}} =eln⁡(ex+x)x∞∞\displaystyle = e^{\uf{\frac{\pb{\infty}}{\pa{\infty}}}{\frac{\pb{\ln(e^x+x)}}{\pa{x}}}}
Applying L'Hôpital's rule once leaves ex+1ex+x\frac{\pb{e^x+1}}{\pa{e^x+x}}. Dividing top and bottom by exe^x and using xe−x→0x e^{-x} \to 0 gives 11.
lim⁡x→∞ln⁡(ex+x)x=lim⁡x→∞ex+1ex+x=lim⁡x→∞1+e−x1+xe−x=1+01+0=1\displaystyle \begin{aligned}&\lim_{x\to\infty}\frac{\pb{\ln(e^x+x)}}{\pa{x}} = \lim_{x\to\infty}\frac{\pb{e^x+1}}{\pa{e^x+x}}\\ &\quad= \lim_{x\to\infty}\frac{\pb{1+e^{-x}}}{\pa{1+xe^{-x}}} = \frac{1+0}{1+0} = 1\end{aligned}
The exponent approaches 11, so the limit is e1=ee^1 = e.
lim⁡x→∞(ex+x)1x\displaystyle \lim_{x\to\infty}\big(\pb{e^x+x}\big)^{\pa{\frac1x}} =e1\displaystyle = e^{1} =e\displaystyle = e
9
Find the value of aa for which lim⁡x→0eax−1−3xx2\displaystyle\lim_{x\to0}\frac{e^{ax} - 1 - 3x}{x^2} is finite, and find the limit for that value of aa. (Challenge)

After applying L'Hôpital's rule once, the denominator is 00 at x=0x = 0. What must the numerator be at x=0x = 0 for the limit to be finite?

Plugging in x=0x = 0 gives 00\frac{\tp{0}}{\bt{0}} for any value of aa, so we can apply L'Hôpital's rule.
x\displaystyle x =0:e0−1−002\displaystyle = 0:\qquad \frac{\tp{e^{0} - 1 - 0}}{\bt{0^2}} =00\displaystyle = \fzz
Find the value of aaTake the derivative of the top and bottom. At x=0x = 0, the bottom is 0\bt{0}, so the limit can only be finite if the top is also 0\tp{0}. That requires a−3=0\tp{a - 3} = 0, so a=3a = 3.
lim⁡x→0eax−1−3xx2\displaystyle \lim_{x\to0}\frac{\tp{e^{ax}-1-3x}}{\bt{x^2}} =lim⁡x→0aeax−32x,x\displaystyle = \lim_{x\to0}\frac{\tp{ae^{ax}-3}}{\bt{2x}}, \qquad x =0: a−30\displaystyle = 0:\ \frac{\tp{a-3}}{\bt{0}}
Evaluate the limitWith a=3a = 3, the fraction is 00\frac{\tp{0}}{\bt{0}}, so we apply L'Hôpital's rule a second time.
a\displaystyle a =3:lim⁡x→03e3x−32x00\displaystyle = 3:\qquad \uf{\fzz}{\lim_{x\to0}\frac{\tp{3e^{3x}-3}}{\bt{2x}}} =lim⁡x→09e3x2\displaystyle = \lim_{x\to0}\frac{\tp{9e^{3x}}}{\bt{2}} =92\displaystyle = \frac92