Euler Hall — free maths guides

The integral test

State the integral test's three hypotheses. The idea in plain words, a worked example, and a check with the answers shown — part of the free Calculus II guides.

A series behaves like the integral of its terms' formula

A sum and an integral are both accumulations. The integral test makes that precise:

> Integral test. Ifff is positive, continuous and decreasing on[1,∞)[1,\infty), then >∑n=1∞f(n)\sum_{n=1}^\infty f(n) converges exactly when∫1∞f(x) dx\int_1^\infty f(x)\,dx converges.

The picture. Draw rectangles of width11 and heightf(n)f(n) over the intervals[n,n+1][n,n+1]. The rectangles sit above the curve (becauseff decreases), so

∑n=2Nf(n)≤∫1Nf(x) dx,\sum_{n=2}^N f(n) \le \int_1^N f(x)\,dx,

and they sit below the curve shifted left, giving the opposite bound. Both inequalities together mean the sum and the integral converge or diverge together.

All three hypotheses matter.

- Positive: so the rectangles bound the curve in a consistent direction. An alternating integrand breaks the comparison. - Continuous: so the integral exists. - Decreasing: so each rectangle's height really is its maximum or minimum, not something in between.

The value is not shared. The test says convergence agrees; it does not say the sum equals the integral.∑1/n2=π2/6\sum1/n^2 = \pi^2/6 while∫1∞x−2dx=1\int_1^\infty x^{-2}dx = 1 — close, but different.

A caveat worth stating. The hypotheses need only hold eventually. A function that decreases from some point on is enough, since finitely many terms never affect convergence.

Why the comparison works, and what breaks it

The rectangles. On[n,n+1][n,n+1] the decreasingff has maximumf(n)f(n) and minimumf(n+1)f(n+1). So

f(n+1)≤∫nn+1f(x) dx≤f(n).f(n+1) \le \int_n^{n+1}f(x)\,dx \le f(n).

Summing fromn=1n=1 toN−1N-1:

∑n=2Nf(n)≤∫1Nf≤∑n=1N−1f(n).\sum_{n=2}^{N}f(n) \le \int_1^N f \le \sum_{n=1}^{N-1}f(n).

The middle lies between two partial sums, so if either side is bounded the other is too. That is convergence agreement, and it is a two-sided sandwich — not an approximation.

What breaks ifff is not positive. With an alternatingff the rectangles on the negative side point the wrong way and the inequalities reverse, so the sandwich says nothing. That is why the integral test cannot handle the alternating series.

What breaks ifff is not decreasing. The maximum offf on a subinterval may be in the middle, sof(n+1)≤∫f(n+1)\le\int can fail.

Why the hypotheses are often checked loosely. The test needs them eventually, and for a rational or algebraicff they hold from some point on — so quoting one line about the eventual behaviour is enough. It is still worth doing.

Worked example: a series outside the p-test's reach

Does∑n=2∞1nln⁡n\sum_{n=2}^\infty\frac{1}{n\ln n} converge?

Hypotheses.f(x)=1xln⁡xf(x) = \frac{1}{x\ln x} is positive, continuous and decreasing on[2,∞)[2,\infty). (Decreasing because bothxx andln⁡x\ln x increase.)

The integral. Substituteu=ln⁡xu=\ln x,du=dx/xdu=dx/x:

Verdict. The integral diverges, so the series diverges — by the integral test.

Why this example matters. It is outside the p-test's reach, since it is not a power ofnn. And it converges slower than the harmonic series: after10610^6 terms its partial sum is still under33. Yet it diverges, and the integral test is what proves it.

A comparison that fails. The obvious bound1nln⁡n≤1n\frac{1}{n\ln n}\le\frac1n goes the wrong way for proving divergence — the terms are smaller than the harmonic series'. That is exactly why a sharper test is needed here.

By the end you can
  • State the integral test's three hypotheses
  • Use it to classify a series outside the p-test's reach
  • Explain why the sum and the integral share only their convergence
Check yourself
  1. 1. Does∑1n1/2\sum\frac{1}{n^{1/2}} converge?
  2. 2. Does∑1n4\sum\frac{1}{n^4} converge?
  3. 3. What does the integral test give for∑1nln⁡2n\sum\frac{1}{n\ln^2 n}?
Answers

1. No: the integral∫x−1/2dx=2x\int x^{-1/2}dx = 2\sqrt x grows. 2. Yes:∫x−4dx=1/3\int x^{-4}dx = 1/3, finite. 3. Convergence:∫dxxln⁡2x=[−1ln⁡x]\int\frac{dx}{x\ln^2x} = \left[-\frac{1}{\ln x}\right], which is finite. Note the square on the log is what changes the verdict from the previous example.

Work out where to start — free, no accountAnswer six real questions — free, no account