Laboratory 10
L'Hôpital's Rule
Introduction
The purpose of this lab is to learn how to evaluate limits of the form
that we were unable to evaluate previously. In particular, we shall learn how to evaluate these limits either when
or when
. Limits of this type often occur in practice. In addition, there are many other types of limits which we previously could not evaluate that can be converted into limits in one of these two forms; we shall also examine these.
Example 10.1, Motivation.
Suppose that we want to evaluate
. We see that the numerator
and the denominator
both vanish when
, so we can not simply substitute
into this quotient as the resulting expression
is not defined. When previously faced with such limits, we would try to use some algebra to manipulate the numerator and denominator into a form that would allow us to evaluate the limit by using direct substitution. At first glance, this method seems to fail us here. Indeed, we know of no method to relate
and
. Or do we?
Since we are taking a limit, we only need to know the values of the numerator and denominator near the point
. One idea then, is to replace the numerator and denominator with simpler functions that agree with them near the origin. The hope would then be that the limit of the resulting expression could be evaluated directly. In fact, with one slight modification, this is exactly what we shall do. We know from our study of the derivative that the tangent line to a function gives a good approximation to that function, at least in a neighborhood of that function. Thus, we shall replace both the numerator and denominator in our example by the equations of the corresponding tangent lines, and then evaluate the limit of the resulting quotient.
We begin by finding the equation of the tangent line to
at the point
.
For comparison, we draw the graph of
(in red) and the graph of
, the tangent line to
(in blue) below.
Now we do the same thing for
.
We can ignore the warning message that Mathematica gives us; we know that the symbols have similar spellings. We now define the equation of the tangent line, and again give a graph comparing
with its tangent line at
.
Now, because
and because
, and also because these approximations get better the closer
gets to zero, we hope that
, and that we can easily evaluate this second limit. Well, we first check what
and
are:
This is encouraging; we can see simply that
so that
. We still need to know however, if this actually gives us the limit
. To check this, we shall draw a graph of both
and
on the same axes.
If we zoom in a bit, we find the following:
This gives us some graphical evidence to conclude that our idea is correct, and that
. Note that it is unclear from the graph if the function
is defined at
; however we already know that this quotient is not defined when
. Simply because the graph that Mathematica produces appears to be defined at
, we can not conclude that the function is defined there.
Experiment 10.1
Repeat the process of Example 10.1 to estimate the limit
. In particular, find tangent line approximations for the numerator and denominator. Evaluate the limit of the quotient of the tangent line approximations, and verify your result graphically.
Example 10.2, The Basic Rule
Although the methods we have learned so far are useful, they are somewhat cumbersome, as they require a number of intermediate calculations. In this section we shall look for ways to simplify what we have already discussed.
Suppose that we want to evaluate a limit of the form
for functions
and
with
using the techniques that we have discussed. We know that the first thing to do is to find the tangent line approximation to
at
. This approximation has the form
.
We then do the same thing for the function
, giving us
![]()
The limit we want is then
.
Here is where we notice something interesting. Because
, we can simplify this expression to read
![]()
As a consequence, it seems that we ought to be able to evaluate
when
by simply calculating the ratio
. Well, it turns out that this is almost true. In the arguments leading up to this conclusion we have made a number of simplifications which need not all be true. However, the basic ideas are correct, and carefully reworking them, we can prove the following statement, called L'Hôpital's Rule:
L'Hôpital's Rule (Basic Version): Let
and
be differentiable on an interval
containing the point
, except possibly at the point
, with
for all
in the interval, except possibly for the point
. If
, then
![]()
provided the limit on the right side exists or is infinite.
This rule can be proven to be true using something called the Cauchy Mean Value Theorem. We shall not dwell on the proof, but instead shall focus on the uses of this rule in applications.
We can apply L'Hôpital's rule to our limit in Example 10.1 as follows. Recall that there we wanted to calculate
. Start by setting
, and
.
Clearly
. Next we check that
on some interval containing the point
graphically.
Since
in the interval (-0.5,0.5), we can apply L'Hôpital's Rule. First we note that
Then we evaluate
by directly substituting
so we conclude that
.
For another example, suppose we wish to calculate
. We can not directly substitute
because the denominator would vanish. Instead we do this as follows:
Direct calculation shows us that
. Since
we know that it is nonzero; thus we can apply L'Hôpital's Rule. First we calculate
We then evaluate
by direct substitution
and we conclude that
. We can verify this graphically should we choose to do so, but this is unnecessary, as L'Hôpital's Rule can be proven to be true.
Experiment 10.2
Use L'Hôpital's Rule to calculate each of the following limits. Verify your results graphically.
1. ![]()
2. ![]()
3.
Example 10.3, Variants of the Main Rule
There are a number of minor variations of L'Hôpital's Rule which we would now like to discuss.
First, we point out that L'Hôpital's Rule works just as well when the value of the limit is infinite. Indeed, consider
.
Because
for
, and because
we can apply L'Hôpital's Rule
We then see that
as
. We can verify this graphically as follows.
Next, we point out that L'Hôpital's Rule also applies to one sided limits as well as to two-sided limits. As an example, consider the question of finding
Since
, and since
, we can apply L'Hôpital's Rule.
Direct substitution then gives us
so that the limit is 0. We again verify this graphically.
Next, we point out that L'Hôpital's Rule is also valid for limits at infinity. As an example of this, consider the limit ![]()
Because
and
as
, our limit has the required indeterminate form
. We still need to check that
, however
so this is satisfied. We then apply L'Hôpital's Rule.
We see that
as
; indeed, we can rewrite our quotient using the Apart command
and we see that the second term tends to zero as
tends to infinity. Once again, we verify our calculation by examining the graph.
Experiment 10.3
Use L'Hôpital's Rule to calculate each of the following limits. Verify your result graphically.
a)
.
b)
.
Example 10.4, The General Rule
All of the limits we have discussed so far have been of the form
where
. We say that these quotients are of the indeterminate form
. So far, we have learned how to find limits in this indeterminate form with the aid of L'Hôpital's Rule. It turns out that L'Hôpital's Rule is even more general than this. In particular, it can be used to evaluate limits which have the indeterminate form
. Stated precisely, we have the following.
L'Hôpital's Rule (General Version): Let
and
be differentiable on an interval
containing the point
, except possibly at the point
, with
for all
in the interval, except possibly for the point
. If either
, or
, then
![]()
provided the limit on the right side exists or is infinite. This remains true if the limits are one-sided limits or if the limit is taken as
.
We can now use this general rule to evaluate even more limits. As an example, consider
. Although this is not in the form discussed in Example 10.2, because
as
, it does fit the hypotheses of the general version of L'Hôpital's Rule.
As a consequence, we conclude that
. We verify this by examining the graph.
As another example, consider
. Because both
and
as
, our limit has the indeterminate form
, and L'Hôpital's Rule applies.
We see that
; once again we check our work by plotting the graph.
When using L'Hôpital's Rule, it is important to check that the function actually has one of the indeterminate forms
or
. If it does not have one of these forms, you can not use L'Hôpital's Rule; this is a common error. Indeed, suppose that we wanted to calculate
. Simply substituting the value
lets us see that
. On the other hand, if we were to differentiate the numerator and denominator, and evaluate the limit of that quotient, we obtain
, which is clearly wrong.
Experiment 10.4
Evaluate each of the following limits with the aid of the general form of L'Hôpital's Rule. Verify your results by examining a graph.
a) ![]()
b)
Example 10.5
Sometimes, when we apply L'Hôpital's Rule to a limit, the resulting expression does not have a limit that can be evaluated directly. Indeed, consider
. If we try to evaluate this limit using L'Hôpital's Rule, we find the following.
Since
and
as
, our limit has the indeterminate form
, and we can apply the general form of L'Hôpital's Rule.
Unfortunately, we can not evaluate
by directly substituting in the value
. Indeed, this new limit is also indeterminate and has the form
. We then evaluate this limit by, once again, applying L'Hôpital's Rule.
Thus we conclude that
. We can verify this by plotting a graph.
There are other limits which can be evaluated by appealing to L'Hôpital's Rule, but only after the function undergoes a preliminary algebraic massage. Indeed, consider
. We can not evaluate this by direct substitution because
. However, we can evaluate this if we rewrite it in a form amenable to L'Hôpital's Rule. Indeed, writing our limit solely in terms of sines and cosines, we find that
.
Then because
, we can apply L'Hôpital's Rule.
As a consequence, we conclude that
. We can verify this graphically.
Sometimes more drastic action is needed to rewrite a limit in a form to which we can apply L'Hôpital's Rule. For example, consider
. As it stands, this is not in a form which we can evaluate directly, nor is it in a form to which we can apply L'Hôpital's Rule. However, the logarithm of this function is something which we can understand. Indeed, if we set
then
can be expanded as
In this form, we see that
is in a form amenable to analysis with L'Hôpital's Rule. Then, because
is a continuous function,
.
We can find our original limit by finding the exponential of the limit of
, which we have already seen is in a form to which we can apply L'Hôpital's Rule. (Remember that the function
is the same as
, so that
.)
To find the limit of
, we note that it is a quotient and has the indeterminate form
so L'Hôpital's Rule applies.
As a consequence, we conclude that
, and thus
.
We can verify that we have calculated our limit correctly by drawing a graph. Here we display the function
in red and the constant line
in blue.
Experiment 10.5
Use the tools we have learned to evaluate each of the following limits. In each case give a graph to support your claim.
1. ![]()
2. ![]()
3. ![]()
4.
Credits
These laboratories were created by Raouf Boules, Geoff Goodson, Ohoe Kim and Mike O'Leary for use in the Calculus courses of Towson University. Commercial use is prohibited without permission of the authors. Non-commercial use is permitted, provided this credit section is retained.
Created by Mathematica (August 23, 2004)