Divergence and Integral Tests

Learning Outcomes

  • Use the divergence test to determine whether a series converges or diverges
  • Use the integral test to determine the convergence of a series

Divergence Test

For a series [latex]\displaystyle\sum _{n=1}^{\infty }{a}_{n}[/latex] to converge, the [latex]n\text{th}[/latex] term [latex]{a}_{n}[/latex] must satisfy [latex]{a}_{n}\to 0[/latex] as [latex]n\to \infty [/latex].

Therefore, from the algebraic limit properties of sequences,

[latex]\underset{k\to \infty }{\text{lim}}{a}_{k}=\underset{k\to \infty }{\text{lim}}\left({S}_{k}-{S}_{k - 1}\right)=\underset{k\to \infty }{\text{lim}}{S}_{k}-\underset{k\to \infty }{\text{lim}}{S}_{k - 1}=S-S=0[/latex].

 

Therefore, if [latex]\displaystyle\sum _{n=1}^{\infty }{a}_{n}[/latex] converges, the [latex]n\text{th}[/latex] term [latex]{a}_{n}\to 0[/latex] as [latex]n\to \infty [/latex]. An important consequence of this fact is the following statement:

[latex]\text{If }{a}_{n}\nrightarrow 0\text{ as }n\to \infty ,\displaystyle\sum _{n=1}^{\infty }{a}_{n}\text{ diverges}[/latex].

 

This test is known as the divergence test because it provides a way of proving that a series diverges.

Theorem: Divergence Test


If [latex]\underset{n\to \infty }{\text{lim}}{a}_{n}=c\ne 0[/latex] or [latex]\underset{n\to \infty }{\text{lim}}{a}_{n}[/latex] does not exist, then the series [latex]\displaystyle\sum _{n=1}^{\infty }{a}_{n}[/latex] diverges.

It is important to note that the converse of this theorem is not true. That is, if [latex]\underset{n\to \infty }{\text{lim}}{a}_{n}=0[/latex], we cannot make any conclusion about the convergence of [latex]\displaystyle\sum _{n=1}^{\infty }{a}_{n}[/latex]. For example, [latex]\underset{n\to 0}{\text{lim}}\left(\frac{1}{n}\right)=0[/latex], but the harmonic series [latex]\displaystyle\sum _{n=1}^{\infty }\frac{1}{n}[/latex] diverges. In this section and the remaining sections of this chapter, we show many more examples of such series. Consequently, although we can use the divergence test to show that a series diverges, we cannot use it to prove that a series converges. Specifically, if [latex]{a}_{n}\to 0[/latex], the divergence test is inconclusive.

Example: Using the divergence test

For each of the following series, apply the divergence test. If the divergence test proves that the series diverges, state so. Otherwise, indicate that the divergence test is inconclusive.

  1. [latex]\displaystyle\sum _{n=1}^{\infty }\frac{n}{3n - 1}[/latex]
  2. [latex]\displaystyle\sum _{n=1}^{\infty }\frac{1}{{n}^{3}}[/latex]
  3. [latex]\displaystyle\sum _{n=1}^{\infty }{e}^{\frac{1}{{n}^{2}}}[/latex]

try it

What does the divergence test tell us about the series [latex]\displaystyle\sum _{n=1}^{\infty }\cos\left(\frac{1}{{n}^{2}}\right)\text{?}[/latex]

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

For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.

You can view the transcript for this segmented clip of “5.3.1” here (opens in new window).

Integral Test

In the previous section, we proved that the harmonic series diverges by looking at the sequence of partial sums [latex]\left\{{S}_{k}\right\}[/latex] and showing that [latex]{S}_{{2}^{k}}>1+\frac{k}{2}[/latex] for all positive integers [latex]k[/latex]. In this section we use a different technique to prove the divergence of the harmonic series. This technique is important because it is used to prove the divergence or convergence of many other series. This test, called the integral test, compares an infinite sum to an improper integral. It is important to note that this test can only be applied when we are considering a series whose terms are all positive.

To illustrate how the integral test works, use the harmonic series as an example. In Figure 1, we depict the harmonic series by sketching a sequence of rectangles with areas [latex]1,\frac{1}{2},\frac{1}{3},\frac{1}{4},\ldots [/latex] along with the function [latex]f\left(x\right)=\frac{1}{x}[/latex]. From the graph, we see that

[latex]\displaystyle\sum _{n=1}^{k}\frac{1}{n}=1+\frac{1}{2}+\frac{1}{3}+\cdots +\frac{1}{k}>{\displaystyle\int }_{1}^{k+1}\frac{1}{x}dx[/latex].

 

Therefore, for each [latex]k[/latex], the [latex]k\text{th}[/latex] partial sum [latex]{S}_{k}[/latex] satisfies

[latex]{S}_{k}=\displaystyle\sum _{n=1}^{k}\frac{1}{n}>{\displaystyle\int }_{1}^{k+1}\frac{1}{x}dx=\text{ln}x{|}_{1}^{k+1}=\text{ln}\left(k+1\right)-\text{ln}\left(1\right)=\text{ln}\left(k+1\right)[/latex].

 

Since [latex]\underset{k\to \infty }{\text{lim}}\text{ln}\left(k+1\right)=\infty [/latex], we see that the sequence of partial sums [latex]\left\{{S}_{k}\right\}[/latex] is unbounded. Therefore, [latex]\left\{{S}_{k}\right\}[/latex] diverges, and, consequently, the series [latex]\displaystyle\sum _{n=1}^{\infty }\frac{1}{n}[/latex] also diverges.

This is a graph in quadrant 1 of a decreasing concave up curve approaching the x-axis – f(x) = 1/x. Five rectangles are drawn with base 1 over the interval [1, 6]. The height of each rectangle is determined by the value of the function at the left endpoint of the rectangle’s base. The areas for each are marked: 1, 1/2, 1/3, 1/4, and 1/5.

Figure 1. The sum of the areas of the rectangles is greater than the area between the curve [latex]f\left(x\right)=\frac{1}{x}[/latex] and the [latex]x[/latex] -axis for [latex]x\ge 1[/latex]. Since the area bounded by the curve is infinite (as calculated by an improper integral), the sum of the areas of the rectangles is also infinite.

Now consider the series [latex]\displaystyle\sum _{n=1}^{\infty }\frac{1}{{n}^{2}}[/latex]. We show how an integral can be used to prove that this series converges. In Figure 2, we sketch a sequence of rectangles with areas [latex]1,\frac{1}{{2}^{2}},\frac{1}{{3}^{2}},\ldots [/latex] along with the function [latex]f\left(x\right)=\frac{1}{{x}^{2}}[/latex]. From the graph we see that

[latex]\displaystyle\sum _{n=1}^{k}\frac{1}{{n}^{2}}=1+\frac{1}{{2}^{2}}+\frac{1}{{3}^{2}}+\cdots +\frac{1}{{k}^{2}}<1+{\displaystyle\int }_{1}^{k}\frac{1}{{x}^{2}}dx[/latex].

 

Therefore, for each [latex]k[/latex], the [latex]k\text{th}[/latex] partial sum [latex]{S}_{k}[/latex] satisfies

[latex]{S}_{k}=\displaystyle\sum _{n=1}^{k}\frac{1}{{n}^{2}}<1+{\displaystyle\int }_{1}^{k}\frac{1}{{x}^{2}}dx=1-{\frac{1}{x}|}_{1}^{k}=1-\frac{1}{k}+1=2-\frac{1}{k}<2[/latex].

 

We conclude that the sequence of partial sums [latex]\left\{{S}_{k}\right\}[/latex] is bounded. We also see that [latex]\left\{{S}_{k}\right\}[/latex] is an increasing sequence:

[latex]{S}_{k}={S}_{k - 1}+\frac{1}{{k}^{2}}\text{for}k\ge 2[/latex].

 

Since [latex]\left\{{S}_{k}\right\}[/latex] is increasing and bounded, by the Monotone Convergence Theorem, it converges. Therefore, the series [latex]\displaystyle\sum _{n=1}^{\infty }\frac{1}{{n}^{2}}[/latex] converges.

This is a graph in quadrant 1 of the decreasing concave up curve f(x) = 1/(x^2), which approaches the x axis. Rectangles of base 1 are drawn over the interval [0, 5]. The height of each rectangle is determined by the value of the function at the right endpoint of its base. The areas of each are marked: 1, 1/(2^2), 1/(3^2), 1/(4^2) and 1/(5^2).

Figure 2. The sum of the areas of the rectangles is less than the sum of the area of the first rectangle and the area between the curve [latex]f\left(x\right)=\frac{1}{{x}^{2}}[/latex] and the [latex]x[/latex] -axis for [latex]x\ge 1[/latex]. Since the area bounded by the curve is finite, the sum of the areas of the rectangles is also finite.

We can extend this idea to prove convergence or divergence for many different series. Suppose [latex]\displaystyle\sum _{n=1}^{\infty }{a}_{n}[/latex] is a series with positive terms [latex]{a}_{n}[/latex] such that there exists a continuous, positive, decreasing function [latex]f[/latex] where [latex]f\left(n\right)={a}_{n}[/latex] for all positive integers. Then, as in Figure 3 (a), for any integer [latex]k[/latex], the [latex]k\text{th}[/latex] partial sum [latex]{S}_{k}[/latex] satisfies

[latex]{S}_{k}={a}_{1}+{a}_{2}+{a}_{3}+\cdots +{a}_{k}<{a}_{1}+{\displaystyle\int }_{1}^{k}f\left(x\right)dx<1+{\displaystyle\int }_{1}^{\infty }f\left(x\right)dx[/latex].

 

Therefore, if [latex]{\displaystyle\int }_{1}^{\infty }f\left(x\right)dx[/latex] converges, then the sequence of partial sums [latex]\left\{{S}_{k}\right\}[/latex] is bounded. Since [latex]\left\{{S}_{k}\right\}[/latex] is an increasing sequence, if it is also a bounded sequence, then by the Monotone Convergence Theorem, it converges. We conclude that if [latex]{\displaystyle\int }_{1}^{\infty }f\left(x\right)dx[/latex] converges, then the series [latex]\displaystyle\sum _{n=1}^{\infty }{a}_{n}[/latex] also converges. On the other hand, from Figure 3 (b), for any integer [latex]k[/latex], the [latex]k\text{th}[/latex] partial sum [latex]{S}_{k}[/latex] satisfies

[latex]{S}_{k}={a}_{1}+{a}_{2}+{a}_{3}+\cdots +{a}_{k}>{\displaystyle\int }_{1}^{k+1}f\left(x\right)dx[/latex].

 

If [latex]\underset{k\to \infty }{\text{lim}}{\displaystyle\int }_{1}^{k+1}f\left(x\right)dx=\infty [/latex], then [latex]\left\{{S}_{k}\right\}[/latex] is an unbounded sequence and therefore diverges. As a result, the series [latex]\displaystyle\sum _{n=1}^{\infty }{a}_{n}[/latex] also diverges. Since [latex]f[/latex] is a positive function, if [latex]{\displaystyle\int }_{1}^{\infty }f\left(x\right)dx[/latex] diverges, then [latex]\underset{k\to \infty }{\text{lim}}{\displaystyle\int }_{1}^{k+1}f\left(x\right)dx=\infty [/latex]. We conclude that if [latex]{\displaystyle\int }_{1}^{\infty }f\left(x\right)dx[/latex] diverges, then [latex]\displaystyle\sum _{n=1}^{\infty }{a}_{n}[/latex] diverges.

This shows two graphs side by side of the same function y = f(x), a decreasing concave up curve approaching the x axis. Rectangles are drawn with base 1 over the intervals [0, 6] and [1, 6]. For the graph on the left, the height of each rectangle is determined by the value of the function at the right endpoint of its base. For the graph on the right, the height of each rectangle is determined by the value of the function at the left endpoint of its base. Areas a_1 through a_6 are marked in the graph on the left, and the same for a_1 to a_5 on the right.

Figure 3. (a) If we can inscribe rectangles inside a region bounded by a curve [latex]y=f\left(x\right)[/latex] and the [latex]x[/latex] -axis, and the area bounded by those curves for [latex]x\ge 1[/latex] is finite, then the sum of the areas of the rectangles is also finite. (b) If a set of rectangles circumscribes the region bounded by [latex]y=f\left(x\right)[/latex] and the [latex]x[/latex] axis for [latex]x\ge 1[/latex] and the region has infinite area, then the sum of the areas of the rectangles is also infinite.

Theorem: Integral Test


Suppose [latex]\displaystyle\sum _{n=1}^{\infty }{a}_{n}[/latex] is a series with positive terms [latex]{a}_{n}[/latex]. Suppose there exists a function [latex]f[/latex] and a positive integer [latex]N[/latex] such that the following three conditions are satisfied:

  1. [latex]f[/latex] is continuous,
  2. [latex]f[/latex] is decreasing, and
  3. [latex]f\left(n\right)={a}_{n}[/latex] for all integers [latex]n\ge N[/latex].

    Then [latex]\displaystyle\sum _{n=1}^{\infty }{a}_{n}\text{ and }{\displaystyle\int }_{N}^{\infty }f\left(x\right)dx[/latex]both converge or both diverge (see Figure 3).

 

Although convergence of [latex]{\displaystyle\int }_{N}^{\infty }f\left(x\right)dx[/latex] implies convergence of the related series [latex]\displaystyle\sum _{n=1}^{\infty }{a}_{n}[/latex], it does not imply that the value of the integral and the series are the same. They may be different, and often are. For example,

[latex]\displaystyle\sum _{n=1}^{\infty }{\left(\frac{1}{e}\right)}^{n}=\frac{1}{e}+{\left(\frac{1}{e}\right)}^{2}+{\left(\frac{1}{e}\right)}^{3}+\cdots [/latex]

 

is a geometric series with initial term [latex]a=\frac{1}{e}[/latex] and ratio [latex]r=\frac{1}{e}[/latex], which converges to

[latex]\frac{\frac{1}{e}}{1-\left(\frac{1}{e}\right)}=\frac{\frac{1}{e}}{\frac{\left(e - 1\right)}{e}}=\frac{1}{e - 1}[/latex].

 

However, the related integral [latex]{\displaystyle\int }_{1}^{\infty }{\left(\frac{1}{e}\right)}^{x}dx[/latex] satisfies

[latex]{\displaystyle\int }_{1}^{\infty }{\left(\frac{1}{e}\right)}^{x}dx={\displaystyle\int }_{1}^{\infty }{e}^{\text{-}x}dx=\underset{b\to \infty }{\text{lim}}{\displaystyle\int }_{1}^{b}{e}^{\text{-}x}dx=\underset{b\to \infty }{\text{lim}}-{e}^{\text{-}x}{|}_{1}^{b}=\underset{b\to \infty }{\text{lim}}\left[\text{-}{e}^{\text{-}b}+{e}^{-1}\right]=\frac{1}{e}[/latex].

In the following examples, we explore how to use the integral test.  Before doing so, we should note that since one of the conditions of the test is that the function is decreasing, we can use calculus to verify that this condition is met.

Recall: Showing that a function is decreasing

A differentiable function [latex] f(x) [/latex] is decreasing on an interval [latex] \left( a,b \right) [/latex] if [latex] f'(x) < 0 [/latex] for all [latex] x\in\left( a,b \right) [/latex].

Example: Using the Integral Test

For each of the following series, use the integral test to determine whether the series converges or diverges.

  1. [latex]\displaystyle\sum _{n=1}^{\infty }\frac{1}{{n}^{3}}[/latex]
  2. [latex]\displaystyle\sum _{n=1}^{\infty }\frac{1}{\sqrt{2n - 1}}[/latex]

 

 

try it

Use the integral test to determine whether the series [latex]\displaystyle\sum _{n=1}^{\infty }\frac{n}{3{n}^{2}+1}[/latex] converges or diverges.

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

For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.

You can view the transcript for this segmented clip of “5.3.2” here (opens in new window).

Try It