L’Hôpital’s rule can be used to evaluate limits involving the quotient of two functions. Consider
limx→af(x)g(x)
If limx→af(x)=L1 and limx→ag(x)=L2≠0, then
limx→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, consider
limx→2x2−4x−2 and limx→0sinxx
For the first of these examples, we can evaluate the limit by factoring the numerator and writing
For limx→0sinxx we were able to show, using a geometric argument, that
limx→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 write
f(x)≈f(a)+f′(a)(x−a)
and
g(x)≈g(a)+g′(a)(x−a)
Therefore,
f(x)g(x)≈f(a)+f′(a)(x−a)g(a)+g′(a)(x−a)
Figure 1. 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 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 limx→af(x)=0 and limx→ag(x)=0, 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 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 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−amultiplying numerator and denominator by1x−a=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 quotient
Note 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.
■
Example: Applying L’Hôpital’s Rule (0/0 Case)
Evaluate each of the following limits by applying L’Hôpital’s rule.
limx→01−cosxx
limx→1sin(πx)lnx
limx→∞e1x−11x
limx→0sinx−xx2
Show Solution
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
limx→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 that
limx→0cosx−12x=limx→0−sinx2=0.
Therefore, we conclude that
limx→0sinx−xx2=0.
Watch the following video to see the worked solution to Example: Applying L’Hôpital’s Rule (0/0 Case).
Closed Captioning and Transcript Information for Video
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
We 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.
Example: Applying L’Hôpital’s Rule (∞/∞ Case)
Evaluate each of the following limits by applying L’Hôpital’s rule.
limx→∞3x+52x+1
limx→0+lnxcotx
Show Solution
Since 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 obtain
limx→∞3x+52x+1x=limx→∞32=32.
Note that this limit can also be calculated without invoking L’Hôpital’s rule. Earlier in the module 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
limx→∞3x+52x+1=limx→∞3+5x2+1x=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 obtain
limx→0+lnxcotx=limx→0+1x−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 write
limx→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 find
limx→0+sin2x−x=limx→0+2sinxcosx−1=0−1=0.
We conclude that
limx→0+lnxcotx=0.
Try It
Evaluate limx→∞lnx5x
Hint
ddxlnx=1x
Show Solution
0
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 f(x)g(x), it is essential that the limit of f(x)g(x) be of the form 0/0 or ∞/∞ Consider the following example.
Example: When L’Hôpital’s Rule Does Not Apply
Consider limx→1x2+53x+4. Show that the limit cannot be evaluated by applying L’Hôpital’s rule.
Show Solution
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
ddx(x2+5)=2x
and
ddx(3x+4)=3
At which point we would conclude erroneously that
limx→1x2+53x+4=limx→12x3=23
However, since limx→1(x2+5)=6 and limx→1(3x+4)=7, we actually have
limx→1x2+53x+4=67
We can conclude that
limx→1x2+53x+4≠limx→1ddx(x2+5)ddx(3x+4).
Try It
Explain why we cannot apply L’Hôpital’s rule to evaluate limx→0+cosxx. Evaluate limx→0+cosxx by other means.
Hint
Determine the limits of the numerator and denominator separately.
Show Solution
limx→0+cosx=1. Therefore, we cannot apply L’Hôpital’s rule. The limit of the quotient is ∞
Watch the following video to see the worked solution to the above Try It.
Closed Captioning and Transcript Information for Video
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.