Convergence Tests

Published on 2026-11-04·v1.0

Learning Objectives

  • State the divergence, integral, comparison, limit comparison, alternating series, ratio, and root tests with all of their hypotheses, and say what each one concludes in each case.
  • Recognize when a test is inconclusive, and name a series on each side of the boundary that proves it (for example ∑1/n\sum 1/n and ∑1/n2\sum 1/n^2 for the ratio test).
  • Show on a concrete series why dropping one hypothesis (positivity, monotonicity, a limit that actually exists) can make a test give the wrong answer.
  • Distinguish absolute from conditional convergence, and explain why rearranging a conditionally convergent series can change its sum.
  • Use the integral test and the alternating series test to bound the error left after NN terms, and choose a test for a given series.

Context & Motivation

Most infinite series have no closed form for their partial sums. The geometric series and telescoping sums from infinite-series-and-partial-sums are the exceptions, so the usual question is not "what is the sum?" but "does it converge at all?". The tests in this lesson answer that question without computing the sum, and for the ones that give error bounds they also say how far a truncated sum can be from the true value.

The question matters in computing because a program can only add finitely many terms, and a partial sum alone does not settle convergence. The series ∑n≥21/(nln⁡n)\sum_{n\ge 2} 1/(n\ln n) diverges, yet its partial sum up to n=107n = 10^7 is only about 3.573.57. Looking at the numbers would suggest a limit that does not exist. Convergence tests are the argument that replaces the numerical guess.

Series also show up inside algorithm analysis. The expected cost of quicksort involves the harmonic numbers Hn=∑k=1n1/kH_n = \sum_{k=1}^n 1/k, whose growth like ln⁡n\ln n comes from the integral test. The linear-time bound for building a binary heap reduces to ∑h≥1h/2h\sum_{h\ge 1} h/2^h, a series the ratio test accepts and whose sum is exactly 22.

Core Theory

Throughout, SN=∑n=1NanS_N = \sum_{n=1}^{N} a_n is the partial sum and RN=S−SNR_N = S - S_N is the remainder when the series converges to SS.

The divergence test

If ∑an\sum a_n converges, then an→0a_n \to 0. Equivalently: if ana_n does not tend to 00 (including when the limit does not exist), the series diverges. The test can only prove divergence. The harmonic series ∑1/n\sum 1/n has an→0a_n \to 0 and still diverges, so an→0a_n \to 0 is inconclusive.

The integral test

Hypotheses: ff is continuous, positive, and decreasing on [N,∞)[N, \infty), and an=f(n)a_n = f(n) for n≥Nn \ge N. Conclusion: ∑n≥Nan\sum_{n\ge N} a_n and ∫N∞f(x) dx\int_N^\infty f(x)\,dx either both converge or both diverge. When they converge, the remainder is trapped between two integrals:

∫N+1∞f(x) dx  ≤  RN  ≤  ∫N∞f(x) dx\int_{N+1}^{\infty} f(x)\,dx \;\le\; R_N \;\le\; \int_{N}^{\infty} f(x)\,dx

For pp-series, ∫1∞x−p dx\int_1^\infty x^{-p}\,dx converges exactly when p>1p > 1, so ∑1/np\sum 1/n^p converges exactly when p>1p > 1. The hypotheses are not decoration. Take f(x)=sin⁡2(πx)f(x) = \sin^2(\pi x): it is continuous and nonnegative, but not decreasing. Then an=sin⁡2(πn)=0a_n = \sin^2(\pi n) = 0 for every integer nn, so the series converges to 00, while ∫1Msin⁡2(πx) dx=(M−1)/2\int_1^M \sin^2(\pi x)\,dx = (M-1)/2 for integer MM, which grows without bound. The two behave differently because monotonicity is missing.

Comparison tests

Direct comparison. Hypothesis: 0≤an≤bn0 \le a_n \le b_n for all n≥Nn \ge N. If ∑bn\sum b_n converges, so does ∑an\sum a_n; if ∑an\sum a_n diverges, so does ∑bn\sum b_n. The other two directions say nothing: knowing that a small series converges or that a big series diverges tells you nothing about the other one. Nonnegativity is essential: an=−1≤1/n2a_n = -1 \le 1/n^2 holds for all nn and ∑1/n2\sum 1/n^2 converges, but ∑(−1)\sum(-1) diverges.

Limit comparison. Hypothesis: an>0a_n > 0 and bn>0b_n > 0, and L=lim⁡an/bnL = \lim a_n/b_n exists with 0<L<∞0 < L < \infty. Conclusion: both series converge or both diverge. If L=0L = 0, only "∑bn\sum b_n converges implies ∑an\sum a_n converges" survives; if L=∞L = \infty, only "∑bn\sum b_n diverges implies ∑an\sum a_n diverges" survives. With bn=1/nb_n = 1/n and an=1/n2a_n = 1/n^2 we get L=0L = 0 and ∑bn\sum b_n diverges, so nothing follows, and indeed ∑an\sum a_n converges. Swap the roles to get L=∞L = \infty with the same moral.

The alternating series test

Hypotheses: the series is ∑(−1)nbn\sum (-1)^n b_n with bn≥0b_n \ge 0, bnb_n is decreasing (at least from some index n0n_0 on), and bn→0b_n \to 0. Conclusion: the series converges, and the remainder satisfies ∣RN∣≤bN+1\lvert R_N \rvert \le b_{N+1} for every NN with N+1≥n0N+1 \ge n_0, that is, once the monotonicity has started. All three conditions are needed. Without bn→0b_n \to 0 the divergence test kills the series. Without monotonicity the conclusion can fail even when bn→0b_n \to 0 (see Example 4).

The ratio and root tests

Ratio test. Hypothesis: an≠0a_n \ne 0 eventually and L=lim⁡∣an+1/an∣L = \lim \lvert a_{n+1}/a_n \rvert exists (possibly ∞\infty). If L<1L < 1 the series converges absolutely; if L>1L > 1 (or L=∞L = \infty) it diverges; if L=1L = 1 the test is inconclusive.

Root test. Hypothesis: L=lim sup⁡∣an∣1/nL = \limsup \lvert a_n \rvert^{1/n}, which always exists in [0,∞][0,\infty]. The three cases are the same as for the ratio test, and again L=1L = 1 is inconclusive. Whenever the ratio limit exists, the root limit exists and equals it, so the root test is never weaker; it also handles series where the ratio has no limit.

Both tests are blind at L=1L = 1 because a limit below 11 means geometric decay, and L=1L = 1 covers every decay slower than any geometric rate. That includes polynomial decay, but also e−ne^{-\sqrt n} (faster than any polynomial, yet L=1L=1) and 1/ln⁡n1/\ln n (slower than any polynomial). For ∑1/n\sum 1/n and ∑1/n2\sum 1/n^2 the ratio tends to 11 in both cases, yet one diverges and the other converges.

Absolute and conditional convergence

If ∑∣an∣\sum \lvert a_n \rvert converges, then ∑an\sum a_n converges (absolute convergence implies convergence). The converse fails: ∑(−1)n+1/n\sum (-1)^{n+1}/n converges by the alternating series test, but ∑1/n\sum 1/n diverges, so the convergence is only conditional.

The distinction has teeth. If a series converges absolutely, every rearrangement has the same sum. If it converges only conditionally, Riemann's rearrangement theorem says rearrangements can be made to sum to any real number, or to diverge. Addition of infinitely many terms is not commutative.

Choosing a test

Look for Try
an↛0a_n \not\to 0 is plausible divergence test first
factorials, exponentials, or n-th powers ratio test, or root test for n-th powers
rational or algebraic in n limit comparison with a p-series
f(n)f(n) with an easy antiderivative (logs, 1/(xln⁡x)1/(x\ln x)) integral test
signs alternate alternating series test; then check ∑∣an∣\sum \lvert a_n \rvert
ratio or root test gives 1 comparison or integral test

Worked Examples

Example 1: the ratio test, and a sum that is exactly 2

For ∑n≥1n/2n\sum_{n\ge1} n/2^n, the ratio is (n+1)/2n+1n/2n=n+12n→12<1\frac{(n+1)/2^{n+1}}{n/2^n} = \frac{n+1}{2n} \to \tfrac12 < 1, so the series converges. Its sum is 22. The partial sums S5=1.78125S_5 = 1.78125, S10=1.98828…S_{10} = 1.98828\ldots, and S20=1.99998…S_{20} = 1.99998\ldots approach it quickly, as a ratio of 12\tfrac12 predicts. This is the series behind the linear-time heap build.

Example 2: limit comparison

For ∑(n+1)/(n3+5)\sum (n+1)/(n^3+5), compare with bn=1/n2b_n = 1/n^2. Then an/bn=n2(n+1)/(n3+5)→1a_n/b_n = n^2(n+1)/(n^3+5) \to 1, a finite positive limit, and ∑1/n2\sum 1/n^2 converges, so the series converges. A numerical check agrees with the limit: the ratio is 1.09451.0945 at n=10n=10, 1.01001.0100 at n=100n=100, and 1.00101.0010 at n=1000n=1000. The series sums to about 1.00391.0039.

Example 3: the integral test and its error bound

For ∑1/n2\sum 1/n^2, take f(x)=1/x2f(x) = 1/x^2, which is continuous, positive, and decreasing on [1,∞)[1,\infty). After N=10N = 10 terms, S10=1.549768S_{10} = 1.549768, and the remainder bound gives S10+111≤S≤S10+110S_{10} + \tfrac1{11} \le S \le S_{10} + \tfrac1{10}, that is, 1.6407≤S≤1.64981.6407 \le S \le 1.6498. The true sum is π2/6=1.644934\pi^2/6 = 1.644934, inside the window. To guarantee an error below 10−310^{-3} using only the upper bound, take N=1000N = 1000; the actual error there is 0.00099950.0009995, just below the guarantee.

Example 4: the alternating series test, and what happens without monotonicity

The alternating harmonic series ∑(−1)n+1/n\sum (-1)^{n+1}/n meets all three hypotheses with bn=1/nb_n = 1/n, and it converges to ln⁡2=0.693147\ln 2 = 0.693147. The bound ∣RN∣≤1/(N+1)\lvert R_N\rvert \le 1/(N+1) is honest but conservative: for N=999N = 999 it promises 0.0010.001, while the actual error is 0.00050.0005. The bound needs 999999 terms to guarantee 0.0010.001, while the actual error first drops to 0.0010.001 near N=500N=500. The slow convergence is the point: a single digit of accuracy per tenfold increase in terms.

Now take ∑n≥2(−1)nn+(−1)n\sum_{n\ge2} \dfrac{(-1)^n}{\sqrt n + (-1)^n} (it starts at n=2n=2 because the n=1n=1 denominator is 00). Here bn=1/(n+(−1)n)→0b_n = 1/(\sqrt n + (-1)^n) \to 0, but b2=0.414b_2 = 0.414 and b3=1.366b_3 = 1.366, so bnb_n is not decreasing. The test does not apply, and the series diverges: rationalizing the denominator splits the term into (−1)nn/(n−1)−1/(n−1)(-1)^n\sqrt n/(n-1) - 1/(n-1). The first part converges by the alternating test and the second is a harmonic tail. The partial sums behave like −ln⁡N-\ln N: −4.21-4.21 at N=102N=10^2, −8.87-8.87 at N=104N=10^4, and −13.48-13.48 at N=106N=10^6, against −4.61-4.61, −9.21-9.21, and −13.82-13.82 for −ln⁡N-\ln N (the difference settles near 0.340.34). Dropping one hypothesis flipped the conclusion.

Example 5: when the ratio test says nothing and the root test decides

Let an=2−(n+(−1)n)a_n = 2^{-(n + (-1)^n)}, with terms 1,18,14,132,116,…1, \tfrac18, \tfrac14, \tfrac1{32}, \tfrac1{16}, \ldots. The ratios an+1/ana_{n+1}/a_n alternate between 18\tfrac18 and 22, so the limit does not exist and the ratio test as stated does not apply. (Even the limsup/liminf version of the test is inconclusive: it needs lim sup⁡<1\limsup < 1 to converge or lim inf⁡>1\liminf > 1 to diverge, and here lim sup⁡=2\limsup = 2 and lim inf⁡=18\liminf = \tfrac18.) The root test gives ∣an∣1/n=2−1−(−1)n/n→12<1\lvert a_n\rvert^{1/n} = 2^{-1-(-1)^n/n} \to \tfrac12 < 1, so the series converges, and it sums to exactly 32\tfrac32.

Example 6: a conditionally convergent series rearranged

Take the alternating harmonic series and reorder it as two positive terms followed by one negative one: 1+13−12+15+17−14+⋯1 + \tfrac13 - \tfrac12 + \tfrac15 + \tfrac17 - \tfrac14 + \cdots. It uses exactly the same terms, but its sum is 32ln⁡2≈1.03972\tfrac32\ln 2 \approx 1.03972 instead of ln⁡2≈0.69315\ln 2 \approx 0.69315. A script summing the first million groups of this ordering gives 1.03972051.0397205.

Example 7: when partial sums mislead

∑n≥21/(nln⁡n)\sum_{n\ge2} 1/(n\ln n): with f(x)=1/(xln⁡x)f(x) = 1/(x\ln x), ∫2∞f=lim⁡M→∞ln⁡ln⁡M−ln⁡ln⁡2=∞\int_2^\infty f = \lim_{M\to\infty}\ln\ln M - \ln\ln 2 = \infty, so the series diverges, and so does the sum up to NN, which tracks ln⁡ln⁡N\ln\ln N plus a constant. At N=107N = 10^7, ln⁡ln⁡N=2.78\ln\ln N = 2.78 and the partial sum is 3.573.57. In contrast, ∑1/(nln⁡2n)\sum 1/(n\ln^2 n) converges (the integral is 1/ln⁡21/\ln 2 from x=2x=2), and its sum is 2.10972.1097 (computed with an Euler-Maclaurin tail; the convergence is so slow that the partial sum at N=107N=10^7 is only 2.04772.0477). A ratio test is useless for both, because the ratio of consecutive terms tends to 11.

Common Misconceptions & Pitfalls

  • "If an→0a_n \to 0, the series converges." Only the converse holds. The harmonic series is the standard counterexample, and 1/(nln⁡n)1/(n\ln n) shows how slowly the divergence can show up.
  • "The ratio test gave L=1L=1, so the series diverges (or converges)." At L=1L=1 the test says nothing. Switch to comparison or the integral test.
  • "Comparison goes either way." A series smaller than a divergent one, or larger than a convergent one, tells you nothing. Check the direction, and check that all terms are nonnegative.
  • "Alternating signs with bn→0b_n \to 0 is enough." Monotonicity is a hypothesis. Example 4 diverges despite bn→0b_n \to 0.
  • "A partial sum that has stopped changing means convergence." Partial sums of divergent series can move by less than any displayed precision for a long time.
  • "Rearranging terms is harmless." It is harmless only for absolutely convergent series.

Summary

The divergence test only detects divergence. The integral, comparison, limit comparison, ratio, and root tests apply to series whose terms are (eventually) positive or considered in absolute value. The integral test decides whenever its hypotheses hold, the comparison tests say nothing when the inequality points the wrong way (or when L=0L=0 or L=∞L=\infty), and the ratio and root tests say nothing at L=1L=1. The alternating series test needs bnb_n decreasing to 00, and then gives both convergence and the bound ∣RN∣≤bN+1\lvert R_N \rvert \le b_{N+1}; the integral test gives two-sided remainder bounds. Absolute convergence is the safe case: it implies convergence and allows free rearrangement, while conditional convergence does not. The next lesson, power-series-and-the-radius-of-convergence, applies the ratio and root tests to series with a variable xx, where they decide an interval of convergence and the endpoints are settled with the other tests from this lesson.

Documentation Links