When f is positive, continuous and decreasing, the series of values f(n) and the integral of f from 1 to ∞ either both converge or both diverge: the terms of the series are the areas of rectangles hugging the curve. This settles the p-series: the sum of 1/nᵖ converges exactly when p > 1. The harmonic series, the sum of 1/n, diverges, though its terms shrink to 0. The integral also bounds the error of stopping after n terms.
A series with positive terms converges exactly when its partial sums stay
bounded: they only go up, so they either level off or climb forever. To decide
which, compare the series with an area you can compute. If an=f(n) for a
positive, decreasing function f, each term is the area of a rectangle of
width 1 standing at the curve.
The integral test
Suppose f is positive, continuous and decreasing for x≥1, and
an=f(n). Then ∑n=1∞an and ∫1∞f(x)dx
either both converge or both diverge.
Stand each rectangle of height an on the interval [n,n+1]. Since f is
decreasing, its left edge is the tallest point of the curve over that
interval, so the rectangles cover the region under the curve:
a1+a2+⋯+an≥∫1n+1f(x)dx
y = 1/x
The harmonic series as rectangles over y = 1/x
Shift the rectangles one unit left, onto [n−1,n], and they fit under the
curve instead:
a2+a3+⋯+an≤∫1nf(x)dx
y = 1/x²
The series of 1/n² as rectangles under y = 1/x²
If the integral is infinite, the first inequality drags the partial sums up
without bound. If it is finite, the second keeps them below
a1+∫1∞f(x)dx. The series and the integral measure nearly
the same area, so they are finite together or infinite together.
It is the harmonic series without its first term: 21+31+⋯. Dropping one term does not change divergence. The integral test gives ∫1∞x+1dx=∞ as well.
Use the integral test on n=1∑∞n2+11.
Answer
It converges.
Full solution
x2+11 is positive and decreasing for x≥1, and ∫1∞x2+1dx=2π−4π=4π is finite.
Use the integral test on n=1∑∞nlnn.
Answer
It diverges.
Full solution
xlnx is positive and decreasing for x≥3, and ∫3bxlnxdx=2(lnb)2−2(ln3)2 grows without bound. The first two terms do not affect convergence.
Use the integral test on n=2∑∞n(lnn)21.
Answer
It converges.
Full solution
With u=lnx, ∫2∞x(lnx)2dx=[−lnx1]2∞=ln21, which is finite.
Bound the error in S5 for ∑n31.
Answer
At most 0.02
Full solution
∫5∞x3dx=2⋅521=0.02.
For which p does n=1∑∞n2p1 converge?
Answer
For p>21
Full solution
It is a p-series with exponent 2p, which must exceed 1.
A student concludes that n=1∑∞n21=∫1∞x2dx=1. What went wrong?
Hint
The first term of the series alone is 1.
Answer
The integral test compares convergence, not values. The sum is 6π2≈1.645.
Full solution
All the terms are positive and the first is 1, so the sum is more than 1. The integral is the area under the curve; the series is the area of rectangles that stick out above it, as in the first graph.
Frequently asked questions
What does the integral test say?
If f is positive, continuous and decreasing and aₙ = f(n), then the series of aₙ and the integral of f from 1 to ∞ both converge or both diverge.
When does a p-series converge?
The sum of 1/nᵖ converges when p > 1 and diverges when p ≤ 1.
Does the harmonic series converge?
No. Its partial sums grow like ln n: slowly, but without bound.
Is the sum of the series equal to the integral?
No. The test compares whether they are finite, not their values. The sum of 1/n² is π²/6 ≈ 1.645, while the integral of 1/x² from 1 to ∞ is 1.
How accurate is a partial sum?
For a series that passes the integral test, the error after n terms is at most the integral of f from n to ∞.