Laboratory 18
Improper Integrals
with Solutions
Introduction
The purpose of this lab is to learn about and to study improper integrals. Improper integrals arise because the definition of the definite integral does not cover all of the cases which are of interest. Remember that the definite integral
is defined for continuous functions
on finite, closed intervals
using a limit of Riemann sums. In practice however, there will be times when we want to evaluate an integral that does not satisfy these conditions; we use improper integrals as an extension of the definite integral to cover some of these cases.
Example 18.1, Integrals that are Improper at an Endpoint.
The first class of improper integrals that we shall consider are those which are improper at one endpoint. Suppose that we have a function
defined on an interval
. We know that the definite integral
is defined under the supposition that the function
is continuous on the entire closed interval
. We would like to relax this restriction, so let us suppose instead that
is only continuous on
. In this case, although the integral
is not defined, we can define the integral
for
. Doing so, we can then ask what happens to the value of this integral as
. If this limit exists, we shall say that the improper integral
exists, and that
=
.
Note that this limit may, or may not, exist. If the limit exists, we say that the improper integral converges, while if the limit does not exist, we say that the improper integral diverges.
Let us illustrate this idea with a pair of examples. We start with the function
which is defined and continuous on the interval
; however it is not continuous from the right at 0 because it becomes infinite there. For verification, we can examine the graph
and see that these properties hold.
We now would like to integrate
from 0 to 1. Since
is not continuous on
the usual integral is not defined, but the improper integral may be defined. Indeed, for
we can calculate the integral
as
(We need to tell Mathematica that
, so we have used the Assumptions-> c > 0 command).
Clearly the limit of this expression as
is 2. We can verify this fact with the aid of Mathematica. First, give the expression a name, say Int.
We then use Mathematica's Limit command
We used the Direction->-1 option because we are taking the limit from the right side.
As a consequence of these calculations, we conclude that the improper integral
converges, and that
.
As another example, consider
on the same interval
. Like
, the function
is continuous on
but is not continuous on
, so if its integral from 0 to 1 exists, it must be defined as an improper integral. Here is the corresponding graph.
Again, we calculate the value of
.
As
, we see immediately that this expression tends to ∞. We can verify this with the aid of Mathematica.
As we can see, in this case the limit does not exist, so the improper integral diverges.
We point out that although these examples had their discontinuities at the left endpoint, the same process is valid for functions that have their discontinuity at the right endpoint. Remember that if we want Mathematica to find a limit of the form
, we must use the Direction->1 option in the limit command.
It may seem odd that the integral
is convergent while the integral
is divergent; after all both functions have the same general behavior. However, if we plot the functions
(in red) and
(in blue) on the same axes we can see a qualitative difference between them; the function
appears to blow up faster than
does.
This difference is reflected in the fact that the integral of
is convergent, while the integral of
is divergent. A word of caution- you can not determine whether or not a given improper integral converges merely by looking at the graph; you must always analyze the integral in the same fahsion as we have demonstrated above.
There is one Mathematica issue which needs to be mentioned. When Mathematica is asked to evaluate an integral, it will try to check to see if the integral is improper, and whether or not it converges. If it can not decide if an integral is convergent, Mathematica will generate a warning. Because we are checking for the convergence of our integrals directly, we do not need Mathematica to do it for us; we certainly don't want it interjecting warnings. To turn these warnings off, we execute the command
Experiment 18.1a
Determine which of these improper integrals converge. If the integral converges, find its value.
1. ![]()
.
2.
.
3. ![]()
dx.
Experiment 18.1b
Consider the improper integral
for different values of
. Determine for which values of
the improper integral is convergent, and for which values of
the improper integral is divergent. Explain your reasoning.
Example 18.2, Integrals that are Improper Within the Interval.
We can also consider functions that have discontinuities within the interval of integration. For instance, suppose we wanted to calculate
. If we graph this function, we see that it is not continuous on the entire interval
because of its asymptote at
.
Although this loss of continuity prevents us from considering
as a conventional integral, we can consider it as an improper integral. In particular, we define
=
+![]()
where the two integrals on the right are improper integrals of the type that we have already discussed. To evaluate
, we evaluate each of the improper integrals
and
, then add the results.
Indeed, here we evaluate
and here we evaluate
.
Thus we can conclude that
.
This process is valid in general. In particular, suppose we have a function
dicsontinuous at a point
that is continuous on each of the intervals
and
. Then, although the discontinuity prevents us from considering
as a conventional definite integral, we can consider it an improper integral of the form
where each of the two integrals on the right are improper integrals of the form discussed in Example 18.1.
Experiment 18.2
Determine which of these integrals are improper by plotting the integrand. For those that are, decide if they are convergent, and if convergent, find their value.
1. ![]()
.
2. ![]()
3.
Example 18.3, Improper Integrals with Infinite Limits of Integration.
There is another way an integral can be improper. Instead of the usual case where the integral is taken over a bounded interval, the integral could be taken over an infinite interval. In particular, we might want to evaluate an integral of the form
. Because the upper limit of integration is
, integrals such as this have not yet been defined; our Riemann sum definition of the integral required a continuous function on a closed interval
. However, we can define this as an improper integral; in particular we define
.
As an example, consider the function
. We can evaluate
as follows.
The symbol ∞ which appears in the Limit command can be obtained by hitting the escape key, typing "inf", and hitting the escape key once more. Alternatively, one can enter the symbol directly from the Basic Typesetting Palette.
It may seem a bit unusual for an integral with an infinite limit of integration to have a finite value; after all the region of integration is infinite. To see that this is plausible, let us examine a graph of our function.
We can then see that the height of the graph of
is nearly zero for all large values of
; this explains how we can have a finite area beneath an infinitely long curve.
Let us point out, however, that simply because the curve tends to zero as
tends to infinity, we can not necessarily conclude that the improper integral is convergent. For example, consider
If we plot the integrand, we see that it also tends to zero as
tends to infinity.
On the other hand, to evaluate the improper integral, we first evaluate
, and then pass to the limit as
.
Thus our calculation shows us that this improper integral is divergent.
To get a feel why the previous two integrals are different, we can plot the functions
(in red) and
(in blue) on the same axes; doing so we obtain the following.
Looking at the graphs, we can see why it is reasonable that the integral of
is finite while the integral of
is infinite. Keep in mind though, that in general you can not tell whether an improper integral is convergent or divergent by looking at the graph of the integrand.
Finally, we point out that analogous results hold for integrals when the lower limit of integration is
.
Experiment 18.3a
Determine which of these improper integrals converge. If the integral is convergent, find its value.
1. ![]()
.
2.
.
3.
dx
Experiment 18.3b
Consider the improper integral
for different values of
. Determine for which values of
the improper integral is convergent, and for which values of
the improper integral is divergent. Explain your reasoning.
Solution
We see that if
then the limit as
is finite, while if
, the limit is infinite. The given result is not valid when
, so we handle that separately.
We conclude that the integral is convergent if
and divergent otherwise.
Example 18.4, Integrals that are Improper for More than One Reason.
We can also evaluate integrals where both limits of integration are infinite. For instance, consider ![]()
. This is improper because it has two infinite limits of integration. To evaluate it, we rewrite it as
![]()
You may wonder why we broke the interval at
instead of at some other point. The answer is that the method used to break up the region of integration plays no role in the final answer. We could just as easily have used
or
. The key thing to note here is that each of the two integrals that remain are improper of the form discussed in Example 18.3. To continue, we can proceed as follows.
We conclude that ![]()
.
Finally, we point out that it is possible for integrals to be improper both because they have an unbounded domain of integration as well as because of a discontinuity. The previous principle still applies though. Break the integral up into pieces, each of which is improper for exactly one reason, and then add the results. Here is an example of that process. Suppose we want to find ![]()
.
We see that the integral is improper both because of an infinite domain of integration as well as the singularity at the origin. Thus we split the integral into two parts
![]()
and evaluate each individually. Note again that we split the integral at
for convenience; we could just as easily have split it at
had we wanted to do so.
We conclude that ![]()
.
As a final example, let us consider
. We see that this integral is improper both at the origin, because the function is not continuous there, as well as because the region of integration is infinite. We can then split the region of integration into two parts as follows
. Each of these integrals can now be evaluated.
Thus we see that
is convergent, and
. Now we look at the second integral.
This tells us that the second integral
is divergent. As a consequence, we conclude that the original integral
is divergent. This is the case, even though one of its components is convergent. An integral that is improper for more than one reason is convergent only if each of its components is convergent; if one fails to be convergent then the entire integral is divergent.
Experiment 18.4
Determine which of these improper integrals converge. For those that are convergent, find their value. You may need to plot graphs of the integrands to determine the points at which the integrals become improper.
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 20, 2004)