The Divergence and Integral Tests

In the previous section, we determined the convergence or divergence of several series by explicitly calculating the limit of the sequence of partial sums {Sk}.

In practice, explicitly calculating this limit can be difficult or impossible. Luckily, several tests exist that allow us to determine convergence or divergence for many types of series. In this section, we discuss two of these tests: the divergence test and the integral test. We will examine several other tests in the rest of this chapter and then summarize how and when to use them.

Divergence Test

For a series n=1an

to converge, the nth

term an

must satisfy an0

as n.

Therefore, from the algebraic limit properties of sequences,

limkak=limk(SkSk1)=limkSklimkSk1=SS=0.

Therefore, if n=1an

converges, the nth

term an0

as n.

An important consequence of this fact is the following statement:

Ifan0asn,n=1andiverges.

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

Divergence Test

If limnan=c0

or limnan

does not exist, then the series n=1an

diverges.

It is important to note that the converse of this theorem is not true. That is, if limnan=0,

we cannot make any conclusion about the convergence of n=1an.

For example, limn0(1/n)=0,

but the harmonic series n=11/n

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 an0,

the divergence test is inconclusive.

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. n=1n3n1
  2. n=11n3
  3. n=1e1/n2
  1. Since n/(3n1)1/30,

    by the divergence test, we can conclude that


    n=1n3n1

    diverges.

  2. Since 1/n30,

    the divergence test is inconclusive.

  3. Since e1/n210,

    by the divergence test, the series


    n=1e1/n2

    diverges.

What does the divergence test tell us about the series n=1cos(1/n2)?

The series diverges.

Hint

Look at limncos(1/n2).

Integral Test

In the previous section, we proved that the harmonic series diverges by looking at the sequence of partial sums {Sk}

and showing that S2k>1+k/2

for all positive integers k.

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 [link], we depict the harmonic series by sketching a sequence of rectangles with areas 1,1/2,1/3,1/4,…

along with the function f(x)=1/x.

From the graph, we see that

n=1k1n=1+12+13++1k>1k+11xdx.

Therefore, for each k,

the kth

partial sum Sk

satisfies

Sk=n=1k1n>1k+11xdx=lnx\|1k+1=ln(k+1)ln(1)=ln(k+1).

Since limkln(k+1)=,

we see that the sequence of partial sums {Sk}

is unbounded. Therefore, {Sk}

diverges, and, consequently, the series n=11n

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.

Now consider the series n=11/n2.

We show how an integral can be used to prove that this series converges. In [link], we sketch a sequence of rectangles with areas 1,1/22,1/32,…

along with the function f(x)=1/x2.

From the graph we see that

n=1k1n2=1+122+132++1k2<1+1k1x2dx.

Therefore, for each k,

the kth

partial sum Sk

satisfies

Sk=n=1k1n2<1+1k1x2dx=11x\|1k=11k+1=21k<2.

We conclude that the sequence of partial sums {Sk}

is bounded. We also see that {Sk}

is an increasing sequence:

Sk=Sk1+1k2fork2.

Since {Sk}

is increasing and bounded, by the Monotone Convergence Theorem, it converges. Therefore, the series n=11/n2

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).

We can extend this idea to prove convergence or divergence for many different series. Suppose n=1an

is a series with positive terms an

such that there exists a continuous, positive, decreasing function f

where f(n)=an

for all positive integers. Then, as in [link](a), for any integer k,

the kth

partial sum Sk

satisfies

Sk=a1+a2+a3++ak<a1+1kf(x)dx<1+1f(x)dx.

Therefore, if 1f(x)dx

converges, then the sequence of partial sums {Sk}

is bounded. Since {Sk}

is an increasing sequence, if it is also a bounded sequence, then by the Monotone Convergence Theorem, it converges. We conclude that if 1f(x)dx

converges, then the series n=1an

also converges. On the other hand, from [link](b), for any integer k,

the kth

partial sum Sk

satisfies

Sk=a1+a2+a3++ak>1k+1f(x)dx.

If limk1k+1f(x)dx=,

then {Sk}

is an unbounded sequence and therefore diverges. As a result, the series n=1an

also diverges. Since f

is a positive function, if 1f(x)dx

diverges, then limk1k+1f(x)dx=.

We conclude that if 1f(x)dx

diverges, then n=1an

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.

Integral Test

Suppose n=1an

is a series with positive terms an.

Suppose there exists a function f

and a positive integer N

such that the following three conditions are satisfied:

  1. f

    is continuous,

  2. f

    is decreasing, and

  3. f(n)=an

    for all integers

    nN.

    Then


    n=1anandNf(x)dx

    both converge or both diverge (see [link]).

Although convergence of Nf(x)dx

implies convergence of the related series n=1an,

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,

n=1(1e)n=1e+(1e)2+(1e)3+

is a geometric series with initial term a=1/e

and ratio r=1/e,

which converges to

1/e1(1/e)=1/e(e1)/e=1e1.

However, the related integral 1(1/e)xdx

satisfies

1(1e)xdx=1exdx=limb1bexdx=limbex\|1b=limb[eb+e−1]=1e.
Using the Integral Test

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

  1. n=11/n3
  2. n=11/2n1
  1. Compare
    n=11n3and11x3dx.

    We have


    11x3dx=limb1b1x3dx=limb[12x2\|1b]=limb[12b2+12]=12.

    Thus the integral

    11/x3dx

    converges, and therefore so does the series


    n=11n3.
  2. Compare
    n=112n1and112x1dx.

    Since


    112x1dx=limb1b12x1dx=limb2x1\|1b=limb[2b11]=,

    the integral

    11/2x1dx

    diverges, and therefore


    n=112n1

    diverges.

Use the integral test to determine whether the series n=1n3n2+1

converges or diverges.

The series diverges.

Hint

Compare to the integral 1x3x2+1dx.

The p-Series

The harmonic series n=11/n

and the series n=11/n2

are both examples of a type of series called a p-series.

Definition

For any real number p,

the series

n=11np

is called a p-series.

We know the p-series converges if p=2

and diverges if p=1.

What about other values of p?

In general, it is difficult, if not impossible, to compute the exact value of most p

-series. However, we can use the tests presented thus far to prove whether a p

-series converges or diverges.

If p<0,

then 1/np,

and if p=0,

then 1/np1.

Therefore, by the divergence test,

n=11/npdiverges ifp0.

If p>0,

then f(x)=1/xp

is a positive, continuous, decreasing function. Therefore, for p>0,

we use the integral test, comparing

n=11npand11xpdx.

We have already considered the case when p=1.

Here we consider the case when p>0,p1.

For this case,

11xpdx=limb1b1xpdx=limb11px1p\|1b=limb11p[b1p1].

Because

b1p0ifp>1andb1pifp<1,

we conclude that

11xpdx={1p1ifp>1ifp<1.

Therefore, n=11/np

converges if p>1

and diverges if 0<p<1.

In summary,

n=11np{converges ifp>1diverges ifp1.
Testing for Convergence of *p*-series

For each of the following series, determine whether it converges or diverges.

  1. n=11n4
  2. n=11n2/3
  1. This is a p-series with p=4>1,

    so the series converges.

  2. Since p=2/3<1,

    the series diverges.

Does the series n=11n5/4

converge or diverge?

The series converges.

Hint
p=5/4

Estimating the Value of a Series

Suppose we know that a series n=1an

converges and we want to estimate the sum of that series. Certainly we can approximate that sum using any finite sum n=1Nan

where N

is any positive integer. The question we address here is, for a convergent series n=1an,

how good is the approximation n=1Nan?

More specifically, if we let

RN=n=1ann=1Nan

be the remainder when the sum of an infinite series is approximated by the Nth

partial sum, how large is RN?

For some types of series, we are able to use the ideas from the integral test to estimate RN.

Remainder Estimate from the Integral Test

Suppose n=1an

is a convergent series with positive terms. Suppose there exists a function f

satisfying the following three conditions:

  1. f

    is continuous,

  2. f

    is decreasing, and

  3. f(n)=an

    for all integers

    n1.

Let SN

be the Nth partial sum of n=1an.

For all positive integers N,

SN+N+1f(x)dx<n=1an<SN+Nf(x)dx.

In other words, the remainder RN=n=1anSN=n=N+1an

satisfies the following estimate:

N+1f(x)dx<RN<Nf(x)dx.

This is known as the remainder estimate.

We illustrate [link] in [link]. In particular, by representing the remainder RN=aN+1+aN+2+aN+3+

as the sum of areas of rectangles, we see that the area of those rectangles is bounded above by Nf(x)dx

and bounded below by N+1f(x)dx.

In other words,

RN=aN+1+aN+2+aN+3+>N+1f(x)dx

and

RN=aN+1+aN+2+aN+3+<Nf(x)dx.

We conclude that

N+1f(x)dx<RN<Nf(x)dx.

Since

n=1an=SN+RN,

where SN

is the Nth

partial sum, we conclude that

SN+N+1f(x)dx<n=1an<SN+Nf(x)dx.

This shows two graphs side by side of the same decreasing concave up function y = f(x) that approaches the x axis in quadrant 1. Rectangles are drawn with a base of 1 over the intervals N through N + 4. The heights of the rectangles in the first graph are determined by the value of the function at the right endpoints of the bases, and those in the second graph are determined by the value at the left endpoints of the bases. The areas of the rectangles are marked: a_(N + 1), a_(N + 2), through a_(N + 4).

Estimating the Value of a Series

Consider the series n=11/n3.

  1. Calculate S10=n=1101/n3

    and estimate the error.

  2. Determine the least value of N

    necessary such that

    SN

    will estimate

    n=11/n3

    to within

    0.001.
  1. Using a calculating utility, we have
    S10=1+123+133+143++11031.19753.

    By the remainder estimate, we know


    RN<N1x3dx.

    We have


    101x3dx=limb10b1x3dx=limb[12x2]Nb=limb[12b2+12N2]=12N2.

    Therefore, the error is

    R10<1/2(10)2=0.005.
  2. Find N

    such that

    RN<0.001.

    In part a. we showed that

    RN<1/2N2.

    Therefore, the remainder

    RN<0.001

    as long as

    1/2N2<0.001.

    That is, we need

    2N2>1000.

    Solving this inequality for

    N,

    we see that we need

    N>22.36.

    To ensure that the remainder is within the desired amount, we need to round up to the nearest integer. Therefore, the minimum necessary value is

    N=23.

For n=11n4,

calculate S5

and estimate the error R5.

S51.09035, R5<0.00267
Hint

Use the remainder estimate RN<N1/x4dx.

Key Concepts


either both converge or both diverge. Furthermore, if

n=1an

converges, then the

Nth

partial sum approximation

SN

is accurate up to an error

RN

where

N+1f(x)dx<RN<Nf(x)dx.

Key Equations

For each of the following sequences, if the divergence test applies, either state that limnan

does not exist or find limnan.

If the divergence test does not apply, state why.

an=nn+2
an=n5n23
limnan=0.

Divergence test does not apply.

an=n3n2+2n+1
an=(2n+1)(n1)(n+1)2
limnan=2.

Series diverges.

an=(2n+1)2n(3n2+1)n
an=2n3n/2
limnan=

(does not exist). Series diverges.

an=2n+3n10n/2
an=e−2/n
limnan=1.

Series diverges.

an=cosn
an=tann
limnan

does not exist. Series diverges.

an=1cos2(1/n)sin2(2/n)
an=(11n)2n
limnan=1/e2.

Series diverges.

an=lnnn
an=(lnn)2n
limnan=0.

Divergence test does not apply.

State whether the given p

-series converges.

n=11n
n=11nn

Series converges, p>1.

n=11n23
n=11n43

Series converges, p=4/3>1.

n=1nenπ
n=1nπn2e

Series converges, p=2eπ>1.

Use the integral test to determine whether the following sums converge.

n=11n+5
n=11n+53

Series diverges by comparison with 1dx(x+5)1/3.

n=21nlnn
n=1n1+n2

Series diverges by comparison with 1x1+x2dx.

n=1en1+e2n
n=12n1+n4

Series converges by comparison with 12x1+x4dx.

n=21nln2n

Express the following sums as p

-series and determine whether each converges.

n=12lnn

(Hint: 2lnn=1/nln2

.)

2lnn=1/nln2.

Since ln2<1,

diverges by p

-series.

n=13lnn

(Hint: 3lnn=1/nln3

.)

n=1n2−2lnn
2−2lnn=1/n2ln2.

Since 2ln21<1,

diverges by p

-series.

n=1n3−2lnn

Use the estimate RNNf(t)dt

to find a bound for the remainder RN=n=1ann=1Nan

where an=f(n).

n=110001n2
R10001000dtt2=1t\|1000=0.001
n=110001n3
n=1100011+n2
R10001000dt1+t2=tan−1tan−1(1000)=π/2tan−1(1000)0.000999
n=1100n/2n

[T] Find the minimum value of N

such that the remainder estimate N+1f<RN<Nf

guarantees that n=1Nan

estimates n=1an,

accurate to within the given error.

an=1n2,

error <10−4

RN<Ndxx2=1/N,N>104
an=1n1.1,

error <10−4

an=1n1.01,

error <10−4

RN<Ndxx1.01=100N−0.01,N>10600
an=1nln2n,

error <10−3

an=11+n2,

error <10−3

RN<Ndx1+x2=π/2tan−1(N),N>tan(π/210−3)1000

In the following exercises, find a value of N

such that RN

is smaller than the desired error. Compute the corresponding sum n=1Nan

and compare it to the given estimate of the infinite series.

an=1n11,

error <10−4,

n=11n11=1.000494
an=1en,

error <10−5,

n=11en=1e1=0.581976
RN<Ndxex=eN,N>5ln(10),

okay if N=12;n=112en=0.581973....

Estimate agrees with 1/(e1)

to five decimal places.

an=1en2,

error <10−5,

n=1n/en2=0.40488139857
an=1/n4,

error <10−4,

n=11/n4=π4/90=1.08232...
RN<Ndx/x4=4/N3,N>(4.104)1/3,

okay if N=35;

n=1351/n4=1.08231.

Estimate agrees with the sum to four decimal places.

an=1/n6,

error <10−6,

n=11/n4=π6/945=1.01734306...,

Find the limit as n

of 1n+1n+1++12n.

(Hint: Compare to n2n1tdt.)

ln(2)

Find the limit as n

of 1n+1n+1++13n

The next few exercises are intended to give a sense of applications in which partial sums of the harmonic series arise.

In certain applications of probability, such as the so-called Watterson estimator for predicting mutation rates in population genetics, it is important to have an accurate estimate of the number Hk=(1+12+13++1k).

Recall that Tk=Hklnk

is decreasing. Compute T=limkTk

to four decimal places. (Hint: 1k+1<kk+11xdx

.)

T=0.5772...

[T] Complete sampling with replacement, sometimes called the coupon collector’s problem, is phrased as follows: Suppose you have N

unique items in a bin. At each step, an item is chosen at random, identified, and put back in the bin. The problem asks what is the expected number of steps E(N)

that it takes to draw each unique item at least once. It turns out that E(N)=N.HN=N(1+12+13++1N).

Find E(N)

for N=10,20,and50.

[T] The simplest way to shuffle cards is to take the top card and insert it at a random place in the deck, called top random insertion, and then repeat. We will consider a deck to be randomly shuffled once enough top random insertions have been made that the card originally at the bottom has reached the top and then been randomly inserted. If the deck has n

cards, then the probability that the insertion will be below the card initially at the bottom (call this card B)

is 1/n.

Thus the expected number of top random insertions before B

is no longer at the bottom is n. Once one card is below B,

there are two places below B

and the probability that a randomly inserted card will fall below B

is 2/n.

The expected number of top random insertions before this happens is n/2.

The two cards below B

are now in random order. Continuing this way, find a formula for the expected number of top random insertions needed to consider the deck to be randomly shuffled.

The expected number of random insertions to get B

to the top is n+n/2+n/3++n/(n1).

Then one more insertion puts B

back in at random. Thus, the expected number of shuffles to randomize the deck is n(1+1/2++1/n).

Suppose a scooter can travel 100

km on a full tank of fuel. Assuming that fuel can be transferred from one scooter to another but can only be carried in the tank, present a procedure that will enable one of the scooters to travel 100HN

km, where HN=1+1/2++1/N.

Show that for the remainder estimate to apply on [N,)

it is sufficient that f(x)

be decreasing on [N,),

but f

need not be decreasing on [1,).

Set bn=an+N

and g(t)=f(t+N)

such that f

is decreasing on [t,).

[T] Use the remainder estimate and integration by parts to approximate n=1n/en

within an error smaller than 0.0001.

Does n=21n(lnn)p

converge if p

is large enough? If so, for which p?

The series converges for p>1

by integral test using change of variable.

[T] Suppose a computer can sum one million terms per second of the divergent series n=1N1n.

Use the integral test to approximate how many seconds it will take to add up enough terms for the partial sum to exceed 100.

[T] A fast computer can sum one million terms per second of the divergent series n=2N1nlnn.

Use the integral test to approximate how many seconds it will take to add up enough terms for the partial sum to exceed 100.

N=ee100e1043

terms are needed.

Glossary

divergence test
if limnan0,

then the series

n=1an

diverges

integral test
for a series n=1an

with positive terms

an,

if there exists a continuous, decreasing function

f

such that

f(n)=an

for all positive integers

n,

then


n=1anand1f(x)dx

either both converge or both diverge

p-series
a series of the form n=11/np
remainder estimate
for a series n=1an

with positive terms

an

and a continuous, decreasing function

f

such that

f(n)=an

for all positive integers

n,

the remainder

RN=n=1ann=1Nan

satisfies the following estimate:


N+1f(x)dx<RN<Nf(x)dx

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

You can also download for free at http://cnx.org/contents/9a1df55a-b167-4736-b5ad-15d996704270@5.1

Attribution: