The Integral Test
When the terms of a series come from a function you can integrate, the area under that function decides whether the series converges. This guide states the test, its conditions, and what it does not tell you.
Suppose \(a_n = f(n)\), where \(f\) is positive, continuous and decreasing for \(x \ge N\). Then \(\sum_{n=N}^{\infty}a_n\) and \(\int_N^{\infty}f(x)\,dx\) both converge or both diverge. The terms are boxes of width 1 sitting just under (or just over) the curve, so a finite area traps the sum and an infinite area pushes it to infinity. The integral’s value is not the series’ sum.
1Why it works
2Using the test
\(\displaystyle\sum_{n=1}^{\infty}\frac{1}{n^2}\)
- 1\(f(x) = \frac{1}{x^2}\) is positive, continuous and decreasing for \(x \ge 1\), and \(f(n) = \frac{1}{n^2}\).
- 2\(\displaystyle\int_1^{\infty}\frac{dx}{x^2} = \lim_{b \rightarrow \infty}\left(1 - \frac1b\right) = 1\), which is finite.
“\(f(x) = \frac{1}{x^2}\) is positive, continuous and decreasing on \([1, \infty)\). Since \(\displaystyle\int_1^{\infty}\frac{dx}{x^2} = 1\) converges, \(\displaystyle\sum\frac{1}{n^2}\) converges by the integral test.”
\(\displaystyle\sum_{n=2}^{\infty}\frac{1}{n\ln n}\)
- 1\(f(x) = \frac{1}{x\ln x}\) is positive, continuous and decreasing for \(x \ge 2\) (both \(x\) and \(\ln x\) increase).
- 2Substitute \(u = \ln x\): \(\displaystyle\int_2^{\infty}\frac{dx}{x\ln x} = \lim_{b \rightarrow \infty}\left[\ln(\ln x)\right]_2^b = \infty\).
\(\displaystyle\sum_{n=2}^{\infty}\frac{1}{n(\ln n)^2}\)
- 1Same conditions as before. With \(u = \ln x\): \(\displaystyle\int_2^{\infty}\frac{dx}{x(\ln x)^2} = \lim_{b \rightarrow \infty}\left[-\frac{1}{\ln x}\right]_2^b = \frac{1}{\ln 2}\).
The test needs \(f\) positive, continuous and decreasing. State all three before computing the integral; without them the conclusion does not follow.
3Checking the conditions
\(\displaystyle\sum_{n=1}^{\infty}ne^{-n^2}\)
- 1\(f(x) = xe^{-x^2}\): \(f'(x) = e^{-x^2}(1 - 2x^2)\), negative for \(x \gt \frac{1}{\sqrt2}\). So \(f\) is decreasing for \(x \ge 1\).
- 2\(\displaystyle\int_1^{\infty}xe^{-x^2}\,dx = \lim_{b \rightarrow \infty}\left[-\tfrac12e^{-x^2}\right]_1^b = \frac{1}{2e}\).
\(\displaystyle\sum_{n=1}^{\infty}\frac{\ln n}{n}\)
- 1\(f(x) = \frac{\ln x}{x}\) has \(f'(x) = \frac{1 - \ln x}{x^2}\), negative only for \(x \gt e\). So use the test from \(n = 3\) on; the first two terms do not affect convergence.
- 2\(\displaystyle\int_3^{\infty}\frac{\ln x}{x}\,dx = \lim_{b \rightarrow \infty}\left[\frac{(\ln x)^2}{2}\right]_3^b = \infty\).
The conditions only need to hold from some point on. Starting the series later does not change whether it converges.
4What it cannot tell you
\(\int_1^{\infty}\frac{dx}{x^2} = 1\), but \(\sum\frac{1}{n^2} \approx 1.645\). The test says whether the series converges, not what it converges to.
\(\sum\frac{(-1)^n}{n}\) has terms that are not positive, so the integral test does not apply. Other tests handle signs.
Quick reference
| Item | Rule |
|---|---|
| Conditions | f positive, continuous, decreasing for x ≥ N |
| \(\int_N^{\infty}f\) finite | Series converges |
| \(\int_N^{\infty}f = \infty\) | Series diverges |
| Sum | Not given by the integral |