ch8
ch8
if we can insure that f x is as close as we please to L just by taking x close enough to a. If f is also
defined at a, and
(8.2) lim f x f a
x a
we say that f is continuous at a (we urge the reader to review section 2.1). If the expression for f x is a
polynomial, we found limits by just substituting a for x; this works because polynomials are continuous.
But how do we calculate limits when the expression f x cannot be determined at a? For example,
we recall the definition of the derivative:
f x f a
(8.3) f x lim
x a x a
The value cannot be determined by simply evaluating at x a, because both numerator and denominator
are 0 at a. This is an example of an indeterminate form of type 0/0: an expression f x g x , where both
f a and g a are zero. As for 8.3, in case f x is a polynomial, we found the limit by long division, and
then evaluating the quotient at a (see Theorem 1.1). For trigonometric functions, we devised a geometric
argument to calculate the limit (see Proposition 2.7). And as for the rest, we find derivatives using the
rules of differentiation.
For the general expression f x g x we have
Proposition 8.1 (l’Hôpital’s Rule) If f and g are differentiable at a, and f a 0 and g a 0, but
g a 0, then
f x f a
(8.4) lim
x a g x g a
119
Chapter 8 Indeterminate Forms and Improper Integrals 120
This is because
f x fx f a fx f a x a limx f a
f x f a
x a a
(8.5) lim lim lim
x a g x x a g x g a x a g x g a x a g a
g x
limx a x g a
a
Each of these equalities can be justified using the hypotheses. It is important when using l’Hôpital’s rule
to make sure the hypotheses hold; otherwise (see example 8.4 below), we can get the wrong answer.
sin x
Example 8.1 lim
x 0 x
Here the functions are differentiable and both zero at x 0, so l’Hôpital’s rule applies:
sin x cos x
(8.6) lim lim cos 0 1
x 0 x
x 0 1
Of course this example is a fake, since we needed to validate this limit just to show the differentiability
of sin x.
sin 3x
Example 8.2 lim
x 0 4x
Both numerator and denominator are 0 at x 0, so we can apply l’H (a convenient abbreviation for
l’Hôpital’s rule):
sin 3x 3 cos 3x 3
(8.7) lim l H
lim
x 0 4x
x 0 4 4
x2 4x 5
Example 8.3 lim
x 5 x 5
Here both numerator and denominator are zero, so l’H applies:
x2 4x 5 2x 4
(8.8) lim l H
lim 6
x 5 x 5
x 5 1
Note that we could also have divided the numerator by the denominator, getting
x2 4x 5
(8.9) x 1
x 5
whose value at x 5 is 6.
x 2
Example 8.4 lim
x 03x 1
Since neither the numerator nor denominator is zero at x 0, we can just substitute 0 for x, obtaining
2 as the limit. Note that if we blindly apply l’Hôpital’s rule, we get the wrong answer, 1/3.
x3 3x 2
Example 8.5 lim
x 2 tan π x
After checking that the hypotheses are satisfied, we get
x3 3x 2 3x2 3 12 9 3
(8.10) lim l H
lim
x 2 tan π x x 2 π sec2 π x π π
8.1 L’Hôpital’s Rule 121
The second limit can be evaluated since both functions are continuous and the denominator nonzero.
sin2 2x
Example 8.6 lim
x 0 cosx 1
Both numerator and denominator are zero at x 0, so l’Hôpital’s rule applies:
8 cos2 2x 8 sin2 2x
(8.12) l H
lim 8
x 0 cos x
for now we can take the limit by evaluating the functions.
l’Hôpital’s rule also works when taking the limit as x goes to infinity.
Proposition 8.2 If f and g are differentiable functions, and limx ∞ f x 0 and limx ∞g x 0, then
f x f x
(8.13) lim
lim
x ∞ g x x ∞ g x
We see that this is true by the substitution t 1 x, which leads us back to proposition 8.1:
f x f 1 t
1
f 1 t
(8.14) lim
lim l H
lim t2
∞ g x 0 g 1 t 1
1 t
x t t 0 2 g
t
by l’Hôpital’s rule and the chain rule. But the factors introduced cancel, so, changing back to x 1 t,
we get the proposition.
l’Hôpital’s rule works if the limits are infinite (this is called an indeterminate form of type ∞ ∞):
Proposition 8.3 If f and g are differentiable functions, and limx a f x ∞ and limx ag x ∞, then
f x f x
(8.15) lim
lim
x ∞ g x x ∞ g x
Here the limit point a may also be infinity.
tanx
Example 8.7 lim
x π
2
ln
π 2 x
The superscript “-” means that the limit is taken from the left; a superscript “+” means the limit is
taken from the right. Since both factors tend to ∞, we can use l’Hôpital’s rule:
tanx sec2 x π 2 x
(8.16) lim l H
lim lim
x π
2
ln π 2 x x π
2
π 2 x 1
x π
2
cos2 x
x 2
2 cosx sin x
Chapter 8 Indeterminate Forms and Improper Integrals 122
since cos x sin x is positive and tends to zero.. We leave it to the reader to verify that the limit from the
right is ∞.
tan x
Example 8.8 lim
x π
2
sec x
This example is here to remind us to simplify expressions, if possible, before proceeding. If we just
use l’Hopital’s rule directly, we get
x 2
sec x x 2
sec x tan x x 2
tan x
which tells us that the sought-after limit is its own inverse, so is 1. We now conclude that since both
factors are positive to the left of π 2, then the answer is +1. But this would have all been easier to use
some trigonometry first:
tan x
(8.19) lim lim sin x 1
x π
2
sec x x π
2
xn
x ∞ ex
Example 8.9 lim
Both factors are infinite at the limit, so l’Hopital’s rule applies. Let’s take the cases n 1 2 first:
x 1
lim ∞ ex lim ∞ ex
l H
(8.20) 0
x x
x2 2x 1
(8.21)
x
lim
∞ ex
l H
x lim ∞ ex
l H
2 lim
x ∞ ex
0
We see that for a larger integer n, the same argument will work, but with n applications of l’Hôpital’s
rule. We say that the exponential function goes to infinity more rapidly than any polynomial.
x
Example 8.10 lim
∞
x ln x
x 1
∞ ln x lim ∞ x ∞
l H
(8.22)
x
lim x lim ∞ 1 x x
In particular, much as in example 8.9, one can show that polynomials grow more rapidly than any poly-
nomial in ln x.
ln x 1 x x2
Example 8.11 lim x ln x lim l H
lim lim lim x 0
x 0 x 01 x x 0 1 x2 x 0 x
x 0
π 2 arctanx 1 1 x2 x2
(8.23) lim x π 2 arctanx lim l H
lim lim
x ∞ x ∞ 1 x x ∞ 1 x2 x ∞ 1 x2
1
(8.24) lim
1
x ∞ 1 x 2
Another case, the indeterminate form ∞ ∞, is to calculate limx a f x g x , where both f and
g approach infinity as x approaches a. Although both terms become infinite, the difference could stay
bounded, tend to zero, or also tend to infinity. In these cases we have to manipulate the form algebraically
to bring it to one of the above forms.
1 1
Example 8.13 lim
x 0 sin x x
1 1 x sinx 1 cosx sin x
l H l H
(8.25) lim lim lim lim 0
x 0 sin x x
x 0 x sin x x 0 sin x x cosx x 0 2 cos x x sinx
x2 20 x x2 20
x x2 20
x2 x2 20
20
x
(8.26) x
x2 20 x x2 20 x x2 20
(8.27) lim x
x ∞
x2 20 lim
x ∞ x
20
x2 20
0
Finally, whenever the difficulty of taking a limit is in the exponent, try taking logarithms.
(8.28) lim ln x1 x
lim
1
lnx lim
ln x
l H
lim
1 x
0
x ∞
x ∞ x
x ∞ x
x ∞ 1
Now, exponentiate, using the continuity of exp:
(8.29) lim x1 x
exp lim ln x1 x
e0 1
x ∞ x ∞
Chapter 8 Indeterminate Forms and Improper Integrals 124
a dx a
(8.30) 2
arctanx 2 arctana
a 1 x
a
Since arctana is always less than π 2, this area is bounded no matter how large we choose a. In fact,
since lima ∞ arctana π 2, the area under the total curve y 1 x2 1 adds up to 2 π 2 π We
can write this in the form
∞ dx
(8.31) 2
π
∞ 1 x
∞ ∞ 0
if both integrals on the right hand side exist according to definition 8.1.
Note that it is insufficient to define 8.34 by the limit lima ∞ a a f x dx, for this integral is always
zero for an odd function, say f x x, and it would not be appropriate to say that such an integral
converges.
∞
Example 8.16 e x dx 1
0
First we calculate the integral up to the positive number a:
a a 1
(8.35) e x dx e x
1
ea
0
0
(8.36)
a
x p
dx
1
x p 1
a
1
a
p 1
1
1 p 1
1 p 1
Now, if p 1 0 a
p 1 0 as a ∞, so our conclusion is valid, and in fact
∞ dx 1
(8.37) for p 1
xp
1 p 1
dx ∞
Example 8.18 diverges
1 x
We calculate over a finite interval:
a dx a
(8.39) ln x
ln a
1 x
∞.
Sometimes we can conclude that the improper integral converges, even though we cannot calculate
the actual limit. This is because of the following fact:
Theorem 8.1 Suppose that F is an increasing continuous function of x for all x c, and suppose that F
is bounded; that is, there is a positive number M such that M F x for all x. Then lim x ∞ F x exists.
This is an important theorem, known as the Monotone Convergence Theorem which is difficult to
prove rigorously. To see why it is reasonable at least, consider the least upper bound M0 of the set of
values F x . There must be values F x which come as close as we please to M0 , for if not, the values of
F stay away from M0 , so this could not be the least upper bound. But now, because F is increasing, that
means that eventually all values come that close to M0 .
∞
x2
Example 8.19 e dx converges
1
In this range, x2 x, so e x2 e x . So, for any a,
a a
x2
(8.40) e dx e x dx 1
1 1
by example 8.16. Thus the values of the integral are bounded by 1. But since the function is always
positive, the integrals increase as a increases. Thus by Theorem 8.1, the limit exists.
This example generalizes to the following
Proposition 8.4 Suppose that f and g are continuous functions defined for all x c, and suppose that
for all x, 0 f x g x . Then
∞ ∞
a) If g x dx converges, then f x dx converges.
c c
Chapter 8 Indeterminate Forms and Improper Integrals 126
∞ ∞
b) If f x dx diverges, then g x dx diverges.
c c
cos x dx ∞
Example 8.20
x3 2 1
converges
Now, we don’t know how to integrate this function, but we do know that cos x 1. Thus the
integrand is always less than or equal to x 3 2 , and so, by example 8.17 and proposition 8.4, we can
(8.41)
1
x 1 2 dx 2x1 2
1
2 1 a
a
Now, as a
1 1 2
0 x dx 2, as we do with this
definition.
Definition 8.3 Let f x be defined and continuous for all x in an interval c b . We define
b b
f x dx f x dx
(8.42)
c a c
lim
a
if the limit exists. Similarly if f x is defined and continuous for all x in an interval b c , we define
c a
(8.43) f x dx lim f x dx
b
a c
b
1
Example 8.22 x p
dx converges for p 1
0
We calculate the integral over an interval a 1 , with a 0:
(8.44)
1
x p
dx
1
x
p 1
1
1
1 a
p 1
a p 1
a p 1
Now, if p 1 0 a
p 1 0 as a 0, so our conclusion is valid, and in fact
1 dx 1
(8.45) for p 1
0 xp 1 p
0
8.4 Improper Integrals: Finite Asymptotes 127
a x
0. However:
1
Example 8.23 ln xdx converges
0
By example 9 of chapter 7, for a positive and near 0,
1 1
(8.48) ln xdx x ln x x
1 a lna a
a
a
By example 11, chapter 8, lima 0 a lna 0, so the limit exists and is equal to -1.