L’Hôpital’s Rulem53619L’Hôpital’s RuleRecognize when to apply L’Hôpital’s rule.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.bb6e333c-402d-4401-b750-4faac36169ffIn 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 RuleL’Hôpital’s rule can be used to evaluate limits involving the quotient of two functions. Considerlimx→af(x)g(x).If limx→af(x)=L1andlimx→ag(x)=L2≠0, thenlimx→af(x)g(x)=L1L2.However, what happens if limx→af(x)=0 and limx→ag(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 f(x)g(x) as x→a without further analysis. We have seen examples of this earlier in the text. For example, considerlimx→2x2−4x−2andlimx→0sinxx.For the first of these examples, we can evaluate the limit by factoring the numerator and writinglimx→2x2−4x−2=limx→2(x+2)(x−2)x−2=limx→2(x+2)=2+2=4.For limx→0sinxx we were able to show, using a geometric argument, thatlimx→0sinxx=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 limx→af(x)=0=limx→ag(x) and such that g′(a)≠0 For x near a, we can writef(x)≈f(a)+f′(a)(x−a)andg(x)≈g(a)+g′(a)(x−a).Therefore,f(x)g(x)≈f(a)+f′(a)(x−a)g(a)+g′(a)(x−a).
If limx→af(x)=limx→ag(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)=limx→af(x)=0. Similarly, g(a)=limx→ag(x)=0. If we also assume that f′ and g′ are continuous at x=a, then f′(a)=limx→af′(x) and g′(a)=limx→ag′(x). Using these ideas, we conclude thatlimx→af(x)g(x)=limx→af′(x)(x−a)g′(x)(x−a)=limx→af′(x)g′(x).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 limx→af(x)=0 and limx→ag(x)=0, thenlimx→af(x)g(x)=limx→af′(x)g′(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=∞and−∞.ProofWe 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 limx→af(x)=0=limx→ag(x) and f and g are continuous at a, it follows that f(a)=0=g(a). Therefore,limx→af(x)g(x)=limx→af(x)−f(a)g(x)−g(a)sincef(a)=0=g(a)=limx→af(x)−f(a)x−ag(x)−g(a)x−aalgebra=limx→af(x)−f(a)x−alimx→ag(x)−g(a)x−alimit of a quotient=f′(a)g′(a)definition of the derivative=limx→af′(x)limx→ag′(x)continuity off′andg′=limx→af′(x)g′(x).limit of a quotientNote that L’Hôpital’s rule states we can calculate the limit of a quotient fg by considering the limit of the quotient of the derivatives f′g′. It is important to realize that we are not calculating the derivative of the quotient fg.□Applying L’Hôpital’s Rule (0/0 Case)Evaluate each of the following limits by applying L’Hôpital’s rule.limx→01−cosxxlimx→1sin(πx)lnxlimx→∞e1/x−11/xlimx→0sinx−xx2Since the numerator 1−cosx→0 and the denominator x→0, we can apply L’Hôpital’s rule to evaluate this limit. We havelimx→01−cosxx=limx→0ddx(1−cosx)ddx(x)=limx→0sinx1=limx→0(sinx)limx→0(1)=01=0.As x→1, the numerator sin(πx)→0 and the denominator ln(x)→0. Therefore, we can apply L’Hôpital’s rule. We obtainlimx→1sin(πx)lnx=limx→1πcos(πx)1/x=limx→1(πx)cos(πx)=(π·1)(−1)=−π.As x→∞, the numerator e1/x−1→0 and the denominator (1x)→0. Therefore, we can apply L’Hôpital’s rule. We obtainlimx→∞e1/x−11x=limx→∞e1/x(−1x2)(−1x2)=limx→∞e1/x=e0=1.As x→0, both the numerator and denominator approach zero. Therefore, we can apply L’Hôpital’s rule. We obtainlimx→0sinx−xx2=limx→0cosx−12x.
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 thatlimx→0cosx−12x=limx→0−sinx2=0.
Therefore, we conclude thatlimx→0sinx−xx2=0.Evaluate limx→0xtanx.1Hintddxtanx=sec2xWe can also use L’Hôpital’s rule to evaluate limits of quotients f(x)g(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 limx→af(x)=∞ (or −∞) and limx→ag(x)=∞ (or −∞). Then,limx→af(x)g(x)=limx→af′(x)g′(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.limx→∞3x+52x+1limx→0+lnxcotxSince 3x+5 and 2x+1 are first-degree polynomials with positive leading coefficients, limx→∞(3x+5)=∞ and limx→∞(2x+1)=∞. Therefore, we apply L’Hôpital’s rule and obtainlimx→∞3x+52x+1=limx→∞32=32.
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 thatlimx→∞3x+52x+1=limx→∞3+5/x2+1/x=32.
L’Hôpital’s rule provides us with an alternative means of evaluating this type of limit.Here, limx→0+lnx=−∞ and limx→0+cotx=∞. Therefore, we can apply L’Hôpital’s rule and obtainlimx→0+lnxcotx=limx→0+1/x−csc2x=limx→0+1−xcsc2x.
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 writelimx→0+1−xcsc2x=limx→0+sin2x−x.
Now limx→0+sin2x=0 and limx→0+x=0, so we apply L’Hôpital’s rule again. We findlimx→0+sin2x−x=limx→0+2sinxcosx−1=0−1=0.
We conclude thatlimx→0+lnxcotx=0.Evaluate limx→∞lnx5x.0Hintddxlnx=1xAs 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 f(x)g(x), it is essential that the limit of f(x)g(x) be of the form 00 or ∞/∞. Consider the following example.When L’Hôpital’s Rule Does Not ApplyConsider limx→1x2+53x+4. Show that the limit cannot be evaluated by applying L’Hôpital’s rule.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 getddx(x2+5)=2xandddx(3x+4)=3.At which point we would conclude erroneously thatlimx→1x2+53x+4=limx→12x3=23.However, since limx→1(x2+5)=6 and limx→1(3x+4)=7, we actually havelimx→1x2+53x+4=67.We can conclude thatlimx→1x2+53x+4≠limx→1ddx(x2+5)ddx(3x+4).Explain why we cannot apply L’Hôpital’s rule to evaluate limx→0+cosxx. Evaluate limx→0+cosxx by other means.limx→0+cosx=1. Therefore, we cannot apply L’Hôpital’s rule. The limit of the quotient is ∞HintDetermine the limits of the numerator and denominator separately.Other Indeterminate FormsL’Hôpital’s rule is very useful for evaluating limits involving the indeterminate forms 00 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 00 or ∞/∞.Indeterminate Form of Type 0·∞Suppose we want to evaluate limx→a(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→a. For example, let n be a positive integer and considerf(x)=1(xn+1)andg(x)=3x2.As x→∞,f(x)→0 and g(x)→∞. However, the limit as x→∞ of f(x)g(x)=3x2(xn+1) varies, depending on n. If n=2, then limx→∞f(x)g(x)=3. If n=1, then limx→∞f(x)g(x)=∞. If n=3, then limx→∞f(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 limx→0+xlnx.First, rewrite the function xlnx as a quotient to apply L’Hôpital’s rule. If we writexlnx=lnx1/x,we see that lnx→−∞ as x→0+ and 1x→∞ as x→0+. Therefore, we can apply L’Hôpital’s rule and obtainlimx→0+lnx1/x=limx→0+ddx(lnx)ddx(1/x)=limx→0+1/x-1/x2=limx→0+(−x)=0.We conclude thatlimx→0+xlnx=0.
Finding the limit at x=0 of the function f(x)=xlnx.
Evaluate limx→0xcotx.1HintWrite xcotx=xcosxsinxIndeterminate 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 limx→∞(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, thenlimx→∞(f(x)−g(x))=limx→∞(3x3−3x2−5)=∞.On the other hand, if n=2, thenlimx→∞(f(x)−g(x))=limx→∞(3x2−3x2−5)=−5.However, if n=1, thenlimx→∞(f(x)−g(x))=limx→∞(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 limx→0+(1x2−1tanx).By combining the fractions, we can write the function as a quotient. Since the least common denominator is x2tanx, we have1x2−1tanx=(tanx)−x2x2tanx.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 havelimx→0+(tanx)−x2x2tanx=limx→0+(sec2x)−2xx2sec2x+2xtanx.As x→0+,(sec2x)−2x→1 and x2sec2x+2xtanx→0. Since the denominator is positive as x approaches zero from the right, we conclude thatlimx→0+(sec2x)−2xx2sec2x+2xtanx=∞.Therefore,limx→0+(1x2−1tanx)=∞.Evaluate limx→0+(1x−1sinx).0HintRewrite 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 limx→af(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. Lety=f(x)g(x).Then,lny=ln(f(x)g(x))=g(x)ln(f(x)).Therefore,limx→a[ln(y)]=limx→a[g(x)ln(f(x))].Since limx→af(x)=∞, we know that limx→aln(f(x))=∞. Therefore, limx→ag(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 limx→ag(x)ln(f(x))=L, where L may be ∞ or −∞. Thenlimx→a[ln(y)]=L.Since the natural logarithm function is continuous, we conclude thatln(limx→ay)=L,which gives uslimx→ay=limx→af(x)g(x)=eL.Indeterminate Form of Type ∞0Evaluate limx→∞x1/x.Let y=x1/x. Then,lny=ln(x1/x)=1xlnx=lnxx.We need to evaluate limx→∞lnxx. Applying L’Hôpital’s rule, we obtainlimx→∞lny=limx→∞lnxx=limx→∞1/x1=0.Therefore, limx→∞lny=0. Since the natural logarithm function is continuous, we conclude thatln(limx→∞y)=0,which leads tolimx→∞y=eln(y)=lime0=1.(All limitsx≥∞.)Hence,limx→∞x1/x=1.Evaluate limx→∞x1/ln(x).eHintLet y=x1/ln(x) and apply the natural logarithm to both sides of the equation.Indeterminate Form of Type 00Evaluate limx→0+xsinx.Lety=xsinx.Therefore,lny=ln(xsinx)=sinxlnx.We now evaluate limx→0+sinxlnx. Since limx→0+sinx=0 and limx→0+lnx=−∞, we have the indeterminate form 0·∞. To apply L’Hôpital’s rule, we need to rewrite sinxlnx as a fraction. We could writesinxlnx=sinx1/lnxorsinxlnx=lnx1/sinx=lnxcscx.Let’s consider the first option. In this case, applying L’Hôpital’s rule, we would obtainlimx→0+sinxlnx=limx→0+sinx1/lnx=limx→0+cosx−1/(x(lnx)2)=limx→0+(−x(lnx)2cosx).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 writingsinxlnx=lnx1/sinx=lnxcscx,and applying L’Hôpital’s rule, we obtainlimx→0+sinxlnx=limx→0+lnxcscx=limx→0+1/x−cscxcotx=limx→0+−1xcscxcotx.Using the fact that cscx=1sinx and cotx=cosxsinx, we can rewrite the expression on the right-hand side aslimx→0+−sin2xxcosx=limx→0+[sinxx·(−tanx)]=(limx→0+sinxx)·(limx→0+(−tanx))=1·0=0.We conclude that limx→0+lny=0. Therefore, ln(limx→0+y)=0 and we havelimx→0+y=limx→0+xsinx=e0=1.Hence,limx→0+xsinx=1.Evaluate limx→0+xx.1HintLet y=xx and take the natural logarithm of both sides of the equation.Growth Rates of FunctionsSuppose 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.
Comparing the Growth Rates of x2 and x3x10100100010,000f(x)=x210010,0001,000,000100,000,000g(x)=x310001,000,0001,000,000,0001,000,000,000,000
In fact,limx→∞x3x2=limx→∞x=∞.or, equivalently,limx→∞x2x3=limx→∞1x=0.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,limx→∞x23x2+4x+1=13.
Comparing the Growth Rates of x2 and 3x2+4x+1x10100100010,000f(x)=x210010,0001,000,000100,000,000g(x)=3x2+4x+134130,4013,004,001300,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→∞ iflimx→∞g(x)f(x)=∞;or, equivalently,limx→∞f(x)g(x)=0.On the other hand, if there exists a constant M≠0 such thatlimx→∞f(x)g(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 ln(x),x2, and exFor each of the following pairs of functions, use L’Hôpital’s rule to evaluate limx→∞(f(x)g(x)).f(x)=x2andg(x)=exf(x)=ln(x)andg(x)=x2Since limx→∞x2=∞ and limx→∞ex=∞, we can use L’Hôpital’s rule to evaluate limx→∞[x2ex]. We obtainlimx→∞x2ex=limx→∞2xex.
Since limx→∞2x=∞ and limx→∞ex=∞, we can apply L’Hôpital’s rule again. Sincelimx→∞2xex=limx→∞2ex=0,
we conclude thatlimx→∞x2ex=0.
Therefore, ex grows more rapidly than x2 as x→∞ (See and ).
An exponential function grows at a faster rate than a power function.
Growth rates of a power function and an exponential function.x5101520x225100225400ex14822,0263,269,017485,165,195
Since limx→∞lnx=∞ and limx→∞x2=∞, we can use L’Hôpital’s rule to evaluate limx→∞lnxx2. We obtainlimx→∞lnxx2=limx→∞1/x2x=limx→∞12x2=0.
Thus, x2 grows more rapidly than lnx as x→∞ (see and ).
A power function grows at a faster rate than a logarithmic function.
Growth rates of a power function and a logarithmic functionx10100100010,000ln(x)2.3034.6056.9089.210x210010,0001,000,000100,000,000
Compare the growth rates of x100 and 2x.The function 2x grows faster than x100.HintApply L’Hôpital’s rule to x100/2xUsing the same ideas as in a. it is not difficult to show that ex grows more rapidly than xp for any p>0. In and , we compare ex with x3 and x4 as x→∞.
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 functionx5101520x3125100033758000x462510,00050,625160,000ex14822,0263,269,017485,165,195
Similarly, it is not difficult to show that xp grows more rapidly than lnx for any p>0. In and , we compare lnx with x3 and x.
The function y=ln(x) grows more slowly than xp for any p>0 as x→∞.
A logarithmic function grows at a slower rate than any root functionx10100100010,000ln(x)2.3034.6056.9089.210x32.1544.6421021.544x3.1621031.623100
Key ConceptsL’Hôpital’s rule can be used to evaluate the limit of a quotient when the indeterminate form 00 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 00 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.Evaluate the limit limx→∞exx.Evaluate the limit limx→∞exxk.∞Evaluate the limit limx→∞lnxxk.Evaluate the limit limx→ax−ax2−a2,a≠0.12aEvaluate the limit limx→ax−ax3−a3,a≠0.Evaluate the limit limx→ax−axn−an,a≠0.1nan−1For 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.limx→0+x2lnxlimx→∞x1/xCannot apply directly; use logarithmslimx→0x2/xlimx→0x21/xCannot apply directly; rewrite as limx→0x3limx→∞exxFor the following exercises, evaluate the limits with either L’Hôpital’s rule or previously learned methods.limx→3x2−9x−36limx→3x2−9x+3limx→0(1+x)−2−1x−2limx→π/2cosxπ2−xlimx→πx−πsinx−1limx→1x−1sinxlimx→0(1+x)n−1xnlimx→0(1+x)n−1−nxx2limx→0sinx−tanxx3−12limx→01+x−1−xxlimx→0ex−x−1x212limx→0+tanxxlimx→1x−1lnx1limx→0(x+1)1/xlimx→1x−x3x−116limx→0+x2xlimx→∞xsin(1x)1limx→0sinx−xx2limx→0+xln(x4)0limx→∞(x−ex)limx→∞x2e−x0limx→03x−2xxlimx→01+1/x1−1/x−1limx→π/4(1−tanx)cotxlimx→∞xe1/x∞limx→0+x1/cosxlimx→0+x1/x0limx→0-(1−1x)xlimx→∞(1−1x)x1eFor 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.[T]limx→0ex−1x[T]limx→0xsin(1x)0[T]limx→1x−11−cos(πx)[T]limx→1e(x−1)−1x−11[T]limx→1(x−1)2lnx[T]limx→π1+cosxsinx0[T]limx→0(cscx−1x)[T]limx→0+tan(xx)tan(1)[T]limx→0+lnxsinx[T]limx→0ex−e−xx2indeterminate formswhen evaluating a limit, the forms 00,∞/∞,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 isL’Hôpital’s ruleif f and g are differentiable functions over an interval a, except possibly at a, and limx→af(x)=0=limx→ag(x) or limx→af(x) and limx→ag(x) are infinite, then limx→af(x)g(x)=limx→af′(x)g′(x), assuming the limit on the right exists or is ∞ or −∞