In mathematics, the integral test for convergence is a method used to test infinite series of monotonic terms for convergence. It was developed by Colin Maclaurin and Augustin-Louis Cauchy and is sometimes known as the Maclaurin–Cauchy test.
Contents
Statement of the test
Consider an integer N and a function f defined on the unbounded interval [N, ∞), on which it is monotonically decreasing. Then the infinite series
∑n=N∞f(n)
converges to a real number if and only if the improper integral
∫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, but this condition is not really necessary, since when f is negative and decreasing both ∑n=N∞f(n) and ∫N∞f(x)dx diverge.
Proof
The proof uses the comparison test, comparing the term f(n) with the integral of f over the intervals [n−1,n) and [n,n+1) respectively.
The monotonic function f is continuous almost everywhere. To show this, let
D={x∈[N,∞)∣f is discontinuous at x}
For every x∈D, there exists by the density of ℚ, a c(x)∈ℚ so that c(x)∈[limy↓xf(y),limy↑xf(y)].
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 ℕ→ℚ and satisfies the above property. Since f is monotone, this defines an injective mapping c:D→ℚ,x↦c(x) and thus D is countable. It follows that f is continuous almost everywhere. This is sufficient for Riemann integrability.
Since f is a monotone decreasing function, we know that
f(x)≤f(n)for all x∈[n,∞)
and
f(n)≤f(x)for all x∈[N,n].
Hence, for every integer n ≥ N,
and, for every integer n ≥ N + 1,
By summation over all n from N to some larger integer M, we get from (2)
∫NM+1f(x)dx=∑n=NM∫nn+1f(x)dx⏟≤f(n)≤∑n=NMf(n)
and from (3)
∑n=NMf(n)=f(N)+∑n=N+1Mf(n)≤f(N)+∑n=N+1M∫n−1nf(x)dx⏟≥f(n)=f(N)+∫NMf(x)dx.
Combining these two estimates yields
Applications
The harmonic series
∑n=1∞1n
diverges because, using the natural logarithm, its antiderivative, and the fundamental theorem of calculus, we get
∫1M1ndn=lnn|1M=lnM→∞for M→∞.
On the other hand, the series
ζ(1+ε)=∑n=1∞1n1+ε
(cf. Riemann zeta function)
converges for every ε > 0, because by the power rule
∫1M1n1+εdn=−1εnε|1M=1ε(1−1Mε)≤1ε<∞for all M≥1.
From (1) we get the upper estimate
ζ(1+ε)=∑n=1∞1n1+ε≤1+εε,
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 f(n) decreases to 0 faster than 1/n but slower than 1/n1+ε in the sense that
limn→∞f(n)1/n=0andlimn→∞f(n)1/n1+ε=∞
for every ε > 0, and whether the corresponding series of the f(n) still diverges. Once such a sequence is found, a similar question can be asked with f(n) taking the role of either 1/n (if f(n) diverges) or 1/n1+ε (if f(n) converges), 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 k, the series
still diverges (cf. proof that the sum of the reciprocals of the primes diverges for k = 1) but
converges for every ε > 0. Here lnk denotes the k-fold composition of the natural logarithm defined recursively by
lnk(x)={ln(x)for k=1,ln(lnk−1(x))for k≥2.
Furthermore, let Nk denote the smallest natural number such that the k-fold composition is well-defined and lnk(Nk) ≥ 1, i.e.
Nk≥ee⋅⋅e⏟k es=e↑↑k
using tetration or Knuth's up-arrow notation.
To see the divergence of the series (4) using the integral test, note that by repeated application of the chain rule
ddxlnk+1(x)=ddxln(lnk(x))=1lnk(x)ddxlnk(x)=⋯=1xln(x)⋯lnk(x),




