Book 2A

© 2026 Neckpinch · www.neckpinch.com · All rights reserved.

Course 2Book 2A: Numbers, Limits and the IntegralChapter 7

Series

Convergence tests, rearrangements and the geometric series in its two lives.

62 min read · Updated Nov 6, 2026

Read with Tao, Analysis I, chapter "Series" (finite series, infinite series, sums of non-negative numbers, rearrangement of series, the root and ratio tests).

In this chapter · 10 sections
  1. 7.1Finite sums
  2. 7.2Infinite series
  3. 7.2.1What the definition does and doesn't allow
  4. 7.3The geometric series
  5. 7.4Series of non-negative terms
  6. 7.4.1Why the threshold is at p = 1
  7. 7.4.2How fast does a convergent series converge?
  8. 7.5Absolute and conditional convergence
  9. 7.6Rearrangements
  10. 7.7Sums over a table
  11. 7.8The root and ratio tests
  12. 7.9Choosing a test
  13. 7.10Exercises
  14. ↗Free resources

An infinite sum a0+a1+a2+⋯a_0 + a_1 + a_2 + \cdots is not a sum at all in the everyday sense: nobody can add infinitely many numbers. It is a limit, the limit of the finite sums a0a_0, a0+a1a_0 + a_1, a0+a1+a2a_0 + a_1 + a_2, …, and everything from 2A.6 Sequences applies to it. That simple reduction hides two surprises. The terms can shrink to zero while the sum still grows without bound. And for some series, adding the same terms in a different order gives a different answer, or any answer you like.

Series run through the rest of the guidebook. Fourier series solve the heat equation (2B.7 Fourier Series and the First Heat Equation). Power series define the exponential function (2B.6 Power Series, Exponentials and Bump Functions). The geometric series inverts operators of the form I−AI - A (4A.1 Banach Spaces and Bounded Operators), a key step in proving that equations like Ricci flow have solutions at all (11A.4 Short-Time Existence and Uniqueness).

By the end of this chapter you will be able to:

  • decide whether a series converges, using the Cauchy criterion, comparison and limit comparison, condensation, and the root, ratio and alternating series tests, and choose which test to try first;
  • explain why ∑1/n\sum 1/n diverges while ∑1/n2\sum 1/n^2 converges;
  • use the geometric series as a sum and as an inverse;
  • explain absolute and conditional convergence, and what rearrangement does to each;
  • apply these to real problems: book stacking, drug dosing, and why the order of summation matters on a computer.

Finite sums

For real numbers am,…,ana_m, \dots, a_n, the sum ∑i=mnai\sum_{i=m}^n a_i is defined by recursion (2A.1 The Natural Numbers): it is 00 if n<mn < m, and ∑i=mn+1ai=(∑i=mnai)+an+1\sum_{i=m}^{n+1} a_i = \big(\sum_{i=m}^n a_i\big) + a_{n+1}. The familiar properties are proved by induction on the number of terms: sums split, ∑i=mnai+∑i=n+1pai=∑i=mpai\sum_{i=m}^{n} a_i + \sum_{i=n+1}^{p} a_i = \sum_{i=m}^{p} a_i; they are linear, ∑(ai+bi)=∑ai+∑bi\sum (a_i + b_i) = \sum a_i + \sum b_i and ∑c ai=c∑ai\sum c\,a_i = c\sum a_i; they preserve inequalities; and the triangle inequality extends, ∣∑ai∣≤∑∣ai∣\big|\sum a_i\big| \leq \sum |a_i|.

Two further facts about finite sums are less obvious than they look, and both fail for infinite sums in general.

  • Order doesn't matter. For a finite set XX and a function f:X→Rf : X \to \mathbb{R}, the sum ∑x∈Xf(x)\sum_{x \in X} f(x) can be computed by listing XX in any order, and every order gives the same answer. Tao proves this carefully by induction on the size of XX.
  • Double sums can be swapped. ∑i=1n∑j=1maij=∑j=1m∑i=1naij\sum_{i=1}^n \sum_{j=1}^m a_{ij} = \sum_{j=1}^m \sum_{i=1}^n a_{ij}: summing a finite table by rows or by columns gives the same total.

As a model of how the finite properties are proved, here is the triangle inequality for sums. Induct on n≥m−1n \geq m - 1. For n=m−1n = m - 1 both sides are 00. If ∣∑i=mnai∣≤∑i=mn∣ai∣\big|\sum_{i=m}^n a_i\big| \leq \sum_{i=m}^n |a_i|, then

∣∑i=mn+1ai∣=∣∑i=mnai+an+1∣≤∣∑i=mnai∣+∣an+1∣≤∑i=mn+1∣ai∣,\Big|\sum_{i=m}^{n+1} a_i\Big| = \Big|\sum_{i=m}^{n} a_i + a_{n+1}\Big| \leq \Big|\sum_{i=m}^{n} a_i\Big| + |a_{n+1}| \leq \sum_{i=m}^{n+1} |a_i|,

by the two-term triangle inequality (2A.3 Integers and Rationals) and the hypothesis. The others are the same kind of induction.

One more manipulation is used constantly: shifting the index. ∑i=mnai=∑j=m+kn+kaj−k\sum_{i=m}^n a_i = \sum_{j=m+k}^{n+k} a_{j-k}, for any integer kk: substitute j=i+kj = i + k. For example ∑n=1N1n=∑n=0N−11n+1\sum_{n=1}^{N} \frac{1}{n} = \sum_{n=0}^{N-1}\frac{1}{n+1}. Most telescoping and comparison arguments begin with a shift.

Infinite series

Definition 7.1 Convergent series

A series ∑n=0∞an\sum_{n=0}^\infty a_n converges to SS if its partial sums SN=∑n=0NanS_N = \sum_{n=0}^N a_n converge to SS. Then SS is the sum of the series. Otherwise the series diverges.

What the definition does and doesn't allow

The definition is a reduction: a series is nothing but the sequence of its partial sums, and every question about the series is a question about that sequence. It is worth seeing at once both what this buys and what it forbids.

What it buys is that some series can be summed exactly, by finding a closed form for the partial sums and taking the limit. The cleanest case is a telescoping series.

Example 7.2 A telescoping series

Find ∑n=1∞1n(n+1)\sum_{n=1}^\infty \frac{1}{n(n + 1)}.

The trick is to split each term into a difference: 1n(n+1)=1n−1n+1\frac{1}{n(n + 1)} = \frac1n - \frac{1}{n + 1} (check by putting the right side over a common denominator). Then the partial sums collapse, every term cancelling with part of the next:

SN=(1−12)+(12−13)+⋯+(1N−1N+1)=1−1N+1.S_N = \Big(1 - \frac12\Big) + \Big(\frac12 - \frac13\Big) + \cdots + \Big(\frac1N - \frac{1}{N + 1}\Big) = 1 - \frac{1}{N + 1}.

So SN→1S_N \to 1, and the sum is 11. In general, if an=bn−bn+1a_n = b_n - b_{n+1}, then ∑n=0Nan=b0−bN+1\sum_{n=0}^N a_n = b_0 - b_{N+1}, and the series converges exactly when (bn)(b_n) does, with sum b0−lim⁡bnb_0 - \lim b_n. Telescoping is to series what the fundamental theorem of calculus is to integrals (2A.11 The Riemann Integral): a sum of differences is a difference of endpoints.

What the definition forbids is treating a series as if it were already a number before you know that it converges. The classic cautionary tale is Grandi's series 1−1+1−1+⋯1 - 1 + 1 - 1 + \cdots. Its partial sums are 1,0,1,0,…1, 0, 1, 0, \dots, which do not converge, so it has no sum. Yet "algebra" seems to give one: if S=1−1+1−⋯S = 1 - 1 + 1 - \cdots, then S=1−(1−1+1−⋯ )=1−SS = 1 - (1 - 1 + 1 - \cdots) = 1 - S, so S=12S = \frac12. And grouping as (1−1)+(1−1)+⋯(1 - 1) + (1 - 1) + \cdots gives 00, while 1+(−1+1)+(−1+1)+⋯1 + (-1 + 1) + (-1 + 1) + \cdots gives 11. Each manipulation silently assumed that the series converges, and each inherits the falsehood of that assumption. Mathematicians of the eighteenth century argued about such sums in earnest; the definition above, which makes the question "what is the limit of the partial sums?", is what settled the matter.

Grouping is safe; ungrouping is not. Inserting brackets into a convergent series, without reordering, does not change its sum: the partial sums of the bracketed series are a subsequence of the original partial sums, and subsequences of a convergent sequence have the same limit (2A.6 Sequences). Grandi's series shows that the converse fails: the bracketed series (1−1)+(1−1)+⋯(1 - 1) + (1 - 1) + \cdots converges, to 00, while the series without brackets diverges. Oresme's proof below brackets the harmonic series, which is legitimate because brackets can only show divergence of non-negative series more clearly, never create it.

Applying the Cauchy criterion (2A.6 Sequences) to the partial sums gives a test that never mentions the sum.

Proposition 7.3 Cauchy criterion for series

∑an\sum a_n converges if and only if for every ε>0\varepsilon > 0 there is NN such that ∣∑n=pqan∣≤ε\big|\sum_{n=p}^q a_n\big| \leq \varepsilon for all q≥p≥Nq \geq p \geq N.

Proof. Write SNS_N for the partial sums. For q≥p≥1q \geq p \geq 1, ∑n=pqan=Sq−Sp−1\sum_{n=p}^q a_n = S_q - S_{p-1}. The series converges if and only if (SN)(S_N) converges, which by completeness of R\mathbb{R} (2A.6 Sequences) happens if and only if (SN)(S_N) is Cauchy: for every ε\varepsilon there is NN with ∣Sq−Sp−1∣≤ε|S_q - S_{p-1}| \leq \varepsilon whenever q,p−1≥Nq, p - 1 \geq N. Replacing NN by N+1N + 1 to absorb the shift by one, that is the statement.

In words: blocks of terms far out in the series must add up to almost nothing. Taking p=qp = q gives a necessary condition.

Corollary 7.4 Zero test

If ∑an\sum a_n converges, then an→0a_n \to 0.

Proof. Take p=q=np = q = n in Proposition 7.3: for every ε\varepsilon, ∣an∣≤ε|a_n| \leq \varepsilon once n≥Nn \geq N.

The zero test is the first thing to check, because it is quick and its failure settles the question: ∑nn+1\sum \frac{n}{n+1} diverges, because the terms tend to 11, not 00. But when the terms do tend to zero, the test says nothing, as the next theorem shows.

Two basic facts about convergent series follow directly from the limit laws applied to partial sums. Series are linear: if ∑an=A\sum a_n = A and ∑bn=B\sum b_n = B, then ∑(an+bn)=A+B\sum (a_n + b_n) = A + B and ∑c an=cA\sum c\,a_n = cA. Only the tail matters for convergence: changing, adding or removing finitely many terms doesn't affect whether a series converges (it changes every later partial sum by the same constant), though of course it changes the sum. So "∑an\sum a_n converges" may be checked on ∑n≥Nan\sum_{n \geq N} a_n for any convenient NN, and tests that need a hypothesis "for all nn" need it only for all large nn.

The converse is false, and the standard example is the most important divergent series in mathematics.

Theorem 7.5 The harmonic series diverges

∑n=1∞1n=1+12+13+⋯\sum_{n=1}^\infty \frac1n = 1 + \frac12 + \frac13 + \cdots diverges: its partial sums grow without bound.

Proof (Grouping, after Oresme). Group the terms in blocks that double in length:

1+12+(13+14)+(15+⋯+18)+(19+⋯+116)+⋯1 + \tfrac12 + \Big(\tfrac13 + \tfrac14\Big) + \Big(\tfrac15 + \cdots + \tfrac18\Big) + \Big(\tfrac19 + \cdots + \tfrac1{16}\Big) + \cdots

Each block from 12k+1\tfrac{1}{2^k + 1} to 12k+1\tfrac{1}{2^{k+1}} has 2k2^k terms, each at least 12k+1\tfrac{1}{2^{k+1}}, so the block sums to at least 12\tfrac12. After kk blocks the partial sum S2kS_{2^k} is at least 1+k21 + \tfrac{k}{2}, which is unbounded.

This argument is due to Nicole Oresme, writing around 1350. It shows something quantitative: the partial sum Hn=1+12+⋯+1nH_n = 1 + \tfrac12 + \cdots + \tfrac1n grows like log⁡2n/2\log_2 n / 2 at least. In fact HnH_n grows like the natural logarithm, Hn≈ln⁡n+0.5772H_n \approx \ln n + 0.5772; the constant 0.5772…0.5772\ldots is the Euler–Mascheroni constant (2A.11 The Riemann Integral). So the growth is extremely slow. You need about 12,36712{,}367 terms to pass 1010, and more than 104310^{43} to pass 100100.

The same idea can be read through the Cauchy criterion, and that reading is the one that generalises. The block of terms from n+1n + 1 to 2n2n has nn terms, each at least 12n\frac{1}{2n}, so

H2n−Hn=1n+1+⋯+12n≥n⋅12n=12.H_{2n} - H_n = \frac{1}{n + 1} + \cdots + \frac{1}{2n} \geq n\cdot\frac{1}{2n} = \frac12.

However far out you go, the next block of the same length as everything so far adds at least 12\frac12. This is exactly the negation of the Cauchy criterion with ε=12\varepsilon = \frac12, p=n+1p = n + 1 and q=2nq = 2n (2A.5 Quantifiers and the Shape of a Proof). The terms are small, but there are so many of them in each block that their total does not shrink.

That is the real lesson of the harmonic series. Whether a series converges depends on the balance between how small the terms are and how many of them there are. 1n\frac1n is small, but the number of terms between nn and 2n2n grows exactly fast enough to compensate. 1n2\frac{1}{n^2} shrinks faster: the block from n+1n + 1 to 2n2n adds at most n⋅1n2=1nn\cdot\frac{1}{n^2} = \frac1n, which does tend to zero, and the blocks of doubling length add at most 1,12,14,…1, \frac12, \frac14, \dots, a convergent geometric series. Cauchy condensation, below, turns this observation into a theorem.

Figure 7.1. Oresme's grouping. Each coloured block has twice as many terms as the last, each term at least half the size of the block's first term, so every block adds at least 12\tfrac12. Infinitely many blocks give an infinite sum, even though the terms shrink to zero.
In the world Model How far can a stack of books lean?

Stack nn identical books, each of length 11, on the edge of a table, one book per level, and push the top ones outward as far as balance allows. The best you can do in this way places the top book so that it overhangs the one below by 12\tfrac12, that one overhangs the next by 14\tfrac14, then 16\tfrac16, and so on. The kk-th book from the top overhangs the one beneath it by 12k\tfrac{1}{2k}, because the centre of mass of the top kk books must sit exactly over the edge of the book below. The total overhang is

12+14+16+⋯+12n=12Hn.\frac12 + \frac14 + \frac16 + \cdots + \frac{1}{2n} = \frac12 H_n.

Because the harmonic series diverges, the overhang can be made as large as you like: with enough books, the top one can hang out arbitrarily far beyond the table. But slowly. One book gives 12\tfrac12 a length, four books just over one length (12H4≈1.04\tfrac12 H_4 \approx 1.04), and it takes 3131 books to exceed two lengths. You can try this with a stack of identical books or playing cards.

The "harmonic stack" is not the best possible way to use nn blocks, though. If more than one block may sit on each level, as counterweights, the overhang can grow like n1/3n^{1/3} instead of log⁡n\log n, as Mike Paterson and Uri Zwick showed in "Overhang" (American Mathematical Monthly, 2009).

Figure 7.2. The harmonic stack of 88 books, drawn to scale. The overhang of each book over the one below is 12,14,16,…,116\tfrac12, \tfrac14, \tfrac16, \dots, \tfrac1{16}, and the top book ends 12H8≈1.36\tfrac12 H_8 \approx 1.36 book-lengths beyond the table.

The geometric series

Proposition 7.6 Geometric series

For real xx, the series ∑n=0∞xn\sum_{n=0}^\infty x^n converges if ∣x∣<1|x| < 1, with sum 11−x\dfrac{1}{1 - x}, and diverges if ∣x∣≥1|x| \geq 1.

Proof. For x≠1x \neq 1, the partial sums satisfy (1−x)SN=1−xN+1(1 - x)S_N = 1 - x^{N+1} (multiply out; everything else cancels), so SN=1−xN+11−xS_N = \frac{1 - x^{N+1}}{1 - x}. If ∣x∣<1|x| < 1 then xN+1→0x^{N+1} \to 0 (2A.6 Sequences), giving the sum. If ∣x∣≥1|x| \geq 1 the terms don't tend to 00, so the series diverges by the zero test.

The formula 1+x+x2+⋯=11−x1 + x + x^2 + \cdots = \frac{1}{1-x} has two lives. Read left to right, it evaluates a sum. Read right to left, it inverts something: it writes (1−x)−1(1 - x)^{-1} as a series. That second reading generalises far beyond numbers. In 4A.1 Banach Spaces and Bounded Operators the same series, with xx replaced by a linear operator AA of size less than 11, gives the inverse (I−A)−1=I+A+A2+⋯(I - A)^{-1} = I + A + A^2 + \cdots (the Neumann series). This is how one shows that equations close to a solvable one are themselves solvable, an idea at the heart of short-time existence for Ricci flow (11A.4 Short-Time Existence and Uniqueness).

In the world Model Repeated doses reach a steady state

A patient takes a dose DD of a drug at regular intervals τ\tau. Between doses the body eliminates a fixed fraction, so a fraction rr of the drug present remains when the next dose is taken. For first-order elimination with half-life t1/2t_{1/2}, r=(12)τ/t1/2r = (\tfrac12)^{\tau / t_{1/2}}. Just after the nn-th dose the amount in the body is

D+rD+r2D+⋯+rn−1D=D 1−rn1−r,D + rD + r^2 D + \cdots + r^{n-1} D = D\,\frac{1 - r^n}{1 - r},

which rises towards the steady-state peak D1−r\dfrac{D}{1 - r}. The factor 11−r\dfrac{1}{1 - r} is what pharmacologists call the accumulation ratio. If the dosing interval equals the half-life, r=12r = \tfrac12 and the drug accumulates to twice the single-dose level. Each step closes half the remaining gap, so after five doses the level is within about 3%3\% of steady state. That is the origin of the clinical rule of thumb that a drug takes about four to five half-lives to reach steady state.

Figure 7.3. Repeated dosing with the dosing interval equal to the half-life. The peaks are partial sums of the geometric series 1+12+14+⋯1 + \tfrac12 + \tfrac14 + \cdots, rising towards 22, twice a single dose.
Example 7.7 Using the geometric series

(a) A shifted, scaled series. ∑n=2∞34n=316∑m=0∞14m=316⋅11−14=14\sum_{n=2}^\infty \frac{3}{4^n} = \frac{3}{16}\sum_{m=0}^\infty \frac{1}{4^m} = \frac{3}{16}\cdot\frac{1}{1 - \frac14} = \frac14, shifting the index by m=n−2m = n - 2 and using linearity. The general rule: a geometric series sums to first term1−ratio\dfrac{\text{first term}}{1 - \text{ratio}}.

(b) Repeating decimals. 0.272727…=27100+271002+⋯=27/1001−1/100=2799=3110.272727\ldots = \frac{27}{100} + \frac{27}{100^2} + \cdots = \frac{27/100}{1 - 1/100} = \frac{27}{99} = \frac{3}{11}. Every repeating decimal is a geometric series, which is why repeating decimals are exactly the rationals (Exercise 7.31). And 0.999…=9/101−1/10=10.999\ldots = \frac{9/10}{1 - 1/10} = 1, once more (2A.4 The Real Numbers).

(c) An estimate for a tail. If ∣an∣≤Crn|a_n| \leq C r^n with 0≤r<10 \leq r < 1, then the tail after NN satisfies ∣∑n>Nan∣≤∑n>NCrn=CrN+11−r\big|\sum_{n > N} a_n\big| \leq \sum_{n > N} C r^n = \frac{C r^{N+1}}{1 - r}. This is how the error of a truncated series is controlled: in 2B.2 Completeness and Contraction the same bound measures how far the NN-th step of an iteration is from its limit.

Series of non-negative terms

If every an≥0a_n \geq 0, the partial sums increase, so by monotone convergence (2A.6 Sequences) the series converges exactly when its partial sums are bounded. Otherwise it diverges to +∞+\infty. This makes non-negative series much easier to handle, and gives two powerful tests.

Proposition 7.8 Comparison test

If 0≤an≤bn0 \leq a_n \leq b_n for all nn and ∑bn\sum b_n converges, then ∑an\sum a_n converges, and ∑an≤∑bn\sum a_n \leq \sum b_n. Equivalently, if ∑an\sum a_n diverges, so does ∑bn\sum b_n.

Proof. The partial sums of ∑an\sum a_n increase and are bounded by ∑n≤Nbn≤∑n=0∞bn\sum_{n \leq N} b_n \leq \sum_{n=0}^\infty b_n. By monotone convergence they converge, and the limit satisfies the same bound (2A.6 Sequences, limit laws part 4). The second statement is the contrapositive.

In practice the terms you are given are rarely exactly smaller than a known series term by term, but they often behave like one. The next test makes that precise.

Proposition 7.9 Limit comparison test

Let an≥0a_n \geq 0 and bn>0b_n > 0, and suppose an/bn→ca_n / b_n \to c with 0<c<∞0 < c < \infty. Then ∑an\sum a_n and ∑bn\sum b_n either both converge or both diverge.

Proof. Apply the definition of an/bn→ca_n/b_n \to c with ε=c/2\varepsilon = c/2: for n≥Nn \geq N, c2≤anbn≤3c2\frac c2 \leq \frac{a_n}{b_n} \leq \frac{3c}{2}, that is, c2bn≤an≤3c2bn\frac c2 b_n \leq a_n \leq \frac{3c}{2} b_n. If ∑bn\sum b_n converges, so does ∑3c2bn\sum \frac{3c}{2}b_n, and comparison (on the tail from NN) gives convergence of ∑an\sum a_n. If ∑bn\sum b_n diverges, so does ∑c2bn\sum \frac c2 b_n, and comparison gives divergence of ∑an\sum a_n.

Example 7.10 Comparing with the dominant term

Does ∑n≥1n+1n3+2\sum_{n \geq 1} \frac{n + 1}{n^3 + 2} converge? For large nn the numerator behaves like nn and the denominator like n3n^3, so the term behaves like nn3=1n2\frac{n}{n^3} = \frac1{n^2}. To make this a proof, take bn=1/n2b_n = 1/n^2:

anbn=n2(n+1)n3+2=1+1/n1+2/n3→1.\frac{a_n}{b_n} = \frac{n^2(n+1)}{n^3 + 2} = \frac{1 + 1/n}{1 + 2/n^3} \to 1.

Since ∑1/n2\sum 1/n^2 converges (Corollary 7.12), so does the given series. By the same reasoning ∑n+1n2+2\sum \frac{n+1}{n^2 + 2} diverges, because its terms behave like 1n\frac1n.

Theorem 7.11 Cauchy condensation

If (an)(a_n) is non-negative and decreasing, then ∑n=1∞an\sum_{n=1}^\infty a_n converges if and only if ∑k=0∞2ka2k\sum_{k=0}^\infty 2^k a_{2^k} converges.

Proof. Group the terms in blocks [2k,2k+1)[2^k, 2^{k+1}), as in Oresme's argument. Since (an)(a_n) decreases, the block's 2k2^k terms are each between a2k+1a_{2^{k+1}} and a2ka_{2^k}. So

∑k2ka2k+1≤∑nan≤∑k2ka2k,\sum_{k} 2^k a_{2^{k+1}} \leq \sum_n a_n \leq \sum_k 2^k a_{2^k},

and the left side is half of ∑k2k+1a2k+1\sum_k 2^{k+1} a_{2^{k+1}}. The series converge or diverge together.

In terms of partial sums, which is what the argument really uses: let SN=∑n=1NanS_N = \sum_{n=1}^N a_n and TK=∑k=0K2ka2kT_K = \sum_{k=0}^K 2^k a_{2^k}. Summing the block estimates over the first K+1K + 1 blocks gives

12(TK+1−a1)≤S2K+1−1≤TK.\tfrac12\big(T_{K+1} - a_1\big) \leq S_{2^{K+1} - 1} \leq T_K.

Both sequences of partial sums increase. If (TK)(T_K) is bounded, the right inequality bounds SNS_N for NN of the form 2K+1−12^{K+1} - 1, and hence for all NN (any NN is below some such number, and SNS_N increases). If (SN)(S_N) is bounded, the left inequality bounds (TK)(T_K). A non-negative series converges exactly when its partial sums are bounded, so the two series converge or diverge together.

Corollary 7.12 The p-series

For rational (indeed real) pp, ∑n=1∞1np\sum_{n=1}^\infty \frac{1}{n^p} converges if and only if p>1p > 1.

Proof. Condensation turns it into ∑k2k⋅2−kp=∑k(21−p)k\sum_k 2^k \cdot 2^{-kp} = \sum_k (2^{1-p})^k, a geometric series, which converges exactly when 21−p<12^{1-p} < 1, that is, p>1p > 1.

So ∑1/n2\sum 1/n^2 converges. Euler found its sum in 1734: π26≈1.6449\frac{\pi^2}{6} \approx 1.6449. The dividing line between convergence and divergence sits exactly at p=1p = 1. The dimension-counting arguments of later courses produce exactly this kind of sharp threshold: whether an integral like ∫∣x∣−p dx\int |x|^{-p}\,dx is finite near 00 depends on pp compared with the dimension, which decides when Sobolev functions are continuous (4A.11 Sobolev Embeddings and Critical Exponents) and when a singularity is integrable.

Figure 7.4. Partial sums of ∑1/n\sum 1/n (climbing like ln⁡n\ln n, without limit) and ∑1/n2\sum 1/n^2 (levelling off at π2/6\pi^2/6). On a logarithmic axis, the harmonic sums grow along a straight line: divergence can be very slow.

Why the threshold is at p = 1

Condensation proves the threshold; a picture explains it. Draw the graph of y=1xpy = \frac{1}{x^p} for x≥1x \geq 1, and above each interval [n,n+1][n, n + 1] a rectangle of height 1np\frac{1}{n^p}. The rectangles have total area ∑1np\sum\frac{1}{n^p}, and they contain the region under the curve; shifted one step to the left, they fit under it. So the series converges exactly when the area under 1xp\frac{1}{x^p} from 11 to ∞\infty is finite. That area is ∫1∞x−p dx\int_1^\infty x^{-p}\,dx, which is 1p−1\frac{1}{p - 1} for p>1p > 1 and infinite for p≤1p \leq 1, because x1−px^{1-p} grows without bound when p<1p < 1 and ln⁡x\ln x does when p=1p = 1. This is the integral test, proved in 2A.11 The Riemann Integral once the integral is defined. It explains why the dividing line is p=1p = 1: that is where the antiderivative of x−px^{-p} switches from a power that decays to one that grows, with the logarithm on the boundary.

How fast does a convergent series converge?

Knowing that a series converges is often not enough; you want to know how many terms give the sum to a given accuracy. For non-negative terms that means bounding the tail ∑n>Nan\sum_{n > N}a_n, and telescoping comparisons often do it exactly.

Example 7.13 The tail of ∑1/n2\sum 1/n^2

For n≥2n \geq 2, 1n(n+1)<1n2<1(n−1)n\frac{1}{n(n + 1)} < \frac{1}{n^2} < \frac{1}{(n - 1)n}, and both outer terms telescope (Example 7.2): 1n(n+1)=1n−1n+1\frac{1}{n(n + 1)} = \frac1n - \frac{1}{n + 1} and 1(n−1)n=1n−1−1n\frac{1}{(n - 1)n} = \frac{1}{n - 1} - \frac1n. Summing from n=N+1n = N + 1 to infinity,

1N+1<∑n>N1n2<1N.\frac{1}{N + 1} < \sum_{n > N}\frac{1}{n^2} < \frac1N.

So after NN terms the error is almost exactly 1N\frac1N. To get π26\frac{\pi^2}{6} to six decimal places by adding terms you need about a million of them. That is slow, and it is typical of series whose terms decay like a power of nn: the tail after NN terms of ∑1np\sum\frac{1}{n^p} is about 1(p−1)Np−1\frac{1}{(p - 1)N^{p-1}}, the area under the curve beyond NN. Compare a geometric series, where the tail after NN terms is a constant times rNr^N (Example 7.7): each extra term gains a fixed number of correct digits. The difference between power decay and geometric decay of the error runs through all of numerical analysis.

Absolute and conditional convergence

Definition 7.14 Absolute convergence

∑an\sum a_n is absolutely convergent if ∑∣an∣\sum |a_n| converges. A series that converges but not absolutely is conditionally convergent.

Proposition 7.15 Absolute convergence implies convergence

If ∑∣an∣\sum |a_n| converges, then ∑an\sum a_n converges, and ∣∑an∣≤∑∣an∣\big|\sum a_n\big| \leq \sum |a_n|.

Proof. By the triangle inequality, ∣∑n=pqan∣≤∑n=pq∣an∣\big|\sum_{n=p}^q a_n\big| \leq \sum_{n=p}^q |a_n|, and the right side is small for large pp by the Cauchy criterion applied to ∑∣an∣\sum |a_n|. So ∑an\sum a_n satisfies the Cauchy criterion too.

The two kinds of convergence have different causes. An absolutely convergent series converges because its terms are small enough: even with every sign made positive, the total stays finite. A conditionally convergent series converges only because of cancellation: its positive terms alone add up to +∞+\infty and its negative terms alone to −∞-\infty (Exercise 7.27), and the series converges only because the two infinite totals are fed in alternately, in balance. The first kind is robust; the second is a balancing act, and the rest of this chapter shows how easily it is upset.

A useful way to see the split is through the positive and negative parts of the terms, an+=max⁡(an,0)a_n^+ = \max(a_n, 0) and an−=max⁡(−an,0)a_n^- = \max(-a_n, 0), so that an=an+−an−a_n = a_n^+ - a_n^- and ∣an∣=an++an−|a_n| = a_n^+ + a_n^-. If ∑∣an∣\sum|a_n| converges, then so do ∑an+\sum a_n^+ and ∑an−\sum a_n^- (by comparison), and ∑an=∑an+−∑an−\sum a_n = \sum a_n^+ - \sum a_n^-, a difference of two finite numbers. If ∑an\sum a_n converges but ∑∣an∣\sum|a_n| does not, then both ∑an+\sum a_n^+ and ∑an−\sum a_n^- are infinite. There is no third possibility for a convergent series. The Lebesgue integral of 3A.3 The Lebesgue Integral is built on the same split: a function is integrable when the integrals of its positive and negative parts are both finite, the analogue of absolute convergence, and conditionally convergent integrals are deliberately left out.

Conditionally convergent series exist. The simplest test produces them.

Proposition 7.16 Alternating series test

If (an)(a_n) is non-negative and decreases to 00, then ∑n=0∞(−1)nan\sum_{n=0}^\infty (-1)^n a_n converges. Moreover, the sum lies between any two consecutive partial sums.

Proof. The even partial sums S0,S2,S4,…S_0, S_2, S_4, \dots decrease (each step adds −a2k+1+a2k+2≤0-a_{2k+1} + a_{2k+2} \leq 0), the odd ones increase, and every odd partial sum is below every even one. Both converge by monotone convergence, and their difference a2k+1a_{2k+1} tends to 00, so they have the same limit.

So 1−12+13−14+⋯1 - \tfrac12 + \tfrac13 - \tfrac14 + \cdots converges. Its sum is ln⁡2≈0.6931\ln 2 \approx 0.6931 (2B.6 Power Series, Exponentials and Bump Functions). But it is only conditionally convergent: the absolute values form the harmonic series. The difference turns out to matter enormously.

The last sentence of Proposition 7.16 is a free error estimate: since the sum SS lies between SNS_N and SN+1S_{N+1}, which differ by aN+1a_{N+1},

∣S−SN∣≤aN+1.|S - S_N| \leq a_{N+1}.

The error after stopping is at most the first term left out. For the alternating harmonic series, the partial sum S999S_{999} (the first 10001000 terms, 1−12+⋯−110001 - \frac12 + \cdots - \frac{1}{1000}) is within 11001<0.001\frac{1}{1001} < 0.001 of ln⁡2\ln 2. Convergence that slow is typical of conditionally convergent series, and is one reason they are avoided in computation.

Careful The alternating test needs the terms to decrease

"Alternating signs and terms tending to zero" is not enough. The series 1−12+12−14+13−18+14−116+⋯1 - \frac{1}{2} + \frac{1}{2} - \frac14 + \frac13 - \frac18 + \frac14 - \frac1{16} + \cdots, whose positive terms are 1k\frac1k and negative terms are 12k\frac1{2^k}, alternates and has terms tending to 00, but diverges: its partial sums after each pair are ∑k≤K(1k−12k)≥HK−1\sum_{k \leq K}\big(\frac1k - \frac{1}{2^k}\big) \geq H_K - 1, which is unbounded. The proof of Proposition 7.16 used the decrease in every step.

Rearrangements

A rearrangement of ∑an\sum a_n is a series ∑af(n)\sum a_{f(n)}, where f:N→Nf : \mathbb{N} \to \mathbb{N} is a bijection: the same terms, each used exactly once, in a different order. For finite sums, order never matters. For infinite ones, it depends on the kind of convergence.

Theorem 7.17 Absolutely convergent series can be rearranged

If ∑an\sum a_n converges absolutely, then every rearrangement converges absolutely, to the same sum.

Proof. Let S=∑anS = \sum a_n and ε>0\varepsilon > 0. Choose NN with ∑n>N∣an∣≤ε\sum_{n > N} |a_n| \leq \varepsilon. The bijection ff hits each of 0,…,N0, \dots, N somewhere, so there is MM such that f(0),…,f(M)f(0), \dots, f(M) include all of 0,…,N0, \dots, N. For K≥MK \geq M, the partial sum ∑m=0Kaf(m)\sum_{m=0}^K a_{f(m)} contains every term a0,…,aNa_0, \dots, a_N, plus some terms with index beyond NN. So it differs from ∑n=0Nan\sum_{n=0}^N a_n by at most ∑n>N∣an∣≤ε\sum_{n > N}|a_n| \leq \varepsilon, while ∑n=0Nan\sum_{n=0}^N a_n differs from SS by at most ε\varepsilon too. Hence the rearranged partial sums are within 2ε2\varepsilon of SS from MM on.

The proof shows why absolute convergence protects the sum: all but a tail of total size ε\varepsilon is contained in finitely many terms, and a finite set of terms is eventually included, whatever the order. The order can only affect the tail, and the tail is negligible.

For conditionally convergent series the situation is the opposite, and startling. Before the general theorem, here is a rearrangement you can compute by hand.

Example 7.18 Rearranging the alternating harmonic series to half its sum

Write the terms of 1−12+13−14+⋯=ln⁡21 - \frac12 + \frac13 - \frac14 + \cdots = \ln2 in a new order: one positive term, then two negative terms, repeating, each list in its original order:

1−12−14+13−16−18+15−110−112+⋯1 - \frac12 - \frac14 + \frac13 - \frac16 - \frac18 + \frac15 - \frac1{10} - \frac1{12} + \cdots

Every term is used exactly once: the positive terms 12k−1\frac{1}{2k - 1} appear one per group, and the negative terms 12m\frac{1}{2m} two per group, 14k−2\frac{1}{4k - 2} and 14k\frac{1}{4k} in the kk-th group. Now group in threes. In the kk-th group the first two terms combine:

12k−1−14k−2−14k=14k−2−14k=12(12k−1−12k).\frac{1}{2k - 1} - \frac{1}{4k - 2} - \frac{1}{4k} = \frac{1}{4k - 2} - \frac{1}{4k} = \frac12\Big(\frac{1}{2k - 1} - \frac{1}{2k}\Big).

So the sum of the first kk groups is half the partial sum S2kS_{2k} of the original series, which tends to 12ln⁡2\frac12\ln2. Since the terms tend to 00, the partial sums that end inside a group differ from these by at most two terms, so the whole rearranged series converges to 12ln⁡2\frac12\ln2. The same numbers, added in a different order, give half the answer.

Notice what changed: the rearrangement uses negative terms twice as fast as positive ones. Over the first 3k3k terms it has used kk positive terms and 2k2k negative ones, so it has drawn more heavily on the negative infinite total. That is the whole mechanism of the next theorem.

Theorem 7.19 Riemann's rearrangement theorem

If ∑an\sum a_n converges conditionally, then for every real number LL there is a rearrangement that converges to LL. There are also rearrangements that diverge to +∞+\infty or to −∞-\infty.

Proof. Split the terms into the non-negative ones and the negative ones, each list kept in its original order. Because the series converges but not absolutely, the non-negative terms alone sum to +∞+\infty and the negative terms alone to −∞-\infty (Exercise 7.27), while all the terms tend to 00 (zero test). If there are only finitely many terms of one sign, the series would converge absolutely (from some point all terms would have one sign), so both lists are infinite.

The construction. Build the rearrangement greedily. Take non-negative terms, in order, until the running total first exceeds LL. Then take negative terms, in order, until it first drops below LL. Then non-negative terms until it exceeds LL again, and so on.

It never gets stuck. At each stage the unused terms of the required sign still sum to ±∞\pm\infty (removing finitely many terms from a divergent non-negative series leaves it divergent), so the running total does eventually cross LL.

It is a rearrangement. Each stage uses at least one term from its list, and the stages alternate forever, so every term of each list is eventually used, each exactly once.

It converges to LL. At the moment the total first crosses LL, it overshoots by at most the size of the last term added. Between crossings, the total moves monotonically from one side of LL to the other, so it stays within the overshoot of the previous crossing and that of the next one. Since the terms tend to 00, and the stages use later and later terms, these overshoots tend to 00, and so does the distance of the running total from LL.

For a rearrangement diverging to +∞+\infty, replace the target LL at the kk-th stage by kk, and take only one negative term per stage.

The theorem is due to Bernhard Riemann, in his 1854 habilitation thesis on trigonometric series, which was published after his death. The practical moral is that a conditionally convergent sum is fragile: its value depends on the order in which its terms are added, and any manipulation that reorders terms must be justified by absolute convergence.

Figure 7.5. The same terms 1,−12,13,−14,…1, -\tfrac12, \tfrac13, -\tfrac14, \dots in two orders. In the usual order the sum is ln⁡2\ln 2. Taking positive terms until the total passes 1.51.5, then negative ones until it drops below, and repeating, the same terms sum to 1.51.5.
In the world Data The order of summation on a computer

Floating-point addition rounds every result (2A.4 The Real Numbers), and that makes the order of summation matter even for finite sums. A striking example: add the harmonic series in single-precision arithmetic (24-bit significand), one term at a time, in the natural order. The running total stops changing at n=2,097,152=221n = 2{,}097{,}152 = 2^{21}, stuck at 15.403715.4037. From then on each new term 1/n1/n is less than half the gap between representable numbers near 15.415.4, so adding it changes nothing. The true value of H221H_{2^{21}} is about 15.133315.1333. So the computed total is not only stuck, it is already wrong in the first decimal place, because the rounding errors of the earlier additions have accumulated. (These numbers come from running the summation exactly as described.)

The fix, published by William Kahan in 1965, is compensated summation. Alongside the running total, keep a second variable that records the low-order bits lost in each addition, and feed them back into the next one. Run in the same single-precision arithmetic, Kahan's method gives 15.1333115.13331, correct to about seven significant figures. Compensated and related summation methods are used in numerical libraries for exactly this reason.

Sums over a table

Rearrangement is one way that order enters an infinite sum. The other is a double series: an infinite table of numbers aija_{ij} (i,j≥0i, j \geq 0), which can be summed row by row, ∑i(∑jaij)\sum_i\big(\sum_ja_{ij}\big), or column by column, ∑j(∑iaij)\sum_j\big(\sum_ia_{ij}\big). For a finite table the two always agree. For an infinite one they can differ (Exercise 7.30 builds a table, with entries 11 on the diagonal and −1-1 just above it, whose row sums total 00 and whose column sums total 11). But for non-negative terms nothing can go wrong, and the reason is worth seeing, because it is the same reason absolutely convergent series can be rearranged.

Proposition 7.20 Non-negative double series can be summed in either order

Let aij≥0a_{ij} \geq 0 for all i,j≥0i, j \geq 0. Then

∑i=0∞∑j=0∞aij=∑j=0∞∑i=0∞aij,\sum_{i=0}^\infty\sum_{j=0}^\infty a_{ij} = \sum_{j=0}^\infty\sum_{i=0}^\infty a_{ij},

as elements of [0,+∞][0, +\infty]: if either side is finite, so is the other, and they are equal. Both equal S=sup⁡F∑(i,j)∈FaijS = \sup_F\sum_{(i,j) \in F}a_{ij}, the supremum over all finite sets FF of positions.

Proof. We show that the row-by-row sum equals SS; the column-by-column sum is the same with the roles of ii and jj exchanged. Write ri=∑jaijr_i = \sum_ja_{ij} for the row sums, in [0,+∞][0, +\infty].

Every finite sum is at most the row-by-row sum. A finite set FF of positions lies inside some box {0,…,I}×{0,…,J}\{0, \dots, I\}\times\{0, \dots, J\}, and since the terms are non-negative, ∑Faij≤∑i≤I∑j≤Jaij≤∑i≤Iri≤∑iri\sum_Fa_{ij} \leq \sum_{i \leq I}\sum_{j \leq J}a_{ij} \leq \sum_{i \leq I}r_i \leq \sum_ir_i. So S≤∑iriS \leq \sum_ir_i.

The row-by-row sum is at most SS. For each II and JJ, the box sum ∑i≤I∑j≤Jaij\sum_{i \leq I}\sum_{j \leq J}a_{ij} is a finite sum, so it is at most SS. Let J→∞J \to \infty: a finite sum of convergent sequences converges to the sum of the limits (2A.6 Sequences), so ∑i≤Iri≤S\sum_{i \leq I}r_i \leq S (if some rir_i is infinite, the box sums are unbounded and S=+∞S = +\infty as well). Now let I→∞I \to \infty: ∑iri≤S\sum_ir_i \leq S.

The proof is short because non-negative terms make every partial sum an under-estimate of the total, whatever order or shape the partial sum has. So "the total" can be defined without any order at all, as the supremum of all finite sub-sums, and every way of exhausting the table reaches it. The same definition works for a non-negative function on any countable set, and it is the seed of the Lebesgue integral of a non-negative function (3A.3 The Lebesgue Integral), which is defined as a supremum in exactly this way. For terms of both signs, the same conclusion holds when ∑i,j∣aij∣<∞\sum_{i,j}|a_{ij}| < \infty, by splitting into positive and negative parts; without it, Exercise 7.30 shows the two orders can disagree.

Example 7.21 A sum that is easier in the other order

Show that ∑n=2∞(12n+13n+14n+⋯)=1\sum_{n=2}^\infty\big(\frac{1}{2^n} + \frac{1}{3^n} + \frac{1}{4^n} + \cdots\big) = 1.

Row by row, this is hopeless: the inner sums ∑k≥21kn\sum_{k \geq 2}\frac{1}{k^n} have no simple closed form. (They are ζ(n)−1\zeta(n) - 1, where ζ\zeta is the Riemann zeta function.) But every term 1kn\frac{1}{k^n} is positive, so by Proposition 7.20 we may sum the table the other way, over nn first for each fixed k≥2k \geq 2. That inner sum is geometric with ratio 1k<1\frac1k < 1:

∑n=2∞1kn=1/k21−1/k=1k(k−1)=1k−1−1k.\sum_{n=2}^\infty\frac{1}{k^n} = \frac{1/k^2}{1 - 1/k} = \frac{1}{k(k - 1)} = \frac{1}{k - 1} - \frac1k.

Now the outer sum over k≥2k \geq 2 telescopes (Example 7.2) to 11. Two of the simplest series in the chapter, the geometric and the telescoping, evaluate a sum that looks out of reach, and the swap of order is what connects them.

The root and ratio tests

For series that behave roughly like geometric series, two tests compare them with one directly.

Theorem 7.22 Root and ratio tests

Let ∑an\sum a_n be a series.

  1. (Root test) Let α=lim sup⁡∣an∣1/n\alpha = \limsup |a_n|^{1/n}. If α<1\alpha < 1 the series converges absolutely; if α>1\alpha > 1 it diverges.
  2. (Ratio test) If an≠0a_n \neq 0 and lim sup⁡∣an+1/an∣<1\limsup |a_{n+1}/a_n| < 1, the series converges absolutely; if lim inf⁡∣an+1/an∣>1\liminf |a_{n+1}/a_n| > 1, it diverges.

Proof (Root test, convergence half). Choose β\beta with α<β<1\alpha < \beta < 1. By the definition of lim sup⁡\limsup (2A.6 Sequences), eventually ∣an∣1/n<β|a_n|^{1/n} < \beta, so ∣an∣<βn|a_n| < \beta^n. Compare with the geometric series ∑βn\sum \beta^n.

Proof (The other halves). Root test, divergence. If α>1\alpha > 1, then by 2A.6 Sequences (lim sup, part 2, with any margin below α−1\alpha - 1) infinitely many nn have ∣an∣1/n>1|a_n|^{1/n} > 1, so ∣an∣>1|a_n| > 1 infinitely often. The terms don't tend to 00, and the series diverges by the zero test.

Ratio test, convergence. Choose β\beta with lim sup⁡∣an+1/an∣<β<1\limsup |a_{n+1}/a_n| < \beta < 1. Eventually, say for n≥Nn \geq N, ∣an+1∣≤β∣an∣|a_{n+1}| \leq \beta|a_n|. By induction ∣an∣≤∣aN∣ βn−N|a_n| \leq |a_N|\,\beta^{n - N} for n≥Nn \geq N, which is a constant times βn\beta^n. Compare with ∑βn\sum \beta^n.

Ratio test, divergence. If lim inf⁡∣an+1/an∣>1\liminf |a_{n+1}/a_n| > 1, then eventually ∣an+1∣≥∣an∣|a_{n+1}| \geq |a_n|, so from some point the ∣an∣|a_n| never decrease. Since they are nonzero, they don't tend to 00, and the series diverges.

Both tests are comparisons with a geometric series in disguise, and that is the right way to remember them. The root test asks: is ∣an∣|a_n| eventually below βn\beta^n for some β<1\beta < 1? The ratio test asks: does each term shrink by at least a fixed factor β<1\beta < 1 compared with the previous one? Either way the terms decay at least geometrically, and a geometric series converges. When the limit is 11, the terms are not decaying geometrically, and the tests have nothing to compare with. That is the case of the pp-series, whose terms decay like a power of nn, more slowly than any geometric sequence (2A.6 Sequences, the hierarchy of growth), and for those you need the finer tools of the previous sections.

The ratio test is usually easier to apply, especially to terms built from factorials and powers, where ratios simplify. The root test is stronger: whenever the ratio test gives an answer, so does the root test (Exercise 7.33).

Example 7.23 The exponential series

For any real xx, does ∑n=0∞xnn!\sum_{n=0}^\infty \frac{x^n}{n!} converge? For x≠0x \neq 0 the ratio of consecutive terms is

∣xn+1/(n+1)!xn/n!∣=∣x∣n+1→0<1.\Big|\frac{x^{n+1}/(n+1)!}{x^n/n!}\Big| = \frac{|x|}{n + 1} \to 0 < 1.

So the series converges absolutely for every xx. Its sum is exe^x, the subject of 2B.6 Power Series, Exponentials and Bump Functions. The same computation for ∑n! xn\sum n!\,x^n gives ratio (n+1)∣x∣→∞(n+1)|x| \to \infty, so that series diverges for every x≠0x \neq 0.

Choosing a test

With so many tests, the practical question is which to try. The following order works for most series met in practice. Stop as soon as one gives an answer.

  1. Do the terms tend to 00? If not, the series diverges (zero test). Check this first; it is quick.
  2. Is it a known series, or a multiple or tail of one? Geometric series (∑rn\sum r^n: converges iff ∣r∣<1|r| < 1), pp-series (∑1/np\sum 1/n^p: converges iff p>1p > 1), telescoping series.
  3. Are the terms non-negative and built from powers of nn? Find the dominant behaviour ("this is like 1/n3/21/n^{3/2}") and use limit comparison with a pp-series.
  4. Do factorials or exponentials appear? Use the ratio test. If nn-th powers appear, as in (n2n+1)n\big(\frac{n}{2n+1}\big)^n, try the root test.
  5. Are there signs? Test ∑∣an∣\sum |a_n| first by steps 1–4. If it converges, you have absolute convergence. If not, and the signs alternate with decreasing terms, the alternating test gives conditional convergence.
  6. Decreasing terms with a logarithm? Condensation turns ln⁡n\ln n into kln⁡2k \ln 2, which is often decisive, as for ∑1nln⁡n\sum \frac{1}{n \ln n} (Exercise 7.28).
Example 7.24 Three series, three tests
  • ∑2nn!\sum \frac{2^n}{n!}: factorials, so the ratio test: 2n+1→0\frac{2}{n+1} \to 0. Converges.
  • ∑(n2n+1)n\sum \big(\frac{n}{2n + 1}\big)^n: an nn-th power, so the root test: n2n+1→12<1\frac{n}{2n+1} \to \frac12 < 1. Converges.
  • ∑(−1)nnn2+1\sum \frac{(-1)^n n}{n^2 + 1}: signs, so first test absolute values. nn2+1\frac{n}{n^2 + 1} behaves like 1n\frac1n (limit comparison, ratio →1\to 1), so ∑∣an∣\sum |a_n| diverges. The terms decrease for n≥1n \geq 1 (since xx2+1\frac{x}{x^2+1} decreases for x≥1x \geq 1: nn2+1≥n+1(n+1)2+1\frac{n}{n^2+1} \geq \frac{n+1}{(n+1)^2 + 1} reduces to n2+n≥1n^2 + n \geq 1) and tend to 00, so the alternating test applies. Converges conditionally.

Neither test decides anything when the relevant limit equals 11: both ∑1/n\sum 1/n and ∑1/n2\sum 1/n^2 have ratio tending to 11, but one diverges and the other converges. The root test is the one that determines the radius of convergence of a power series ∑cnxn\sum c_n x^n, the interval of xx for which it converges (2B.6 Power Series, Exponentials and Bump Functions).

Where this goes Where series go next
Recall Where we stand

A series converges when its partial sums do. The terms must tend to zero, but that isn't enough (the harmonic series). Non-negative series converge exactly when their partial sums are bounded, which gives the comparison and condensation tests and the threshold p>1p > 1 for ∑1/np\sum 1/n^p. Absolutely convergent series behave like finite sums and can be rearranged freely. Conditionally convergent ones can be rearranged to any sum. Next, 2A.8 Infinite Sets asks a different question about infinity: not how big an infinite sum is, but how many elements an infinite set has.

Exercises

Exercise 7.25 Telescoping

Show that ∑n=1∞1n(n+1)=1\sum_{n=1}^\infty \frac{1}{n(n+1)} = 1, by writing 1n(n+1)=1n−1n+1\frac{1}{n(n+1)} = \frac1n - \frac{1}{n+1}. Use this and comparison to give a second proof that ∑1/n2\sum 1/n^2 converges, with sum at most 22.

Solution

The partial sums telescope: ∑n=1N(1n−1n+1)=1−1N+1→1\sum_{n=1}^N \big(\tfrac1n - \tfrac1{n+1}\big) = 1 - \tfrac{1}{N+1} \to 1. For n≥2n \geq 2, 1n2≤1(n−1)n\tfrac1{n^2} \leq \tfrac{1}{(n-1)n}, so ∑n≥11n2≤1+∑n≥21(n−1)n=1+1=2\sum_{n \geq 1} \tfrac1{n^2} \leq 1 + \sum_{n \geq 2}\tfrac{1}{(n-1)n} = 1 + 1 = 2.

Exercise 7.26 Book stacking, quantitatively

(a) Verify the claimed overhang 12k\tfrac{1}{2k} of the kk-th book from the top by computing the centre of mass of the top kk books. (b) Find the smallest nn with 12Hn>3\tfrac12 H_n > 3. (Use Hn≈ln⁡n+0.5772H_n \approx \ln n + 0.5772, then check.)

Solution

(a) By induction: if the top k−1k - 1 books have their combined centre of mass at the right edge of book kk, then adding book kk (centre of mass at its middle, 12\tfrac12 to the left of that edge) moves the combined centre of the top kk books to (k−1)⋅0+1⋅(−12)k=−12k\tfrac{(k-1)\cdot 0 + 1 \cdot(-\tfrac12)}{k} = -\tfrac1{2k} relative to that edge. That is how far book kk can overhang the book below. (b) 12Hn>3\tfrac12 H_n > 3 needs Hn>6H_n > 6, so ln⁡n>5.4228\ln n > 5.4228, giving n≈227n \approx 227. A direct computation gives H226≈5.99996H_{226} \approx 5.99996 and H227≈6.00437H_{227} \approx 6.00437, so 227227 books.

Exercise 7.27 Positive and negative parts

Let ∑an\sum a_n converge conditionally. Let pn=max⁡(an,0)p_n = \max(a_n, 0) and qn=max⁡(−an,0)q_n = \max(-a_n, 0). Show that ∑pn\sum p_n and ∑qn\sum q_n both diverge to +∞+\infty. (If one converged, what would that say about ∑∣an∣=∑(pn+qn)\sum |a_n| = \sum (p_n + q_n) and ∑an=∑(pn−qn)\sum a_n = \sum (p_n - q_n)?)

Solution

Note an=pn−qna_n = p_n - q_n and ∣an∣=pn+qn|a_n| = p_n + q_n, with pn,qn≥0p_n, q_n \geq 0. If ∑pn\sum p_n converged, then ∑qn=∑(pn−an)\sum q_n = \sum (p_n - a_n) would converge by linearity, and then ∑∣an∣=∑(pn+qn)\sum |a_n| = \sum (p_n + q_n) would converge, contradicting conditional convergence. The same argument applies to ∑qn\sum q_n. Both are non-negative series, so "diverges" means their partial sums are unbounded: they diverge to +∞+\infty.

Exercise 7.28 Which converge?

Decide which of these converge, and which absolutely: (a) ∑n2n\sum \frac{n}{2^n}; (b) ∑(−1)nn\sum \frac{(-1)^n}{\sqrt n}; (c) ∑1nln⁡n\sum \frac{1}{n \ln n} (for n≥2n \geq 2); (d) ∑n!nn\sum \frac{n!}{n^n}; (e) ∑sin⁡(1/n2)\sum \sin(1/n^2).

Solution

(a) Converges absolutely (ratio 12\tfrac12). (b) Converges conditionally (alternating test; ∑1/n\sum 1/\sqrt n diverges). (c) Diverges, by condensation: ∑2k⋅12kkln⁡2=1ln⁡2∑1k\sum 2^k \cdot \tfrac{1}{2^k k \ln 2} = \tfrac{1}{\ln 2}\sum \tfrac1k. (d) Converges absolutely: the ratio is (1+1/n)−n→1/e<1(1 + 1/n)^{-n} \to 1/e < 1 (2A.6 Sequences). (e) Converges absolutely, since 0≤sin⁡x≤x0 \leq \sin x \leq x for x≥0x \geq 0, so compare with ∑1/n2\sum 1/n^2.

Exercise 7.29 Steady state

A drug with a half-life of 8 hours is given every 12 hours. Find the accumulation ratio and the number of doses needed to get within 5%5\% of the steady-state peak.

Solution

r=(12)12/8=2−1.5≈0.354r = (\tfrac12)^{12/8} = 2^{-1.5} \approx 0.354. Accumulation ratio 11−r≈1.55\tfrac{1}{1 - r} \approx 1.55. After nn doses the peak is a fraction 1−rn1 - r^n of steady state; rn≤0.05r^n \leq 0.05 needs n≥ln⁡0.05/ln⁡0.354≈2.88n \geq \ln 0.05 / \ln 0.354 \approx 2.88, so 33 doses.

Exercise 7.30 Swapping a double sum can fail

Let aij=1a_{ij} = 1 if i=ji = j, aij=−1a_{ij} = -1 if j=i+1j = i + 1, and 00 otherwise (i,j≥0i, j \geq 0). Show that summing each row first and then adding the row sums gives 00, while summing each column first gives 11. Which hypothesis of the finite swap rule fails? (Compare 3A.5 Product Measures and Change of Variables.)

Solution

Row ii contains aii=1a_{ii} = 1 and ai,i+1=−1a_{i,i+1} = -1 and zeros, so every row sums to 00, and the sum of row sums is 00. Column 00 contains only a00=1a_{00} = 1, so it sums to 11; column j≥1j \geq 1 contains ajj=1a_{jj} = 1 and aj−1,j=−1a_{j-1,j} = -1, so it sums to 00. The sum of column sums is 11. The finite rule assumed finitely many rows and columns. Here the table is infinite and ∑i,j∣aij∣=∞\sum_{i,j} |a_{ij}| = \infty, so neither absolute convergence (Fubini) nor non-negativity (Tonelli) is available.

Exercise 7.31 Repeating decimals are rational

Show that every decimal that eventually repeats, 0.a1a2…akb1…bm‾0.a_1 a_2 \dots a_k \overline{b_1 \dots b_m}, is a rational number, by writing the repeating part as a geometric series. Compute 0.136‾0.1\overline{36} as a fraction.

Solution

The repeating part is B10k+m(1+10−m+10−2m+⋯)=B10k+m⋅10m10m−1\frac{B}{10^{k+m}}\big(1 + 10^{-m} + 10^{-2m} + \cdots\big) = \frac{B}{10^{k+m}}\cdot\frac{10^m}{10^m - 1}, where BB is the integer b1…bmb_1 \dots b_m; the non-repeating part is a fraction with denominator 10k10^k. Both are rational. For 0.136‾0.1\overline{36}: 110+361000⋅10099=110+36990=99+36990=135990=322\frac{1}{10} + \frac{36}{1000}\cdot\frac{100}{99} = \frac{1}{10} + \frac{36}{990} = \frac{99 + 36}{990} = \frac{135}{990} = \frac{3}{22}. Check: 3/22=0.13636…3/22 = 0.13636\ldots.

Exercise 7.32 Limit comparison practice

Decide convergence: (a) ∑3n2−1n4+n\sum \frac{3n^2 - 1}{n^4 + n}; (b) ∑1n2+1\sum \frac{1}{\sqrt{n^2 + 1}}; (c) ∑nn2−3\sum \frac{\sqrt n}{n^2 - 3} (for n≥2n \geq 2).

Solution

(a) Like 3n2\frac{3}{n^2}: ratio with 1n2\frac1{n^2} tends to 33. Converges. (b) Like 1n\frac1n: ratio nn2+1=11+1/n2→1\frac{n}{\sqrt{n^2+1}} = \frac{1}{\sqrt{1 + 1/n^2}} \to 1. Diverges. (c) Like 1n3/2\frac{1}{n^{3/2}}: ratio n2n2−3→1\frac{n^2}{n^2 - 3} \to 1. Converges, since 32>1\frac32 > 1.

Exercise 7.33 The root test is stronger than the ratio test

Let an>0a_n > 0. Show that lim sup⁡an1/n≤lim sup⁡an+1an\limsup a_n^{1/n} \leq \limsup \frac{a_{n+1}}{a_n}. Deduce that whenever the ratio test proves convergence, so does the root test.

Hint

If an+1an≤β\frac{a_{n+1}}{a_n} \leq \beta for n≥Nn \geq N, then an≤aNβn−N=Cβna_n \leq a_N \beta^{n-N} = C\beta^n for n≥Nn \geq N. Take nn-th roots and use C1/n→1C^{1/n} \to 1 (2A.6 Sequences).

Solution

Let β>lim sup⁡an+1an\beta > \limsup \frac{a_{n+1}}{a_n} (if the right side is +∞+\infty there is nothing to prove). For n≥Nn \geq N, an≤Cβna_n \leq C\beta^n with C=aNβ−NC = a_N\beta^{-N}, so an1/n≤C1/nβa_n^{1/n} \leq C^{1/n}\beta. Since C1/n→1C^{1/n} \to 1, lim sup⁡an1/n≤β\limsup a_n^{1/n} \leq \beta. As β\beta was any number above lim sup⁡an+1an\limsup \frac{a_{n+1}}{a_n}, the inequality follows. If the ratio test gives lim sup⁡<1\limsup < 1, then lim sup⁡an1/n<1\limsup a_n^{1/n} < 1 too.

Exercise 7.34 How many terms?

How many terms of ∑n=0∞(−1)n2n+1=1−13+15−⋯\sum_{n=0}^\infty \frac{(-1)^n}{2n + 1} = 1 - \frac13 + \frac15 - \cdots (whose sum is π4\frac\pi4) guarantee an error below 10−410^{-4}? Why is this a poor way to compute π\pi?

Solution

The error after the terms up to n=Nn = N is at most 12N+3\frac{1}{2N + 3}, which is below 10−410^{-4} when 2N+3>1042N + 3 > 10^4, so N≥4999N \geq 4999: five thousand terms for four decimal places of π4\frac\pi4. The error shrinks only like 1/N1/N; methods whose error shrinks geometrically (like rNr^N) are vastly faster.

Exercise 7.35 Rehearsal: inverting by a series

Let xx be a real number with ∣x∣≤12|x| \leq \tfrac12. Show that the partial sums TN=1+x+⋯+xNT_N = 1 + x + \cdots + x^N satisfy ∣TN(1−x)−1∣≤2−(N+1)|T_N(1 - x) - 1| \leq 2^{-(N+1)}, so TNT_N is an approximate inverse of 1−x1 - x with an error you can control. Then think of xx as a "small perturbation": to solve (1−x)y=b(1 - x)y = b, it suffices to apply TNT_N to bb with NN large. In 4A.1 Banach Spaces and Bounded Operators the same argument works with xx replaced by a linear operator of norm at most 12\tfrac12. This is how one shows that a slightly perturbed linear equation is still uniquely solvable.

Solution

TN(1−x)=(1+x+⋯+xN)(1−x)=1−xN+1T_N(1 - x) = (1 + x + \cdots + x^N)(1 - x) = 1 - x^{N+1}, since the middle terms cancel in pairs. So ∣TN(1−x)−1∣=∣x∣N+1≤2−(N+1)|T_N(1 - x) - 1| = |x|^{N+1} \leq 2^{-(N+1)}. To solve (1−x)y=b(1 - x)y = b approximately, set yN=TNby_N = T_N b; then (1−x)yN=b−xN+1b(1 - x)y_N = b - x^{N+1}b, whose error is at most 2−(N+1)∣b∣2^{-(N+1)}|b|, and as N→∞N \to \infty, yN→b1−xy_N \to \frac{b}{1 - x}, the exact solution. The proof used only that multiplication by xx shrinks things by a factor of at least 22, which is the property an operator of norm at most 12\frac12 has.

Free resources for this chapter

Chosen for what this chapter covers, and all free to read or watch. Where a lecture covers more than this chapter, the minutes to watch are given, and the link starts there when it can. Links checked Nov 6, 2026.

Read

Watch 3 lectures and talks

© 2026 Neckpinch (www.neckpinch.com). All content in the guidebook (text, mathematics, figures and exercises) is protected by copyright. All rights reserved. No part may be copied, republished or redistributed without written permission.