Most series don't telescope and aren't geometric, so you can't find a formula for their partial sums. The integral test gets around this by comparing a series to an improper integral, which you can evaluate. It is also the tool that finally settles the harmonic series.
Series as areas
Picture the terms an=f(n) as rectangles of width 1: the rectangle over [n,n+1] has height f(n), so its area is an. The sum of the series is the total area of all the rectangles. If f is decreasing, those rectangles either sit just above or just below the curve y=f(x), depending on which endpoint you use for the height.
Using left endpoints, the rectangles lie above the curve, so n=1∑∞an≥∫1∞f(x)dx.
Using right endpoints (starting the rectangles one step later), they lie below the curve, so n=2∑∞an≤∫1∞f(x)dx.
So if the integral is infinite, the bigger series is infinite too. If the integral is finite, the smaller series is finite, and adding back the single term a1 keeps it finite. The series and the integral are tied together.
The terms 1/n² are the heights of the curve y = 1/x² at the integers. The series behaves like the area under the curve.Open in grapher →
The integral test
Suppose an=f(n), where f is positive, continuous, and decreasing for x≥k. Then
n=k∑∞anand∫k∞f(x)dx
either both converge or both diverge.
Common mistake
When the integral converges, its value is not the sum of the series. For example, ∫1∞x21dx=1, but n=1∑∞n21=6π2≈1.645. The test only tells you whether the series converges.
Checking the conditions
On a free-response question you must say why the test applies. Here is what to check.
Positive: usually clear from the formula.
Continuous: no division by zero or undefined logs on [k,∞).
Decreasing: either it is obvious (the denominator grows while the numerator stays fixed), or show f′(x)<0 for x≥k.
The conditions only need to hold eventually. If f increases for a while and then decreases from x=3 on, start the test at k=3; the first few terms don't affect convergence.
The harmonic series diverges
Take f(x)=x1, which is positive, continuous and decreasing for x≥1. Then
∫1∞x1dx=b→∞limlnb=∞.
The integral diverges, so the harmonic series n=1∑∞n1diverges, even though its terms go to 0. The partial sums grow like lnn: very slowly, but without bound. It takes more than 12,000 terms for the partial sum to pass 10.
The same picture gives a useful estimate. The rectangles for 21+31+⋯+n1 fit under the curve y=x1 from 1 to n, and the rectangles for 1+21+⋯+n−11 sit on top of it, so
lnn≤1+21+31+⋯+n1≤1+lnn.
For example, the sum of the first million terms of the harmonic series is between ln(106)≈13.8 and 14.8. That is a striking amount of growth for a million terms, which shows how slowly this series diverges, but it does diverge: lnn has no upper bound.
When not to use the integral test
The integral test needs a function you can actually integrate, and it needs the terms to be positive and decreasing. Series with alternating signs like ∑n(−1)n, series with factorials like ∑n!1 (there is no continuous "x!" that is easy to integrate), and series with oscillating terms like ∑n22+sinn (not decreasing) all call for other tests.
Worked examples
Worked example: A logarithmic series
Determine whether n=2∑∞nlnn1 converges or diverges.
Solution. Let f(x)=xlnx1. For x≥2 it is positive and continuous, and it is decreasing because the denominator xlnx is increasing. Substitute u=lnx, du=xdx:
Solution. Let f(x)=xe−x2. It is positive and continuous. Its derivative f′(x)=e−x2(1−2x2) is negative for x≥1, so f is decreasing there. With u=−x2:
∫1∞xe−x2dx=b→∞lim[−21e−x2]1b=0+21e−1=2e1.
The integral converges, so the series converges. (Its sum is not 2e1.)
Worked example: An arctangent integral
Determine whether n=1∑∞1+n21 converges.
Solution.f(x)=1+x21 is positive, continuous and decreasing for x≥1.
∫1∞1+x2dx=b→∞lim(arctanb−arctan1)=2π−4π=4π.
The integral is finite, so the series converges.
Tip
The integral test is the right choice when f(x) has an easy antiderivative, typically because a u-substitution jumps out (xlnx1, xe−x2, x2+1x). If the antiderivative is hard, try a comparison test instead.
Practice
Practice 1
Which condition must f satisfy on [1,∞) in order to apply the integral test to n=1∑∞f(n)?
Practice 2
Evaluate ∫1∞1+x21dx, which is used to test n=1∑∞1+n21. Give an exact value.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 3
Evaluate ∫2∞x(lnx)21dx. Give an exact value.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 4
Based on the previous problem, what can you conclude about n=2∑∞n(lnn)21?
Practice 5
Use the integral test to determine the behavior of n=1∑∞n2+1n.
Practice 6
Evaluate ∫1∞xe−x2dx. Give an exact value.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 7
Which series can be shown to converge using the integral test with f(x)=x2lnx?