Let's find the limit of sinxe2x−1 as x approaches 0. Plugging in 0 gives 00. 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 0, 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. The run is the same for both, so it cancels when we divide.
Secant slopes become tangent slopesAs x approaches 0, each secant slope approaches the derivative at 0. The derivative of e2x−1 is 2e2x, and the derivative of sinx is cosx.
x→0limxsinxxe2x−1=cos02e0=12=2
The same answer from tangent linesNear 0,e2x−1 is close to its tangent line y=2x, and sinx is close to y=x.
sinxe2x−1≈x2x=2
The only property we used was that both functions were 0 at the point. Whenever two functions f and g both equal 0 at a, each height is its secant slope times the run 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
x→alimg(x)f(x)=x→alimg′(x)f′(x)
(x→alimf(x)=0,x→alimg(x)=0)
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 0. If they don't, the rule doesn't apply.
If we only know that both functions are 0 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 0.
f(2)=g(2)f′(2)=0=6,g′(2)=3
x→2limg(x)f(x)=g′(2)f′(2)=36=2
On a limit we already know from factoring, the rule gives the same answer.
The rule gives us a new fraction with the same limit. Sometimes that new fraction is 00 again, and sometimes plugging in already gives a number. Here's one of each.
Find limx→0x21−cosx and limx→0x2+xsinx
Text solution
One use gives 00 againThe slopes of 1−cosx and x2 at 0 are both 0, so 2xsinx is 00 at 0. It still has the same limit, because the rule is about the slopes near 0.
00x→0limx21−cosx=00x→0lim2xsinx
Use the rule a second timeNow plugging in gives a number. It's the same 21 we found earlier by multiplying the top and bottom by 1+cosx.
00x→0lim2xsinx=x→0lim2cosx=21
For x2+xsinx, one use of the rule is enough. Plugging in after it gives 11, which is a number, so the limit is 1 and we stop. Factoring an x out of the bottom gives the same 1.
00x→0limx2+xsinx=x→0lim2x+1cosx=11=1
x2+xsinx=xsinx⋅x+11→1⋅1=1
If we apply the rule again out of habit, we get 2−sinx, which gives 0, and that's wrong. Comparing slopes gave us the limit only because both functions were 0 at the point. Here cosx and 2x+1 both have height 1 at 0, so near 0 their ratio is close to 1.
x→0lim2x+1cosx=1=0=x→0lim2−sinx
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 over ex as x goes to infinity. The top and the bottom both go to infinity, so we have ∞∞, and the limit depends on which one grows faster. The same rule works for this form too, and for limits where x goes to infinity or negative infinity.
The rule for both forms
limg(x)f(x)=limg′(x)f′(x)
(00or±∞±∞;x→aorx→±∞)
On x2+53x2+1, the rule gives 2x6x=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 and ex.
Find limx→∞exx3 and limx→∞xlnx
x→∞limexx3=?
x→∞limxlnx=?
Text solution
Differentiate until the power of x is goneEach time, the power of x on top goes down by 1, while the bottom stays ex. After three steps the top is the constant 6.
Simplify before plugging inFor xlnx, the new fraction looks like 00, but it simplifies to x2.
∞∞x→∞limxlnx=x→∞lim2x1x1=x→∞limx2=0
For any whole-number power xn, applying the rule n times leaves a constant over ex, so ex grows faster than any power of x. A logarithm goes the other way. For xlnx, one derivative turns lnx into x1, and the logarithm is gone.
∞∞x→∞limxlnx=x→∞lim1x1=0
The same happens for xplnx with any p>0. So as x goes to infinity, lnx grows slowest, then positive powers of x, and ex grows fastest.
Growth rates
x→∞limxplnxx→∞limexxp=0=0(p>0)
Why does ex eventually grow faster than x3?
4
Products that give 0⋅∞
Now let's find the limit of xlnx as x approaches 0 from the right. Here x goes to 0 and lnx goes to −∞, and 0⋅(−∞) doesn't tell us what the product approaches.
L'Hôpital's rule only works on a fraction. But multiplying by x is the same as dividing by x1, so we can keep lnx on top and move x to the bottom as x1.
xlnx=∞−∞x1lnx
Find limx→0+xlnx
x→0+limxlnx=?
Text solution
Keep lnx on topThe derivative of lnx is x1, so the logarithm is gone, and the new fraction simplifies to −x.
Why not move lnx down?Moving lnx down as lnx1 gives 00 too, but the bottom's derivative needs the chain rule, and the new fraction simplifies to 0⋅∞ again, with an extra factor of lnx.
xlnx=00lnx1x
→−x(lnx)211=0⋅∞−x(lnx)2
xe−x as x→∞This time we keep x on top. Since e−x is ex1, it goes to the bottom as ex.
x→∞limxe−x=∞∞x→∞limexx=x→∞limex1=0
Which factor should we move to the bottom as its reciprocal?
5
Differences that give ∞−∞
Let's find the limit of x1−ex−11 as x approaches 0 from the right. Both terms go to infinity, but ∞−∞ doesn't mean 0, 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 21 at both marked values of x.
x1ex−11→∞→∞
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).
x1−ex−11=00x(ex−1)ex−1−x
Find limx→0+(x1−ex−11)
Text solution
One use gives 00 againThe bottom is a product, x(ex−1), so its derivative needs the product rule.
Use the rule a second timeNow plugging in gives 21. Even though both curves go to ∞, the vertical distance between them approaches 21.
x→0+lim2ex+xexex=21
When an ∞−∞ 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)x1 as x approaches 0. The base 1+x approaches 1, and the exponent x1 goes to positive or negative infinity. We call this a 1∞ form. 1 to any power is 1, but here the base is never actually 1, and small values of x show the power getting closer to a number near 2.7.
x=0.01:x=0.001:1.01100≈2.701.0011000≈2.72
To find that number with L'Hôpital's rule, we need to bring the exponent down. Remember from logarithmic differentiation that ln(ab)=blna. Since elna=a, we can write any power ab as eblna.
Rewrite with base e
ab=eblna
(1+x)x1=ex1ln(1+x)=exln(1+x)
Find limx→0(1+x)x1,limx→0+xx, and limx→∞xx1
x→0lim(1+x)x1=?
x→0+limxx=?
x→∞limxx1=?
Text solution
Find the limit of the exponentThe exponent gives 00 at x=0, so we apply L'Hôpital's rule.
00x→0limxln(1+x)=x→0lim11+x1=1
Raise e to that limitBecause eu is continuous, the limit of the power is e raised to the limit of the exponent. The answer is e1, not 1.
x→0lim(1+x)x1=elimx→0xln(1+x)=e1=e
00 and ∞0 the same wayWe already found that xlnx and xlnx both approach 0, so both exponents approach 0.
xx=exlnx→e0=1(x→0+)
xx1=exlnx→e0=1(x→∞)
Summary
When to use L'Hôpital's rule
limg(x)f(x)=limg′(x)f′(x)(00or±∞±∞)
x→0limsinxe2x−1=x→0limcosx2e2x=2
00,∞∞,0⋅∞,∞−∞
1∞,00,∞0
Plug in first. L'Hôpital's rule only works when plugging in gives 00 or ±∞±∞. If only the top went to 0, the fraction would approach 0, and if only the bottom went to 0, its absolute value would grow without bound. When both approach 0 together, the limit depends on how fast each goes to 0, 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
00x→0limx2+xsinx=x→0lim2x+1cosx=11=1
Each time you apply L'Hôpital's rule, plug in again. If the new fraction gives 00 or ±∞±∞, apply the rule again. When plugging in gives a number, that number is the limit, and you stop.
Applying the rule again to 2x+1cosx gives 2−sinx, which approaches 0 instead of the correct limit 1. Taking derivatives when the top and bottom don't both approach 0 or ±∞ can give a wrong answer.
Growth rates as x goes to infinity
x→∞limxplnx=0(p>0)
x→∞limexxp=0(p>0)
As x goes to infinity, lnx grows slower than any positive power of x, and any positive power of x grows slower than ex.
Every time you differentiate the top and bottom separately, the exponent of x goes down, while the bottom is still ex, so exxp approaches 0. For xplnx, applying the rule gives pxp−1x1, which simplifies to pxp1 and approaches 0. So logarithms grow slower than power functions.
Rewriting products and differences as fractions
xlnx=x1lnx
x1−ex−11=x(ex−1)ex−1−x
L'Hôpital's rule only works on a fraction.
For a 0⋅∞ product, move one factor to the bottom as its reciprocal to get 00 or ±∞±∞. Keep the factor whose derivative gets simpler on top, like keeping lnx on top and moving x down as x1, or moving e−x down as ex.
For an ∞−∞ difference, combine the terms into a single fraction using a common denominator. Then check whether the fraction gives 00 or ±∞±∞.
Indeterminate powers
(1+x)x1=exln(1+x)→e1=e
For the indeterminate forms 1∞,00, and ∞0, rewrite the power with base e using ab=eblna.
Find the limit of the exponent first. If the exponent approaches L, the original limit is eL, not L itself.
7
Practice
Enter exact values, or ∞,−∞, or does not exist.
1
Evaluate x→1limx2−1lnx.
Plug in x=1. What are ln1 and 12−1?
Differentiate the top and bottom, then plug in x=1 again. Is the new fraction still 00, or is it a number?
If you got −21 Check whether the fraction was 00 before using L'Hôpital's rule a second time. Once plugging in gives an actual number, stop.
Plugging in x=1 gives 00, so we can use L'Hôpital's rule.
x=1:12−1ln1=00
Take the derivative of the top and bottom to get 2xx1. Now plug in x=1. That gives 21, which is an actual number, so we don't use L'Hôpital's rule again.
00x→1limx2−1lnx=x→1lim2xx1=21
2
Evaluate x→0limcosx+xex+x.
Plug in x=0 first. What are the top and bottom?
If you got 2 Check whether L'Hôpital's rule applies. Plugging in x=0 gives 11, not 00 or ∞∞.
Plug in x=0 first. Both the top and bottom are continuous, and the bottom isn't 0, so we can find the limit by substitution.
x=0:cos0+0e0+0=11=1
3
The function f is differentiable, with f(1)=0 and f′(1)=4. Find x→1limlnxf(x2).
Since f is differentiable, it's continuous. What do f(x2) and lnx approach as x→1?
What's the derivative of f(x2)? The inside function is x2.
If you got 4 Check the derivative of f(x2). Did you multiply by the derivative of the inside?
Check the formBecause f is differentiable, it's continuous, so f(x2) approaches f(1)=0. That gives 00, so we can use L'Hôpital's rule.
x→1limf(x2)=f(1)=0,x→1limlnx=ln1=000
Differentiate top and bottomFor the top, the chain rule on f(x2) gives an extra factor of 2x.
(f(x2))′=f′(x2)⋅2x,(lnx)′=x1
Both functions are 0 at x=1, so the limit is the ratio of their derivatives at x=1, as long as the derivative on the bottom isn't 0. With f′(1)=4, the top's derivative at 1 is f′(1)⋅2=8, and the bottom's is 11=1.
x→1limlnxf(x2)=11f′(1)⋅2⋅1=14⋅2=8
4
Let f(x)=x3x−sinx for x=0, and f(0)=k. Find the value of k for which f is continuous at x=0.
For f to be continuous at 0, what must f(0) equal?
Set up the limitFor f to be continuous at 0,f(0) must equal the limit of f(x) as x approaches 0.
k=f(0)=x→0limx3x−sinx
Plugging in x=0 gives 00, so we can use L'Hôpital's rule.
x=0:030−sin0=00
We get 00 each time until the third derivative, where the denominator is no longer 0.
The form is ∞∞. Apply L'Hôpital's rule and simplify until the bottom is a constant. What does the top approach?
As x goes to infinity, both e2x and x2 go to infinity, so we have ∞∞.
x→∞:e2x→∞,x2→∞∞∞
Differentiating gives 2x2e2x, which simplifies to xe2x. That fraction is still ∞∞, so take the derivative of the top and bottom again. That gives 12e2x. The denominator is fixed at 1 and 2e2x goes to infinity, so the limit is ∞.
The expression has the form ∞⋅0. Is it easier to move x to the bottom as x1, or sinxπ as sinxπ1?
If you got 0∞⋅0 is indeterminate, not automatically 0. Rewrite the product as a fraction first.If you got 1 Check the chain rule when differentiating sinxπ. The derivative of the inside is −x2π, not −x21.
As x→∞,x goes to ∞ while sinxπ goes to 0, so we have ∞⋅0.
x→∞:x→∞,sinxπ→sin0=0∞⋅0
Rewrite as a fractionMoving x to the bottom as x1 gives a fraction with the form 00.
xsinxπ=00x1sinxπ
Differentiate the top with the chain rule, and differentiate the bottom.
(sinxπ)′=cosxπ⋅(−x2π),(x1)′=−x21
Cancelling −x21 from the top and bottom leaves πcosxπ, which approaches π as x→∞.
What's the common denominator of the two fractions?
If you got 0∞−∞ is an indeterminate form, not 0. Combine the two terms into one fraction first.
As x approaches 1 from the right, both terms go to infinity. From the left, both go to negative infinity. Either way, we have ∞−∞.
x→1+:x→1−:x−1x→∞,lnx1→∞x−1x→−∞,lnx1→−∞
Combine into one fractionPutting the two terms over the common denominator (x−1)lnx gives one fraction, and it's 00 as x approaches 1 from either side. So L'Hôpital's rule finds the limit from both sides at once.
x−1x−lnx1=00(x−1)lnxxlnx−(x−1)
Apply L'Hôpital's ruleDifferentiating the top and bottom gives 00 again, so we apply the rule a second time and plug in x=1.
Find the value of a for which x→0limx2eax−1−3x is finite, and find the limit for that value of a. (Challenge)
After applying L'Hôpital's rule once, the denominator is 0 at x=0. What must the numerator be at x=0 for the limit to be finite?
Plugging in x=0 gives 00 for any value of a, so we can apply L'Hôpital's rule.
x=0:02e0−1−0=00
Find the value of aTake the derivative of the top and bottom. At x=0, the bottom is 0, so the limit can only be finite if the top is also 0. That requires a−3=0, so a=3.
x→0limx2eax−1−3x=x→0lim2xaeax−3,x=0:0a−3
Evaluate the limitWith a=3, the fraction is 00, so we apply L'Hôpital's rule a second time.