Identify indeterminate forms produced by quotients, products, subtractions, and powers, and apply L’Hôpital’s rule in each case.
Describe the relative growth rates of functions.
In this section, we examine a powerful tool for evaluating limits. This tool, known as L’Hôpital’s rule, uses derivatives to calculate limits. With this rule, we will be able to evaluate many limits we have not yet been able to determine. Instead of relying on numerical evidence to conjecture that a limit exists, we will be able to show definitively that a limit exists and to determine its exact value.
Applying L’Hôpital’s Rule
L’Hôpital’s rule can be used to evaluate limits involving the quotient of two functions. Consider
x→alimg(x)f(x).
If x→alimf(x)=L1 and x→alimg(x)=L2=0, then
x→alimg(x)f(x)=L2L1.
However, what happens if x→alimf(x)=0 and x→alimg(x)=0? We call this one of the indeterminate forms, of type 00. This is considered an indeterminate form because we cannot determine the exact behavior of g(x)f(x) as x→a without further analysis. We have seen examples of this earlier in the text. For example, consider
x→2limx−2x2−4 and x→0limxsinx.
For the first of these examples, we can evaluate the limit by factoring the numerator and writing
For x→0limxsinx we were able to show, using a geometric argument, that
x→0limxsinx=1.
Here we use a different technique for evaluating limits such as these. Not only does this technique provide an easier way to evaluate these limits, but also, and more important, it provides us with a way to evaluate many other limits that we could not calculate previously.
The idea behind L’Hôpital’s rule can be explained using local linear approximations. Consider two differentiable functions f and g such that x→alimf(x)=0=x→alimg(x) and such that g′(a)=0 For x near a, we can write
f(x)≈f(a)+f′(a)(x−a)
and
g(x)≈g(a)+g′(a)(x−a).
Therefore,
g(x)f(x)≈g(a)+g′(a)(x−a)f(a)+f′(a)(x−a).
Figure 1. If x→alimf(x)=x→alimg(x), then the ratio f(x)/g(x) is approximately equal to the ratio of their linear approximations near a.
Since f is differentiable at a, then f is continuous at a, and therefore f(a)=x→alimf(x)=0. Similarly, g(a)=x→alimg(x)=0. If we also assume that f′ and g′ are continuous at x=a, then f′(a)=x→alimf′(x) and g′(a)=x→alimg′(x). Using these ideas, we conclude that
Note that the assumption that f′ and g′ are continuous at a and g′(a)=0 can be loosened. We state L’Hôpital’s rule formally for the indeterminate form 00. Also note that the notation 00 does not mean we are actually dividing zero by zero. Rather, we are using the notation 00 to represent a quotient of limits, each of which is zero.
L’Hôpital’s Rule (0/0 Case)
Suppose f and g are differentiable functions over an open interval containing a, except possibly at a. If x→alimf(x)=0 and x→alimg(x)=0, then
x→alimg(x)f(x)=x→alimg′(x)f′(x),
assuming the limit on the right exists or is ∞ or −∞. This result also holds if we are considering one-sided limits, or if a=∞ or −∞.
Proof
We provide a proof of this theorem in the special case when f,g,f′, and g′ are all continuous over an open interval containing a. In that case, since x→alimf(x)=0=x→alimg(x) and f and g are continuous at a, it follows that f(a)=0=g(a). Therefore,
x→alimg(x)f(x)=x→alimg(x)−g(a)f(x)−f(a)=x→alimx−ag(x)−g(a)x−af(x)−f(a)=x→alimx−ag(x)−g(a)x→alimx−af(x)−f(a)=g′(a)f′(a)=x→alimg′(x)x→alimf′(x)=x→alimg′(x)f′(x)sincef(a)=0=g(a)multiplying numerator and denominator byx−a1limit of a quotientdefinition of the derivativecontinuity off′andg′limit of a quotient
Note that L’Hôpital’s rule states we can calculate the limit of a quotient gf by considering the limit of the quotient of the derivatives g′f′. It is important to realize that we are not calculating the derivative of the quotient gf.
□
Applying L’Hôpital’s Rule (0/0 Case)
Evaluate each of the following limits by applying L’Hôpital’s rule.
x→0limx1−cosx
x→1limlnxsin(πx)
x→∞lim1/xe1/x−1
x→0limx2sinx−x
Answer:
Since the numerator 1−cosx→0 and the denominator x→0, we can apply L’Hôpital’s rule to evaluate this limit. We have
As x→0, both the numerator and denominator approach zero. Therefore, we can apply L’Hôpital’s rule. We obtain
x→0limx2sinx−x=x→0lim2xcosx−1.
Since the numerator and denominator of this new quotient both approach zero as x→0, we apply L’Hôpital’s rule again. In doing so, we see that
x→0lim2xcosx−1=x→0lim2−sinx=0.
Therefore, we conclude that
x→0limx2sinx−x=0.
Evaluate x→0limtanxx.
Answer:
1
Hint
dxdtanx=sec2x
We can also use L’Hôpital’s rule to evaluate limits of quotients g(x)f(x) in which f(x)→±∞ and g(x)→±∞. Limits of this form are classified as indeterminate forms of type∞/∞. Again, note that we are not actually dividing ∞ by ∞. Since ∞ is not a real number, that is impossible; rather, ∞/∞ is used to represent a quotient of limits, each of which is ∞ or −∞.
L’Hôpital’s Rule (∞/∞ Case)
Suppose f and g are differentiable functions over an open interval containing a, except possibly at a. Suppose x→alimf(x)=∞ (or −∞) and x→alimg(x)=∞ (or −∞). Then,
x→alimg(x)f(x)=x→alimg′(x)f′(x),
assuming the limit on the right exists or is ∞ or −∞. This result also holds if the limit is infinite, if a=∞ or −∞, or the limit is one-sided.
Applying L’Hôpital’s Rule (∞/∞ Case)
Evaluate each of the following limits by applying L’Hôpital’s rule.
x→∞lim2x+13x+5
x→0+limcotxlnx
Answer:
Since 3x+5 and 2x+1 are first-degree polynomials with positive leading coefficients, x→∞lim(3x+5)=∞ and x→∞lim(2x+1)=∞. Therefore, we apply L’Hôpital’s rule and obtain
x→∞lim2x+13x+5=x→∞lim23=23.
Note that this limit can also be calculated without invoking L’Hôpital’s rule. Earlier in the chapter we showed how to evaluate such a limit by dividing the numerator and denominator by the highest power of x in the denominator. In doing so, we saw that
x→∞lim2x+13x+5=x→∞lim2+1/x3+5/x=23.
L’Hôpital’s rule provides us with an alternative means of evaluating this type of limit.
Here, x→0+limlnx=−∞ and x→0+limcotx=∞. Therefore, we can apply L’Hôpital’s rule and obtain
Now as x→0+, csc2x→∞. Therefore, the first term in the denominator is approaching zero and the second term is getting really large. In such a case, anything can happen with the product. Therefore, we cannot make any conclusion yet. To evaluate the limit, we use the definition of cscx to write
x→0+lim−xcsc2x1=x→0+lim−xsin2x.
Now x→0+limsin2x=0 and x→0+limx=0, so we apply L’Hôpital’s rule again. We find
x→0+lim−xsin2x=x→0+lim−12sinxcosx=−10=0.
We conclude that
x→0+limcotxlnx=0.
Evaluate x→∞lim5xlnx.
Answer: 0
Hint
dxdlnx=x1
As mentioned, L’Hôpital’s rule is an extremely useful tool for evaluating limits. It is important to remember, however, that to apply L’Hôpital’s rule to a quotient g(x)f(x), it is essential that the limit of g(x)f(x) be of the form 0/0 or ∞/∞ Consider the following example.
When L’Hôpital’s Rule Does Not Apply
Consider x→1lim3x+4x2+5. Show that the limit cannot be evaluated by applying L’Hôpital’s rule.
Answer:
Because the limits of the numerator and denominator are not both zero and are not both infinite, we cannot apply L’Hôpital’s rule. If we try to do so, we get
dxd(x2+5)=2x
and
dxd(3x+4)=3.
At which point we would conclude erroneously that
x→1lim3x+4x2+5=x→1lim32x=32.
However, since x→1lim(x2+5)=6 and x→1lim(3x+4)=7, we actually have
x→1lim3x+4x2+5=76.
We can conclude that
x→1lim3x+4x2+5=x→1limdxd(3x+4)dxd(x2+5).
Explain why we cannot apply L’Hôpital’s rule to evaluate x→0+limxcosx. Evaluate x→0+limxcosx by other means.
Answer:
x→0+limcosx=1. Therefore, we cannot apply L’Hôpital’s rule. The limit of the quotient is ∞
Hint
Determine the limits of the numerator and denominator separately.
Other Indeterminate Forms
L’Hôpital’s rule is very useful for evaluating limits involving the indeterminate forms 0/0 and ∞/∞. However, we can also use L’Hôpital’s rule to help evaluate limits involving other indeterminate forms that arise when evaluating limits. The expressions 0⋅∞, ∞−∞, 1∞, ∞0, and 00 are all considered indeterminate forms. These expressions are not real numbers. Rather, they represent forms that arise when trying to evaluate certain limits. Next we realize why these are indeterminate forms and then understand how to use L’Hôpital’s rule in these cases. The key idea is that we must rewrite the indeterminate forms in such a way that we arrive at the indeterminate form 0/0 or ∞/∞.
Indeterminate Form of Type 0⋅∞
Suppose we want to evaluate x→alim(f(x)⋅g(x)), where f(x)→0 and g(x)→∞ (or −∞) as x→a. Since one term in the product is approaching zero but the other term is becoming arbitrarily large (in magnitude), anything can happen to the product. We use the notation 0⋅∞ to denote the form that arises in this situation. The expression 0⋅∞ is considered indeterminate because we cannot determine without further analysis the exact behavior of the product f(x)g(x) as x→∞. For example, let n be a positive integer and consider
f(x)=(xn+1)1 and g(x)=3x2.
As x→∞, f(x)→0 and g(x)→∞. However, the limit as x→∞ of f(x)g(x)=(xn+1)3x2 varies, depending on n. If n=2, then x→∞limf(x)g(x)=3. If n=1, then x→∞limf(x)g(x)=∞. If n=3, then x→∞limf(x)g(x)=0. Here we consider another limit involving the indeterminate form 0⋅∞ and show how to rewrite the function as a quotient to use L’Hôpital’s rule.
Indeterminate Form of Type 0⋅∞
Evaluate x→0+limxlnx.
Answer:
First, rewrite the function xlnx as a quotient to apply L’Hôpital’s rule. If we write
xlnx=1/xlnx,
we see that lnx→−∞ as x→0+ and x1→∞ as x→0+. Therefore, we can apply L’Hôpital’s rule and obtain
Figure 2. Finding the limit at x=0 of the function f(x)=xlnx.
Evaluate x→0limxcotx.
Answer:
1
Hint
Write xcotx=sinxxcosx
Indeterminate Form of Type ∞−∞
Another type of indeterminate form is ∞−∞. Consider the following example. Let n be a positive integer and let f(x)=3xn and g(x)=3x2+5. As x→∞, f(x)→∞ and g(x)→∞. We are interested in x→∞lim(f(x)−g(x)). Depending on whether f(x) grows faster, g(x) grows faster, or they grow at the same rate, as we see next, anything can happen in this limit. Since f(x)→∞ and g(x)→∞, we write ∞−∞ to denote the form of this limit. As with our other indeterminate forms, ∞−∞ has no meaning on its own and we must do more analysis to determine the value of the limit. For example, suppose the exponent n in the function f(x)=3xn is n=3, then
x→∞lim(f(x)−g(x))=x→∞lim(3x3−3x2−5)=∞.
On the other hand, if n=2, then
x→∞lim(f(x)−g(x))=x→∞lim(3x2−3x2−5)=−5.
However, if n=1, then
x→∞lim(f(x)−g(x))=x→∞lim(3x−3x2−5)=−∞.
Therefore, the limit cannot be determined by considering only ∞−∞. Next we see how to rewrite an expression involving the indeterminate form ∞−∞ as a fraction to apply L’Hôpital’s rule.
Indeterminate Form of Type ∞−∞
Evaluate x→0+lim(x21−tanx1).
Answer:
By combining the fractions, we can write the function as a quotient. Since the least common denominator is x2tanx, we have
x21−tanx1=x2tanx(tanx)−x2.
As x→0+, the numerator tanx−x2→0 and the denominator x2tanx→0. Therefore, we can apply L’Hôpital’s rule. Taking the derivatives of the numerator and the denominator, we have
As x→0+, (sec2x)−2x→1 and x2sec2x+2xtanx→0. Since the denominator is positive as x approaches zero from the right, we conclude that
x→0+limx2sec2x+2xtanx(sec2x)−2x=∞.
Therefore,
x→0+lim(x21−tanx1)=∞.
Evaluate x→0+lim(x1−sinx1).
Answer:
0
Hint
Rewrite the difference of fractions as a single fraction.
Another type of indeterminate form that arises when evaluating limits involves exponents. The expressions 00, ∞0, and 1∞ are all indeterminate forms. On their own, these expressions are meaningless because we cannot actually evaluate these expressions as we would evaluate an expression involving real numbers. Rather, these expressions represent forms that arise when finding limits. Now we examine how L’Hôpital’s rule can be used to evaluate limits involving these indeterminate forms.
Since L’Hôpital’s rule applies to quotients, we use the natural logarithm function and its properties to reduce a problem evaluating a limit involving exponents to a related problem involving a limit of a quotient. For example, suppose we want to evaluate x→alimf(x)g(x) and we arrive at the indeterminate form ∞0. (The indeterminate forms 00 and 1∞ can be handled similarly.) We proceed as follows. Let
y=f(x)g(x).
Then,
lny=ln(f(x)g(x))=g(x)ln(f(x)).
Therefore,
x→alim[lny]=x→alim[g(x)ln(f(x))].
Since x→alimf(x)=∞, we know that x→alimln(f(x))=∞. Therefore, x→alimg(x)ln(f(x)) is of the indeterminate form 0⋅∞, and we can use the techniques discussed earlier to rewrite the expression g(x)ln(f(x)) in a form so that we can apply L’Hôpital’s rule. Suppose x→alimg(x)ln(f(x))=L, where L may be ∞ or −∞. Then
x→alimlny=L.
Since the natural logarithm function is continuous, we conclude that
ln(x→alimy)=L
which gives us
x→alimy=x→alimf(x)g(x)=eL.
Indeterminate Form of Type ∞0
Evaluate x→∞limx1/x.
Answer:
Let y=x1/x. Then,
ln(x1/x)=x1lnx=xlnx.
We need to evaluate x→∞limxlnx. Applying L’Hôpital’s rule, we obtain
x→∞limlny=x→∞limxlnx=x→∞lim11/x=0.
Therefore, x→∞limlny=0. Since the natural logarithm function is continuous, we conclude that
ln(x→∞limy)=0,
which leads to
x→∞limy=x→∞limxlnx=e0=1.
Hence,
x→∞limx1/x=1.
Evaluate x→∞limx1/lnx.
Answer:
e
Hint
Let y=x1/lnx and apply the natural logarithm to both sides of the equation.
Indeterminate Form of Type 00
Evaluate x→0+limxsinx.
Answer:
Let
y=xsinx.
Therefore,
lny=ln(xsinx)=sinxlnx.
We now evaluate x→0+limsinxlnx. Since x→0+limsinx=0 and x→0+limlnx=−∞, we have the indeterminate form 0⋅∞. To apply L’Hôpital’s rule, we need to rewrite sinxlnx as a fraction. We could write
sinxlnx=1/lnxsinx
or
sinxlnx=1/sinxlnx=cscxlnx.
Let’s consider the first option. In this case, applying L’Hôpital’s rule, we would obtain
Unfortunately, we not only have another expression involving the indeterminate form 0⋅∞, but the new limit is even more complicated to evaluate than the one with which we started. Instead, we try the second option. By writing
We conclude that x→0+limlny=0. Therefore, ln(x→0+limy)=0 and we have
x→0+limy=x→0+limxsinx=e0=1.
Hence,
x→0+limxsinx=1.
Evaluate x→0+limxx.
Answer:
1
Hint
Let y=xx and take the natural logarithm of both sides of the equation.
Growth Rates of Functions
Suppose the functions f and g both approach infinity as x→∞. Although the values of both functions become arbitrarily large as the values of x become sufficiently large, sometimes one function is growing more quickly than the other. For example, f(x)=x2 and g(x)=x3 both approach infinity as x→∞. However, as shown in the following table, the values of x3 are growing much faster than the values of x2.
As a result, we say x3 is growing more rapidly than x2 as x→∞. On the other hand, for f(x)=x2 and g(x)=3x2+4x+1, although the values of g(x) are always greater than the values of f(x) for x>0, each value of g(x) is roughly three times the corresponding value of f(x) as x→∞, as shown in the following table. In fact,
x→∞lim3x2+4x+1x2=31.
Comparing the Growth Rates of x2 and 3x2+4x+1
x
10
100
1000
10,000
f(x)=x2
100
10,000
1,000,000
100,000,000
g(x)=3x2+4x+1
341
30,401
3,004,001
300,040,001
In this case, we say that x2 and 3x2+4x+1 are growing at the same rate as x→∞.
More generally, suppose f and g are two functions that approach infinity as x→∞. We say g grows more rapidly than f as x→∞ if
On the other hand, if there exists a constant M=0 such that
x→∞limg(x)f(x)=M,
we say f and g grow at the same rate as x→∞.
Next we see how to use L’Hôpital’s rule to compare the growth rates of power, exponential, and logarithmic functions.
Comparing the Growth Rates of lnx, x2, and ex
For each of the following pairs of functions, use L’Hôpital’s rule to evaluate x→∞lim(g(x)f(x)).
f(x)=x2 and g(x)=ex
f(x)=lnx and g(x)=x2
Answer:
Since x→∞limx2=∞ and x→∞limex, we can use L’Hôpital’s rule to evaluate x→∞lim[exx2]. We obtain
x→∞limexx2=x→∞limex2x.
Since x→∞lim2x=∞ and x→∞limex=∞, we can apply L’Hôpital’s rule again. Since
x→∞limex2x=x→∞limex2=0,
we conclude that
x→∞limexx2=0.
Therefore, ex grows more rapidly than x2 as x→∞ (See (Figure) and (Figure)).
Figure 3. An exponential function grows at a faster rate than a power function.
Growth rates of a power function and an exponential function.
x
5
10
15
20
x2
25
100
225
400
ex
148
22,026
3,269,017
485,165,195
Since x→∞limlnx=∞ and x→∞limx2=∞, we can use L’Hôpital’s rule to evaluate x→∞limx2lnx. We obtain
x→∞limx2lnx=x→∞lim2x1/x=x→∞lim2x21=0.
Thus, x2 grows more rapidly than lnx as x→∞ (see (Figure) and (Figure)).
Figure 4. A power function grows at a faster rate than a logarithmic function.
Growth rates of a power function and a logarithmic function
x
10
100
1000
10,000
lnx
2.303
4.605
6.908
9.210
x2
100
10,000
1,000,000
100,000,000
Compare the growth rates of x100 and 2x.
Answer:
The function 2x grows faster than x100.
Hint
Apply L’Hôpital’s rule to x100/2x
Using the same ideas as in (Figure)a. it is not difficult to show that ex grows more rapidly than xp for any p>0. In (Figure) and (Figure), we compare ex with x3 and x4 as x→∞.
Figure 5. The exponential function ex grows faster than xp for any p>0. (a) A comparison of ex with x3. (b) A comparison of ex with x4.
An exponential function grows at a faster rate than any power function
x
5
10
15
20
x3
125
1000
3375
8000
x4
625
10,000
50,625
160,000
ex
148
22,026
3,269,017
485,165,195
Similarly, it is not difficult to show that xp grows more rapidly than lnx for any p>0. In (Figure) and (Figure), we compare lnx with 3x and x.
Figure 6. The function y=lnx grows more slowly than xp for any p>0 as x→∞.
A logarithmic function grows at a slower rate than any root function
x
10
100
1000
10,000
lnx
2.303
4.605
6.908
9.210
3x
2.154
4.642
10
21.544
x
3.162
10
31.623
100
Key Concepts
L’Hôpital’s rule can be used to evaluate the limit of a quotient when the indeterminate form 0/0 or ∞/∞ arises.
L’Hôpital’s rule can also be applied to other indeterminate forms if they can be rewritten in terms of a limit involving a quotient that has the indeterminate form 0/0 or ∞/∞.
The exponential function ex grows faster than any power function xp, p>0.
The logarithmic function lnx grows more slowly than any power function xp, p>0.
For the following exercises, evaluate the limit.
1. Evaluate the limit x→∞limxex.
2. Evaluate the limit x→∞limxkex.
Answer:
∞
3. Evaluate the limit x→∞limxklnx.
4. Evaluate the limit x→alimx2−a2x−a.
Answer:
2a1
5. Evaluate the limit x→alimx3−a3x−a.
6. Evaluate the limit x→alimxn−anx−a.
Answer:
nan−11
For the following exercises, determine whether you can apply L’Hôpital’s rule directly. Explain why or why not. Then, indicate if there is some way you can alter the limit so you can apply L’Hôpital’s rule.
7.x→0+limx2lnx
8.x→∞limx1/x
Answer:
Cannot apply directly; use logarithms
9.x→0limx2/x
10.x→0lim1/xx2
Answer:
Cannot apply directly; rewrite as x→0limx3
11.x→∞limxex
For the following exercises, evaluate the limits with either L’Hôpital’s rule or previously learned methods.
12.x→3limx−3x2−9
Answer:
6
13.x→3limx+3x2−9
14.x→0limx(1+x)−2−1
Answer:
-2
15.x→π/2limπ/2−xcosx
16.x→πlimsinxx−π
Answer:
-1
17.x→1limsinxx−1
18.x→0limx(1+x)n−1
Answer:
n
19.x→0limx2(1+x)n−1−nx
20.x→0limx3sinx−tanx
Answer:
−21
21.x→0limx1+x−1−x
22.x→0limx2ex−x−1
Answer:
21
23.x→0limxtanx
24.x→1limlnxx−1
Answer:
1
25.x→0lim(x+1)1/x
26.x→1limx−1x−3x
Answer:
61
27.x→0+limx2x
28.x→∞limxsin(x1)
Answer:
1
29.x→0limx2sinx−x
30.x→0+limxln(x4)
Answer:
0
31.x→∞lim(x−ex)
32.x→∞limx2e−x
Answer: 0
33.x→0limx3x−2x
34.x→0lim1−1/x1+1/x
Answer:
-1
35.x→π/4lim(1−tanx)cotx
36.x→∞limxe1/x
Answer:
∞
37.x→0limx1/cosx
38.x→0limx1/x
Answer: 1
39.x→0lim(1−x1)x
40.x→∞lim(1−x1)x
Answer:
e1
For the following exercises, use a calculator to graph the function and estimate the value of the limit, then use L’Hôpital’s rule to find the limit directly.
41. [T] x→0limxex−1
42. [T] x→0limxsin(x1)
Answer:
0
43. [T] x→1lim1−cos(πx)x−1
44. [T] x→1limx−1ex−1−1
Answer: 1
45. [T] x→1limlnx(x−1)2
46. [T] x→πlimsinx1+cosx
Answer:
0
47. [T] x→0lim(cscx−x1)
48. [T] x→0+limtan(xx)
Answer:
tan(1)
49. [T] x→0+limsinxlnx
50. [T] x→0limxex−e−x
Answer:
2
Glossary
indeterminate forms
when evaluating a limit, the forms 0/0, ∞/∞, 0⋅∞, ∞−∞, 00, ∞0, and 1∞ are considered indeterminate because further analysis is required to determine whether the limit exists and, if so, what its value is
L’Hôpital’s rule
if f and g are differentiable functions over an interval a, except possibly at a, and x→alimf(x)=0=x→alimg(x) or x→alimf(x) and x→alimg(x) are infinite, then x→alimg(x)f(x)=x→alimg′(x)f′(x), assuming the limit on the right exists or is ∞ or −∞
Licenses & Attributions
CC licensed content, Shared previously
Calculus I.Provided by: OpenStaxLocated at: https://openstax.org/books/calculus-volume-1/pages/1-introduction.License: CC BY-NC-SA: Attribution-NonCommercial-ShareAlike. License terms: Download for free at http://cnx.org/contents/8b89d172-2927-466f-8661-01abc7ccdba4@2.89.
Hint
dxdtanx=sec2x