The Integral Test
Does the series converge? What about ? These two sums look almost identical. Yet one diverges to infinity while the other converges. No elementary comparison to a geometric series settles the matter. The Integral Test resolves this entire family of questions in one stroke. It does so by trading a discrete sum for a continuous improper integral. There, the machinery of antiderivatives becomes available. The idea matters because it converts an infinite discrete process into a different kind of question. Adding terms one at a time becomes a question about area under a curve. This is a question calculus already knows how to answer. This is one of the first deep bridges in analysis. It connects the discrete world of sequences and series. It connects that world to the continuous world of functions and integrals. It is the tool that finally pins down the convergence behavior of the enormously important p-series . The big picture is geometric: if is a positive, decreasing function, the rectangles of height sit just above or just below the curve . So the sum of rectangle areas and the area under the curve rise and fall together. Formalizing "rise and fall together" into a genuine theorem is the content of this article. Monotonicity and positivity serve as indispensable hypotheses. This article gives the precise statement and hypotheses of the Integral Test. It provides a complete proof by squeezing the partial sums between two integrals. It offers a full determination of p-series convergence as the flagship application. It includes a worked example estimating a tail sum. It also gives a counterexample showing why monotonicity cannot be dropped. It closes by placing the test in the broader landscape of convergence tests. This leads on to Absolute vs Conditional Convergence.
- The Integral Test compares to when is positive and decreasing.
- Both objects converge or both diverge together — never one without the other.
- It is proved by trapping partial sums between two integrals using monotonicity, then applying the Comparison Test logic to improper integrals.
- Its flagship consequence: the p-series converges iff .
- The same integral bounds give sharp estimates for how fast a series' tail shrinks, useful for numerical error control.
- Key idea: monotone positive terms turn a sum into a Riemann-sum-like object trapped between two integrals of the same function.
Where this lives today
The Integral Test's core mechanism — bounding a discrete sum by a continuous integral of a monotone function — reappears throughout mathematics and its applications. In analytic number theory, the same squeeze inequality underlies Euler–Maclaurin summation and estimates for the growth of (Euler's constant), and it is essential to understanding the analytic continuation and growth of the Riemann zeta function , whose behavior near is exactly governed by the -series threshold proved here. In probability and statistics, tail-sum/tail-integral comparisons of this type are used to bound the expectation of discrete random variables by comparing to continuous densities, and to control truncation error when a discrete distribution has a continuous analogue. In numerical analysis and scientific computing, the tail estimate derived from the test (as in Worked Example 2) is a standard device for certifying the accuracy of truncated series used to compute constants like or special function values to guaranteed precision. In algorithm analysis (computer science), sums like (harmonic numbers, appearing in the analysis of Quicksort and hashing) are routinely bounded above and below by using exactly this integral-comparison technique. Finally, within analysis itself, the Integral Test is a direct stepping stone toward finer convergence theory, including the study of Absolute vs Conditional Convergence for series whose terms are not all positive, and toward more refined tests (Cauchy condensation, Raabe's test) that handle series the Integral Test cannot reach because no elementary antiderivative exists.
Ask the tutor: How does the Integral Test's tail estimate compare in sharpness to the error bound given by the Alternating Series Test?
Let be a positive integer, and let satisfy: 1. Positivity: for all ; 2. Monotonicity: is non-increasing on , i.e. ; 3. Continuity (or at least Riemann-integrability) of on every finite interval , so that exists. Define for integers . The improper integral is defined as
and is said to converge if this limit exists (is finite), diverge otherwise. The Integral Test asserts that the series and the improper integral converge or diverge together.
Intuition
Picture the graph of a positive, decreasing function on . Above each integer , erect a rectangle of width and height . Because is decreasing, the rectangle built on with height — the left endpoint value — sits entirely above the curve on that interval, while the rectangle with height sits entirely below the curve. Stacking these observations across all intervals produces the chain of inequalities that drives the whole theorem: the partial sums of overestimate the running integral, and the partial sums of underestimate it. Since both sums differ from the integral only by bounded, controllable amounts, they must diverge or converge in lockstep with it. This picture immediately explains the p-series threshold at : is an elementary computation, and it converges exactly when because the antiderivative tends to a finite limit only when the exponent is negative.
:::svg[Rectangles over and under on , illustrating the two-sided squeeze]
Let and let be positive, non-increasing, and Riemann-integrable on every finite subinterval . Set for . Then:
Moreover, when both converge, for every integer the tail satisfies
We use the technique of squeezing partial sums between two Riemann sums built from monotonicity, then invoke the monotone convergence of bounded increasing sequences.
Step 1: The key inequality. Fix any integer . Since is non-increasing on , for every we have
Integrating this inequality over (a valid operation since integration preserves order of integrable functions on an interval of length 1) gives
That is,
Step 2: Sum from to for an arbitrary integer . Summing the left inequality:
where the equality uses additivity of the integral over adjacent intervals. The left side telescopes to . So:
Summing the right inequality of similarly:
Combining (A) and (B):
Step 3: Both sequences (partial sums, partial integrals) are non-decreasing in . Because , each , so the partial sums form a non-decreasing sequence in . Likewise is non-decreasing in , since (the integral of a non-negative function is non-negative).
Step 4: () Suppose converges, i.e. for some finite as (equivalently, since is non-decreasing, for all ). By inequality (A),
for every , so for all . Thus is a non-decreasing sequence bounded above, hence convergent by the Monotone Convergence Theorem for sequences (a non-decreasing sequence bounded above converges to its supremum). Since by definition of series convergence, the series converges.
Step 5: () Suppose converges, i.e. for some finite , so in particular is bounded above by (as it is non-decreasing with limit , every term is ). By inequality (B),
for all . Thus is non-decreasing and bounded above, hence converges by the same Monotone Convergence Theorem. Since by definition, the improper integral converges. This establishes the equivalence. (Divergence in one direction is the contrapositive: if the integral diverges, i.e. , then Step 4's chain shows hmm — more directly: if then by (A), since actually we use (B) rearranged: , so , forcing too, i.e. the series diverges. Symmetrically if , (A) gives .)
Step 6: The tail estimate. Fix . Apply inequality (C) with the roles of the lower limit shifted to start at : for , summing from to and letting (valid termwise since all sums/integrals involved converge, by the equivalence just proved) gives
directly from the limiting form of (B) started at , and
from the limiting form of (A) started at . Combining gives exactly the stated tail bound.
∎For , the series converges if and diverges if .
Case : then for all (since ), so the terms do not tend to ; by the Term Test (divergence when terms fail to vanish, itself an elementary consequence of the Cauchy criterion for series), the series diverges. This case needs no integral.
Case : the function is positive, continuous, and strictly decreasing on (since ), so the hypotheses of the Integral Test hold with . Compute, for : If :
As : if , then , so , giving , a finite value — the integral converges. If , then , so , and the integral diverges. If :
so the integral diverges. By the Integral Test, converges exactly when converges, i.e. exactly when . Combined with the case, and noting diverges by the computation above, we conclude convergence iff .
∎Worked examples
Example 1 — A non-trivial p-series-type comparison: . Let for . Check the hypotheses:
- Positivity: for , and (since ), so .
- Monotonicity: both and are increasing for (as , so is increasing there too), hence their product is increasing, so is decreasing.
- Continuity: is a composition/product of continuous functions on , hence continuous, hence Riemann-integrable on every .
Compute the improper integral using the substitution , :
As , so , giving
a finite value. By the Integral Test, converges. This example is instructive precisely because no direct comparison to a p-series works cleanly ( is asymptotically smaller than but the ratio to has no clean limit for small ), while the antiderivative computation is immediate. It also illustrates the general fact that converges iff , by the identical substitution — a companion family to the p-series often called Bertrand series.
Example 2 — Using the tail estimate to bound an error in a numerical approximation. Consider (a convergent series). Suppose we approximate the sum by the partial sum
and we want a rigorous bound on the error . Apply the tail estimate from the Integral Test with (positive, decreasing on ) and :
Compute both integrals using :
Hence
so the true sum satisfies . Computing , we obtain the rigorous bracket
consistent with the known value . This demonstrates the practical power of the tail-estimate corollary: it converts the qualitative convergence statement into a quantitative, computable error bound, entirely from elementary antiderivatives, with no need to sum extra terms.
Consider defined by
This is positive (well, non-negative — take , positivity in the weak sense used implicitly) and Riemann-integrable on every (it is a finite union of intervals where it's , else , for in any bounded range), but it is not monotone: it oscillates between spikes of height and stretches of height infinitely often. Define for every integer (since each integer sits at the left endpoint of a spike ). Then
But the integral only picks up the narrow spikes:
So the series diverges while the integral converges — the conclusion of the Integral Test fails entirely once monotonicity is dropped. The proof's Step 1 inequality , which pins between and on , is simply false for this oscillating , since can be at the sample point but almost everywhere else on ; the entire squeeze argument collapses. This shows monotonicity is not a technical convenience but load-bearing: it is what lets a single sample value control the integral over the whole unit interval .
Scope, edge cases & common traps
| Situation | What to check | Common pitfall |
|---|---|---|
| Series starts at but only decreasing from onward | Apply the test on ; the first four terms are a finite sum, irrelevant to convergence | Trying to apply the test on all of and failing because isn't monotone there |
| decreasing but not continuous (e.g. a step function) | Riemann-integrability on finite intervals suffices; continuity is not required | Assuming the test needs continuity — it only needs integrability |
| Series with negative or alternating terms | Integral Test does not apply — positivity is essential | Misapplying the test to ; the correct tool is the Alternating Series Test, feeding into Absolute vs Conditional Convergence |
| Non-increasing but eventually constant (e.g. for large) | Still valid; both sum and integral trivially converge | None — this case is often mistakenly thought to need special handling |
| Using tail estimate to bound error | Must use the same consistently in both integral bounds | Off-by-one errors: using paired with instead of |
The mathematician behind it
Origins · 1 minAugustin-Louis Cauchy and how this was discovered
Cauchy is the figure most closely associated with giving rigorous, quantifier-precise foundations to the convergence of series and integrals, replacing 18th-century formal manipulation with -based definitions. The comparison between a monotone series and its associated integral appears in his systematic development of convergence criteria in his Cours d'analyse (1821) and later lecture notes, part of his broader program of rebuilding calculus on solid logical footing after the looser methods of Euler and the Bernoullis.
Does the Integral Test tell us the exact value of the sum?
No. It only tells you whether the series converges or diverges, by comparing to whether the improper integral converges or diverges — the numerical value of the integral is generally not equal to the sum. For example exactly, but , a different number. What the test's proof does give you, via the tail-estimate corollary, is a rigorous two-sided bound on the tail of the series in terms of integrals, which can be used to approximate the sum to any desired accuracy — but the integral itself is not the sum.
Why does the function need to be defined on a continuous interval, not just at integers?
The entire proof rests on integrating the inequality over the real interval , which requires to be a genuine function of a real variable, integrable on that interval. Without this continuous extension, there is no integral to compare the series to. The choice of which continuous to use is not unique — any positive, non-increasing continuous extension of the sequence works equally well, since the test only depends on the values and the monotonicity/positivity structure, not on the specific formula for between integers.
Can the Integral Test be used when is increasing instead of decreasing?
Not directly in the stated form, but a symmetric version exists: for a positive, non-decreasing , the inequalities in Step 1 simply reverse (), and the same telescoping argument shows and still converge or diverge together — but such a series almost never converges anyway, since a non-decreasing positive sequence either tends to a nonzero limit (violating the Term Test) or grows further, so this case is rarely useful in practice. The genuinely useful, standard form is for decreasing , which is why textbooks state it that way.
How does the Integral Test relate to the Comparison Test?
They share the same underlying philosophy — bound one series-like object by another whose behavior you already understand — but they operate differently. The Comparison Test compares two series termwise using an inequality . The Integral Test instead compares a series to a continuous integral built from the same formula, using monotonicity rather than an external comparison series. In practice, the Integral Test is often used first to establish convergence facts about p-series, which the Comparison Test (or its limit form) then uses as reference series for comparing more complicated series that are not directly integrable in closed form.
What if the antiderivative of has no elementary closed form?
The Integral Test only requires determining whether is finite or infinite — you do not need a closed-form antiderivative, only enough analytic control (asymptotic estimates, further integral comparisons, or known special-function behavior) to determine convergence of the improper integral. In many textbook applications the antiderivative is elementary (as with ), but the test's logical content survives even when it is not; one simply falls back on other techniques to analyze the improper integral itself.
Is it true that if converges then "fast enough" that the Integral Test always applies?
No — this reverses the logic. The Integral Test is a sufficient tool for series that happen to arise from a positive, decreasing function; it is not a universal method for all convergent positive series. Many convergent series (e.g. one with for even and for odd ) have terms that are not monotone in , so no single decreasing with need behave simply, and the test's hypotheses may fail to hold in a useful form even though the series converges. Convergence of is necessary but never sufficient for convergence of , and it says nothing about monotonicity.