In this section, we learn a powerful method to attack problems on indeterminate forms, called l’Hôpital’s rule (also written l’Hospital’s rule).

L’Hôpital’s Rule for the Indeterminate Form 0/0

Assume f and g are two functions with f(a)=g(a)=0. Then for xa, we have f(x)g(x)=f(x)f(a)g(x)g(a)=f(x)f(a)xag(x)g(a)xa Suppose the derivatives f(a) and g(a) exist and g(a)0. Because limxaf(x)f(a)xa=limh0f(a+h)f(a)h=f(a),(h=xa) and limxag(x)g(a)xa=g(a), we get (i)limxaf(x)g(x)=f(a)g(a) provided that g(a)0.

Figure 1 visually justifies Equation (i). Figure 1(a) shows the graphs of two differentiable functions f and g near x=a. If we zoom in toward the point (a,0) (Figure 1(b)), the graphs of f and g look almost linear, so we can approximate the ratio of f and g by the ratio of their local linearizations. That is, because f(x)Lf(x)=f(a)=0+f(a)(xa) and g(x)Lg(x)=g(a)=0+g(a)(xa), we have f(x)g(x)f(a)(xa)g(a)(xa)=f(a)g(a).

(a) (b)

Figure 1

 

Example 1
Find limx0sinx1ex.

Solution 1
Here f(x)=sinx,g(x)=1ex, with f(0)=0,g(0)=0. Because f(x)=cosxf(0)=cos0=1 and g(x)=exg(0)=e0=1. by Equation (i), we have limx0sinx1ex=f(0)g(0)=11=1.

Example 2
Find limx11x31x.
Solution 2
Here f(x)=1x3 and g(x)=1x with f(1)=0 and g(0)=0. We can use Equation (i) to evaluate the above limit: f(x)=1x3f(x)=3x2f(1)=3 g(x)=1xg(x)=1g(1)=1 limx11x31x=f(1)g(1)=31=3.

Use Equation (i) only when f(a)=g(a)=0. If this condition is not satisfied, we cannot use this equation.

For example, consider limx01+2x1x Here f(x)=1+2x and g(x)=1x. Because f(0)/g(0)0/0, we cannot use Equation (i). If we use (i), because f(0)=2 and g(0)=1, we get 2/(1)=2. But the correct answer can be obtained simply by subsituting 0 for x: limx01+2x1x=1+2×010=1f(0)g(0)=21=2.

  • The following theorem generalizes the cases where we can use Equation (i). It states that Equation (i) is true under less stringent conditions and is also valid for one-sided limits as well as limits at + and .
Theorem 1. (l’Hôpital’s Rule): Assume limxsf(x)=0andlimxsg(x)=0 and assume also that limxsf(x)/g(x) exists or this limit is + or . Then limxsf(x)/g(x) also approaches a limit and limxsf(x)g(x)=limxsf(x)g(x). Here s signifies a,a+,a,, or +, where aR.

By the hypothesis that limxaf(x)/g(x) exists, it is tactically assumed there is an open interval I containing a such that

  1. Both f and g are differentiable (f(x) and g(x) exist) for all x in I (except possibly for x=a).
  2. g(x)0 in I (except possibly when x=a).

Show the proof …


 

  • Notice that f(x)/g(x) is the derivative of the numerator divided by the derivative of the denominator and it is different from the derivative of the fraction f(x)/g(x). f(x)g(x)ddx(f(x)g(x))=f(x)g(x)g(x)f(x)[g(x)]2.
  • If we apply l’Hôpital’s rule to the well-known limit limx0sinx/x, we obtain limx0sinxx=Hlimx0cosx1=cos0=1 Although we could obtain this limit easily, to derive the formula ddxsinx=cosx, we assumed the truth of this limit.
To apply l’Hôpital’s rule:

  1. Make sure the limit of f(x)/g(x) assumes the form 0/0 as xs.
  2. Differentiate f(x) and g(x) separately.
  3. Find the limit of f(x)/g(x) as xs. If the limit is a number, +, or , then it is equal to the limit of f(x)/g(x); otherwise, we CANNOT conclude that the limit of f(x)/g(x) does not exist.
  • If necessary, we may repeat the above process. Stop differentiating as soon as the derivative of the numerator or that of the denominator is different from zero.
Example 3
Find limx1x33x+22x3x24x+3.

Solution 3
Because x33x+22x3x24x+3|x=1=13+2214+3=00, we can apply l’Hôpital’s rule limx1x33x+22x3x24x+3=Hlimx13x236x22x4. Because 3x236x22x4|x=1=3(1)236(1)22(1)4=00, we apply l’Hôpital’s rule again limx13x236x22x4=Hlimx16x12x2=6(1)12(1)2=35.

  It is a common error to apply l’Hôpital’s rule to calculate the limit of 6x/(12x2) as x1. Applying l’Hôpital’s rule leads to a wrong value because this limit is not indeterminate and can be simply obtained by substituting 1 for x.

Example 4
Find limt2t+73t2.

Solution 4
Because t+73t2|t=2=2+73t2=00, we apply l’Hôpital’s rule: limt2t+73t2=Hlimt212t+71=122+71=16.
Example 5
Find limx01cosxx2.
Solution 5
Note that here we have an indeterminate limit of type 0/0. So limx01cosxx2=Hlimx0(sinx)2x=12. For the last step, we could use l’Hôpital’s rule again.
Example 6
Find limx0xsinxxtanx.

Solution 6
Here we have an indeterminate limit of type 0/0. So

limx0xsinxxtanx=Hlimx01cosx1sec2x Although the second limit is also indeterminate and we can apply l’Hôpital’s rule again, it is easier to directly evaluate the second limit: 1cosx1sec2x=1cosx11cos2x=1cosxcos2x1cos2x=cos2x (1cosx)(cosx1)(cosx+1)(A2B2=(AB)(A+B))=cos2xcosx+1. Therefore: limx01cosx1sec2x=limx0cos2xcosx+1=11+1=12.

Example 7
Find limx1lnxx1.

Solution 7
Because lnxx1|x=1=00, we can apply l’Hôpital’s rule: limx1lnxx1=Hlimx11x1=1.

Example 8
Find limx0xsinxsinhx.

Solution 8
Because xsinxsinhx|x=0=000, we can use l’Hôpital’s rulelimx0xsinxsinhx=Hlimx01cosxcoshx=11(e0+e0)/2=0.

Example 9
Find limx0arcsin4x2arcsin2xx3.

Solution 9
Because limx0(arcsin4x2arcsin2x)=02(0)=0 and limx0x3=0 we have an indeterminate limit of type 0/0 and we can apply l’Hôpital’s rule . Recall that (arcsinx)=11x2. Thus, limx0arcsin4x2arcsin2xx3=Hlimx04116x22214x23x2 The second limit is still 0/0. Thus we can apply l’Hôpital’s rule again. To differentiate the numerator, it might be easier to write it as 4(116x2)124(14x2)12. Therefore, limx04(116x2)124(14x2)123x2=Hlimx04(32x)2(116x2)324(8x)2(14x2)326x=limx064(116x2)3216(14x2)326=64166=8.

Example 10
Find limxe1/x212arctanx2π.

Solution 10
Because limxe1/x2=elimx1x2=e0=1 and limxarctanx2=u=x2limuarctanu=π2, we have an indeterminate limit of type 0/0. Thus limxe1/x212arctanx2π=Hlimxddx(e1/x21)ddx(2arctanx2π). Because ddxeu=eududx,ddxarctanu=11+u2dudx, we obtain limxddx(e1/x21)ddx(2arctanx2π)=limxddx(x2)e1/x22dx2dx11+x4=limx2x3e1/x22(2x)11+x4=limx1+x42x4e1/x2=(limx1+x42x4)(limxe1/x2)=(limxx42x4)(elimx1/x2)=(12)(e0=1)=12.

Example 11
Find limx+x5/3sin(1/x).

Solution 11
Because limx+x5/3=limx+1x5/3=0 and limx+sin(1x)=sin(limx+1x)=sin0=0, we have an indeterminate limit of type 0/0. So l’Hôpital’s rule applies: limx+x5/3sin(1/x)=Hlimx+53x8/31x2cos(1/x)=limx+53x2/3cos(1/x)=limx+1cos(1/x)(limx+53x2/3)=1cos0(0)=0.

Example 12
Evaluate limxsin(1/x)lnx+1x+2.

Solution 12
Because sinx and lnx are continuous functions, we have limxsin1x=sin(limx1x)=sin0=0 and limxlnx+1x+2=ln(limxx+1x+2)=ln1=0. So we have an indeterminate limit of type 0/0, and l’Hôpital’s rule applies: limxsin(1/x)lnx+1x+2=Hlimx1x2cos1x1(x+2)1(x+1)(x+2)2x+2x+1=limx1x2cos1x1(x+2)1(x+1)=limx((x+1)(x+2)x2cos1x)=(limx(x+1)(x+2)x2)(limxcos1x)=(limxx2x2)cos(limx1x)=(1)cos(0)=1.

Again note that if f,g0 as xs, but limxsf(x)g(x) does not approach a limit (that is, it is not a finite number, +, or ), we cannot conclude that limxsf(x)/g(x) does not approach a limit. The next example shows such a situation.

Example 13
Can we apply l’Hôpital’s rule to find limx0f(x)g(x) if f(x)=x2sin1x and g(x)=x?
Solution 13
In this example, f(x),g(x)0 as x0 [Because 1sin1x1, we have x2x2sin1xx2, and by the Sandwich Theorem we get limx0x2sin1x=0.] So we deal with an indeterminate limit of type 0/0. If we attempt to apply l’Hôpital’s rule, we get g(x)=1, f(x)=2xsin1x+x2(1x2)cos1x=2xsin1xcos1x, and limx0f(x)g(x)=limx0(2xsin1xcos1x). However, this limit does not exist because 2xsin1x0 (by the Sandwich Theorem), but the limit of cos1x does not exist as it widly oscillates between 1 and 1.

Note that we CANNOT conclude that limx0f(x)/g(x) does not exist. In fact, in this example, limx0f(x)/g(x) DOES exist: limx0f(x)g(x)=limx0x2sin1xx=limx0xsin1x=0. In general, if limxsf(x)/g(x) does not exist (and it is not equal to ±), l’Hôpital’s rule does not apply.

L’Hópital’s Rule for the Indeterminate Form  ±∞/±∞

Theorem 2. (L’Hôpital’s Rule for /): Assume limxsf(x)=+, or  and limxsg(x)=+ or . If limxsf(x)g(x)=L, then limxsf(x)g(x)=L. Here s signifies a,a+,a,, or +, where aR. The theorem remains valid if L is replaced by + or .

The proof of this theorem is discussed in more advanced books.

Example 14
Find limxπ2+tan5xtanx.

Solution 14
Because limxπ2+tan5x=limxπ2+tanx=, we have limxπ2+tan5xtanx=Hlimxπ2+5sec25xsec2x=limxπ2+5cos2xcos25x(0/0)=Hlimxπ2+5(2)(sinx)cosx2(5)(sin5x)cos5x(using the double angle formula)=limxπ2+sin2xsin10x=Hlimxπ2+2cos2x10cos10x=2cos010cos0=15.

Example 15
Evaluate limx+lnxxα, where α>0.
Solution 15
This is an indeterminate limit of type /, and l’Hôpital’s rule applies: limx+lnxxα=Hlimx+1xαxα1=limx+1αxα=0, because α>0.
  • The above example shows us that xα (α>0) grows much faster than lnx.
Example 16
Evaluate limx0+lnxcscx.

Solution 16
Because limx0+lnx=

Figure 2
Figure 2

 

and limx0+cscx=limx0+1sinx=[10+]+ we have an indeterminate limit of type / and we can apply l’Hôpital’s rule: limx0+lnxcscx=Hlimx0+1xcscxcotx The second limit is still indeterminate of type /(). If we directly apply l’Hôpital’s rule to this fraction, because powers of 1/x appear in the numerator and expressions involving cscx and cotx in the denominator, we will make the problem more complicated. However, if we first simplify the quotient, l’Hôpital’s rule is then helpful: limx0+1xcscxcotx=limx0+1x1sinxcosxsinx(0/0)=limx0+sin2xxcosx=Hlimx0+2sinxcosxcosxxsinx=2(0)(1)10(0)=0.

Evaluation of the Indeterminate Form 0·(±∞)

We can apply l’Hôpital’s rule to evaluate the limits of the indeterminate form 0(±). Namely,

If f(x)0 and g(x)+ or as xs, then we write f(x)g(x)=f(x)1/g(x)(or =g(x)1/f(x)) so as to cause it to take on one of the forms 0/0 or ±/±, and then apply l’Hôpital’s rule (Theorem 1 or 2).
Example 17
Evaluate limxπ/2(sec3xcos5x).

Solution 17
Because limxπ/2sec3x=limxπ/21cos3x={limxπ21cos3x=[10](see Figure 3)limxπ2+1cos3x=[10+]+(see Figure 3) and limxπ/2cos5x=cos(5π/2)=0.

Figure 3. (a) cos3x0 as xπ/2 or cosu0 as u3π2 (b) cos3x0+ as xπ/2+ or cosu0+ as u3π2+.

 

 

That is, we have an indeterminate limit of type 0 or 0() (Figure 4). If we write, sec3xcos5x=cos5xcos3x, we get an indeterminate limit of type 0/0: limxπ/2cos5xcos3x=[cos(5π/2)cos(3π/2)=00]

Figure 4
Figure 4

 

Now we can apply l’Hôpital’s rule. ddxcos5x=5sin5x ddxcos3x=3sin3x limxπ/2cos5xcos3x=Hlimxπ/25sin5x3sin3x=5sin(5π/2)=sin(2π+π2)=13sin(3π/2)=1=53. Therefore, sec3xcos5x5/3 as xπ/2. The graph of y=sec3xcos5x is shown in Figure 5.

Figure 5
Figure 5
Example 18
Evaluate limxπ/2(π2x)tanx.

Solution 18
Note that because limxπ/2+tanx=,limxπ/2tanx=+ we have an indeterminate limit of type 0(±) (Figure 6).

Figure 6
Figure 6

 

We can transform this limit into one of the form 0/0, and then apply l’Hôpital’s rule: limxπ2(π2x)tanx=limxπ2π2xcotxH[][00]=limxπ22(1+cot2x)=2(1+cot2(π/2))=21+0=2. The graph of y=(π2x)tanx is shown in Figure 7.

Figure 7
Figure 7
Example 19
Evaluate limx0+xlnsinx.

Solution 19
Note that sinx0+ as x0+, and lnu as u0+. Therefore, limx0+lnsinx= and limx0+xlnsinx is a limit of the form 0() (see Figure 8).

Figure 8
Figure 8

 

We can transform it into one of the form /. limx0+xlnx=limx0+lnsinx1x[=+]=Hlimx0+cosx 1sinx1x2=limx0+x2cosx 1sinx=(limx0+cosx)=1(limx0+x)=0(limx0+xsinx)=1=1(0)(1)=0. [Recall that sinx/x0 as x0.] The graph of y=xlnsinx is shown in Figure 9.

Figure 9
Figure 9
Example 20
Evaluate limxxex.

Solution 20
Because ex0 as x, we have an indeterminate limit of type 0(). We write it as limxxex=limxxex[=+]=Hlimx1ex=limxex=0. Figure 10 shows the graph of y=xex.

Figure 10
Figure 10

Evaluation of the Indeterminate Form ∞-∞

To evaluate a limit of the indeterminate form , we can transform it into a limit of a fraction such that we get an indeterminate form of type 0/0 or ±/±, then we apply l’Hôpital’s rule. Some examples of converting a a difference into a fraction are:

  • Using a common denominator
  • Rationalization
  • Factoring out a common factor

or we may write:

f(x)g(x)=11f(x)11g(x)=1g(x)1f(x)1f(x)g(x)=00

Example 21
Evaluate limxπ/2(secxtanx).

Solution 21
We notice limxπ/2secx=limxπ/21cosx=[10+]+

limxπ/2tanx=limxπ/2sinxcosx=[10+]+, and limxπ/2+secx=limxπ/2+1cosx=[10] limxπ/2+tanx=limxπ/2+sinxcosx=[10], so in both cases, we have an indeterminate limit of type . Using a common denominator, we get limxπ2(secxtanx)=limxπ2(1cosxsinxcosx)=limxπ21sinxcosx[=00]=Hlimxπ2cosxsinx=cos(π/2)sin(π/2)=01=0.

Example 22
Evaluate limx0(1sinx1x).

Solution 22
Here we have a limit of the form (you may consider x0+ and x0 separately). Using a common denominator, we get limx0(1sinx1x)=limx0xsinxxsinx[=00] Now we can apply l’Hôpital’s rule: limx0xsinxxsinx=Hlimx01cosxsinx+xcosx[=00]=Hlimx0+sinxcosx+cosxxsinx=sin02cos00(0)=0.

Example 23
Evaluate limx1(1lnx1x1).

Solution 23
Here we have a limit of the form (if you consider x1+ and x1 separately, you will get ). Using a common denominator, we get limx1(1lnx1x1)=limx1x1lnx(x1)lnx(0/0)=limx1x1lnxxlnxlnx Now we can apply l’Hôpital’s rule: limx1x1lnxxlnxlnx(still 0/0)=Hlimx111xlnxxx1x=Hlimx11x21x+1x2=11+1=12.

Evaluation of the indeterminate forms 00,1±,(±)0

In addition to 0/0, ±/, 0(±), and , other indeterminate forms are 00,1±, and (±)0. That is, limits of the form

limxsf(x)g(x)[with f(x)>0] are indeterminate if

  • f0 and g0
  • f1 and g+ or
  • f+ or and g0.

To evaluate such limits, let

y=f(x)g(x). Taking the natural logarithm of each side, lny=lnf(x)g(x)=g(x)lnf(x), and then exponentiating the results, we obtain elny=y=eg(x)lnf(x). Because ex is a continuous function limxsy=elimxs(g(x)lnf(x)).

In any of the above cases, limxs(g(x)lnf(x)) will take on the indeterminate form 0±.

  • Note that 0± is not an indeterminate form. If f0+ and g+ , then lnf(x) and g(x)lnf(x)(+)()= and y=eg(x)lnf(x)e0. And if f0+ and g, then g(x)lnf(x)()()=+ and y=eg(x)lnf(x)e++.
Example 24
Evaluate limx0+xx.

Solution 24
Let y=xx; then lny=xlnx. As x0+, xlnx takes on the form 0(). To find limx0+xlnx, we write limx0+xlnx=limx0+lnx1x[=+]=Hlimx0+1x1x2=limx0+(x)=0. Therefore, lny0 as x0+. So far we have obtained the limit of lny. To compute the limit of y, we use the fact that y=elny and limx0+y=limx0+elny and the continuity of the exponential function implies limx0+elny=elimx0+lny=e0=1 so y1 as x0+.

Figure 11
Figure 11
Example 25
Evaluate limx+x1/x.

Solution 25
Because 1/x0 as x+, we have an indeterminate limit of type (+)0.
Method (a): To find this limit, we can take the natural logorithm of x1/x and follow similiar steps of the previous example, y=x1/x lny=ln(x1/x)=1xlnx Because lnx+ as x+, lnx/x assumes an indeterminate form /, and l’H�pital’s rule applies: limx+lny=limx+lnxx=limx+1x1=0. Therefore, limx+y=limx+elny=elimx+lny=e0=1.

Method (b): Put u=1/x. Then u0+ as x+ and limx+x1/x=limu0+(1u)u=1limu0+uu From the previous example, we know limu0+uu=1. So limx+x1/x=11=1.

Example 26
Evaluate limx0(1+sinx)1/x.

Solution 26
This function assumes the indeterminate form 1±. Let y=(1+sinx)1/x lny=1xln(1+sinx)(lnab=blna) and limx0lny=limx0ln(1+sinx)x[=00]=Hlimx0cosx 11+sinx1=cos0(11+sin0)=1 Because y=elny and lny1 as x0, we have ye1=e as x0.

Figure 12
Figure 12

Example 27
Evaluate limx0+(cotx)sinx.

Solution 27
Because sinx0+ and cotx=cosxsinx[10+]+ as x0+, we have an indeterminate limit of type 0. Let y=(cotx)sinx thus lny=sinxlncotx.[=0 as x0+] limx0+sinxlncotx=limx0+lncotx1sinx[=++]=Hlimx0+(1+cot2x) 1cotxcosxsin2x=limx0+(1+cot2x) sinxcosxcosxsin2x(cotx=cosxsinx)=limx0+((1+cot2x)sin3xcos2x)=limx0+(cos2x+sin2x=1sin2xsin3xcos2x)(expanding1+cot2x)=limx0+sinxcosx=0. Because lny0 as x0+, y=elnye0=1 as x0.