Skip to main content
Logo image

APEX Calculus

Section 6.8 Improper Integration

We begin this section by considering the following definite integrals:
  • 010011+x2dx1.5608
  • 0100011+x2dx1.5698
  • 010,00011+x2dx1.5707
Notice how the integrand is 1/(1+x2) in each integral (which is sketched in Figure 6.8.1). As the upper bound gets larger, one would expect the “area under the curve” would also grow. While the definite integrals do increase in value as the upper bound grows, they are not increasing by much. In fact, consider:
0b11+x2dx=tan1(x)|0b=tan1(b)tan1(0)=tan1(b).
As b, tan1(b)π/2. Therefore it seems that as the upper bound b grows, the value of the definite integral 0b11+x2dx approaches π/21.5708. This should strike the reader as being a bit amazing: even though the curve extends “to infinity,” it has a finite amount of area underneath it.
Graph of function 1/(1+x^2) showing finite area under curves that extends to infinity.
The y axis is drawn from 0 to 1 and the x axis is drawn from 0 to 10. The function f(x)=11+x2 starts at point (0,1), then decreases sharply, has a dip at (2,0.2) then decreases gently and almost coincides with the x axis after x=6. The area under the curve is shaded.
Figure 6.8.1. Graphing f(x)=11+x2
Figure 6.8.2. Video introduction to Section 6.8
When we defined the definite integral abf(x)dx, we made two stipulations:
  1. The interval over which we integrated, [a,b], was a finite interval, and
  2. The function f(x) was continuous on [a,b] (ensuring that the range of f was finite).
In this section we consider integrals where one or both of the above conditions do not hold. Such integrals are called improper integrals.

Subsection 6.8.1 Improper Integrals with Infinite Bounds

Definition 6.8.3. Improper Integrals with Infinite Bounds; Converge, Diverge.

  1. Let f be a continuous function on [a,). Define
    af(x)dx to be limbabf(x)dx.
  2. Let f be a continuous function on (,b]. Define
    bf(x)dx to be limaabf(x)dx.
  3. Let f be a continuous function on (,). Let c be any real number; define
    f(x)dx to be limaacf(x)dx+limbcbf(x)dx.
An improper integral is said to converge if its corresponding limit exists; otherwise, it diverges. The improper integral in part 3 converges if and only if both of its limits exist.

Example 6.8.4. Evaluating improper integrals.

Evaluate the following improper integrals.
  1. 11x2dx
  2. 11xdx
  3. 0exdx
  4. 11+x2dx
Solution 1.
  1. 11x2dx=limb1b1x2dx=limb1x|1b=limb1b+1=1.
    A graph of the area defined by this integral is given in Figure 6.8.5.
    Graph of the area under the curve 1/x^2 from 1 to infinity.
    The y axis is drawn from 0 to 1 and the x axis is drawn from 0 to 10. The function f(x)=1x2 starts from point (1,1), the curve drops sharply then bends before x=5 after which it runs very close to the x axis. The area under the curve is shaded from x=1 to x=10.
    Figure 6.8.5. A graph of f(x)=1x2 in Example 6.8.4
  2. 11xdx=limb1b1xdx=limbln|x||1b=limbln(b)=.
    The limit does not exist, hence the improper integral 11xdx diverges. Compare the graphs in Figures 6.8.5 and 6.8.6; notice how the graph of f(x)=1/x is noticeably larger. This difference is enough to cause the improper integral to diverge.
    Graph of area of the curve 1/x from 1 to 10.
    The y axis is drawn from 0 to 1 and the x axis is drawn from 0 to 10. The function f(x)=1x starts from point (1,1), the curve drops sharply then bends before x=5 after which it runs almost parallel to the x axis about line y=0.2. The area under the curve is shaded from x=1 to x=10.
    Figure 6.8.6. A graph of f(x)=1x in Example 6.8.4
  3. 0exdx=limaa0exdx=limaex|a0=limae0ea=1.
    A graph of the area defined by this integral is given in Figure 6.8.7.
    Graph of area under the curve f(x)=e^x from -10 to 0.
    The graph of function f(x)=ex is drawn in the second quadrant.The y axis is drawn from 0 to 1 and the x axis is drawn from 10 to 0. From left to right the function appears to coincide with the x axis, at about x=5 it gets a positive slope and rises sharply until it reaches point (0,1).
    Figure 6.8.7. A graph of f(x)=ex in Example 6.8.4
  4. We will need to break this into two improper integrals and choose a value of c as in part 3 of Definition 6.8.3. Any value of c is fine; we choose c=0.
    11+x2dx=limaa011+x2dx+limb0b11+x2dx=limatan1(x)|a0+limbtan1(x)|0b=lima(tan1(0)tan1(a))+limb(tan1(b)tan1(0))=(0π2)+(π20).
    Each limit exists, hence the original integral converges and has value:
    =π.
    A graph of the area defined by this integral is given in Figure 6.8.8.
    Graph of function 1/(1+x^2).
    The y axis is drawn from 0 to 1 and the x axis is drawn from 10 to 10.The function f(x)=11+x2 is symmetrical about the y axis. From left to right the function moves very closely to the x axis after x=5 it bends and sharply increases to point (0,1), from this point it decreases sharply and then gets a dip then after x=5 runs very closely to the x axis.
    Figure 6.8.8. A graph of f(x)=11+x2 in Example 6.8.4
Solution 2. Video solution
The previous section introduced L’Hospital’s Rule, a method of evaluating limits that return indeterminate forms. It is not uncommon for the limits resulting from improper integrals to need this rule as demonstrated next.

Example 6.8.9. Improper integration and L’Hospital’s Rule.

Evaluate the improper integral 1ln(x)x2dx.
Solution 1.
This integral will require the use of Integration by Parts. Let u=ln(x) and dv=1/x2dx. Then
Graph of lx(x)/x^2.
The y axis is drawn from 0 to 0.4 and the x axis is drawn from 0 to 10. From left to right, the function f(x)=ln(x)x2 starts at point (1,0) it rises sharply, reaches a height of 0.2 near x=1.5 then it decreases gently until x=10 but stays a bit above the x axis. The area under the curve until x=10 is shaded.
Figure 6.8.10. A graph of f(x)=ln(x)x2 in Example 6.8.9
1ln(x)x2dx=limb1bln(x)x2dx=limb(ln(x)x|1b+1b1x2dx)=limb(ln(x)x1x)|1b=limb(ln(b)b1b(ln(1)1)).
The 1/b and ln(1) terms go to 0, leaving limbln(b)b+1. We need to evaluate limbln(b)b with l’Hospital’s Rule. We have:
limbln(b)b= by LHR limb1/b1=0.
Thus the improper integral evaluates as:
1ln(x)x2dx=1.
Solution 2. Video solution

Subsection 6.8.2 Improper Integrals with Infinite Range

We have just considered definite integrals where the interval of integration was infinite. We now consider another type of improper integration, where the range of the integrand is infinite.

Definition 6.8.11. Improper Integration with Infinite Range.

Let f(x) be a continuous function on [a,b] except at c, acb, where x=c is a vertical asymptote of f. Define
abf(x)dx=limtcatf(x)dx+limtc+tbf(x)dx.

Example 6.8.12. Improper integration of functions with infinite range.

Evaluate the following improper integrals:
  1. 011xdx
  2. 111x2dx
Solution 1.
  1. A graph of f(x)=1/x is given in Figure 6.8.13. Notice that f has a vertical asymptote at x=0; in some sense, we are trying to compute the area of a region that has no “top.” Could this have a finite value?
    011xdx=lima0+a11xdx=lima0+2x|a1=lima0+2(1a)=2.
    It turns out that the region does have a finite area even though it has no upper bound (strange things can occur in mathematics when considering the infinite).
    Graph of function 1 over square root of x.
    The y axis is drawn from 0 to 10 and the x axis is drawn from 0 to 2. The function f(x)=1x starts at (0,10) then it decreases sharply while being very close to the y axis at about y=4 it starts diverging away, it moves away from the y axis and appears to move almost parallel to the x axis until x=1.
    Figure 6.8.13. A graph of f(x)=1x in Example 6.8.12
  2. The function f(x)=1/x2 has a vertical asymptote at x=0, as shown in Figure 6.8.14, so this integral is an improper integral. Let’s eschew using limits for a moment and proceed without recognizing the improper nature of the integral. This leads to:
    111x2dx=1x|11=1(1)=2.(!)
    Graph of function f(x) = 1/x^2.
    The y axis is drawn from 1 to 1 and the x axis is drawn from 0 to 20. The graph of function f(x)=1x2 is drawn in the first and the second quadrants. From left to right, in the second quadrant the function starts at x=1 a little above the x axis then it curves up sharply and runs parallel to the y axis, at x=0.4. In the first quadrant, from left to right the function runs parallel to the y axis and declines sharply, it then bends and moves along the x axis until x=1. Between x=1 and x=1 and from y=0 to y=20 the area within the curves is shaded.
    Figure 6.8.14. A graph of f(x)=1x2 in Example 6.8.12
    Clearly the area in question is above the x-axis, yet the area is supposedly negative! Why does our answer not match our intuition? To answer this, evaluate the integral using Definition 6.8.11.
    111x2dx=limt01t1x2dx+limt0+t11x2dx=limt01x|1t+limt0+1x|t1=limt01t1+limt0+1+1t(1)+(1+).
    Neither limit converges hence the original improper integral diverges. The nonsensical answer we obtained by ignoring the improper nature of the integral is just that: nonsensical.
Solution 2. Video solution

Subsection 6.8.3 Understanding Convergence and Divergence

Oftentimes we are interested in knowing simply whether or not an improper integral converges, and not necessarily the value of a convergent integral. We provide here several tools that help determine the convergence or divergence of improper integrals without integrating.
Our first tool is to understand the behavior of functions of the form 1xp.

Example 6.8.15. Improper integration of 1/xp.

Determine the values of p for which 11xpdx converges.
Solution 1.
We begin by integrating and then evaluating the limit.
11xpdx=limb1b1xpdx=limb1bxpdx (assume p1=limb1p+1xp+1|1b=limb11p(b1p11p).
When does this limit converge — i.e., when is this limit not ? This limit converges precisely when the power of b is less than 0: when 1p<01<p.
Graph of two functions 1/x^p and 1/x^q with p <1 <q.
The y and the x axes are uncalibrated except that 1 is marked in the middle of the x axis. There are two functions f(x)=1/xp and 1/xq shown in the graph. The two functions intersect when x=1. Before x=1 both functions have negative slopes and decline sharply along the y axis then gently as they approach x=1, p<q hence 1/xp graph is below 1/xq. After x=1,1/xp is above 1/xq but they are only slightly apart. There is a dashed line between the two functions.
Figure 6.8.16. Plotting functions of the form 1/xp in Example 6.8.15
Our analysis shows that if p>1, then 11xpdx converges. When p<1 the improper integral diverges; we showed in Example 6.8.4 that when p=1 the integral also diverges.
Figure 6.8.16 graphs y=1/x with a dashed line, along with graphs of y=1/xp, p<1, and y=1/xq, q>1. Somehow the dashed line forms a dividing line between convergence and divergence.
Solution 2. Video solution
The result of Example 6.8.15 provides an important tool in determining the convergence of other integrals. A similar result is proved in the exercises about improper integrals of the form 011xpdx. These results are summarized in the following Key Idea.

Key Idea 6.8.17. Convergence of Improper Integrals involving 1/xp.

  1. The improper integral 11xpdx converges when p>1 and diverges when p1.
  2. The improper integral 011xpdx converges when p<1 and diverges when p1.
A basic technique in determining convergence of improper integrals is to compare an integrand whose convergence is unknown to an integrand whose convergence is known. We often use integrands of the form 1/xp to compare to as their convergence on certain intervals is known. This is described in the following theorem.

Example 6.8.19. Determining convergence of improper integrals.

Determine the convergence of the following improper integrals.
  1. 1ex2dx
  2. 31x2xdx
Solution 1.
  1. The function f(x)=ex2 does not have an antiderivative expressible in terms of elementary functions, so we cannot integrate directly. It is comparable to g(x)=1/x2, and as demonstrated in Figure 6.8.20, ex2<1/x2 on [1,). We know from Key Idea 6.8.17 that 11x2dx converges, hence 1ex2dx also converges.
    Graph of two functions e to the power negative x^2 and 1/x^2.
    The y axis is drawn from 0 to 1 and the x axis is drawn from 0 to 4. There are two functions drawn f(x)=ex2 and f(x)=1/x2. The function e appears to start from (1,0.4) then decreases and merges with the x axis after x=2. The function 1/x2 is above the function ex2, it starts from point (1,1) and curves down and appears to be parallel to the x axis after x=3.
    Figure 6.8.20. Graphs of f(x)=ex2 and f(x)=1/x2 in Example 6.8.19
  2. Note that for large values of x, 1x2x1x2=1x. We know from Key Idea 6.8.17 and the subsequent note that 31xdx diverges, so we seek to compare the original integrand to 1/x. It is easy to see that when x>0, we have x=x2>x2x. Taking reciprocals reverses the inequality, giving
    1x<1x2x.
    Using Theorem 6.8.18, we conclude that since 31xdx diverges, 31x2xdx diverges as well. Figure 6.8.21 illustrates this.
    Graph of the two functions used in this example.
    The y axis is drawn from 0 to 0.4 and the x axis is drawn from 0 to 6. Two functions f(x)=1/x and f(x)=1/x2x are drawn. At x=3, the function 1/x starts at y=3.33 then curves down with a negative slope. The function f(x)=1/x2x at x=3 starts at y=0.41 and also curves down with a negative slope. The function 1/x is below function f(x)=1/x2x they are comparatively more apart at x=3 than at x=6.
    Figure 6.8.21. Graphs of f(x)=1/x2x and f(x)=1/x in Example 6.8.19
Solution 2. Video solution
Being able to compare “unknown” integrals to “known” integrals is very useful in determining convergence. However, some of our examples were a little “too nice.” For instance, it was convenient that 1x<1x2x, but what if the “x” were replaced with a “+2x+5”? That is, what can we say about the convergence of 31x2+2x+5dx? We have 1x>1x2+2x+5, so we cannot use Theorem 6.8.18.
In cases like this (and many more) it is useful to employ the following theorem.

Example 6.8.23. Determining convergence of improper integrals.

Determine the convergence of 31x2+2x+5dx.
Solution 1.
As x gets large, the denominator of the integrand will begin to behave much like y=x. So we compare 1x2+2x+5 to 1x with the Limit Comparison Test:
limx1/x2+2x+51/x=limxxx2+2x+5.
The immediate evaluation of this limit returns /, an indeterminate form. Using L’Hospital’s Rule seems appropriate, but in this situation, it does not lead to useful results. (We encourage the reader to employ L’Hospital’s Rule at least once to verify this.)
The trouble is the square root function. To get rid of it, we employ the following fact: If limxcf(x)=L, then limxcf(x)2=L2. (This is true when either c or L is .) So we consider now the limit
limxx2x2+2x+5.
This converges to 1, meaning the original limit also converged to 1. As x gets very large, the function 1x2+2x+5 looks very much like 1x. Since we know that 31xdx diverges, by the Limit Comparison Test we know that 31x2+2x+5dx also diverges. Figure 6.8.24 graphs f(x)=1/x2+2x+5 and f(x)=1/x, illustrating that as x gets large, the functions become indistinguishable.
Graph of the two functions used in this example.
The y axis is drawn from 0.1 to 0.3 and the x axis is drawn from 0 to 20. Two functions are drawn f(x)=1/x and f(x)=1x2+2x+5. The function f(x)=1x2+2x+5 is drawn below 1/x. Both functions have negative slopes, they are apart by a small distance around x=4, after x=10 they come very close and almost coincide.
Figure 6.8.24. Graphing f(x)=1x2+2x+5 and f(x)=1x in Example 6.8.23
Solution 2. Video solution
Both the Direct and Limit Comparison Tests were given in terms of integrals over an infinite interval. There are versions that apply to improper integrals with an infinite range, but as they are a bit wordy and a little more difficult to employ, they are omitted from this text.
This chapter has explored many integration techniques. We learned Substitution, which “undoes” the Chain Rule of differentiation, as well as Integration by Parts, which “undoes” the Product Rule. We learned specialized techniques for handling trigonometric functions and introduced the hyperbolic functions, which are closely related to the trigonometric functions. All techniques effectively have this goal in common: rewrite the integrand in a new way so that the integration step is easier to see and implement.
As stated before, integration is, in general, hard. It is easy to write a function whose antiderivative is impossible to write in terms of elementary functions, and even when a function does have an antiderivative expressible by elementary functions, it may be really hard to discover what it is. The powerful computer algebra system Mathematica™ has approximately 1,000 pages of code dedicated to integration.
Do not let this difficulty discourage you. There is great value in learning integration techniques, as they allow one to manipulate an integral in ways that can illuminate a concept for greater understanding. There is also great value in understanding the need for good numerical techniques: the Trapezoidal and Simpson’s Rules are just the beginning of powerful techniques for approximating the value of integration.
The next chapter stresses the uses of integration. We generally do not find antiderivatives for antiderivative’s sake, but rather because they provide the solution to some type of problem. The following chapter introduces us to a number of different problems whose solution is provided by integration.

Exercises 6.8.4 Exercises

Terms and Concepts

1.
The definite integral was defined with what two stipulations?
2.
If limb0bf(x)dx exists, then the integral 0f(x)dx is said to .
3.
If 1f(x)dx=10, and 0g(x)f(x) for all x, then we know that 1g(x)dx .
4.
For what values of p will 11xpdx converge?
  1. p<1
  2. p1
  3. p>1
  4. p1
5.
For what values of p will 101xpdx converge?
  1. p<1
  2. p1
  3. p>1
  4. p1
6.
For what values of p will 011xpdx converge?
  1. p<1
  2. p1
  3. p>1
  4. p1

Problems

Exercise Group.
In the following exercises, evaluate the given improper integral.
10.
1x2+9dx
13.
xx2+1dx
15.
21(x1)2dx
21.
0πsec2(x)dx
25.
xex2dx
26.
1ex+exdx
29.
1ln(x)xdx
31.
1ln(x)x2dx
32.
1ln(x)xdx
33.
0exsin(x)dx
34.
0excos(x)dx
Exercise Group.
In the following exercises, use the Direct Comparison Test or the Limit Comparison Test to determine whether the given definite integral converges or diverges. Clearly state what test is being used and what function the integrand is being compared to.
35.
1033x2+2x5dx
37.
0x+3x3x2+x+1dx
38.
1exln(x)dx
39.
5ex2+3x+1dx
41.
21x2+sin(x)dx
42.
0xx2+cos(x)dx
You have attempted 1 of 49 activities on this page.