Applying L’Hôpital’s Rule

Learning Outcomes

  • Recognize when to apply L’Hôpital’s rule

Applying L’Hôpital’s Rule

L’Hôpital’s rule can be used to evaluate limits involving the quotient of two functions. Consider

limxaf(x)g(x)

 

If limxaf(x)=L1 and limxag(x)=L20, then

limxaf(x)g(x)=L1L2

 

However, what happens if limxaf(x)=0 and limxag(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 xa without further analysis. We have seen examples of this earlier in the text. For example, consider

limx2x24x2 and limx0sinxx

 

For the first of these examples, we can evaluate the limit by factoring the numerator and writing

limx2x24x2=limx2(x+2)(x2)x2=limx2(x+2)=2+2=4

For limx0sinxx we were able to show, using a geometric argument, that

limx0sinxx=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 limxaf(x)=0=limxag(x) and such that g(a)0 For x near a, we can write

f(x)f(a)+f(a)(xa)

 

and

g(x)g(a)+g(a)(xa)

 

Therefore,

f(x)g(x)f(a)+f(a)(xa)g(a)+g(a)(xa)

 

Two functions y = f(x) and y = g(x) are drawn such that they cross at a point above x = a. The linear approximations of these two functions y = f(a) + f’(a)(x – a) and y = g(a) + g’(a)(x – a) are also drawn.

Figure 1. If limxaf(x)=limxag(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)=limxaf(x)=0. Similarly, g(a)=limxag(x)=0. If we also assume that f and g are continuous at x=a, then f(a)=limxaf(x) and g(a)=limxag(x). Using these ideas, we conclude that

limxaf(x)g(x)=limxaf(x)(xa)g(x)(xa)=limxaf(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 limxaf(x)=0 and limxag(x)=0, then

limxaf(x)g(x)=limxaf(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 limxaf(x)=0=limxag(x) and f and g are continuous at a, it follows that f(a)=0=g(a). Therefore,

limxaf(x)g(x)=limxaf(x)f(a)g(x)g(a)sincef(a)=0=g(a)=limxaf(x)f(a)xag(x)g(a)xamultiplying numerator and denominator by1xa=limxaf(x)f(a)xalimxag(x)g(a)xalimit of a quotient=f(a)g(a)definition of the derivative=limxaf(x)limxag(x)continuity offandg=limxaf(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 fg. 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.

  1. limx01cosxx
  2. limx1sin(πx)lnx
  3. limxe1x11x
  4. limx0sinxxx2

Watch the following video to see the worked solution to Example: Applying L’Hôpital’s Rule (0/0 Case).

Try It

Evaluate limx0xtanx.

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 limxaf(x)= (or ) and limxag(x)= (or ). Then,

limxaf(x)g(x)=limxaf(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.

  1. limx3x+52x+1
  2. limx0+lnxcotx

Try It

Evaluate limxlnx5x

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 limx1x2+53x+4. Show that the limit cannot be evaluated by applying L’Hôpital’s rule.

 

Try It

Explain why we cannot apply L’Hôpital’s rule to evaluate limx0+cosxx. Evaluate limx0+cosxx by other means.

Watch the following video to see the worked solution to the above Try It.

Try It