Integral test for convergence explained

In mathematics, the integral test for convergence is a method used to test infinite series of monotonous terms for convergence. It was developed by Colin Maclaurin and Augustin-Louis Cauchy and is sometimes known as the Maclaurin–Cauchy test.

Statement of the test

Consider an integer and a function defined on the unbounded interval, on which it is monotone decreasing. Then the infinite series

infty
\sum
n=N

f(n)

converges to a real number if and only if the improper integral

infty
\int
N

f(x)dx

is finite. In particular, if the integral diverges, then the series diverges as well.

Remark

If the improper integral is finite, then the proof also gives the lower and upper bounds

for the infinite series.

Note that if the function

f(x)

is increasing, then the function

-f(x)

is decreasing and the above theorem applies.

Many textbooks require the function

f

to be positive,[1] [2] [3] but this condition is not really necessary. Since when

f

is negative and decreasing, both
infty
\sum
n=N

f(n)

and
infty
\int
N

f(x)dx

diverges as discussed in Mathematics Stack Exchange.[4]

Proof

The proof basically uses the comparison test, comparing the term with the integral of over the intervals and, respectively.

The monotonous function

f

is continuous almost everywhere. To show this, let

D=\{x\in[N,infty)\midfisdiscontinuousatx\}

. For every

x\inD

, there exists by the density of

Q

a

c(x)\inQ

so that

c(x)\in\left[\limy\downarrowf(y),\limy\uparrowf(y)\right]

. Note that this set contains an open non-empty interval precisely if

f

is discontinuous at

x

. We can uniquely identify

c(x)

as the rational number that has the least index in an enumeration

N\toQ

and satisfies the above property. Since

f

is monotone, this defines an injective mapping

c:D\toQ,x\mapstoc(x)

and thus

D

is countable. It follows that

f

is continuous almost everywhere. This is sufficient for Riemann integrability.[5]

Since is a monotone decreasing function, we know that

f(x)\lef(n)forallx\in[n,infty)

and

f(n)\lef(x)forallx\in[N,n].

Hence, for every integer,

and, for every integer,

By summation over all from to some larger integer, we get from

M+1
\int
N
n+1
f(x)dx=\sum
n

f(x)dx}\lef(n)

Mf(n)
\le\sum
n=N

and from

Mf(n)\le
\sum
n=N+1
n
f(N)+\sum
n-1

f(x)dx}\gef(n)

M
=f(N)+\int
N

f(x)dx.

Combining these two estimates yields

M+1
\int
N
Mf(n)\le
f(x)dx\le\sum
n=N
M
f(N)+\int
N

f(x)dx.

Letting tend to infinity, the bounds in and the result follow.

Applications

The harmonic series

infty
\sum
n=1
1
n
diverges because, using the natural logarithm, its antiderivative, and the fundamental theorem of calculus, we get
M
\int
1
1
ndn

=ln

M
nr|
1

=lnM\toinfty forM\toinfty.

On the other hand, the series
infty
\zeta(1+\varepsilon)=\sum
n=1
1{n
1+\varepsilon
}(cf. Riemann zeta function)converges for every, because by the power rule
M1{n
1+\varepsilon
\int
1
}\,dn= \left. -\frac 1 \right|_1^M=\frac 1 \varepsilon \left(1-\frac 1 \right)\le \frac 1 \varepsilon < \infty\quad\textM\ge1.From we get the upper estimate
infty
\zeta(1+\varepsilon)=\sum
n=1
1
n1+\varepsilon

\le

1+\varepsilon
\varepsilon,
which can be compared with some of the particular values of Riemann zeta function.

Borderline between divergence and convergence

The above examples involving the harmonic series raise the question of whether there are monotone sequences such that decreases to 0 faster than but slower than in the sense that

\limn\toinfty

f(n)
1/n

=0 and \limn\toinfty

f(n)
1/n1+\varepsilon

=infty

for every, and whether the corresponding series of the still diverges. Once such a sequence is found, a similar question can be asked with taking the role of, and so on. In this way it is possible to investigate the borderline between divergence and convergence of infinite series.

Using the integral test for convergence, one can show (see below) that, for every natural number, the seriesstill diverges (cf. proof that the sum of the reciprocals of the primes diverges for) butconverges for every . Here denotes the -fold composition of the natural logarithm defined recursively by

lnk(x)= \begin{cases} ln(x)&fork=1,\\ ln(lnk-1(x))&fork\ge2. \end{cases}

Furthermore, denotes the smallest natural number such that the -fold composition is well-defined and, i.e.

Nk\ge

e
e
\underbrace{e
}_=e \uparrow\uparrow kusing tetration or Knuth's up-arrow notation.

To see the divergence of the series using the integral test, note that by repeated application of the chain rule

d
dx

lnk+1(x) =

d
dx
ln(ln
k(x)) =1{ln
k(x)}d
dx
ln
k(x) = … =1{xln(x) … ln
k(x)},
hence
inftydx
xln(x) … lnk(x)
\int
Nk

=lnk+1

infty=infty.
(x)r|
Nk
To see the convergence of the series, note that by the power rule, the chain rule and the above result
-d
dx
1{\varepsilon(ln
k(x))
\varepsilon} =1{(ln
k(x))

1+\varepsilon

}\frac\ln_k(x)=\cdots=\frac,hence
inftydx
xln(x) … ln
1+\varepsilon
(x)(ln
k(x))
k-1
\int=-
Nk
1{\varepsilon(ln
k(x))
infty<infty
Nk
and gives bounds for the infinite series in .

See also

References

  1. Book: Stewart . James . Clegg . Daniel . Watson . Saleem . Calculus: Metric Version . 2021 . Cengage . 9780357113462 . 9.
  2. Book: Wade . William . An Introduction to Analysis . 2004 . Pearson Education . 9780131246836 . 3.
  3. Book: Thomas . George . Hass . Joel . Heil . Christopher . Weir . Maurice . Zuleta . José Luis . Thomas' Calculus: Early Transcendentals . 2018 . Pearson Education . 9781292253114 . 14.
  4. Web site: Why does it have to be positive and decreasing to apply the integral test? . savemycalculus . Mathematics Stack Exchange . 2020-03-11.
  5. 0002-9890. 43. 7. 396–398. Brown. A. B.. A Proof of the Lebesgue Condition for Riemann Integrability. The American Mathematical Monthly. September 1936. 2301737. 10.2307/2301737.