Ran Wei/ Calculus/Module 14
中文
Calculus · Part IV · Sequences and series

Module 14Sequences and series

Learn when an infinite list of numbers settles down to a limit, and what it means to add up infinitely many numbers. You will sum geometric and telescoping series, see why the harmonic series diverges although its terms shrink to 0, decide convergence with a toolkit of tests, and estimate sums with a guaranteed bound on the error.

⏱ 270 minYou need: Modules 1 to 13, especially limits (Modules 2 and 3), L’Hôpital’s rule (Module 7) and improper integrals (Module 12)

In this module you will

  • Find limits of sequences with the limit laws, the squeeze theorem and limits of functions, and prove simple limits with ε and N
  • Use the Monotone Convergence Theorem to show that a sequence converges, and find the limit of a recursive sequence
  • Sum geometric and telescoping series, and explain why the harmonic series diverges although its terms tend to 0
  • Decide whether a series converges with the divergence, integral, comparison, alternating series, ratio and root tests, choosing the test by strategy
  • Estimate the sum of a series with a guaranteed error bound, from the integral test or the alternating series test
  • Tell absolute from conditional convergence, and explain what rearranging a series can do to its sum
1

Sequences

Calculus keeps producing lists of numbers that are meant to close in on something. Newton’s method for 2\sqrt2 gave 1,32,1712,577408,…1, \tfrac32, \tfrac{17}{12}, \tfrac{577}{408}, \dots (Module 7); interest at 100% a year, added nn times a year, turned £1 into (1+1n)n(1 + \tfrac1n)^n pounds, for n=1,2,3,…n = 1, 2, 3, \dots (Module 6); the bisection method gave intervals half as long at every step (Module 3). Each is a sequence, and the question about each is the same: does it settle down to a limit? This module, which opens Part IV of the course, answers that question first. Then it turns to the one that gives Part IV its name: what does it mean to add up infinitely many numbers?

Definition 14.1Sequence

A sequence is an infinite list of numbers in a definite order,

a1,a2,a3,…,an,…a_1, a_2, a_3, \dots, a_n, \dots

The number an,a_n\mathclose{\text{,}} read “a sub n”, is the nnth term of the sequence, and nn is its index. The whole sequence is written (an).(a_n)\mathclose{\text{.}} Precisely, a sequence is a function whose domain is the set of whole numbers from some first index on, usually n≥1n \ge 1 and sometimes n≥0;n \ge 0\mathclose{\text{;}} ana_n is its value at n.n\mathclose{\text{.}}

A sequence can be given in three ways:

  • by a formula for the nnth term: an=1na_n = \dfrac1n gives 1,12,13,14,…;1, \tfrac12, \tfrac13, \tfrac14, \dots\mathclose{\text{;}}
  • by a rule that computes each term from the one before, as Newton’s method does (Section 14.2);
  • by a description: “2\sqrt2 rounded down to nn decimal places” gives 1.4,1.41,1.414,1.4142,…1.4, 1.41, 1.414, 1.4142, \dots

The graph of a sequence is not a curve but a row of dots, one above each whole number n,n\mathclose{\text{,}} at height an.a_n\mathclose{\text{.}} Figure 14.1 shows the sequence

an=1+(−1)nn:0, 32, 23, 54, 45, 76, …a_n = 1 + \frac{(-1)^n}{n}: \qquad 0, \ \frac32, \ \frac23, \ \frac54, \ \frac45, \ \frac76, \ \dots

Its terms hop from one side of 1 to the other, and each lands closer to 1 than the one before.

The limit of a sequence

A sequence (an)(a_n) has the limit LL if ana_n is as close to LL as you like for every large enough n.n\mathclose{\text{.}} This is the limit at infinity of Definition 3.7, with nn running through the whole numbers only. Made precise in the way that Module 2 made limits of functions precise (Section 2.7), it reads:

Definition 14.2Limit of a sequence

lim⁡n→∞an=L,\displaystyle\lim_{n\to\infty} a_n = L\mathclose{\text{,}} read “the limit of a sub n as n tends to infinity is L”, means: for every number ε>0\varepsilon > 0 there is a number NN such that, for every index n>N,n > N\mathclose{\text{,}}

∣an−L∣<ε.\abs{a_n - L} < \varepsilon.

Then the sequence converges to L,L\mathclose{\text{,}} also written an→L.a_n \to L\mathclose{\text{.}} A sequence that does not converge diverges. If for every number MM there is an NN with an>Ma_n > M for every n>N,n > N\mathclose{\text{,}} the sequence diverges to infinity, written an→∞;a_n \to \infty\mathclose{\text{;}} an→−∞a_n \to -\infty is defined in the same way.

It is the game of Module 2 again. The challenger names a tolerance ε;\varepsilon\mathclose{\text{;}} you respond with an N,N\mathclose{\text{,}} a place in the sequence after which every term lies within ε\varepsilon of L.L\mathclose{\text{.}} Where δ\delta said how close xx must be to a,a\mathclose{\text{,}} NN says how far along the sequence you must go. On the graph, every dot from some index on must lie inside the band L−ε<y<L+ε.L - \varepsilon < y < L + \varepsilon\mathclose{\text{.}}

For the sequence of Figure 14.1, ∣an−1∣=1n,\abs{a_n - 1} = \dfrac1n\mathclose{\text{,}} which is less than ε\varepsilon exactly when n>1ε.n > \dfrac1\varepsilon\mathclose{\text{.}} So N=1εN = \dfrac1\varepsilon wins every round, and an→1.a_n \to 1\mathclose{\text{.}} For ε=0.25\varepsilon = 0.25 it gives N=4:N = 4\mathclose{\text{:}} every term after the fourth is inside the band.

The sequence an = 1 + (-1)^n/n, drawn as dots. Its terms hop from one side of the limit 1 to the other, ever closer. For the challenge varepsilon = 0.25 (the orange band from 0.75 to 1.25), N = 4 is a winning response: every term after the fourth (green) lies inside the band. The fourth, a4 = 1.25, is on its edge. A smaller varepsilon needs a larger N.
Figure 14.1

The sequence an=1+(−1)n/n,a_n = 1 + (-1)^n/n\mathclose{\text{,}} drawn as dots. Its terms hop from one side of the limit 1 to the other, ever closer. For the challenge ε=0.25\varepsilon = 0.25 (the orange band from 0.75 to 1.25), N=4N = 4 is a winning response: every term after the fourth (green) lies inside the band. The fourth, a4=1.25,a_4 = 1.25\mathclose{\text{,}} is on its edge. A smaller ε\varepsilon needs a larger N.N\mathclose{\text{.}}

Example 14.1An ε–N proof✓ Checked

Prove that lim⁡n→∞3n+1n+2=3,\displaystyle\lim_{n\to\infty}\frac{3n + 1}{n + 2} = 3\mathclose{\text{,}} and find an NN for the challenge ε=0.01.\varepsilon = 0.01\mathclose{\text{.}}

Scratch work. Put the difference over one denominator. Its numerator is 3n+1−3(n+2)=−5,3n + 1 - 3(n + 2) = -5\mathclose{\text{,}} and n+2>0,n + 2 > 0\mathclose{\text{,}} so

∣3n+1n+2−3∣=∣−5n+2∣=5n+2.\abs{\frac{3n + 1}{n + 2} - 3} = \abs{\frac{-5}{n + 2}} = \frac{5}{n + 2}.

This is less than ε\varepsilon when n+2>5/ε,n + 2 > 5/\varepsilon\mathclose{\text{,}} which certainly holds when n>5/ε.n > 5/\varepsilon\mathclose{\text{.}} So try N=5/ε.N = 5/\varepsilon\mathclose{\text{.}}

Proof. Let ε>0,\varepsilon > 0\mathclose{\text{,}} and choose N=5/ε.N = 5/\varepsilon\mathclose{\text{.}} If n>N,n > N\mathclose{\text{,}} then n+2>5/ε,n + 2 > 5/\varepsilon\mathclose{\text{,}} so

∣3n+1n+2−3∣=5n+2<ε.\abs{\frac{3n + 1}{n + 2} - 3} = \frac{5}{n + 2} < \varepsilon.

Every challenge is met, so the limit is 3. For ε=0.01\varepsilon = 0.01 the proof gives N=500:N = 500\mathclose{\text{:}} every term after the 500th is within 0.01 of 3, for instance a501=1504503≈2.99006.a_{501} = \tfrac{1504}{503} \approx 2.99006\mathclose{\text{.}} The smallest NN that wins is 498, since 5n+2<0.01\dfrac{5}{n + 2} < 0.01 exactly when n+2>500;n + 2 > 500\mathclose{\text{;}} as in Module 2, a proof needs a winning response, not the best one.

A sequence diverges when its terms never settle. The terms of (−1)n(-1)^n alternate between −1-1 and 11 for ever; the argument of Example 2.14, with the triangle inequality, shows that no number LL is their limit (Exercise 14.1 has a similar sequence). The terms of n2n^2 grow without bound: n2→∞.n^2 \to \infty\mathclose{\text{.}} A sequence that diverges to infinity has no limit in the sense of Definition 14.2; writing an→∞a_n \to \infty says how it diverges. A convergent sequence has only one limit, by the argument that follows Example 2.14 in Section 2.7. And the first terms never matter: changing, adding or removing finitely many terms changes neither whether a sequence converges nor its limit.

Watch out

A limit is about the tail of a sequence, not its first terms, and the first terms can mislead for a long time. The sequence an=n10/2na_n = n^{10}/2^n rises for its first 14 terms, to about 17.7 million at n=14,n = 14\mathclose{\text{,}} before it falls towards its limit, 0 (Theorem 7.7 of Module 7).

Limit laws and the squeeze theorem

Limits of sequences obey the same laws as limits of functions, with the same proofs (Section 2.4 and the Going deeper box of Section 2.7): NN takes the place of δ,\delta\mathclose{\text{,}} and where a proof of Module 2 takes the smaller of two δ\deltas, the proof for sequences takes the larger of two NNs.

Theorem 14.1Limit laws for sequences

Suppose that an→La_n \to L and bn→M,b_n \to M\mathclose{\text{,}} and let cc be a constant. Then

an+bn→L+M,an−bn→L−M,c an→cL,anbn→LM,\begin{aligned} a_n + b_n &\to L + M, & a_n - b_n &\to L - M, \\ c\,a_n &\to cL, & a_n b_n &\to LM, \end{aligned}

and anbn→LM\dfrac{a_n}{b_n} \to \dfrac{L}{M} if M≠0.M \ne 0\mathclose{\text{.}} If an→La_n \to L and the function ff is continuous at L,L\mathclose{\text{,}} then f(an)→f(L).f(a_n) \to f(L)\mathclose{\text{.}}

The last law is the sequence version of Theorem 3.4: limits pass inside continuous functions. For example, 4+1/n→4+0=2,\sqrt{4 + 1/n} \to \sqrt{4 + 0} = 2\mathclose{\text{,}} because 1/n→01/n \to 0 and the square root is continuous at 4.

Theorem 14.2The squeeze theorem for sequences

If bn≤an≤cnb_n \le a_n \le c_n for every nn from some index on, and bn→Lb_n \to L and cn→L,c_n \to L\mathclose{\text{,}} then an→L.a_n \to L\mathclose{\text{.}} In particular, if ∣an∣→0,\abs{a_n} \to 0\mathclose{\text{,}} then an→0.a_n \to 0\mathclose{\text{.}}

The second sentence follows from the first, since −∣an∣≤an≤∣an∣-\abs{a_n} \le a_n \le \abs{a_n} and −∣an∣→0-\abs{a_n} \to 0 by the constant multiple law. The proof of the first is that of Theorem 2.4, in the Going deeper box of Section 2.7, with NN in place of δ.\delta\mathclose{\text{.}}

The most important sequences of this module are the powers rnr^n of a fixed number r.r\mathclose{\text{.}}

Theorem 14.3Geometric sequences

For a constant r,r\mathclose{\text{,}} the sequence rn,r^n\mathclose{\text{,}} for n=0,1,2,…:n = 0, 1, 2, \dots\mathclose{\text{:}}

  • converges to 0 if −1<r<1;-1 < r < 1\mathclose{\text{;}}
  • converges to 1 if r=1;r = 1\mathclose{\text{;}}
  • diverges to infinity if r>1;r > 1\mathclose{\text{;}}
  • diverges, with no limit at all, if r≤−1.r \le -1\mathclose{\text{.}}
Proof

For r>1,r > 1\mathclose{\text{,}} write r=1+qr = 1 + q with q>0.q > 0\mathclose{\text{.}} Section 3.7 showed that (1+q)n≥1+nq(1 + q)^n \ge 1 + nq for every n≥1,n \ge 1\mathclose{\text{,}} so rnr^n exceeds any number MM once n>M/q:n > M/q\mathclose{\text{:}} rn→∞.r^n \to \infty\mathclose{\text{.}}

For 0<∣r∣<1,0 < \abs{r} < 1\mathclose{\text{,}} the number 1/∣r∣1/\abs{r} is greater than 1, so (1/∣r∣)n→∞(1/\abs{r})^n \to \infty by the first case. The reciprocal of a sequence that diverges to infinity tends to 0 (if bn>1/εb_n > 1/\varepsilon for every n>N,n > N\mathclose{\text{,}} then 0<1/bn<ε0 < 1/b_n < \varepsilon for those n),n\mathclose{\text{),}} so ∣rn∣=1/(1/∣r∣)n→0,\abs{r^n} = 1/(1/\abs{r})^n \to 0\mathclose{\text{,}} and rn→0r^n \to 0 by the squeeze theorem. For r=0r = 0 every term after r0=1r^0 = 1 is 0, and for r=1r = 1 every term is 1.

For r=−1r = -1 the terms are 1,−1,1,−1,…,1, -1, 1, -1, \dots\mathclose{\text{,}} which have no limit. For r<−1,r < -1\mathclose{\text{,}} ∣rn∣=∣r∣n→∞,\abs{r^n} = \abs{r}^n \to \infty\mathclose{\text{,}} so the terms are not even bounded, and a convergent sequence is bounded: from some index on its terms are within 1 of its limit, and there are only finitely many terms before that.

∎
Example 14.2Limits of sequences✓ Checked

Find the limits of

  • (a) 2n2−3n5n2+4\dfrac{2n^2 - 3n}{5n^2 + 4}
  • (b) (−1)nn\dfrac{(-1)^n}{n}
  • (c) cos⁡nn\dfrac{\cos n}{\sqrt n}
  • (d) 3n+4n5n\dfrac{3^n + 4^n}{5^n}

(a) Divide the numerator and the denominator by n2,n^2\mathclose{\text{,}} the highest power in the denominator, as for rational functions at infinity (Theorem 3.10):

2n2−3n5n2+4=2−3/n5+4/n2→2−05+0=25,\frac{2n^2 - 3n}{5n^2 + 4} = \frac{2 - 3/n}{5 + 4/n^2} \to \frac{2 - 0}{5 + 0} = \frac25,

by the limit laws, since 1/n→01/n \to 0 and 1/n2→0.1/n^2 \to 0\mathclose{\text{.}}

(b) The terms alternate in sign, but their size ∣(−1)n/n∣=1/n\abs{(-1)^n/n} = 1/n tends to 0. By the squeeze theorem, (−1)n/n→0.(-1)^n/n \to 0\mathclose{\text{.}}

(c) Since −1≤cos⁡n≤1,-1 \le \cos n \le 1\mathclose{\text{,}}

−1n≤cos⁡nn≤1n,-\frac{1}{\sqrt n} \le \frac{\cos n}{\sqrt n} \le \frac{1}{\sqrt n},

and both bounds tend to 0, because 1/n=1/n1/21/\sqrt n = 1/n^{1/2} (Section 3.7). By the squeeze theorem, cos⁡n/n→0.\cos n/\sqrt n \to 0\mathclose{\text{.}}

(d) Split the fraction: 3n+4n5n=(35)n+(45)n.\dfrac{3^n + 4^n}{5^n} = \Big(\dfrac35\Big)^n + \Big(\dfrac45\Big)^n\mathclose{\text{.}} Both ratios lie between −1-1 and 1, so by Theorem 14.3 and the sum law the limit is 0+0=0.0 + 0 = 0\mathclose{\text{.}}

Watch out

The power law is for a fixed power. In (1+1n)n\big(1 + \tfrac1n\big)^n the base tends to 1, but the exponent grows with n,n\mathclose{\text{,}} and the limit is ee (Theorem 6.6), not 1n=1.1^n = 1\mathclose{\text{.}} Expressions of the form 1∞1^\infty are indeterminate (Module 7).

Sequences from functions

Many sequences are the values of a function at the whole numbers: an=(ln⁡n)/na_n = (\ln n)/n is f(n)f(n) for f(x)=(ln⁡x)/x.f(x) = (\ln x)/x\mathclose{\text{.}} Then everything known about limits at infinity applies, L’Hôpital’s rule included.

Theorem 14.4Sequences from functions

If lim⁡x→∞f(x)=L\displaystyle\lim_{x\to\infty} f(x) = L and an=f(n)a_n = f(n) for every whole number n≥1,n \ge 1\mathclose{\text{,}} then lim⁡n→∞an=L.\displaystyle\lim_{n\to\infty} a_n = L\mathclose{\text{.}} The same holds with ∞\infty or −∞-\infty in place of L.L\mathclose{\text{.}}

Proof

Let ε>0.\varepsilon > 0\mathclose{\text{.}} Since f(x)→Lf(x) \to L as x→∞,x \to \infty\mathclose{\text{,}} there is a number NN such that ∣f(x)−L∣<ε\abs{f(x) - L} < \varepsilon for every real number x>N:x > N\mathclose{\text{:}} that is the precise form of Definition 3.7, given in the Going deeper box at the end of Section 3.7. In particular this holds for every whole number n>N,n > N\mathclose{\text{,}} so ∣an−L∣<ε\abs{a_n - L} < \varepsilon for those n.n\mathclose{\text{.}} The proof for ±∞\pm\infty is the same, with a bound MM in place of the band.

∎

You cannot differentiate ana_n with respect to n,n\mathclose{\text{,}} because a sequence is defined only at whole numbers. Apply L’Hôpital’s rule to the function f(x),f(x)\mathclose{\text{,}} then Theorem 14.4.

Example 14.3Limits from functions✓ Checked

Find the limits of (a) ln⁡nn,\dfrac{\ln n}{n}\mathclose{\text{,}} (b) n1/nn^{1/n} and (c) (1+2n)n.\Big(1 + \dfrac2n\Big)^n\mathclose{\text{.}}

(a) As x→∞,x \to \infty\mathclose{\text{,}} (ln⁡x)/x(\ln x)/x has the form ∞/∞,\infty/\infty\mathclose{\text{,}} and the quotient of the derivatives is 1/x1=1x→0;\dfrac{1/x}{1} = \dfrac1x \to 0\mathclose{\text{;}} so (ln⁡x)/x→0(\ln x)/x \to 0 by L’Hôpital’s rule (this is Theorem 7.6 with p=1).p = 1\mathclose{\text{).}} By Theorem 14.4, (ln⁡n)/n→0.(\ln n)/n \to 0\mathclose{\text{.}}

(b) Example 7.18 showed that x1/x→1x^{1/x} \to 1 as x→∞:x \to \infty\mathclose{\text{:}} its logarithm is (ln⁡x)/x,(\ln x)/x\mathclose{\text{,}} which tends to 0 by (a), and e0=1.e^0 = 1\mathclose{\text{.}} So n1/n→1;n^{1/n} \to 1\mathclose{\text{;}} for example, 10001/1000≈1.0069.1000^{1/1000} \approx 1.0069\mathclose{\text{.}}

(c) Example 7.17, with a=2,a = 2\mathclose{\text{,}} showed that (1+2/x)x→e2(1 + 2/x)^x \to e^2 as x→∞.x \to \infty\mathclose{\text{.}} So (1+2/n)n→e2≈7.389.(1 + 2/n)^n \to e^2 \approx 7.389\mathclose{\text{.}}

Watch out

The converse of Theorem 14.4 is false. The sequence an=sin⁡(πn)a_n = \sin(\pi n) is 0 for every whole number n,n\mathclose{\text{,}} so it converges to 0; but sin⁡(πx)\sin(\pi x) has no limit as x→∞,x \to \infty\mathclose{\text{,}} because it keeps swinging between −1-1 and 1.1\mathclose{\text{.}} A sequence only samples ff at the whole numbers. When f(x)f(x) has no limit, decide about the sequence from the sequence itself.

2

Monotone sequences

To prove that an→La_n \to L from Definition 14.2 you need to know L.L\mathclose{\text{.}} Often you do not: the limit is exactly what you want to find. For one important kind of sequence there is a way to know that the limit exists before you know what it is.

Look again at 2\sqrt2 rounded down to nn decimal places: 1,1.4,1.41,1.414,1.4142,…1, 1.4, 1.41, 1.414, 1.4142, \dots (starting with n=0).n = 0\mathclose{\text{).}} Each term is at least as large as the one before, and every term is below 1.5. The terms creep upwards, but they can never pass 1.5, so they must pile up somewhere at or below it. They close in on 2.\sqrt2\mathclose{\text{.}}

Definition 14.3Monotone and bounded sequences

A sequence (an)(a_n) is increasing if an≤an+1a_n \le a_{n+1} for every n,n\mathclose{\text{,}} and decreasing if an≥an+1a_n \ge a_{n+1} for every n;n\mathclose{\text{;}} it is monotone if it is one or the other. It is bounded above if there is a number M,M\mathclose{\text{,}} an upper bound, with an≤Ma_n \le M for every n;n\mathclose{\text{;}} bounded below if there is a number m,m\mathclose{\text{,}} a lower bound, with an≥ma_n \ge m for every n;n\mathclose{\text{;}} and bounded if it is both.

An increasing sequence may repeat a term; one with an<an+1a_n < a_{n+1} for every nn is strictly increasing, and strictly decreasing is defined in the same way. Some books call the sequences of the definition “non-decreasing” and “non-increasing” instead. Note the difference from Module 4 and Section 8.3, where an increasing function is one that rises strictly: for sequences, this module allows equal neighbours.

The Monotone Convergence Theorem

Theorem 14.5The Monotone Convergence Theorem

An increasing sequence that is bounded above converges, and its limit is at least every term and at most every upper bound. A decreasing sequence that is bounded below converges, and its limit is at most every term and at least every lower bound.

This theorem is not proved from anything earlier in the course. It is a form of the completeness of the real numbers, the property that the number line has no gaps. Courses in real analysis either construct the real numbers and prove completeness, or take it as an axiom, a basic property from which the rest is proved. This course takes it as an axiom, and the Monotone Convergence Theorem is the form in which the course states it. The decimal approximations of 2\sqrt2 show why it is a property of the real numbers and not of numbers in general. Every term is a fraction, and the sequence is increasing and bounded above, yet no fraction is its limit, because 2\sqrt2 is irrational. Among the fractions alone, the sequence closes in on a gap, and has no limit.

The second half of each statement can be proved. Limits keep non-strict inequalities: if an≤Ma_n \le M for every nn and an→L,a_n \to L\mathclose{\text{,}} then L≤M.L \le M\mathclose{\text{.}} Indeed, if LL were greater than M,M\mathclose{\text{,}} the challenge ε=L−M\varepsilon = L - M would give terms with an>L−ε=M.a_n > L - \varepsilon = M\mathclose{\text{.}} In the same way, if an≥ca_n \ge c for every nn from some index on, then L≥c.L \ge c\mathclose{\text{.}} Applied to an upper bound M,M\mathclose{\text{,}} the first statement says that the limit is at most M.M\mathclose{\text{.}} When the sequence increases, the terms am,am+1,…a_m, a_{m+1}, \dots are all at least am,a_m\mathclose{\text{,}} so the second statement, with c=am,c = a_m\mathclose{\text{,}} says that the limit is at least am.a_m\mathclose{\text{.}}

Module 3’s proof of the Intermediate Value Theorem (Section 3.3) used completeness in another form: if each of the intervals [a0,b0],[a1,b1],[a2,b2],…[a_0, b_0], [a_1, b_1], [a_2, b_2], \dots lies inside the one before, then some number cc lies in all of them. The Monotone Convergence Theorem proves it. The left ends increase, a0≤a1≤a2≤⋯,a_0 \le a_1 \le a_2 \le \cdots\mathclose{\text{,}} and every right end bmb_m is an upper bound for them: an≤bn≤bma_n \le b_n \le b_m when n≥m,n \ge m\mathclose{\text{,}} and an≤am≤bma_n \le a_m \le b_m when n<m.n < m\mathclose{\text{.}} So the ana_n converge to a number cc that is at least every ana_n and at most every bm,b_m\mathclose{\text{,}} and cc lies in every interval, as Module 3 needed.

Key idea

The Monotone Convergence Theorem proves that a limit exists without saying what it is. That is its role. Module 3 used it to prove the Intermediate Value Theorem. Modules 6, 12 and 13 used the same property for functions (one that increases and is bounded above has a limit), to sketch why the slope of 2x2^x at 0 exists (Section 6.1), to compare improper integrals (Section 12.8) and to explain why solutions approach a stable equilibrium (Section 13.3). Above all, the partial sums of a series with positive terms increase, so such a series converges exactly when its partial sums are bounded: every convergence test for positive terms in Sections 14.5 and 14.6 rests on this.

Going deeperCompleteness and least upper bounds

A first reading may skip this box. Courses in analysis usually state completeness as the least upper bound property: every non-empty set of real numbers that is bounded above has a least upper bound, an upper bound that is smaller than every other upper bound. The Monotone Convergence Theorem follows in a few lines. Let (an)(a_n) be increasing and bounded above, and let ss be the least upper bound of its terms. Let ε>0.\varepsilon > 0\mathclose{\text{.}} The number s−εs - \varepsilon is smaller than s,s\mathclose{\text{,}} so it is not an upper bound: some term aNa_N is greater than s−ε.s - \varepsilon\mathclose{\text{.}} For every n>N,n > N\mathclose{\text{,}} then,

s−ε<aN≤an≤s,s - \varepsilon < a_N \le a_n \le s,

so ∣an−s∣<ε:\abs{a_n - s} < \varepsilon\mathclose{\text{:}} the sequence converges to s.s\mathclose{\text{.}} Conversely, the least upper bound property can be proved from the Monotone Convergence Theorem, so either statement can serve as the axiom.

Recursive sequences

A sequence is defined recursively when its first term is given and each further term is computed from the one before by a fixed rule, an+1=g(an).a_{n+1} = g(a_n)\mathclose{\text{.}} Programs compute such sequences with a loop, and numerical methods such as Newton’s method are recursions. The Monotone Convergence Theorem gives a three-step method for them: show that the sequence is monotone, show that it is bounded, and only then find the limit from the rule.

Example 14.4Newton’s square root as a sequence✓ Checked

Newton’s method for 2\sqrt2 is the recursion x0=1,x_0 = 1\mathclose{\text{,}} xn+1=12(xn+2/xn)x_{n+1} = \tfrac12\big(x_n + 2/x_n\big) (Example 7.9). Show that it converges, and find its limit, with the Monotone Convergence Theorem.

Theorem 7.2 showed that xn≥2x_n \ge \sqrt2 for every n≥1,n \ge 1\mathclose{\text{,}} and that the iterates decrease from x1x_1 on: 32≥1712≥577408≥⋯.\tfrac32 \ge \tfrac{17}{12} \ge \tfrac{577}{408} \ge \cdots\mathclose{\text{.}} So from x1x_1 on, the sequence is decreasing and bounded below by 2,\sqrt2\mathclose{\text{,}} and by the Monotone Convergence Theorem it converges to a number L≥2.L \ge \sqrt2\mathclose{\text{.}}

To find L,L\mathclose{\text{,}} take limits on both sides of the recursion. The left side, xn+1,x_{n+1}\mathclose{\text{,}} is the same sequence shifted by one place, so it also tends to L.L\mathclose{\text{.}} On the right, L≠0,L \ne 0\mathclose{\text{,}} so the limit laws give 12(xn+2/xn)→12(L+2/L).\tfrac12\big(x_n + 2/x_n\big) \to \tfrac12\big(L + 2/L\big)\mathclose{\text{.}} Therefore

L=12(L+2L),so2L=L+2L,L=2L,L2=2.\begin{aligned} L &= \frac12\Big(L + \frac2L\Big), \quad\text{so} \\ 2L &= L + \frac2L, \quad L = \frac2L, \quad L^2 = 2. \end{aligned}

Since L≥2>0,L \ge \sqrt2 > 0\mathclose{\text{,}} L=2.L = \sqrt2\mathclose{\text{.}} Module 7 proved more: its formula xn+1−2=(xn−2)22xnx_{n+1} - \sqrt2 = \dfrac{(x_n - \sqrt2)^2}{2x_n} shows how fast the iterates approach 2.\sqrt2\mathclose{\text{.}} This argument needs no such formula, and the same three steps work for many recursions that have none.

To show that every term of a recursive sequence has some property, use mathematical induction (Section 9.2): show that the first term has it (the base case), and that whenever a term ana_n has it, so does the next term an+1a_{n+1} (the inductive step). Then a1a_1 has the property, so a2a_2 has it, so a3a_3 has it, and so on for every n.n\mathclose{\text{.}} Module 3 proved (1+q)n≥1+nq(1 + q)^n \ge 1 + nq in this way.

Example 14.5A recursive sequence✓ Checked

Let a1=1a_1 = 1 and an+1=2+ana_{n+1} = \sqrt{2 + a_n} for n≥1.n \ge 1\mathclose{\text{.}} Show that the sequence converges, and find its limit.

The first terms, in exact form and in decimals:

ana_{n}an in decimalsa_n\text{ in decimals}2−an2 - a_n
111111
3\sqrt{3}1.732051.732050.2679490.267949
3+2\sqrt{\sqrt{3} + 2}1.931851.931850.06814830.0681483
3+2+2\sqrt{\sqrt{\sqrt{3} + 2} + 2}1.982891.982890.01711030.0171103
3+2+2+2\sqrt{\sqrt{\sqrt{\sqrt{3} + 2} + 2} + 2}1.995721.995720.004282150.00428215

They seem to increase towards 2, and Figure 14.2 pictures how. Prove it in three steps.

Bounded. Every term is positive, since a1=1a_1 = 1 and square roots of positive numbers are positive. And every term is below 2: a1=1<2,a_1 = 1 < 2\mathclose{\text{,}} and if an<2,a_n < 2\mathclose{\text{,}} then 2+an<4,2 + a_n < 4\mathclose{\text{,}} so an+1=2+an<4=2.a_{n+1} = \sqrt{2 + a_n} < \sqrt4 = 2\mathclose{\text{.}} By induction, 0<an<20 < a_n < 2 for every n.n\mathclose{\text{.}}

Increasing. Compare the squares. For 0<an<2,0 < a_n < 2\mathclose{\text{,}}

an+12−an2=2+an−an2=(2−an)(1+an)>0,\begin{aligned} a_{n+1}^2 - a_n^2 &= 2 + a_n - a_n^2 \\ &= (2 - a_n)(1 + a_n) > 0, \end{aligned}

because both factors are positive. So an+12>an2,a_{n+1}^2 > a_n^2\mathclose{\text{,}} and since both terms are positive, an+1>an.a_{n+1} > a_n\mathclose{\text{.}}

The limit. By the Monotone Convergence Theorem the sequence converges to a number LL with 1=a1≤L≤2.1 = a_1 \le L \le 2\mathclose{\text{.}} The square root is continuous, so 2+an→2+L,\sqrt{2 + a_n} \to \sqrt{2 + L}\mathclose{\text{,}} and taking limits on both sides of the recursion gives L=2+L.L = \sqrt{2 + L}\mathclose{\text{.}} Squaring, L2−L−2=0,L^2 - L - 2 = 0\mathclose{\text{,}} that is, (L−2)(L+1)=0,(L - 2)(L + 1) = 0\mathclose{\text{,}} so L=2L = 2 or L=−1.L = -1\mathclose{\text{.}} Since L≥1,L \ge 1\mathclose{\text{,}} the limit is 2.

The table shows how fast: after the first step, each step divides the distance to 2 by almost exactly 4. The reason is the identity 2−an+1=2−an2+an+12 - a_{n+1} = \dfrac{2 - a_n}{2 + a_{n+1}} (multiply 2−2+an2 - \sqrt{2 + a_n} above and below by 2+2+an),2 + \sqrt{2 + a_n}\mathclose{\text{),}} and 2+an+1→4.2 + a_{n+1} \to 4\mathclose{\text{.}}

The recursion a{n+1} = sqrt{2 + an} from a1 = 1. Left: the cobweb diagram. From the point (an, an) on the line y = x, go up to the curve y = sqrt{2 + x}, which is at height a{n+1}; then across to the line, at (a{n+1}, a{n+1}), and repeat. The steps climb towards the crossing point (2, 2), where L = sqrt{2 + L}. Right: the terms themselves increase towards the limit 2 (dashed) and never reach it.
Figure 14.2

The recursion an+1=2+ana_{n+1} = \sqrt{2 + a_n} from a1=1.a_1 = 1\mathclose{\text{.}} Left: the cobweb diagram. From the point (an,an)(a_n, a_n) on the line y=x,y = x\mathclose{\text{,}} go up to the curve y=2+x,y = \sqrt{2 + x}\mathclose{\text{,}} which is at height an+1;a_{n+1}\mathclose{\text{;}} then across to the line, at (an+1,an+1),(a_{n+1}, a_{n+1})\mathclose{\text{,}} and repeat. The steps climb towards the crossing point (2,2),(2, 2)\mathclose{\text{,}} where L=2+L.L = \sqrt{2 + L}\mathclose{\text{.}} Right: the terms themselves increase towards the limit 2 (dashed) and never reach it.

Watch out

Solving L=g(L)L = g(L) is the last step, not the first. The equation says what the limit must be if there is one; it does not say that there is one. With a1=1a_1 = 1 and an+1=2an,a_{n+1} = 2a_n\mathclose{\text{,}} it gives L=2L,L = 2L\mathclose{\text{,}} so L=0,L = 0\mathclose{\text{,}} yet the terms 1,2,4,8,…1, 2, 4, 8, \dots diverge to infinity. With a1=0a_1 = 0 and an+1=1−an,a_{n+1} = 1 - a_n\mathclose{\text{,}} it gives L=12,L = \tfrac12\mathclose{\text{,}} yet the terms 0,1,0,1,…0, 1, 0, 1, \dots have no limit. First show that the sequence converges, for instance with the Monotone Convergence Theorem.

Compute itSequences in Python and SymPy

A loop computes a recursive sequence. Here are the first terms of Example 14.5:

Python
import math
a = 1.0
for n in range(1, 9):
    print(f"a_{n} = {a:.10f}   2 - a_{n} = {2 - a:.3e}")
    a = math.sqrt(2 + a)        # the next term
Output
a_1 = 1.0000000000   2 - a_1 = 1.000e+00
a_2 = 1.7320508076   2 - a_2 = 2.679e-01
a_3 = 1.9318516526   2 - a_3 = 6.815e-02
a_4 = 1.9828897227   2 - a_4 = 1.711e-02
a_5 = 1.9957178465   2 - a_5 = 4.282e-03
a_6 = 1.9989291750   2 - a_6 = 1.071e-03
a_7 = 1.9997322758   2 - a_7 = 2.677e-04
a_8 = 1.9999330678   2 - a_8 = 6.693e-05

SymPy’s limit finds limits of sequences given by a formula, with sp.oo for ∞:\infty\mathclose{\text{:}}

Python
import sympy as sp
n = sp.symbols('n')
print(sp.limit((2*n**2 - 3*n)/(5*n**2 + 4), n, sp.oo))
print(sp.limit(n**(1/n), n, sp.oo), sp.limit((1 + 2/n)**n, n, sp.oo))
print(sp.limit(sp.sin(sp.pi*n), n, sp.oo))
Output
2/5
1 exp(2)
AccumBounds(-1, 1)

The first two lines agree with Examples 14.2 and 14.3. The last shows that limit treats n as a real variable: it computes the limit of the function sin⁡(πx),\sin(\pi x)\mathclose{\text{,}} which swings between −1-1 and 1 for ever (AccumBounds(-1, 1), “accumulation bounds”), not of the sequence sin⁡(πn),\sin(\pi n)\mathclose{\text{,}} whose terms are all 0. Declare the symbol an integer, and SymPy simplifies the terms themselves:

Python
k = sp.symbols('k', integer=True)
print(sp.sin(sp.pi*k))
Output
0
3

Series

To walk to a door, you must first cover half the distance, then half of what is left, then half of that, and so on for ever. One of the paradoxes of motion posed by the Greek philosopher Zeno of Elea, in the 5th century BC, asks how anyone can complete infinitely many stages. As fractions of the whole distance, the stages measure 12,14,18,…,\tfrac12, \tfrac14, \tfrac18, \dots\mathclose{\text{,}} and the paradox dissolves once you can say what their total is.

Figure 14.3 shows the same total as areas. Cut a square of area 1 in half; cut the remaining half in half; cut the remaining quarter in half, and so on. After NN cuts the pieces have total area

SN=12+14+⋯+12N=1−12N,S_N = \frac12 + \frac14 + \cdots + \frac{1}{2^N} = 1 - \frac{1}{2^N},

since the part not yet covered is the last piece cut off, of area 1/2N.1/2^N\mathclose{\text{.}} As NN grows, the uncovered part shrinks to 0 and SN→1:S_N \to 1\mathclose{\text{:}} infinitely many pieces fill the square exactly.

Halving a square. Left: a square of area 1 cut into pieces of area tfrac12, tfrac14, tfrac18, dots; each piece is half of what remains, and the pieces fill the square. Right: the partial sums SN = tfrac12 + tfrac14 + cdots + tfrac{1}{2^N} = 1 - tfrac{1}{2^N} climb towards 1 (dashed); the gap to 1 halves at every step.
Figure 14.3

Halving a square. Left: a square of area 1 cut into pieces of area 12,14,18,…;\tfrac12, \tfrac14, \tfrac18, \dots\mathclose{\text{;}} each piece is half of what remains, and the pieces fill the square. Right: the partial sums SN=12+14+⋯+12N=1−12NS_N = \tfrac12 + \tfrac14 + \cdots + \tfrac{1}{2^N} = 1 - \tfrac{1}{2^N} climb towards 1 (dashed); the gap to 1 halves at every step.

Partial sums

Definition 14.4Series and their sums

Let (an)(a_n) be a sequence. The series

∑n=1∞an=a1+a2+a3+⋯ ,\sum_{n=1}^{\infty} a_n = a_1 + a_2 + a_3 + \cdots,

read “the sum of a sub n from n equals 1 to infinity”, has the partial sums SN=a1+a2+⋯+aN,S_N = a_1 + a_2 + \cdots + a_N\mathclose{\text{,}} the sums of its first NN terms. If the sequence of partial sums converges to a number S,S\mathclose{\text{,}} the series converges, and SS is its sum:

∑n=1∞an=Smeanslim⁡N→∞SN=S.\sum_{n=1}^{\infty} a_n = S \quad\text{means}\quad \lim_{N\to\infty} S_N = S.

Otherwise the series diverges.

An infinite sum is a limit: you cannot add infinitely many numbers one by one, but you can add the first NN and ask what happens as NN grows. The sigma notation is that of Module 9, with ∞\infty as the upper limit. A series may start at another index, often n=0.n = 0\mathclose{\text{.}} Throughout this module, SNS_N means the sum of the first NN terms, so for ∑n=0∞an\sum_{n=0}^{\infty} a_n it is a0+a1+⋯+aN−1.a_0 + a_1 + \cdots + a_{N-1}\mathclose{\text{.}}

Every series involves two sequences: its terms ana_n and its partial sums SN.S_N\mathclose{\text{.}} Keep them apart. In Zeno’s series the terms 1/2n1/2^n tend to 0, while the partial sums tend to 1, the sum.

Series can be added and multiplied by constants term by term, and their first terms do not decide whether they converge.

Theorem 14.6Sum laws for series

If ∑an=A\sum a_n = A and ∑bn=B\sum b_n = B converge and cc is a constant, then ∑(an+bn)=A+B,\sum (a_n + b_n) = A + B\mathclose{\text{,}} ∑(an−bn)=A−B\sum (a_n - b_n) = A - B and ∑c an=cA.\sum c\,a_n = cA\mathclose{\text{.}} Changing, adding or removing finitely many terms of a series does not change whether it converges; if it converges, the sum changes by the total of the changes.

Proof

The partial sums of ∑(an+bn)\sum (a_n + b_n) are AN+BN,A_N + B_N\mathclose{\text{,}} where ANA_N and BNB_N are those of the two series, so they tend to A+BA + B by the sum law for sequences; the other two laws follow in the same way. If two series differ only in their first kk terms, then for N≥kN \ge k their partial sums differ by a fixed number d,d\mathclose{\text{,}} the difference of the sums of the first kk terms; so one sequence of partial sums converges exactly when the other does, and their limits differ by d.d\mathclose{\text{.}} Adding or removing terms at the start shifts the index as well, which changes nothing.

∎
Watch out

There is no such law for products: ∑anbn\sum a_n b_n is not (∑an)(∑bn).\big(\sum a_n\big)\big(\sum b_n\big)\mathclose{\text{.}} For an=bn=1/2n,a_n = b_n = 1/2^n\mathclose{\text{,}} ∑anbn=∑1/4n=13,\sum a_n b_n = \sum 1/4^n = \tfrac13\mathclose{\text{,}} while (∑1/2n)2=1.\big(\sum 1/2^n\big)^2 = 1\mathclose{\text{.}} And the sum laws need both series to converge: ∑(1−1)\sum (1 - 1) is 0, while ∑1\sum 1 and ∑1\sum 1 diverge.

Geometric series

Zeno’s series is the most important kind of series: each term is a fixed multiple of the one before.

Theorem 14.7Geometric series

Let a≠0.a \ne 0\mathclose{\text{.}} The geometric series with first term aa and ratio r,r\mathclose{\text{,}}

∑n=0∞arn=a+ar+ar2+ar3+⋯ ,\sum_{n=0}^{\infty} ar^n = a + ar + ar^2 + ar^3 + \cdots,

converges if ∣r∣<1,\abs{r} < 1\mathclose{\text{,}} with sum

∑n=0∞arn=a1−r,\sum_{n=0}^{\infty} ar^n = \frac{a}{1 - r},

and diverges if ∣r∣≥1.\abs{r} \ge 1\mathclose{\text{.}}

Proof

For r≠1,r \ne 1\mathclose{\text{,}} multiply the partial sum SN=a+ar+⋯+arN−1S_N = a + ar + \cdots + ar^{N-1} by r:r\mathclose{\text{:}}

rSN=ar+ar2+⋯+arN.rS_N = ar + ar^2 + \cdots + ar^N.

Subtract: every term but the first of SNS_N and the last of rSNrS_N cancels, so SN−rSN=a−arN,S_N - rS_N = a - ar^N\mathclose{\text{,}} and

SN=a(1−rN)1−r(r≠1).S_N = \frac{a(1 - r^N)}{1 - r} \qquad (r \ne 1).

If ∣r∣<1,\abs{r} < 1\mathclose{\text{,}} then rN→0r^N \to 0 (Theorem 14.3), so SN→a1−r.S_N \to \dfrac{a}{1 - r}\mathclose{\text{.}} If r=1,r = 1\mathclose{\text{,}} then SN=Na,S_N = Na\mathclose{\text{,}} which diverges to ∞\infty or −∞.-\infty\mathclose{\text{.}} If ∣r∣≥1\abs{r} \ge 1 and r≠1,r \ne 1\mathclose{\text{,}} the formula gives rN=1−(1−r)SN/a;r^N = 1 - (1 - r)S_N/a\mathclose{\text{;}} if SNS_N converged, so would rN,r^N\mathclose{\text{,}} by the limit laws, and Theorem 14.3 says that it does not. So the series diverges.

∎

Zeno’s series has first term a=12a = \tfrac12 (at n=1)n = 1\mathclose{\text{)}} and ratio r=12,r = \tfrac12\mathclose{\text{,}} so its sum is 1/21−1/2=1,\dfrac{1/2}{1 - 1/2} = 1\mathclose{\text{,}} as the square showed. In the formula, aa is always the first term of the series, whatever its index.

Example 14.6Geometric series✓ Checked

Find the sum of each series, or show that it diverges:

  • (a) ∑n=1∞3(−23)n\displaystyle\sum_{n=1}^{\infty} 3\Big(-\frac23\Big)^n
  • (b) ∑n=0∞4n3n+1\displaystyle\sum_{n=0}^{\infty} \frac{4^n}{3^{n+1}}

(a) The first term, at n=1,n = 1\mathclose{\text{,}} is 3⋅(−23)=−2,3 \cdot \big(-\tfrac23\big) = -2\mathclose{\text{,}} and each term is −23-\tfrac23 times the one before. So the series is geometric with a=−2a = -2 and r=−23,r = -\tfrac23\mathclose{\text{,}} and ∣r∣<1:\abs{r} < 1\mathclose{\text{:}}

∑n=1∞3(−23)n=−21−(−2/3)=−25/3=−65.\begin{aligned} \sum_{n=1}^{\infty} 3\Big(-\frac23\Big)^n &= \frac{-2}{1 - (-2/3)} \\ &= \frac{-2}{5/3} = -\frac65. \end{aligned}

The common slip is to take a=3,a = 3\mathclose{\text{,}} the coefficient, which gives 95:\tfrac95\mathclose{\text{:}} the formula needs the first term of the series, here the term with n=1.n = 1\mathclose{\text{.}}

(b) 4n3n+1=13(43)n,\dfrac{4^n}{3^{n+1}} = \dfrac13\Big(\dfrac43\Big)^n\mathclose{\text{,}} so the series is geometric with ratio r=43>1.r = \tfrac43 > 1\mathclose{\text{.}} It diverges; indeed its terms grow without bound.

Example 14.7Repeating decimals✓ Checked

Write 0.272727…0.272727\ldots and 2.3454545…2.3454545\ldots as fractions.

A decimal is a sum: 0.272727…=27100+271002+271003+⋯,0.272727\ldots = \dfrac{27}{100} + \dfrac{27}{100^2} + \dfrac{27}{100^3} + \cdots\mathclose{\text{,}} a geometric series with a=27100a = \tfrac{27}{100} and r=1100.r = \tfrac{1}{100}\mathclose{\text{.}} Its sum is

27/1001−1/100=27/10099/100=2799=311.\frac{27/100}{1 - 1/100} = \frac{27/100}{99/100} = \frac{27}{99} = \frac{3}{11}.

For the second number, only the digits 45 repeat, from the second decimal place on:

2.3454545…=2.3+(451000+45100 000+⋯)=2310+45/10001−1/100=2310+122=12955.\begin{aligned} 2.3454545\ldots &= 2.3 + \Big(\frac{45}{1000} + \frac{45}{100\,000} + \cdots\Big) \\ &= \frac{23}{10} + \frac{45/1000}{1 - 1/100} \\ &= \frac{23}{10} + \frac{1}{22} = \frac{129}{55}. \end{aligned}

The same reasoning gives 0.999…=9/101−1/10=1.0.999\ldots = \dfrac{9/10}{1 - 1/10} = 1\mathclose{\text{.}} An infinite decimal is the sum of a series, and the partial sums 0.9,0.99,0.999,…0.9, 0.99, 0.999, \dots converge to 1: 0.999…0.999\ldots and 1 are the same number, written in two ways.

Geometric series appear wherever a quantity is multiplied by the same factor again and again. In reinforcement learning, for example, a program learns to act by collecting rewards, and a reward that arrives nn steps in the future is discounted by a factor γn,\gamma^n\mathclose{\text{,}} with 0<γ<10 < \gamma < 1 (γ\gamma is the Greek letter gamma). A reward of 1 at every step is then worth ∑n=0∞γn=11−γ\sum_{n=0}^{\infty} \gamma^n = \dfrac{1}{1 - \gamma} in total, which is 100 for γ=0.99.\gamma = 0.99\mathclose{\text{.}}

Watch out

The formula a1−r\dfrac{a}{1 - r} holds only for ∣r∣<1.\abs{r} < 1\mathclose{\text{.}} Applied to 1+2+4+8+⋯1 + 2 + 4 + 8 + \cdots it gives 11−2=−1,\dfrac{1}{1 - 2} = -1\mathclose{\text{,}} absurd for a sum of positive numbers: the partial sums 2N−12^N - 1 grow without bound. Check that ∣r∣<1\abs{r} < 1 before you use the formula.

Telescoping series

For most series there is no formula for SN.S_N\mathclose{\text{.}} Geometric series are one exception; telescoping series are another. Their terms are differences, an=bn−bn+1,a_n = b_n - b_{n+1}\mathclose{\text{,}} and in the partial sums everything cancels except the two ends, like the sections of a collapsing telescope:

SN=(b1−b2)+(b2−b3)+⋯+(bN−bN+1)=b1−bN+1.\begin{aligned} S_N &= (b_1 - b_2) + (b_2 - b_3) + \cdots \\ &\qquad + (b_N - b_{N+1}) \\ &= b_1 - b_{N+1}. \end{aligned}

So the series converges exactly when bnb_n has a limit, and then its sum is b1−lim⁡bn.b_1 - \lim b_n\mathclose{\text{.}} The standard example is

∑n=1∞1n(n+1),1n(n+1)=1n−1n+1\sum_{n=1}^{\infty}\frac{1}{n(n + 1)}, \qquad \frac{1}{n(n + 1)} = \frac1n - \frac{1}{n + 1}

(put the right side over the common denominator n(n+1)n(n + 1) to check). Here bn=1/n,b_n = 1/n\mathclose{\text{,}} so SN=1−1N+1→1.S_N = 1 - \dfrac{1}{N + 1} \to 1\mathclose{\text{.}}

Example 14.8Two telescoping series✓ Checked

(a) Find ∑n=1∞1n(n+2).\displaystyle\sum_{n=1}^{\infty}\frac{1}{n(n + 2)}\mathclose{\text{.}} (b) Show that ∑n=1∞ln⁡(1+1n)\displaystyle\sum_{n=1}^{\infty}\ln\Big(1 + \frac1n\Big) diverges.

(a) By partial fractions (Module 11), 1n(n+2)=12(1n−1n+2);\dfrac{1}{n(n + 2)} = \dfrac12\Big(\dfrac1n - \dfrac{1}{n + 2}\Big)\mathclose{\text{;}} check by combining the right side, 12⋅(n+2)−nn(n+2).\tfrac12\cdot\dfrac{(n + 2) - n}{n(n + 2)}\mathclose{\text{.}} Now each negative part cancels with a positive part two places later:

SN=12[(1−13)+(12−14)+(13−15)+⋯+(1N−1N+2)]=12(1+12−1N+1−1N+2).\begin{aligned} S_N &= \frac12\Big[\Big(1 - \frac13\Big) + \Big(\frac12 - \frac14\Big) + \Big(\frac13 - \frac15\Big) \\ &\qquad + \cdots + \Big(\frac1N - \frac{1}{N + 2}\Big)\Big] \\ &= \frac12\Big(1 + \frac12 - \frac{1}{N + 1} - \frac{1}{N + 2}\Big). \end{aligned}

Only the first two positive parts and the last two negative ones survive. As N→∞,N \to \infty\mathclose{\text{,}} SN→12⋅32=34.S_N \to \tfrac12 \cdot \tfrac32 = \tfrac34\mathclose{\text{.}}

(b) ln⁡(1+1n)=ln⁡n+1n=ln⁡(n+1)−ln⁡n,\ln\big(1 + \tfrac1n\big) = \ln\dfrac{n + 1}{n} = \ln(n + 1) - \ln n\mathclose{\text{,}} by the laws of logarithms. So the series telescopes:

SN=(ln⁡2−ln⁡1)+(ln⁡3−ln⁡2)+⋯+(ln⁡(N+1)−ln⁡N)=ln⁡(N+1),\begin{aligned} S_N &= (\ln 2 - \ln 1) + (\ln 3 - \ln 2) + \cdots \\ &\qquad + \big(\ln(N + 1) - \ln N\big) \\ &= \ln(N + 1), \end{aligned}

since ln⁡1=0.\ln 1 = 0\mathclose{\text{.}} As N→∞,N \to \infty\mathclose{\text{,}} ln⁡(N+1)→∞:\ln(N + 1) \to \infty\mathclose{\text{:}} the series diverges, although its terms tend to ln⁡1=0.\ln 1 = 0\mathclose{\text{.}}

Part (b) is a warning: terms that tend to 0 do not make a series converge. Section 14.4 meets the most famous example. Before that, experiment with partial sums.

Try it

Choose a series and watch its partial sums S1,…,SNS_1, \dots, S_N (the dots) and its terms (the bars below). The dashed line is the sum, where theory gives it; the verdict comes from the theorems of this module, never from the dots. Start with the geometric series: set r=0.5,r = 0.5\mathclose{\text{,}} then r=0.9r = 0.9 and 0.99,0.99\mathclose{\text{,}} and see the approach slow down as rr nears 1; then try r=−0.9r = -0.9 (the sums zigzag), r=−1r = -1 and r=1.1.r = 1.1\mathclose{\text{.}} Choose the harmonic series and move NN to 200: the dots rise ever more slowly, yet the verdict is “diverges” (Section 14.4). Then compare the pp-series for p=2,p = 2\mathclose{\text{,}} p=1.1p = 1.1 and p=0.9p = 0.9 (Section 14.5), the alternating harmonic series (Section 14.7), ∑1/n!\sum 1/n! and ∑(−1)n.\sum (-1)^n\mathclose{\text{.}}

Compute itSums with SymPy

sp.summation adds a series, finite or infinite, exactly when it can. Declaring n and N positive integers helps it:

Python
import sympy as sp
n, N = sp.symbols('n N', integer=True, positive=True)
print(sp.summation(1/(n*(n + 1)), (n, 1, N)))       # the partial sum S_N
print(sp.summation(1/(n*(n + 1)), (n, 1, sp.oo)))   # the sum
print(sp.apart(1/(n*(n + 2)), n))                   # partial fractions
print(sp.summation(3*sp.Rational(-2, 3)**n, (n, 1, sp.oo)))
Output
1 - 1/(N + 1)
1
-1/(2*(n + 2)) + 1/(2*n)
-6/5

These are the telescoping sum of Section 14.3, the partial fractions of Example 14.8 (with the two fractions in SymPy’s order) and the sum of Example 14.6. For a geometric series with an unknown ratio, SymPy states the condition:

Python
r = sp.symbols('r')
print(sp.summation(r**n, (n, 0, sp.oo)))
Output
Piecewise((1/(1 - r), Abs(r) < 1), (Sum(r**n, (n, 0, oo)), True))

Piecewise reads: 11−r\dfrac{1}{1 - r} if ∣r∣<1,\abs{r} < 1\mathclose{\text{,}} and otherwise the sum left unevaluated, because it diverges. SymPy is not infallible, though. The series ∑1/(2n2−n)\sum 1/(2n^2 - n) converges (compare it with ∑1/n2,\sum 1/n^2\mathclose{\text{,}} Section 14.6), but:

Python
print(sp.summation(1/(2*n**2 - n), (n, 1, sp.oo)))
s = sum(1/(2*k**2 - k) for k in range(1, 10**6 + 1))   # 10^6 terms
print(f"{s:.6f}  {float(2*sp.log(2)):.6f}")
Output
nan
1.386294  1.386294

nan, “not a number”, means that SymPy has failed. The partial sum of a million terms agrees to six decimals with 2ln⁡2,2\ln 2\mathclose{\text{,}} which is the true sum: partial fractions give 12n2−n=2(12n−1−12n),\dfrac{1}{2n^2 - n} = 2\Big(\dfrac{1}{2n - 1} - \dfrac{1}{2n}\Big)\mathclose{\text{,}} twice the terms of the alternating harmonic series of Section 14.7, taken in pairs. When a computer algebra system gives an answer you cannot check, check it another way.

4

The harmonic series and the divergence test

If a series converges, its terms must shrink to 0: otherwise each new term would keep moving the partial sums by a sizeable amount.

Theorem 14.8The terms of a convergent series tend to 0

If ∑an\sum a_n converges, then lim⁡n→∞an=0.\displaystyle\lim_{n\to\infty} a_n = 0\mathclose{\text{.}}

Proof

Each term is the difference of two consecutive partial sums: an=Sn−Sn−1.a_n = S_n - S_{n-1}\mathclose{\text{.}} If SN→S,S_N \to S\mathclose{\text{,}} then also SN−1→SS_{N-1} \to S (the same sequence, shifted by one place), so an=Sn−Sn−1→S−S=0.a_n = S_n - S_{n-1} \to S - S = 0\mathclose{\text{.}}

∎

Read the other way round, the theorem is a test.

Key idea

The divergence test. If ana_n does not tend to 0, either because it has another limit or because it has none, then ∑an\sum a_n diverges. If an→0,a_n \to 0\mathclose{\text{,}} the test says nothing: the series may converge or diverge.

Example 14.9The divergence test✓ Checked

Show that these series diverge: (a) ∑n=1∞n2n+1,\displaystyle\sum_{n=1}^{\infty}\frac{n}{2n + 1}\mathclose{\text{,}} (b) ∑n=0∞(−1)n,\displaystyle\sum_{n=0}^{\infty}(-1)^n\mathclose{\text{,}} (c) ∑n=1∞cos⁡1n.\displaystyle\sum_{n=1}^{\infty}\cos\frac1n\mathclose{\text{.}}

(a) n2n+1=12+1/n→12≠0.\dfrac{n}{2n + 1} = \dfrac{1}{2 + 1/n} \to \dfrac12 \ne 0\mathclose{\text{.}}

(b) The terms are 1,−1,1,−1,…,1, -1, 1, -1, \dots\mathclose{\text{,}} which have no limit (Theorem 14.3 with r=−1).r = -1\mathclose{\text{).}} The partial sums are 1,0,1,0,…:1, 0, 1, 0, \dots\mathclose{\text{:}} they never settle.

(c) 1/n→01/n \to 0 and the cosine is continuous at 0, so cos⁡(1/n)→cos⁡0=1≠0.\cos(1/n) \to \cos 0 = 1 \ne 0\mathclose{\text{.}}

In each case the terms do not tend to 0, so the series diverges.

The harmonic series diverges

Does the converse hold: if an→0,a_n \to 0\mathclose{\text{,}} does ∑an\sum a_n converge? The most famous series of all says no. The harmonic series is

∑n=1∞1n=1+12+13+14+⋯\sum_{n=1}^{\infty}\frac1n = 1 + \frac12 + \frac13 + \frac14 + \cdots

Its terms tend to 0, and its partial sums grow very slowly:

NNSN=1+12+⋯+1NS_N = 1 + \tfrac12 + \cdots + \tfrac1N
10102.928972.92897
1001005.187385.18738
100010007.485477.48547
10000100009.787619.78761
10000010000012.090112.0901
1000000100000014.392714.3927

A million terms add up to less than 15, and each tenfold increase in NN adds only about 2.3. The numbers look as if they might level off. They do not.

Theorem 14.9The harmonic series diverges

The partial sums of ∑1/n\sum 1/n tend to infinity.

Proof

The terms are positive, so the partial sums increase. Group the terms after the first two into blocks that end at the powers of 2:

S2k=1+12+(13+14)+(15+⋯+18)+⋯+(12k−1+1+⋯+12k).\begin{aligned} S_{2^k} &= 1 + \frac12 + \Big(\frac13 + \frac14\Big) + \Big(\frac15 + \cdots + \frac18\Big) \\ &\qquad + \cdots + \Big(\frac{1}{2^{k-1} + 1} + \cdots + \frac{1}{2^k}\Big). \end{aligned}

The block that ends at 2j2^j has 2j−12^{j-1} terms, and each is at least the last one, 1/2j.1/2^j\mathclose{\text{.}} So each block is at least 2j−1/2j=12:2^{j-1}/2^j = \tfrac12\mathclose{\text{:}} for instance 13+14≥14+14=12,\tfrac13 + \tfrac14 \ge \tfrac14 + \tfrac14 = \tfrac12\mathclose{\text{,}} and 15+16+17+18≥4⋅18=12.\tfrac15 + \tfrac16 + \tfrac17 + \tfrac18 \ge 4 \cdot \tfrac18 = \tfrac12\mathclose{\text{.}} There are k−1k - 1 blocks, so

S2k≥1+12+(k−1)⋅12=1+k2.S_{2^k} \ge 1 + \frac12 + (k - 1)\cdot\frac12 = 1 + \frac{k}{2}.

Given any number M,M\mathclose{\text{,}} choose kk with 1+k/2>M.1 + k/2 > M\mathclose{\text{.}} For every N≥2k,N \ge 2^k\mathclose{\text{,}} SN≥S2k>M,S_N \ge S_{2^k} > M\mathclose{\text{,}} because the partial sums increase. So SN→∞.S_N \to \infty\mathclose{\text{.}}

∎

The proof shows how slowly the sums grow. It guarantees that SNS_N is at least 10 by N=218=262,144;N = 2^{18} = 262{,}144\mathclose{\text{;}} in fact it first passes 10 at N=12,367N = 12{,}367 (the compute box of Section 14.5 finds this). To pass 100, more than 104210^{42} terms are needed (Section 14.5).

Watch out

The most common mistake with series is “the terms tend to 0, so the series converges”. The divergence test works in one direction only: an→0a_n \to 0 is needed for convergence, but it is not enough. The terms 1/n1/n tend to 0, yet ∑1/n\sum 1/n diverges; so do ln⁡(1+1/n)\ln(1 + 1/n) and its series (Example 14.8).

Good to know

The harmonic series holds up a famous stack of blocks. Stack nn identical blocks of length 1 at the edge of a table, each block sticking out beyond the one below it: the top one by 12,\tfrac12\mathclose{\text{,}} the next by 14,\tfrac14\mathclose{\text{,}} the next by 16,\tfrac16\mathclose{\text{,}} and the bottom one by 12n\tfrac{1}{2n} beyond the edge. A computation with centres of mass (Module 12) shows that the stack balances, and the top block then reaches

12+14+⋯+12n=12(1+12+⋯+1n)\frac12 + \frac14 + \cdots + \frac{1}{2n} = \frac12\Big(1 + \frac12 + \cdots + \frac1n\Big)

beyond the edge of the table. Because the harmonic series diverges, the overhang can be as large as you like. Four blocks already put the top one wholly beyond the edge, since 12(1+12+13+14)=2524>1;\tfrac12\big(1 + \tfrac12 + \tfrac13 + \tfrac14\big) = \tfrac{25}{24} > 1\mathclose{\text{;}} stacked this way, an overhang of 10 lengths needs 272,400,600 blocks.

5

The integral test

The harmonic series diverges; what about ∑1/n2?\sum 1/n^2\mathclose{\text{?}} Its partial sums increase too, so by the Monotone Convergence Theorem the question is whether they stay bounded. Comparing the sum with an integral answers it.

In Figure 14.4 (left), the rectangle on [n−1,n][n - 1, n] has width 1 and height 1/n2,1/n^2\mathclose{\text{,}} the value of 1/x21/x^2 at its right end. The curve decreases, so the rectangle lies under it. Adding the rectangles from n=2n = 2 to N,N\mathclose{\text{,}}

122+132+⋯+1N2≤∫1Ndxx2=1−1N<1.\frac{1}{2^2} + \frac{1}{3^2} + \cdots + \frac{1}{N^2} \le \int_1^N \frac{dx}{x^2} = 1 - \frac1N < 1.

So SN<2S_N < 2 for every N:N\mathclose{\text{:}} the partial sums increase and are bounded above, and ∑1/n2\sum 1/n^2 converges. On the right of Figure 14.4, the rectangle on [n,n+1][n, n + 1] has height 1/n,1/n\mathclose{\text{,}} the value of 1/x1/x at its left end, so it lies above the curve, and

SN=1+12+⋯+1N≥∫1N+1dxx=ln⁡(N+1)→∞:\begin{aligned} S_N &= 1 + \frac12 + \cdots + \frac1N \\ &\ge \int_1^{N+1}\frac{dx}{x} = \ln(N + 1) \to \infty: \end{aligned}

a second proof that the harmonic series diverges.

Series and integrals. Left: the rectangles under y = 1/x^2 have heights tfrac{1}{2^2}, tfrac{1}{3^2}, dots, tfrac{1}{6^2}, so tfrac{1}{2^2} + cdots + tfrac{1}{6^2} is less than the area under the curve from 1 to 6, which is less than 1. Right: the rectangles above y = 1/x have heights 1, tfrac12, dots, tfrac15, so 1 + tfrac12 + cdots + tfrac15 is more than the area under the curve from 1 to 6, which is ln 6.
Figure 14.4

Series and integrals. Left: the rectangles under y=1/x2y = 1/x^2 have heights 122,132,…,162,\tfrac{1}{2^2}, \tfrac{1}{3^2}, \dots, \tfrac{1}{6^2}\mathclose{\text{,}} so 122+⋯+162\tfrac{1}{2^2} + \cdots + \tfrac{1}{6^2} is less than the area under the curve from 1 to 6, which is less than 1. Right: the rectangles above y=1/xy = 1/x have heights 1,12,…,15,1, \tfrac12, \dots, \tfrac15\mathclose{\text{,}} so 1+12+⋯+151 + \tfrac12 + \cdots + \tfrac15 is more than the area under the curve from 1 to 6, which is ln⁡6.\ln 6\mathclose{\text{.}}

Theorem 14.10The integral test

Let ff be continuous, positive and decreasing on [1,∞),[1, \infty)\mathclose{\text{,}} and let an=f(n).a_n = f(n)\mathclose{\text{.}} Then ∑n=1∞an\sum_{n=1}^{\infty} a_n and ∫1∞f(x) dx\displaystyle\int_1^{\infty} f(x)\,dx both converge or both diverge. More precisely, for every N≥1,N \ge 1\mathclose{\text{,}}

∫1N+1f(x) dx≤SN≤f(1)+∫1Nf(x) dx.\int_1^{N+1} f(x)\,dx \le S_N \le f(1) + \int_1^N f(x)\,dx.

The same holds with [k,∞)[k, \infty) in place of [1,∞)[1, \infty) and the series started at n=k.n = k\mathclose{\text{.}}

Proof

Let n≥1.n \ge 1\mathclose{\text{.}} Since ff decreases, f(n+1)≤f(x)≤f(n)f(n + 1) \le f(x) \le f(n) for every xx in [n,n+1],[n, n + 1]\mathclose{\text{,}} so, by the bounds for integrals of Module 9,

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

Adding the right-hand inequalities for n=1,…,Nn = 1, \dots, N gives ∫1N+1f(x) dx≤a1+⋯+aN=SN.\int_1^{N+1} f(x)\,dx \le a_1 + \cdots + a_N = S_N\mathclose{\text{.}} Adding the left-hand ones for n=1,…,N−1n = 1, \dots, N - 1 gives a2+⋯+aN≤∫1Nf(x) dx,a_2 + \cdots + a_N \le \int_1^N f(x)\,dx\mathclose{\text{,}} which is the right-hand inequality of the theorem.

The terms are positive, so (SN)(S_N) increases. If ∫1∞f(x) dx\int_1^{\infty} f(x)\,dx converges, to II say, then ∫1Nf(x) dx≤I,\int_1^N f(x)\,dx \le I\mathclose{\text{,}} because ff is positive; so SN≤f(1)+IS_N \le f(1) + I for every N,N\mathclose{\text{,}} and the series converges by the Monotone Convergence Theorem. If the integral diverges, then ∫1tf(x) dx,\int_1^t f(x)\,dx\mathclose{\text{,}} which increases with t,t\mathclose{\text{,}} is not bounded above (an increasing function that is bounded above has a limit, Section 12.8), so it grows without bound; then SN≥∫1N+1f(x) dx→∞S_N \ge \int_1^{N+1} f(x)\,dx \to \infty and the series diverges.

∎

Each hypothesis has a job. Continuity makes the integrals exist (Module 9), and positivity makes the partial sums increase. Decreasing is what puts the rectangles on the right sides of the curve, and without it the test can give the wrong answer. For f(x)=sin⁡2(πx)+1/x2,f(x) = \sin^2(\pi x) + 1/x^2\mathclose{\text{,}} which is continuous and positive but not decreasing, f(n)=1/n2f(n) = 1/n^2 for every whole number n,n\mathclose{\text{,}} so the series converges; but each interval [n,n+1][n, n + 1] contributes more than 12\tfrac12 to the integral, which diverges.

p-series

Theorem 14.11p-series

The pp-series ∑n=1∞1np\displaystyle\sum_{n=1}^{\infty}\frac{1}{n^p} converges if p>1p > 1 and diverges if p≤1.p \le 1\mathclose{\text{.}}

Proof

If p≤0,p \le 0\mathclose{\text{,}} then 1/np=n−p≥11/n^p = n^{-p} \ge 1 for every n≥1,n \ge 1\mathclose{\text{,}} so the terms do not tend to 0, and the series diverges by the divergence test. If p>0,p > 0\mathclose{\text{,}} the function f(x)=1/xpf(x) = 1/x^p is continuous, positive and decreasing on [1,∞).[1, \infty)\mathclose{\text{.}} Theorem 12.2 showed that the pp-integral ∫1∞dx/xp\int_1^{\infty} dx/x^p converges exactly when p>1:p > 1\mathclose{\text{:}} for p≠1,p \ne 1\mathclose{\text{,}}

∫1tdxxp=t1−p−11−p,\int_1^t \frac{dx}{x^p} = \frac{t^{1-p} - 1}{1 - p},

which tends to 1p−1\dfrac{1}{p - 1} if p>1p > 1 and to ∞\infty if p<1,p < 1\mathclose{\text{,}} while for p=1p = 1 the integral is ln⁡t→∞.\ln t \to \infty\mathclose{\text{.}} The integral test does the rest.

∎

The pp-series are the yardsticks of the next section. For p=2p = 2 the sum is known exactly,

∑n=1∞1n2=π26≈1.644934,\sum_{n=1}^{\infty}\frac{1}{n^2} = \frac{\pi^2}{6} \approx 1.644934,

but its proof is beyond the scope of this module. There are such formulas for every even p,p\mathclose{\text{,}} for instance ∑1/n4=π4/90,\sum 1/n^4 = \pi^4/90\mathclose{\text{,}} but for p=3p = 3 no formula is known; the next subsection shows how to estimate the sum.

Example 14.10The integral test on the edge✓ Checked

Decide whether (a) ∑n=2∞1nln⁡n\displaystyle\sum_{n=2}^{\infty}\frac{1}{n\ln n} and (b) ∑n=2∞1n(ln⁡n)2\displaystyle\sum_{n=2}^{\infty}\frac{1}{n(\ln n)^2} converge.

Both start at n=2,n = 2\mathclose{\text{,}} since ln⁡1=0.\ln 1 = 0\mathclose{\text{.}} On [2,∞),[2, \infty)\mathclose{\text{,}} xln⁡xx\ln x and x(ln⁡x)2x(\ln x)^2 are positive and increasing (products of positive increasing functions), so f(x)=1xln⁡xf(x) = \dfrac{1}{x\ln x} and g(x)=1x(ln⁡x)2g(x) = \dfrac{1}{x(\ln x)^2} are continuous, positive and decreasing there: the integral test applies. Substitute u=ln⁡x,u = \ln x\mathclose{\text{,}} du=dx/xdu = dx/x (Module 10).

(a) For t>2,t > 2\mathclose{\text{,}}

∫2tdxxln⁡x=∫ln⁡2ln⁡tduu=ln⁡(ln⁡t)−ln⁡(ln⁡2)→∞(t→∞).\begin{aligned} \int_2^t \frac{dx}{x\ln x} &= \int_{\ln 2}^{\ln t}\frac{du}{u} \\ &= \ln(\ln t) - \ln(\ln 2) \to \infty \quad (t \to \infty). \end{aligned}

The integral diverges, so the series diverges.

(b) For t>2,t > 2\mathclose{\text{,}}

∫2tdxx(ln⁡x)2=∫ln⁡2ln⁡tduu2=1ln⁡2−1ln⁡t→1ln⁡2(t→∞).\begin{aligned} \int_2^t \frac{dx}{x(\ln x)^2} &= \int_{\ln 2}^{\ln t}\frac{du}{u^2} \\ &= \frac{1}{\ln 2} - \frac{1}{\ln t} \to \frac{1}{\ln 2} \quad (t \to \infty). \end{aligned}

The integral converges, so the series converges.

The series in (a) diverges even more slowly than the harmonic series. By the integral test (started at n=2),n = 2\mathclose{\text{),}} the sum of its terms up to n=Nn = N is at most 12ln⁡2+ln⁡(ln⁡N)−ln⁡(ln⁡2),\dfrac{1}{2\ln 2} + \ln(\ln N) - \ln(\ln 2)\mathclose{\text{,}} so its partial sums stay below 10 for the first 10300010^{3000} terms and more.

Estimating the sum

The same rectangles do more than decide. They bound the error of a partial sum. When ∑an\sum a_n converges to S,S\mathclose{\text{,}} the remainder after NN terms is

RN=S−SN=aN+1+aN+2+⋯ ,R_N = S - S_N = a_{N+1} + a_{N+2} + \cdots,

the sum of the terms left out. It is the error of the approximation S≈SN:S \approx S_N\mathclose{\text{:}} the exact value minus the approximation, as everywhere in this course.

Theorem 14.12Remainder estimate for the integral test

Under the hypotheses of the integral test, if ∑an\sum a_n converges, then

∫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,

so the sum SS satisfies

SN+∫N+1∞f(x) dx≤S≤SN+∫N∞f(x) dx.S_N + \int_{N+1}^{\infty} f(x)\,dx \le S \le S_N + \int_N^{\infty} f(x)\,dx.
Proof

Use the inequalities f(n+1)≤∫nn+1f(x) dx≤f(n)f(n + 1) \le \int_n^{n+1} f(x)\,dx \le f(n) of the last proof on the tail. Adding the right-hand ones for n=N+1,…,Mn = N + 1, \dots, M gives ∫N+1M+1f(x) dx≤aN+1+⋯+aM;\int_{N+1}^{M+1} f(x)\,dx \le a_{N+1} + \cdots + a_M\mathclose{\text{;}} adding the left-hand ones for n=N,…,M−1n = N, \dots, M - 1 gives aN+1+⋯+aM≤∫NMf(x) dx.a_{N+1} + \cdots + a_M \le \int_N^M f(x)\,dx\mathclose{\text{.}} Now let M→∞.M \to \infty\mathclose{\text{.}} The middle is SM−SN,S_M - S_N\mathclose{\text{,}} which tends to RN,R_N\mathclose{\text{,}} and limits keep non-strict inequalities (Section 14.2).

∎
Example 14.11Estimating ∑1/n2\sum 1/n^2✓ Checked

Estimate ∑n=1∞1/n2\sum_{n=1}^{\infty} 1/n^2 from its first 10 terms, with a guaranteed bound on the error.

The partial sum is S10=1+14+⋯+1100≈1.549768.S_{10} = 1 + \tfrac14 + \cdots + \tfrac{1}{100} \approx 1.549768\mathclose{\text{.}} With f(x)=1/x2,f(x) = 1/x^2\mathclose{\text{,}} ∫N∞dx/x2=1/N,\int_N^{\infty} dx/x^2 = 1/N\mathclose{\text{,}} so the theorem gives

111≤R10≤110,so1.640677≤S≤1.649768.\begin{aligned} \frac{1}{11} &\le R_{10} \le \frac{1}{10}, \quad\text{so} \\ 1.640677 &\le S \le 1.649768. \end{aligned}

The partial sum alone is off by almost 0.1, but the interval pins SS down to within 0.01. Its midpoint, S≈1.645222,S \approx 1.645222\mathclose{\text{,}} has an error of size at most half the width of the interval, about 0.0045. In fact S=π2/6≈1.644934,S = \pi^2/6 \approx 1.644934\mathclose{\text{,}} so the true error of the midpoint, π2/6\pi^2/6 minus the midpoint, is about −0.000288:-0.000288\mathclose{\text{:}} the midpoint is slightly too large.

The difference is dramatic for high accuracy. For an error of size at most 10−6,10^{-6}\mathclose{\text{,}} the partial sum alone needs about a million terms, because its error RNR_N is at least 1/(N+1).1/(N + 1)\mathclose{\text{.}} The midpoint estimate has an error of size at most half the width of the interval, 12(1N−1N+1)=12N(N+1),\tfrac12\big(\tfrac1N - \tfrac{1}{N + 1}\big) = \dfrac{1}{2N(N + 1)}\mathclose{\text{,}} which is at most 10−610^{-6} once N≥707.N \ge 707\mathclose{\text{.}}

How slowly?

For the harmonic series, f(x)=1/x,f(x) = 1/x\mathclose{\text{,}} the inequalities of the integral test say that

ln⁡(N+1)≤HN≤1+ln⁡N,\ln(N + 1) \le H_N \le 1 + \ln N,

where HN=1+12+⋯+1NH_N = 1 + \tfrac12 + \cdots + \tfrac1N is the NNth harmonic number. So HNH_N grows like ln⁡N,\ln N\mathclose{\text{,}} and each tenfold increase of NN adds about ln⁡10≈2.303,\ln 10 \approx 2.303\mathclose{\text{,}} as the table of Section 14.4 showed. To pass 100, HNH_N needs 1+ln⁡N≥100,1 + \ln N \ge 100\mathclose{\text{,}} that is, N≥e99≈9.9×1042.N \ge e^{99} \approx 9.9 \times 10^{42}\mathclose{\text{.}} More precisely, HN−ln⁡NH_N - \ln N decreases towards a number γ≈0.5772\gamma \approx 0.5772 called Euler’s constant; Exercise 14.11 proves that the limit exists.

Compute itHow slowly series converge

Add up the harmonic series and ∑1/n2\sum 1/n^2 side by side, and compare with ln⁡N+γ\ln N + \gamma and with π2/6:\pi^2/6\mathclose{\text{:}}

Python
import math
gamma = 0.5772156649015329            # Euler's constant
H = S = 0.0
n = 0
for N in [10, 100, 1000, 10**4, 10**5, 10**6]:
    while n < N:
        n += 1
        H += 1/n                      # the harmonic series
        S += 1/n**2                   # the series of 1/n^2
    L = math.log(N) + gamma
    print(f"N = {N:>7}:  H_N = {H:9.6f}   ln N + gamma = {L:9.6f}"
          f"   pi^2/6 - S_N = {math.pi**2/6 - S:.3e}")
Output
N =      10:  H_N =  2.928968   ln N + gamma =  2.879801   pi^2/6 - S_N = 9.517e-02
N =     100:  H_N =  5.187378   ln N + gamma =  5.182386   pi^2/6 - S_N = 9.950e-03
N =    1000:  H_N =  7.485471   ln N + gamma =  7.484971   pi^2/6 - S_N = 9.995e-04
N =   10000:  H_N =  9.787606   ln N + gamma =  9.787556   pi^2/6 - S_N = 1.000e-04
N =  100000:  H_N = 12.090146   ln N + gamma = 12.090141   pi^2/6 - S_N = 1.000e-05
N = 1000000:  H_N = 14.392727   ln N + gamma = 14.392726   pi^2/6 - S_N = 1.000e-06

The harmonic numbers stay close to ln⁡N+γ,\ln N + \gamma\mathclose{\text{,}} ever closer. The second series converges, but its error after NN terms is about 1/N,1/N\mathclose{\text{,}} as the remainder estimate predicts: each extra correct digit costs ten times as many terms. Where does the harmonic series pass 10?

Python
H, n = 0.0, 0
while H <= 10:
    n += 1
    H += 1/n
print(n, H)
Output
12367 10.000043008275778

The first partial sum above 10 is the 12,367th.

6

Comparison tests

Many series are not geometric, telescoping or pp-series, but look like one of them: 1n2+1\dfrac{1}{n^2 + 1} is a little smaller than 1n2,\dfrac{1}{n^2}\mathclose{\text{,}} and 12n−1\dfrac{1}{2^n - 1} is close to 12n.\dfrac{1}{2^n}\mathclose{\text{.}} Comparison turns the series you know into tests for the ones you do not.

Theorem 14.13The comparison test

Suppose that 0≤an≤bn0 \le a_n \le b_n for every nn from some index on.

  • (a) If ∑bn\sum b_n converges, then ∑an\sum a_n converges.
  • (b) If ∑an\sum a_n diverges, then ∑bn\sum b_n diverges.
Proof

By Theorem 14.6 the first terms do not matter, so suppose that 0≤an≤bn0 \le a_n \le b_n for every n.n\mathclose{\text{.}} Let ANA_N and BNB_N be the partial sums of the two series. Both increase, because the terms are not negative, and AN≤BN.A_N \le B_N\mathclose{\text{.}} (a) If ∑bn\sum b_n converges to B,B\mathclose{\text{,}} then AN≤BN≤BA_N \le B_N \le B for every N,N\mathclose{\text{,}} because an increasing sequence is at most its limit (Theorem 14.5). So (AN)(A_N) is increasing and bounded above, and converges by the Monotone Convergence Theorem. (b) If ∑bn\sum b_n converged, then by (a) so would ∑an.\sum a_n\mathclose{\text{.}}

∎
Example 14.12Comparison✓ Checked

Decide whether (a) ∑n=1∞52n2+4n+3\displaystyle\sum_{n=1}^{\infty}\frac{5}{2n^2 + 4n + 3} and (b) ∑n=1∞ln⁡nn\displaystyle\sum_{n=1}^{\infty}\frac{\ln n}{n} converge.

(a) For n≥1,n \ge 1\mathclose{\text{,}} 2n2+4n+3>2n2,2n^2 + 4n + 3 > 2n^2\mathclose{\text{,}} so

0<52n2+4n+3<52n2=52⋅1n2.0 < \frac{5}{2n^2 + 4n + 3} < \frac{5}{2n^2} = \frac52\cdot\frac{1}{n^2}.

∑52⋅1n2\sum \tfrac52\cdot\tfrac{1}{n^2} converges (p=2,p = 2\mathclose{\text{,}} and the sum law), so the series converges by the comparison test.

(b) For n≥3,n \ge 3\mathclose{\text{,}} ln⁡n>1,\ln n > 1\mathclose{\text{,}} because 3>e;3 > e\mathclose{\text{;}} so ln⁡nn>1n≥0.\dfrac{\ln n}{n} > \dfrac1n \ge 0\mathclose{\text{.}} The harmonic series diverges, so by part (b) of the comparison test, with an=1/na_n = 1/n and bn=(ln⁡n)/nb_n = (\ln n)/n from n=3n = 3 on, this series diverges too: the smaller series diverges, so the larger one does.

Watch out

A comparison in the wrong direction proves nothing. 1n2≤1n,\dfrac{1}{n^2} \le \dfrac1n\mathclose{\text{,}} and ∑1/n\sum 1/n diverges, but that says nothing about ∑1/n2,\sum 1/n^2\mathclose{\text{,}} which converges. 12n−1≥12n,\dfrac{1}{2^n - 1} \ge \dfrac{1}{2^n}\mathclose{\text{,}} and ∑1/2n\sum 1/2^n converges, but that says nothing about ∑1/(2n−1).\sum 1/(2^n - 1)\mathclose{\text{.}} Bound a series above by a convergent one, or below by a divergent one.

Limit comparison

The second series of the pitfall does converge. Its terms are a little larger than 1/2n,1/2^n\mathclose{\text{,}} so the inequality points the wrong way, but their ratio to 1/2n1/2^n tends to 1, and that is enough.

Theorem 14.14The limit comparison test

Suppose that an>0a_n > 0 and bn>0b_n > 0 for every n,n\mathclose{\text{,}} and that

lim⁡n→∞anbn=L,with 0<L<∞.\lim_{n\to\infty}\frac{a_n}{b_n} = L, \qquad\text{with } 0 < L < \infty.

Then ∑an\sum a_n and ∑bn\sum b_n both converge or both diverge.

Proof

Challenge the limit with ε=L/2:\varepsilon = L/2\mathclose{\text{:}} there is an NN such that, for every n>N,n > N\mathclose{\text{,}} ∣an/bn−L∣<L/2,\abs{a_n/b_n - L} < L/2\mathclose{\text{,}} that is, L2<anbn<3L2,\tfrac{L}{2} < \tfrac{a_n}{b_n} < \tfrac{3L}{2}\mathclose{\text{,}} and so

L2 bn<an<3L2 bn.\frac{L}{2}\,b_n < a_n < \frac{3L}{2}\,b_n.

If ∑bn\sum b_n converges, so does ∑3L2bn,\sum \tfrac{3L}{2}b_n\mathclose{\text{,}} and the right-hand inequality and the comparison test show that ∑an\sum a_n converges. If ∑bn\sum b_n diverges, so does ∑L2bn,\sum \tfrac{L}{2}b_n\mathclose{\text{,}} and the left-hand inequality shows that ∑an\sum a_n diverges.

∎

To choose bn,b_n\mathclose{\text{,}} keep only the leading term of the top and of the bottom of an,a_n\mathclose{\text{,}} as for rational functions at infinity.

Example 14.13Limit comparison✓ Checked

Decide whether these converge: (a) ∑n=1∞12n−1,\displaystyle\sum_{n=1}^{\infty}\frac{1}{2^n - 1}\mathclose{\text{,}} (b) ∑n=1∞2n2+3nn5+1,\displaystyle\sum_{n=1}^{\infty}\frac{2n^2 + 3n}{\sqrt{n^5 + 1}}\mathclose{\text{,}} (c) ∑n=1∞sin⁡1n.\displaystyle\sum_{n=1}^{\infty}\sin\frac1n\mathclose{\text{.}}

(a) Compare with bn=1/2n:b_n = 1/2^n\mathclose{\text{:}}

anbn=2n2n−1=11−2−n→1.\frac{a_n}{b_n} = \frac{2^n}{2^n - 1} = \frac{1}{1 - 2^{-n}} \to 1.

∑1/2n\sum 1/2^n converges (geometric, r=12),r = \tfrac12\mathclose{\text{),}} so the series converges.

(b) The leading terms give 2n2n5=2n1/2,\dfrac{2n^2}{\sqrt{n^5}} = \dfrac{2}{n^{1/2}}\mathclose{\text{,}} so compare with bn=1/n.b_n = 1/\sqrt n\mathclose{\text{.}} Divide the top and the bottom by n5/2=n2n:n^{5/2} = n^2\sqrt n\mathclose{\text{:}}

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

∑1/n\sum 1/\sqrt n diverges (p=12),p = \tfrac12\mathclose{\text{),}} so the series diverges.

(c) For n≥1,n \ge 1\mathclose{\text{,}} 0<1/n≤1<π,0 < 1/n \le 1 < \pi\mathclose{\text{,}} so sin⁡(1/n)>0.\sin(1/n) > 0\mathclose{\text{.}} Compare with bn=1/n:b_n = 1/n\mathclose{\text{:}} sin⁡(1/n)1/n→1,\dfrac{\sin(1/n)}{1/n} \to 1\mathclose{\text{,}} by Theorem 2.5 (sin⁡θ/θ→1\sin\theta/\theta \to 1 as θ→0,\theta \to 0\mathclose{\text{,}} here with θ=1/n,\theta = 1/n\mathclose{\text{,}} through Theorem 14.4). The harmonic series diverges, so ∑sin⁡(1/n)\sum \sin(1/n) diverges.

Watch out

The test needs 0<L<∞.0 < L < \infty\mathclose{\text{.}} With L=0L = 0 or L=∞L = \infty it works in one direction only. If an/bn→0,a_n/b_n \to 0\mathclose{\text{,}} then an<bna_n < b_n from some index on, so ∑an\sum a_n converges if ∑bn\sum b_n does, but nothing follows if ∑bn\sum b_n diverges; if an/bn→∞,a_n/b_n \to \infty\mathclose{\text{,}} the reverse. For instance ln⁡nn2\dfrac{\ln n}{n^2} compared with 1n2\dfrac{1}{n^2} gives L=∞L = \infty and no conclusion, but compared with 1n3/2\dfrac{1}{n^{3/2}} it gives ln⁡nn→0\dfrac{\ln n}{\sqrt n} \to 0 with ∑1/n3/2\sum 1/n^{3/2} convergent, so ∑(ln⁡n)/n2\sum (\ln n)/n^2 converges.

7

Alternating series

A series whose terms alternate in sign can converge even when the sizes of its terms add up to infinity. The standard example is the alternating harmonic series

∑n=1∞(−1)n−1n=1−12+13−14+15−⋯\sum_{n=1}^{\infty}\frac{(-1)^{n-1}}{n} = 1 - \frac12 + \frac13 - \frac14 + \frac15 - \cdots

Its partial sums go up and down: S1=1,S_1 = 1\mathclose{\text{,}} S2=0.5,S_2 = 0.5\mathclose{\text{,}} S3≈0.833,S_3 \approx 0.833\mathclose{\text{,}} S4≈0.583,S_4 \approx 0.583\mathclose{\text{,}} and so on. Each step goes the other way and is shorter than the one before, so the partial sums zigzag in an ever narrower band (Figure 14.5). The table compares them with the sum, which is ln⁡2≈0.693147:\ln 2 \approx 0.693147\mathclose{\text{:}}

NNSNS_N∣ln⁡2−SN∣\abs{\ln 2 - S_N}1N+1\dfrac{1}{N + 1}
11110.3068530.3068530.50.5
220.50.50.1931470.1931470.3333330.333333
330.8333330.8333330.1401860.1401860.250.25
440.5833330.5833330.1098140.1098140.20.2
550.7833330.7833330.09018620.09018620.1666670.166667
660.6166670.6166670.07648050.07648050.1428570.142857

The error ln⁡2−SN\ln 2 - S_N changes sign with every step, and its size is always smaller than the size of the first term left out, 1N+1\tfrac{1}{N + 1} (in fact about half of it). The next theorem proves this for every series of this kind.

The partial sums of the alternating harmonic series 1 - tfrac12 + tfrac13 - cdots. The odd ones (S1, S3, S5, dots, blue) decrease, the even ones (S2, S4, S6, dots, orange) increase, and every odd one lies above every even one. Both close in on the sum ln 2 (dashed), which lies between any two consecutive partial sums.
Figure 14.5

The partial sums of the alternating harmonic series 1−12+13−⋯.1 - \tfrac12 + \tfrac13 - \cdots\mathclose{\text{.}} The odd ones (S1,S3,S5,…,S_1, S_3, S_5, \dots\mathclose{\text{,}} blue) decrease, the even ones (S2,S4,S6,…,S_2, S_4, S_6, \dots\mathclose{\text{,}} orange) increase, and every odd one lies above every even one. Both close in on the sum ln⁡2\ln 2 (dashed), which lies between any two consecutive partial sums.

Theorem 14.15The alternating series test

Let bn>0,b_n > 0\mathclose{\text{,}} with bn+1≤bnb_{n+1} \le b_n for every nn and bn→0.b_n \to 0\mathclose{\text{.}} Then the alternating series

∑n=1∞(−1)n−1bn=b1−b2+b3−b4+⋯\sum_{n=1}^{\infty}(-1)^{n-1}b_n = b_1 - b_2 + b_3 - b_4 + \cdots

converges. Its sum SS lies between any two consecutive partial sums, so

∣S−SN∣≤bN+1:\abs{S - S_N} \le b_{N+1}:

the error S−SNS - S_N of the partial sum SNS_N is no larger in size than the first term left out, and it lies between 0 and that term, (−1)NbN+1.(-1)^N b_{N+1}\mathclose{\text{.}} The same holds with every sign reversed, or with the series starting at another index. If the bnb_n decrease only from some index on, the series still converges (Theorem 14.6), and the error bound holds for the partial sums from that index on.

Proof

The even partial sums increase and are bounded above. S2m+2=S2m+(b2m+1−b2m+2)≥S2m,S_{2m+2} = S_{2m} + (b_{2m+1} - b_{2m+2}) \ge S_{2m}\mathclose{\text{,}} because b2m+2≤b2m+1.b_{2m+2} \le b_{2m+1}\mathclose{\text{.}} Grouping the terms differently,

S2m=b1−(b2−b3)−(b4−b5)−⋯−(b2m−2−b2m−1)−b2m≤b1,\begin{aligned} S_{2m} &= b_1 - (b_2 - b_3) - (b_4 - b_5) - \cdots \\ &\qquad - (b_{2m-2} - b_{2m-1}) - b_{2m} \le b_1, \end{aligned}

because every bracket, and b2m,b_{2m}\mathclose{\text{,}} is at least 0. By the Monotone Convergence Theorem, S2m→SS_{2m} \to S for some number S,S\mathclose{\text{,}} with S2m≤SS_{2m} \le S for every m.m\mathclose{\text{.}}

The odd partial sums decrease towards the same limit. S2m+1=S2m−1−(b2m−b2m+1)≤S2m−1,S_{2m+1} = S_{2m-1} - (b_{2m} - b_{2m+1}) \le S_{2m-1}\mathclose{\text{,}} and S2m+1=S2m+b2m+1→S+0=S.S_{2m+1} = S_{2m} + b_{2m+1} \to S + 0 = S\mathclose{\text{.}} A decreasing sequence is at least its limit, so S≤S2m+1S \le S_{2m+1} for every m.m\mathclose{\text{.}}

So SN→S.S_N \to S\mathclose{\text{.}} Given ε>0,\varepsilon > 0\mathclose{\text{,}} the even partial sums are within ε\varepsilon of SS beyond some index, and the odd ones beyond another; beyond the larger of the two, all of them are. Finally S2m≤S≤S2m+1S_{2m} \le S \le S_{2m+1} and S2m≤S≤S2m−1:S_{2m} \le S \le S_{2m-1}\mathclose{\text{:}} SS lies between SNS_N and SN+1S_{N+1} for every N.N\mathclose{\text{.}} Therefore ∣S−SN∣≤∣SN+1−SN∣=bN+1,\abs{S - S_N} \le \abs{S_{N+1} - S_N} = b_{N+1}\mathclose{\text{,}} and S−SNS - S_N lies between 0 and SN+1−SN=(−1)NbN+1.S_{N+1} - S_N = (-1)^N b_{N+1}\mathclose{\text{.}}

∎

The alternating harmonic series satisfies the hypotheses, since bn=1/nb_n = 1/n is positive, decreasing and tends to 0: it converges. Its sum is ln⁡2,\ln 2\mathclose{\text{,}} a fact stated here and proved in Module 15 with the power series of ln⁡(1+x)\ln(1 + x) (Exercise 14.11 gives another proof). The error bound shows how slowly it converges: to be sure of an error of size at most 0.001 from the bound 1N+1,\tfrac{1}{N + 1}\mathclose{\text{,}} you need N=999N = 999 terms. It converges, but not because its terms are small: their sizes 1/n1/n add up to infinity. The cancellation between positive and negative terms does the work. Section 14.8 names this kind of convergence.

Example 14.14An alternating series estimate✓ Checked

Estimate the sum of ∑n=0∞(−1)nn!=1−1+12!−13!+⋯\displaystyle\sum_{n=0}^{\infty}\frac{(-1)^n}{n!} = 1 - 1 + \frac{1}{2!} - \frac{1}{3!} + \cdots with an error of size at most 0.001.

Here bn=1/n!b_n = 1/n! for n≥0.n \ge 0\mathclose{\text{.}} These numbers are positive; they decrease, since bn+1=bnn+1≤bn;b_{n+1} = \dfrac{b_n}{n + 1} \le b_n\mathclose{\text{;}} and they tend to 0, since n!≥n,n! \ge n\mathclose{\text{,}} so that 0<1/n!≤1/n0 < 1/n! \le 1/n for n≥1.n \ge 1\mathclose{\text{.}} The test applies, starting at n=0.n = 0\mathclose{\text{.}}

The first term left out must be at most 0.001 in size. Since 16!=1720≈0.00139\tfrac{1}{6!} = \tfrac{1}{720} \approx 0.00139 is too big and 17!=15040≈0.000198\tfrac{1}{7!} = \tfrac{1}{5040} \approx 0.000198 is small enough, add the terms up to n=6:n = 6\mathclose{\text{:}}

S7=1−1+12−16+124−1120+1720=53144≈0.368056.\begin{aligned} S_7 &= 1 - 1 + \frac12 - \frac16 + \frac{1}{24} \\ &\qquad - \frac{1}{120} + \frac{1}{720} \\ &= \frac{53}{144} \approx 0.368056. \end{aligned}

The error S−S7S - S_7 is at most 15040≈0.000198\tfrac{1}{5040} \approx 0.000198 in size, and it lies between 0 and the first term left out, −15040,-\tfrac{1}{5040}\mathclose{\text{,}} so the sum lies a little below S7:S_7\mathclose{\text{:}}

0.367857≤S≤0.368056.0.367857 \le S \le 0.368056.

Module 15 shows that the sum is 1/e≈0.367879,1/e \approx 0.367879\mathclose{\text{,}} inside the interval.

Watch out

All three hypotheses matter, and “decreasing” is the one that gets forgotten. The series

1−1+12−14+13−19+14−116+⋯ ,1 - 1 + \frac12 - \frac14 + \frac13 - \frac19 + \frac14 - \frac{1}{16} + \cdots,

whose terms are 1k\tfrac1k and −1k2-\tfrac{1}{k^2} in turn, alternates in sign, and its terms tend to 0, but their sizes do not decrease. Its partial sum after 2K2K terms is (1+12+⋯+1K)−(1+14+⋯+1K2),\big(1 + \tfrac12 + \cdots + \tfrac1K\big) - \big(1 + \tfrac14 + \cdots + \tfrac{1}{K^2}\big)\mathclose{\text{,}} which is more than HK−2H_K - 2 and so tends to infinity: the series diverges.

8

Absolute convergence and the ratio and root tests

Some series have terms of both signs that do not alternate, such as

∑n=1∞sin⁡nn2=sin⁡11+sin⁡24+sin⁡39+⋯ ,\sum_{n=1}^{\infty}\frac{\sin n}{n^2} = \frac{\sin 1}{1} + \frac{\sin 2}{4} + \frac{\sin 3}{9} + \cdots,

whose terms start with three positive ones (since 1,1\mathclose{\text{,}} 22 and 33 lie between 0 and π)\pi\mathclose{\text{)}} and then three negative ones (since 4,4\mathclose{\text{,}} 55 and 66 lie between π\pi and 2π).2\pi\mathclose{\text{).}} The alternating series test does not apply. But the sizes of the terms are at most 1/n2,1/n^2\mathclose{\text{,}} and that settles it.

Definition 14.5Absolute and conditional convergence

A series ∑an\sum a_n converges absolutely if ∑∣an∣\sum \abs{a_n} converges. It converges conditionally if ∑an\sum a_n converges but ∑∣an∣\sum \abs{a_n} diverges.

Theorem 14.16Absolute convergence implies convergence

If ∑∣an∣\sum \abs{a_n} converges, then ∑an\sum a_n converges, and ∣∑an∣≤∑∣an∣.\abs{\sum a_n} \le \sum \abs{a_n}\mathclose{\text{.}}

Proof

For every n,n\mathclose{\text{,}} 0≤an+∣an∣≤2∣an∣:0 \le a_n + \abs{a_n} \le 2\abs{a_n}\mathclose{\text{:}} the middle is 0 if an<0a_n < 0 and 2an2a_n if an≥0.a_n \ge 0\mathclose{\text{.}} The series ∑2∣an∣\sum 2\abs{a_n} converges, so ∑(an+∣an∣)\sum (a_n + \abs{a_n}) converges by the comparison test, and then ∑an=∑(an+∣an∣)−∑∣an∣\sum a_n = \sum (a_n + \abs{a_n}) - \sum \abs{a_n} converges by the sum laws. For the inequality, the triangle inequality of Module 2 gives −∑∣an∣≤SN≤∑∣an∣-\sum\abs{a_n} \le S_N \le \sum\abs{a_n} for every N,N\mathclose{\text{,}} and limits keep these inequalities.

∎
Example 14.15Absolute or conditional?✓ Checked

Decide how these converge: (a) ∑n=1∞sin⁡nn2,\displaystyle\sum_{n=1}^{\infty}\frac{\sin n}{n^2}\mathclose{\text{,}} (b) ∑n=1∞(−1)n−1n2,\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n-1}}{n^2}\mathclose{\text{,}} (c) ∑n=1∞(−1)n−1n.\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n-1}}{\sqrt n}\mathclose{\text{.}}

(a) ∣sin⁡nn2∣≤1n2,\abs{\dfrac{\sin n}{n^2}} \le \dfrac{1}{n^2}\mathclose{\text{,}} since ∣sin⁡n∣≤1,\abs{\sin n} \le 1\mathclose{\text{,}} and ∑1/n2\sum 1/n^2 converges. By the comparison test ∑∣sin⁡n∣/n2\sum \abs{\sin n}/n^2 converges: the series converges absolutely.

(b) ∑∣an∣=∑1/n2\sum \abs{a_n} = \sum 1/n^2 converges: absolutely.

(c) ∑∣an∣=∑1/n\sum \abs{a_n} = \sum 1/\sqrt n diverges (p=12).p = \tfrac12\mathclose{\text{).}} But bn=1/nb_n = 1/\sqrt n is positive, decreasing and tends to 0, so the series converges by the alternating series test: it converges conditionally. The alternating harmonic series converges conditionally for the same reason.

Rearrangements

A finite sum gives the same total in any order. So does an absolutely convergent series: every rearrangement, the same terms taken in another order, converges to the same sum (a proof is in courses on analysis). A conditionally convergent series is different. Take the terms of the alternating harmonic series in this order: one positive term, then two negative ones,

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

Every term appears exactly once: the kkth group is 12k−1−14k−2−14k,\tfrac{1}{2k - 1} - \tfrac{1}{4k - 2} - \tfrac{1}{4k}\mathclose{\text{,}} and between them the groups use each odd denominator once and each even one once. In each group, the first two terms combine, 12k−1−14k−2=14k−2,\tfrac{1}{2k - 1} - \tfrac{1}{4k - 2} = \tfrac{1}{4k - 2}\mathclose{\text{,}} so the sum of the first 3K3K terms is

∑k=1K(14k−2−14k)=12∑k=1K(12k−1−12k)=12S2K,\begin{aligned} &\sum_{k=1}^{K}\Big(\frac{1}{4k - 2} - \frac{1}{4k}\Big) \\ &\quad= \frac12\sum_{k=1}^{K}\Big(\frac{1}{2k - 1} - \frac{1}{2k}\Big) = \frac12 S_{2K}, \end{aligned}

half of a partial sum of the alternating harmonic series. It tends to 12ln⁡2.\tfrac12\ln 2\mathclose{\text{.}} The sums of 3K+13K + 1 and 3K+23K + 2 terms differ from it by at most 12K+1,\tfrac{1}{2K + 1}\mathclose{\text{,}} which tends to 0, so the rearranged series converges to 12ln⁡2:\tfrac12 \ln 2\mathclose{\text{:}} the same terms, half the sum.

Going deeperRiemann’s rearrangement theorem

A first reading may skip this box. The example is no accident. Riemann’s rearrangement theorem says that if ∑an\sum a_n converges conditionally, then for every number TT some rearrangement converges to T,T\mathclose{\text{,}} and other rearrangements diverge to ∞\infty or to −∞.-\infty\mathclose{\text{.}}

Here is the idea of the proof. Let p1,p2,…p_1, p_2, \dots be the positive terms, in their original order, and q1,q2,…q_1, q_2, \dots the sizes of the negative ones. Both ∑pk\sum p_k and ∑qk\sum q_k diverge. If both converged, ∑∣an∣\sum \abs{a_n} would converge; if one converged and the other diverged, the partial sums of ∑an\sum a_n would tend to ∞\infty or −∞.-\infty\mathclose{\text{.}} And pk→0p_k \to 0 and qk→0,q_k \to 0\mathclose{\text{,}} because an→0.a_n \to 0\mathclose{\text{.}} Now take positive terms until the total first exceeds T,T\mathclose{\text{,}} then negative terms until it first drops below T,T\mathclose{\text{,}} then positive terms until it exceeds TT again, and so on. Each stage ends after finitely many terms, because the unused pps, or qqs, still add up to infinity, and every term is used sooner or later. Each time the total crosses T,T\mathclose{\text{,}} it overshoots by at most the term added last, and these terms tend to 0, so the partial sums close in on T.T\mathclose{\text{.}} For a sum of ∞,\infty\mathclose{\text{,}} take positive terms until the total exceeds 1, then one negative term, then positive terms until it exceeds 2, one negative term, and so on.

Computers meet a cousin of this effect even in finite sums. Floating-point addition rounds every result, so adding the same numbers in another order can give another answer: in Python, 0.1 + 0.2 + 0.3 gives 0.6000000000000001, while 0.3 + 0.2 + 0.1 gives 0.6.

The ratio test

Comparison needs a series to compare with. For terms built from factorials and powers, such as n!/nnn!/n^n or n3/3n,n^3/3^n\mathclose{\text{,}} the right series to compare with is geometric, and the ratio of consecutive terms shows which one. The Going deeper box of Section 3.8 used this idea to show that np/an→0.n^p/a^n \to 0\mathclose{\text{.}}

Theorem 14.17The ratio test

Suppose that an≠0a_n \ne 0 for every n,n\mathclose{\text{,}} and that

lim⁡n→∞∣an+1an∣=ρ,\lim_{n\to\infty}\abs{\frac{a_{n+1}}{a_n}} = \rho,

where ρ,\rho\mathclose{\text{,}} the Greek letter rho, is a number or ∞.\infty\mathclose{\text{.}}

  • If ρ<1,\rho < 1\mathclose{\text{,}} the series ∑an\sum a_n converges absolutely.
  • If ρ>1\rho > 1 or ρ=∞,\rho = \infty\mathclose{\text{,}} the series diverges.
  • If ρ=1,\rho = 1\mathclose{\text{,}} the test gives no conclusion.
Proof

Suppose that ρ<1,\rho < 1\mathclose{\text{,}} and choose a number rr with ρ<r<1,\rho < r < 1\mathclose{\text{,}} for instance r=12(ρ+1).r = \tfrac12(\rho + 1)\mathclose{\text{.}} Since the ratios tend to ρ,\rho\mathclose{\text{,}} there is an index kk with ∣an+1∣≤r∣an∣\abs{a_{n+1}} \le r\abs{a_n} for every n≥k.n \ge k\mathclose{\text{.}} Then ∣ak+1∣≤r∣ak∣,\abs{a_{k+1}} \le r\abs{a_k}\mathclose{\text{,}} ∣ak+2∣≤r2∣ak∣,\abs{a_{k+2}} \le r^2\abs{a_k}\mathclose{\text{,}} and in general ∣ak+j∣≤∣ak∣rj.\abs{a_{k+j}} \le \abs{a_k}r^j\mathclose{\text{.}} The geometric series ∑j∣ak∣rj\sum_j \abs{a_k}r^j converges, because 0<r<1,0 < r < 1\mathclose{\text{,}} so ∑∣an∣\sum \abs{a_n} converges by the comparison test.

Suppose that ρ>1\rho > 1 or ρ=∞.\rho = \infty\mathclose{\text{.}} Then there is an index kk with ∣an+1∣>∣an∣\abs{a_{n+1}} > \abs{a_n} for every n≥k,n \ge k\mathclose{\text{,}} so from aka_k on the sizes of the terms increase, and they stay at least ∣ak∣>0.\abs{a_k} > 0\mathclose{\text{.}} The terms do not tend to 0, and the series diverges by the divergence test.

For ρ=1,\rho = 1\mathclose{\text{,}} here are two series, one convergent and one divergent, that both have ρ=1.\rho = 1\mathclose{\text{.}} For ∑1/n,\sum 1/n\mathclose{\text{,}} the ratio is nn+1→1;\dfrac{n}{n + 1} \to 1\mathclose{\text{;}} for ∑1/n2,\sum 1/n^2\mathclose{\text{,}} it is n2(n+1)2→1.\dfrac{n^2}{(n + 1)^2} \to 1\mathclose{\text{.}}

∎

The ratio test suits factorials and exponentials. For ∑1/n!,\sum 1/n!\mathclose{\text{,}} the ratio is n!(n+1)!=1n+1→0,\dfrac{n!}{(n + 1)!} = \dfrac{1}{n + 1} \to 0\mathclose{\text{,}} so the series converges; Module 15 shows that ∑n=0∞1/n!=e.\sum_{n=0}^{\infty} 1/n! = e\mathclose{\text{.}} The test is useless for pp-series and for terms built from powers of n,n\mathclose{\text{,}} which always give ρ=1:\rho = 1\mathclose{\text{:}} use comparison for those.

Example 14.16The ratio test✓ Checked

Decide whether these converge: (a) ∑n=1∞n2n,\displaystyle\sum_{n=1}^{\infty}\frac{n}{2^n}\mathclose{\text{,}} (b) ∑n=1∞n!nn,\displaystyle\sum_{n=1}^{\infty}\frac{n!}{n^n}\mathclose{\text{,}} (c) ∑n=1∞3nn2.\displaystyle\sum_{n=1}^{\infty}\frac{3^n}{n^2}\mathclose{\text{.}}

(a) The ratio of consecutive terms is

∣an+1an∣=n+12n+1⋅2nn=n+12n=12(1+1n)→12<1.\begin{aligned} \abs{\frac{a_{n+1}}{a_n}} &= \frac{n + 1}{2^{n+1}}\cdot\frac{2^n}{n} = \frac{n + 1}{2n} \\ &= \frac12\Big(1 + \frac1n\Big) \to \frac12 < 1. \end{aligned}

The series converges (SymPy finds that its sum is 2).

(b) Use (n+1)!=(n+1) n!:(n + 1)! = (n + 1)\,n!\mathclose{\text{:}}

∣an+1an∣=(n+1)!(n+1)n+1⋅nnn!=(n+1) nn(n+1)n+1=(nn+1)n=1(1+1/n)n→1e.\begin{aligned} \abs{\frac{a_{n+1}}{a_n}} &= \frac{(n + 1)!}{(n + 1)^{n+1}}\cdot\frac{n^n}{n!} = \frac{(n + 1)\,n^n}{(n + 1)^{n+1}} \\ &= \Big(\frac{n}{n + 1}\Big)^n = \frac{1}{(1 + 1/n)^n} \to \frac1e. \end{aligned}

Since 1e<1,\tfrac1e < 1\mathclose{\text{,}} the series converges.

(c) The ratio of consecutive terms is

∣an+1an∣=3n+1(n+1)2⋅n23n=3(1+1/n)2→3>1.\abs{\frac{a_{n+1}}{a_n}} = \frac{3^{n+1}}{(n + 1)^2}\cdot\frac{n^2}{3^n} = \frac{3}{(1 + 1/n)^2} \to 3 > 1.

The series diverges; indeed its terms grow without bound.

Watch out

The ratio test needs the limit of the ratios; ratios below 1 are not enough. For the harmonic series, an+1an=nn+1<1\dfrac{a_{n+1}}{a_n} = \dfrac{n}{n + 1} < 1 for every n,n\mathclose{\text{,}} yet the series diverges: the ratios creep up towards 1, and no fixed r<1r < 1 bounds them. And ρ=1\rho = 1 means “no conclusion”, not “diverges”: ∑1/n2\sum 1/n^2 has ρ=1\rho = 1 and converges.

The root test

For terms that are nnth powers, such as (n2n+1)n,\big(\tfrac{n}{2n + 1}\big)^n\mathclose{\text{,}} the nnth root removes the power.

Theorem 14.18The root test

Suppose that lim⁡n→∞∣an∣1/n=ρ,\displaystyle\lim_{n\to\infty}\abs{a_n}^{1/n} = \rho\mathclose{\text{,}} a number or ∞.\infty\mathclose{\text{.}} If ρ<1,\rho < 1\mathclose{\text{,}} the series ∑an\sum a_n converges absolutely; if ρ>1\rho > 1 or ρ=∞,\rho = \infty\mathclose{\text{,}} it diverges; if ρ=1,\rho = 1\mathclose{\text{,}} the test gives no conclusion.

Proof

If ρ<1,\rho < 1\mathclose{\text{,}} choose rr with ρ<r<1.\rho < r < 1\mathclose{\text{.}} From some index on, ∣an∣1/n<r,\abs{a_n}^{1/n} < r\mathclose{\text{,}} that is, ∣an∣<rn,\abs{a_n} < r^n\mathclose{\text{,}} and ∑rn\sum r^n converges: compare. If ρ>1\rho > 1 or ρ=∞,\rho = \infty\mathclose{\text{,}} then from some index on ∣an∣1/n>1,\abs{a_n}^{1/n} > 1\mathclose{\text{,}} so ∣an∣>1,\abs{a_n} > 1\mathclose{\text{,}} and the terms do not tend to 0. For ρ=1:\rho = 1\mathclose{\text{:}} both ∑1/n\sum 1/n and ∑1/n2\sum 1/n^2 have ρ=1,\rho = 1\mathclose{\text{,}} since n1/n→1n^{1/n} \to 1 (Example 14.3), so that (1/n)1/n=1/n1/n→1(1/n)^{1/n} = 1/n^{1/n} \to 1 and (1/n2)1/n=1/(n1/n)2→1.(1/n^2)^{1/n} = 1/\big(n^{1/n}\big)^2 \to 1\mathclose{\text{.}}

∎

For example, for ∑n=1∞(n2n+1)n,\displaystyle\sum_{n=1}^{\infty}\Big(\frac{n}{2n + 1}\Big)^n\mathclose{\text{,}} ∣an∣1/n=n2n+1=12+1/n→12<1:\abs{a_n}^{1/n} = \dfrac{n}{2n + 1} = \dfrac{1}{2 + 1/n} \to \dfrac12 < 1\mathclose{\text{:}} the series converges.

9

A strategy for testing series

No single test decides every series, and a test whose hypotheses fail tells you nothing. Faced with a series ∑an,\sum a_n\mathclose{\text{,}} ask these questions in order:

  1. Do the terms tend to 0? If not, the series diverges (the divergence test). If they do, carry on: this proves nothing yet.
  2. Is it a series you know? A geometric series ∑arn\sum ar^n converges exactly when ∣r∣<1,\abs{r} < 1\mathclose{\text{,}} and a pp-series ∑1/np\sum 1/n^p exactly when p>1.p > 1\mathclose{\text{.}} Is it telescoping?
  3. Positive terms built from powers of nn, such as rational functions and roots: compare, usually by limit comparison with the pp-series given by the leading terms.
  4. Factorials, or exponentials such as 2n2^n: the ratio test. A whole expression raised to the power nn: the root test.
  5. Terms f(n)f(n) with an ff you can integrate, such as 1nln⁡n:\dfrac{1}{n\ln n}\mathclose{\text{:}} the integral test, after checking that ff is continuous, positive and decreasing.
  6. Signs that alternate: first test ∑∣an∣\sum \abs{a_n} with steps 2 to 5. If it converges, the series converges absolutely; if not, try the alternating series test, which may show conditional convergence.
  7. Other mixed signs: test ∑∣an∣.\sum \abs{a_n}\mathclose{\text{.}}

The hypotheses need to hold only from some index on, since the first terms never decide convergence (Theorem 14.6). The error bounds of Sections 14.5 and 14.7 then hold for the partial sums from that index on.

Example 14.17Choosing a test✓ Checked

Decide whether each series converges, and say which test shows it.

  • (a) ∑n=1∞n2+13n2−n\displaystyle\sum_{n=1}^{\infty}\frac{n^2 + 1}{3n^2 - n}
  • (b) ∑n=1∞3n+1n3+2\displaystyle\sum_{n=1}^{\infty}\frac{3n + 1}{n^3 + 2}
  • (c) ∑n=1∞n33n\displaystyle\sum_{n=1}^{\infty}\frac{n^3}{3^n}
  • (d) ∑n=1∞(−1)n nn2+1\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^n\,n}{n^2 + 1}
  • (e) ∑n=1∞(2n3n+1)n\displaystyle\sum_{n=1}^{\infty}\Big(\frac{2n}{3n + 1}\Big)^n
  • (f) ∑n=2∞1nln⁡n\displaystyle\sum_{n=2}^{\infty}\frac{1}{n\sqrt{\ln n}}

(a) Step 1: n2+13n2−n=1+1/n23−1/n→13≠0.\dfrac{n^2 + 1}{3n^2 - n} = \dfrac{1 + 1/n^2}{3 - 1/n} \to \dfrac13 \ne 0\mathclose{\text{.}} The series diverges by the divergence test.

(b) Step 3. The leading terms give 3nn3=3n2,\dfrac{3n}{n^3} = \dfrac{3}{n^2}\mathclose{\text{,}} so compare with 1n2:\dfrac{1}{n^2}\mathclose{\text{:}} an1/n2=3n3+n2n3+2=3+1/n1+2/n3→3.\dfrac{a_n}{1/n^2} = \dfrac{3n^3 + n^2}{n^3 + 2} = \dfrac{3 + 1/n}{1 + 2/n^3} \to 3\mathclose{\text{.}} The series converges by limit comparison with the pp-series for p=2.p = 2\mathclose{\text{.}}

(c) Step 4, an exponential: ∣an+1an∣=(n+1)33n+1⋅3nn3=13(1+1n)3→13<1.\abs{\dfrac{a_{n+1}}{a_n}} = \dfrac{(n + 1)^3}{3^{n+1}}\cdot\dfrac{3^n}{n^3} = \dfrac13\Big(1 + \dfrac1n\Big)^3 \to \dfrac13 < 1\mathclose{\text{.}} It converges by the ratio test.

(d) Step 6. ∣an∣=nn2+1,\abs{a_n} = \dfrac{n}{n^2 + 1}\mathclose{\text{,}} and n/(n2+1)1/n=n2n2+1→1,\dfrac{n/(n^2 + 1)}{1/n} = \dfrac{n^2}{n^2 + 1} \to 1\mathclose{\text{,}} so ∑∣an∣\sum \abs{a_n} diverges by limit comparison with the harmonic series: no absolute convergence. Now the alternating series test, with bn=nn2+1,b_n = \dfrac{n}{n^2 + 1}\mathclose{\text{,}} which is positive and tends to 0. It decreases: bn+1≤bnb_{n+1} \le b_n means (n+1)(n2+1)≤n((n+1)2+1),(n + 1)(n^2 + 1) \le n\big((n + 1)^2 + 1\big)\mathclose{\text{,}} that is, n3+n2+n+1≤n3+2n2+2n,n^3 + n^2 + n + 1 \le n^3 + 2n^2 + 2n\mathclose{\text{,}} that is, 1≤n2+n,1 \le n^2 + n\mathclose{\text{,}} which is true for n≥1.n \ge 1\mathclose{\text{.}} So the series converges conditionally. (Its signs start with a minus, −b1+b2−⋯;-b_1 + b_2 - \cdots\mathclose{\text{;}} Theorem 14.15 allows every sign reversed.)

(e) Step 4, an nnth power: ∣an∣1/n=2n3n+1→23<1.\abs{a_n}^{1/n} = \dfrac{2n}{3n + 1} \to \dfrac23 < 1\mathclose{\text{.}} It converges by the root test.

(f) Step 5. f(x)=1xln⁡xf(x) = \dfrac{1}{x\sqrt{\ln x}} is continuous, positive and decreasing on [2,∞),[2, \infty)\mathclose{\text{,}} because xln⁡xx\sqrt{\ln x} is positive and increasing there. With u=ln⁡x,u = \ln x\mathclose{\text{,}}

∫2tdxxln⁡x=∫ln⁡2ln⁡tduu=2ln⁡t−2ln⁡2→∞,\begin{aligned} \int_2^t\frac{dx}{x\sqrt{\ln x}} &= \int_{\ln 2}^{\ln t}\frac{du}{\sqrt u} \\ &= 2\sqrt{\ln t} - 2\sqrt{\ln 2} \to \infty, \end{aligned}

so the series diverges by the integral test.

Deciding whether a series converges is one question; finding its sum is another, and usually harder. Most convergent series, such as ∑1/n3,\sum 1/n^3\mathclose{\text{,}} have no known formula for their sum. Then estimate the sum with a guaranteed bound on the error: the integral test for positive decreasing terms (Section 14.5), the alternating series bound (Section 14.7), or a comparison of the remainder with a geometric series (Exercise 14.10 shows how). Module 15 turns to series whose terms contain a variable x,x\mathclose{\text{,}} the power series, which represent functions such as exe^x and sin⁡x,\sin x\mathclose{\text{,}} and proves the sums ln⁡2\ln 2 and ee that this module has quoted.

10

What you learned

  • A sequence (an)(a_n) converges to LL if for every ε>0\varepsilon > 0 there is an NN with ∣an−L∣<ε\abs{a_n - L} < \varepsilon for every n>N.n > N\mathclose{\text{.}} The limit laws, the squeeze theorem and limits of functions (an=f(n),a_n = f(n)\mathclose{\text{,}} with L’Hôpital’s rule applied to f)f\mathclose{\text{)}} compute limits. The powers rnr^n tend to 0 exactly when ∣r∣<1.\abs{r} < 1\mathclose{\text{.}}
  • The Monotone Convergence Theorem, a form of the completeness of the real numbers: an increasing sequence that is bounded above converges, and so does a decreasing sequence that is bounded below. For a recursion an+1=g(an):a_{n+1} = g(a_n)\mathclose{\text{:}} show that the sequence is monotone and bounded (often by induction), and only then solve L=g(L).L = g(L)\mathclose{\text{.}}
  • A series ∑an\sum a_n converges when its partial sums SNS_N converge, and its sum is their limit. The geometric series ∑n=0∞arn\sum_{n=0}^{\infty} ar^n has sum a1−r\dfrac{a}{1 - r} when ∣r∣<1\abs{r} < 1 and diverges otherwise; a telescoping series has SN=b1−bN+1.S_N = b_1 - b_{N+1}\mathclose{\text{.}}
  • If ∑an\sum a_n converges, then an→0,a_n \to 0\mathclose{\text{,}} so terms that do not tend to 0 mean divergence. The converse is false: the harmonic series ∑1/n\sum 1/n diverges, though its partial sums grow only like ln⁡N.\ln N\mathclose{\text{.}}
  • Integral test (ff continuous, positive and decreasing): ∑f(n)\sum f(n) and ∫1∞f(x) dx\int_1^{\infty} f(x)\,dx converge or diverge together, and ∫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\mathclose{\text{.}} The pp-series ∑1/np\sum 1/n^p converges exactly when p>1;p > 1\mathclose{\text{;}} ∑1/n2=π2/6.\sum 1/n^2 = \pi^2/6\mathclose{\text{.}}
  • Comparison (0≤an≤bn)0 \le a_n \le b_n\mathclose{\text{)}} and limit comparison (an/bn→La_n/b_n \to L with 0<L<∞)0 < L < \infty\mathclose{\text{)}} measure a series against one you know.
  • Alternating series test (bnb_n positive, decreasing, tending to 0): ∑(−1)n−1bn\sum (-1)^{n-1}b_n converges, and ∣S−SN∣≤bN+1.\abs{S - S_N} \le b_{N+1}\mathclose{\text{.}} The alternating harmonic series converges to ln⁡2,\ln 2\mathclose{\text{,}} but only conditionally; rearranging it can change its sum.
  • Absolute convergence implies convergence. The ratio and root tests: ρ<1\rho < 1 means absolute convergence, ρ>1\rho > 1 divergence, and ρ=1\rho = 1 no conclusion.
  • Strategy: the divergence test first; then known series; comparison for powers of n;n\mathclose{\text{;}} the ratio test for factorials and exponentials, the root test for nnth powers; the integral test for functions you can integrate; absolute convergence before the alternating series test.
11

Exercises

Exercise 14.1★Limits of sequences

Find the limit of each sequence, or show that it diverges.

  • (a) an=4n2−n2n2+5a_n = \dfrac{4n^2 - n}{2n^2 + 5}
  • (b) an=(−1)n nn+1a_n = \dfrac{(-1)^n\,n}{n + 1}
  • (c) an=(1+3n)na_n = \Big(1 + \dfrac3n\Big)^n
  • (d) an=n+1−na_n = \sqrt{n + 1} - \sqrt n
Show solution✓ Checked

(a) Divide the numerator and the denominator by n2:n^2\mathclose{\text{:}} an=4−1/n2+5/n2→42=2.a_n = \dfrac{4 - 1/n}{2 + 5/n^2} \to \dfrac{4}{2} = 2\mathclose{\text{.}}

(b) The size of the terms, nn+1=11+1/n,\dfrac{n}{n + 1} = \dfrac{1}{1 + 1/n}\mathclose{\text{,}} tends to 1, while the sign alternates. For n≥2,n \ge 2\mathclose{\text{,}} nn+1≥23,\dfrac{n}{n + 1} \ge \dfrac23\mathclose{\text{,}} so every term with an even index is at least 23,\tfrac23\mathclose{\text{,}} and every term with an odd index from n=3n = 3 on is at most −23.-\tfrac23\mathclose{\text{.}} Suppose the sequence had a limit L,L\mathclose{\text{,}} and challenge it with ε=23.\varepsilon = \tfrac23\mathclose{\text{.}} Beyond any NN there is an even index pp and an odd index q,q\mathclose{\text{,}} and then, by the triangle inequality,

43≤∣ap−aq∣≤∣ap−L∣+∣L−aq∣,\frac43 \le \abs{a_p - a_q} \le \abs{a_p - L} + \abs{L - a_q},

so apa_p and aqa_q cannot both lie within 23\tfrac23 of L.L\mathclose{\text{.}} No NN answers the challenge, so no number is the limit: the sequence diverges.

(c) By Theorem 6.6 with x=3,x = 3\mathclose{\text{,}} an→e3≈20.09.a_n \to e^3 \approx 20.09\mathclose{\text{.}} The answer 1, from “the base tends to 1”, is the pitfall of Section 14.1: the exponent grows too.

(d) The form is ∞−∞,\infty - \infty\mathclose{\text{,}} which decides nothing; rationalise, as in Module 2. Multiply and divide by n+1+n:\sqrt{n + 1} + \sqrt n\mathclose{\text{:}}

an=(n+1)−nn+1+n=1n+1+n.a_n = \frac{(n + 1) - n}{\sqrt{n + 1} + \sqrt n} = \frac{1}{\sqrt{n + 1} + \sqrt n}.

The denominator is more than 2n,2\sqrt n\mathclose{\text{,}} so 0<an<12n,0 < a_n < \dfrac{1}{2\sqrt n}\mathclose{\text{,}} and 12n→0.\dfrac{1}{2\sqrt n} \to 0\mathclose{\text{.}} By the squeeze theorem, an→0.a_n \to 0\mathclose{\text{.}}

Exercise 14.2★Geometric series
  • (a) Find ∑n=2∞(34)n.\displaystyle\sum_{n=2}^{\infty}\Big(\frac34\Big)^n\mathclose{\text{.}}
  • (b) Find ∑n=0∞2n+15n.\displaystyle\sum_{n=0}^{\infty}\frac{2^{n+1}}{5^n}\mathclose{\text{.}}
  • (c) Write 0.181818…0.181818\ldots and 0.4999…0.4999\ldots as fractions.
  • (d) A ball is dropped from a height of 2 metres, and after each bounce it rises to 34\tfrac34 of the height it fell from (the numbers are hypothetical). What total distance does it travel?
Show solution✓ Checked

(a) The first term, at n=2,n = 2\mathclose{\text{,}} is 916,\tfrac{9}{16}\mathclose{\text{,}} and r=34:r = \tfrac34\mathclose{\text{:}} the sum is 9/161−3/4=9/161/4=94.\dfrac{9/16}{1 - 3/4} = \dfrac{9/16}{1/4} = \dfrac94\mathclose{\text{.}}

(b) 2n+15n=2(25)n,\dfrac{2^{n+1}}{5^n} = 2\Big(\dfrac25\Big)^n\mathclose{\text{,}} a geometric series with a=2a = 2 and r=25:r = \tfrac25\mathclose{\text{:}} the sum is 21−2/5=23/5=103.\dfrac{2}{1 - 2/5} = \dfrac{2}{3/5} = \dfrac{10}{3}\mathclose{\text{.}}

(c) 0.181818…=18100+181002+⋯=18/1001−1/100=1899=211.0.181818\ldots = \dfrac{18}{100} + \dfrac{18}{100^2} + \cdots = \dfrac{18/100}{1 - 1/100} = \dfrac{18}{99} = \dfrac{2}{11}\mathclose{\text{.}} And

0.4999…=410+(9100+91000+⋯)=410+9/1001−1/10=410+110=12.\begin{aligned} 0.4999\ldots &= \frac{4}{10} + \Big(\frac{9}{100} + \frac{9}{1000} + \cdots\Big) \\ &= \frac{4}{10} + \frac{9/100}{1 - 1/10} = \frac{4}{10} + \frac{1}{10} = \frac12. \end{aligned}

(d) The ball falls 2 m. Then it rises 1.5 m and falls 1.5 m, rises 1.125 m and falls 1.125 m, and so on: each height after the first is travelled twice. The heights 1.5,1.125,…1.5, 1.125, \dots form a geometric series with a=1.5a = 1.5 and r=34,r = \tfrac34\mathclose{\text{,}} so the total distance is

2+2⋅1.51−3/4=2+2⋅6=14 metres.2 + 2\cdot\frac{1.5}{1 - 3/4} = 2 + 2 \cdot 6 = 14 \text{ metres}.

The tempting 21−3/4=8\dfrac{2}{1 - 3/4} = 8 m counts each height only once.

Exercise 14.3★Quick decisions

Decide whether each series converges or diverges, with a one-line reason.

  • (a) ∑n=1∞n3n+2\displaystyle\sum_{n=1}^{\infty}\frac{n}{3n + 2}
  • (b) ∑n=1∞1n1.01\displaystyle\sum_{n=1}^{\infty}\frac{1}{n^{1.01}}
  • (c) ∑n=1∞1n\displaystyle\sum_{n=1}^{\infty}\frac{1}{\sqrt n}
  • (d) ∑n=0∞(eπ)n\displaystyle\sum_{n=0}^{\infty}\Big(\frac{e}{\pi}\Big)^n
  • (e) ∑n=1∞(−1)n\displaystyle\sum_{n=1}^{\infty}(-1)^n
Show solution✓ Checked

(a) The terms tend to 13≠0:\tfrac13 \ne 0\mathclose{\text{:}} the series diverges by the divergence test.

(b) A pp-series with p=1.01>1:p = 1.01 > 1\mathclose{\text{:}} it converges.

(c) A pp-series with p=12≤1:p = \tfrac12 \le 1\mathclose{\text{:}} it diverges, although its terms tend to 0 (the divergence test says nothing here).

(d) A geometric series with ratio r=e/π≈0.865,r = e/\pi \approx 0.865\mathclose{\text{,}} and ∣r∣<1:\abs{r} < 1\mathclose{\text{:}} it converges, to 11−e/π=ππ−e≈7.42.\dfrac{1}{1 - e/\pi} = \dfrac{\pi}{\pi - e} \approx 7.42\mathclose{\text{.}}

(e) The terms −1,1,−1,…-1, 1, -1, \dots do not tend to 0 (they have no limit): it diverges.

Exercise 14.4★Telescoping series
  • (a) Show that 2n2−1=1n−1−1n+1\dfrac{2}{n^2 - 1} = \dfrac{1}{n - 1} - \dfrac{1}{n + 1} for n≥2,n \ge 2\mathclose{\text{,}} and find ∑n=2∞2n2−1.\displaystyle\sum_{n=2}^{\infty}\frac{2}{n^2 - 1}\mathclose{\text{.}}
  • (b) Find ∑n=1∞(1n−1n+1).\displaystyle\sum_{n=1}^{\infty}\Big(\frac{1}{\sqrt n} - \frac{1}{\sqrt{n + 1}}\Big)\mathclose{\text{.}}
Show solution✓ Checked

(a) Over the common denominator (n−1)(n+1)=n2−1,(n - 1)(n + 1) = n^2 - 1\mathclose{\text{,}} the right side is (n+1)−(n−1)n2−1=2n2−1.\dfrac{(n + 1) - (n - 1)}{n^2 - 1} = \dfrac{2}{n^2 - 1}\mathclose{\text{.}} Each negative part cancels with a positive part two places later, so the sum of the terms from n=2n = 2 to n=Nn = N is

(1−13)+(12−14)+(13−15)+⋯+(1N−1−1N+1)=1+12−1N−1N+1,\begin{aligned} &\Big(1 - \frac13\Big) + \Big(\frac12 - \frac14\Big) + \Big(\frac13 - \frac15\Big) + \cdots \\ &\qquad + \Big(\frac{1}{N - 1} - \frac{1}{N + 1}\Big) \\ &\quad= 1 + \frac12 - \frac1N - \frac{1}{N + 1}, \end{aligned}

which tends to 32.\tfrac32\mathclose{\text{.}} The sum is 32.\tfrac32\mathclose{\text{.}} Do not split the series into ∑1n−1−∑1n+1:\sum \tfrac{1}{n - 1} - \sum \tfrac{1}{n + 1}\mathclose{\text{:}} both of those diverge, and the sum laws apply only to convergent series.

(b) It telescopes, with bn=1/n:b_n = 1/\sqrt n\mathclose{\text{:}} SN=1−1N+1→1.S_N = 1 - \dfrac{1}{\sqrt{N + 1}} \to 1\mathclose{\text{.}} The sum is 1, although ∑1/n\sum 1/\sqrt n itself diverges.

Exercise 14.5★★An ε–N proof
  • (a) Prove from Definition 14.2 that lim⁡n→∞2n−1n+4=2.\displaystyle\lim_{n\to\infty}\frac{2n - 1}{n + 4} = 2\mathclose{\text{.}}
  • (b) Find the smallest whole number NN that answers the challenge ε=0.001:\varepsilon = 0.001\mathclose{\text{:}} every term after the NNth is less than 0.001 from 2.
Show solution✓ Checked

(a) Scratch work. ∣2n−1n+4−2∣=∣2n−1−2(n+4)n+4∣=9n+4,\abs{\dfrac{2n - 1}{n + 4} - 2} = \abs{\dfrac{2n - 1 - 2(n + 4)}{n + 4}} = \dfrac{9}{n + 4}\mathclose{\text{,}} since the numerator is −9-9 and n+4>0.n + 4 > 0\mathclose{\text{.}} This is less than ε\varepsilon when n+4>9/ε,n + 4 > 9/\varepsilon\mathclose{\text{,}} so N=9/εN = 9/\varepsilon will do.

Proof. Let ε>0\varepsilon > 0 and N=9/ε.N = 9/\varepsilon\mathclose{\text{.}} For every n>N,n > N\mathclose{\text{,}} n+4>9/ε,n + 4 > 9/\varepsilon\mathclose{\text{,}} so ∣2n−1n+4−2∣=9n+4<ε.\abs{\dfrac{2n - 1}{n + 4} - 2} = \dfrac{9}{n + 4} < \varepsilon\mathclose{\text{.}} Every challenge is met, and the limit is 2.

(b) 9n+4<0.001\dfrac{9}{n + 4} < 0.001 exactly when n+4>9000,n + 4 > 9000\mathclose{\text{,}} that is, when n>8996.n > 8996\mathclose{\text{.}} So N=8996N = 8996 works: every term from the 8997th on is within 0.001 of 2. No smaller NN does, because the 8996th term is exactly 0.001 from 2: 99000=0.001,\dfrac{9}{9000} = 0.001\mathclose{\text{,}} which is not less than 0.001.

Exercise 14.6★★A recursive sequence

Let a1=1.5a_1 = 1.5 and an+1=an2+23.a_{n+1} = \dfrac{a_n^2 + 2}{3}\mathclose{\text{.}}

  • (a) Compute a2a_2 and a3.a_3\mathclose{\text{.}}
  • (b) Show that 1<an<21 < a_n < 2 for every n,n\mathclose{\text{,}} and that the sequence is decreasing.
  • (c) Find its limit.
  • (d) What happens if instead a1=3?a_1 = 3\mathclose{\text{?}}
Show solution✓ Checked

(a) a2=2.25+23=1712≈1.4167,a_2 = \dfrac{2.25 + 2}{3} = \dfrac{17}{12} \approx 1.4167\mathclose{\text{,}} and a3=(17/12)2+23=577432≈1.3356.a_3 = \dfrac{(17/12)^2 + 2}{3} = \dfrac{577}{432} \approx 1.3356\mathclose{\text{.}}

(b) By induction. a1=1.5a_1 = 1.5 lies between 1 and 2. If 1<an<2,1 < a_n < 2\mathclose{\text{,}} then 1<an2<4,1 < a_n^2 < 4\mathclose{\text{,}} so 3<an2+2<63 < a_n^2 + 2 < 6 and 1<an+1<2.1 < a_{n+1} < 2\mathclose{\text{.}} So 1<an<21 < a_n < 2 for every n.n\mathclose{\text{.}} Next,

an+1−an=an2−3an+23=(an−1)(an−2)3<0,\begin{aligned} a_{n+1} - a_n &= \frac{a_n^2 - 3a_n + 2}{3} \\ &= \frac{(a_n - 1)(a_n - 2)}{3} < 0, \end{aligned}

because an−1>0a_n - 1 > 0 and an−2<0.a_n - 2 < 0\mathclose{\text{.}} So the sequence decreases.

(c) It is decreasing and bounded below by 1, so it converges by the Monotone Convergence Theorem, to a number LL with 1≤L≤a1=1.5.1 \le L \le a_1 = 1.5\mathclose{\text{.}} Taking limits on both sides of the recursion, L=L2+23,L = \dfrac{L^2 + 2}{3}\mathclose{\text{,}} so L2−3L+2=0,L^2 - 3L + 2 = 0\mathclose{\text{,}} that is, (L−1)(L−2)=0.(L - 1)(L - 2) = 0\mathclose{\text{.}} Since L≤1.5,L \le 1.5\mathclose{\text{,}} L=1.L = 1\mathclose{\text{.}}

(d) Now a2=113>a1.a_2 = \tfrac{11}{3} > a_1\mathclose{\text{.}} If an>2,a_n > 2\mathclose{\text{,}} then an+1−an=13(an−1)(an−2)>0,a_{n+1} - a_n = \tfrac13(a_n - 1)(a_n - 2) > 0\mathclose{\text{,}} so an+1>an>2:a_{n+1} > a_n > 2\mathclose{\text{:}} by induction, the sequence increases and stays above 2. If it converged, its limit would be at least a1=3a_1 = 3 and would solve L2−3L+2=0,L^2 - 3L + 2 = 0\mathclose{\text{,}} whose only solutions are 1 and 2: impossible. So it diverges; being increasing, it is not bounded above (otherwise the Monotone Convergence Theorem would make it converge), so it diverges to infinity. The equation L=g(L)L = g(L) gives the candidates 1 and 2, but neither is the limit: this is the pitfall of Section 14.2.

Exercise 14.7★★Estimating ∑1/n3\sum 1/n^3
  • (a) Show with the integral test that ∑n=1∞1/n3\sum_{n=1}^{\infty} 1/n^3 converges.
  • (b) Use S5S_5 and the remainder estimate to find an interval that contains the sum.
  • (c) How many terms NN make sure that SNS_N alone is within 0.0005 of the sum?
Show solution✓ Checked

(a) f(x)=1/x3f(x) = 1/x^3 is continuous, positive and decreasing on [1,∞),[1, \infty)\mathclose{\text{,}} and ∫1∞dxx3=lim⁡t→∞[−12x2]1t=12\displaystyle\int_1^{\infty}\frac{dx}{x^3} = \lim_{t\to\infty}\Big[-\frac{1}{2x^2}\Big]_1^t = \frac12 converges (a pp-integral with p=3).p = 3\mathclose{\text{).}} So the series converges.

(b) S5=1+18+127+164+1125≈1.185662.S_5 = 1 + \tfrac18 + \tfrac{1}{27} + \tfrac{1}{64} + \tfrac{1}{125} \approx 1.185662\mathclose{\text{.}} In general ∫N∞dxx3=12N2,\displaystyle\int_N^{\infty}\frac{dx}{x^3} = \frac{1}{2N^2}\mathclose{\text{,}} so ∫6∞=172≈0.013889\int_6^{\infty} = \tfrac{1}{72} \approx 0.013889 and ∫5∞=150=0.02.\int_5^{\infty} = \tfrac{1}{50} = 0.02\mathclose{\text{.}} The remainder estimate gives

1.199551≤S≤1.205662.1.199551 \le S \le 1.205662.

(The sum is about 1.202057, and no formula for it is known.)

(c) RN≤∫N∞dxx3=12N2,R_N \le \displaystyle\int_N^{\infty}\frac{dx}{x^3} = \frac{1}{2N^2}\mathclose{\text{,}} and 12N2≤0.0005\dfrac{1}{2N^2} \le 0.0005 exactly when N2≥1000.N^2 \ge 1000\mathclose{\text{.}} Since 312=96131^2 = 961 and 322=1024,32^2 = 1024\mathclose{\text{,}} N=32N = 32 terms suffice.

Exercise 14.8★★Comparison tests

Decide whether each series converges, and name the test.

  • (a) ∑n=1∞n+4n3+2n\displaystyle\sum_{n=1}^{\infty}\frac{n + 4}{n^3 + 2n}
  • (b) ∑n=1∞2+sin⁡nn2\displaystyle\sum_{n=1}^{\infty}\frac{2 + \sin n}{n^2}
  • (c) ∑n=1∞13n−2n\displaystyle\sum_{n=1}^{\infty}\frac{1}{3^n - 2^n}
  • (d) ∑n=1∞n+1n+2\displaystyle\sum_{n=1}^{\infty}\frac{\sqrt n + 1}{n + 2}
Show solution✓ Checked

(a) The leading terms give nn3=1n2.\dfrac{n}{n^3} = \dfrac{1}{n^2}\mathclose{\text{.}} Limit comparison with bn=1/n2:b_n = 1/n^2\mathclose{\text{:}} anbn=n3+4n2n3+2n=1+4/n1+2/n2→1.\dfrac{a_n}{b_n} = \dfrac{n^3 + 4n^2}{n^3 + 2n} = \dfrac{1 + 4/n}{1 + 2/n^2} \to 1\mathclose{\text{.}} Since ∑1/n2\sum 1/n^2 converges, so does the series.

(b) −1≤sin⁡n≤1,-1 \le \sin n \le 1\mathclose{\text{,}} so 0<2+sin⁡nn2≤3n2.0 < \dfrac{2 + \sin n}{n^2} \le \dfrac{3}{n^2}\mathclose{\text{.}} Since ∑3/n2\sum 3/n^2 converges, the series converges by the comparison test.

(c) Compare with bn=1/3nb_n = 1/3^n (note 3n−2n>0):3^n - 2^n > 0\mathclose{\text{):}} anbn=3n3n−2n=11−(2/3)n→1.\dfrac{a_n}{b_n} = \dfrac{3^n}{3^n - 2^n} = \dfrac{1}{1 - (2/3)^n} \to 1\mathclose{\text{.}} The geometric series ∑1/3n\sum 1/3^n converges, so the series converges by limit comparison. A direct comparison with 1/3n1/3^n would point the wrong way, since 13n−2n>13n.\dfrac{1}{3^n - 2^n} > \dfrac{1}{3^n}\mathclose{\text{.}}

(d) The leading terms give nn=1n.\dfrac{\sqrt n}{n} = \dfrac{1}{\sqrt n}\mathclose{\text{.}} Limit comparison with bn=1/n:b_n = 1/\sqrt n\mathclose{\text{:}} anbn=(n+1)nn+2=n+nn+2→1.\dfrac{a_n}{b_n} = \dfrac{(\sqrt n + 1)\sqrt n}{n + 2} = \dfrac{n + \sqrt n}{n + 2} \to 1\mathclose{\text{.}} Since ∑1/n\sum 1/\sqrt n diverges, so does the series.

Exercise 14.9★★An alternating series

Let S=∑n=1∞(−1)n−1n 2n=12−18+124−⋯S = \displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n-1}}{n\,2^n} = \frac12 - \frac18 + \frac{1}{24} - \cdots

  • (a) Show that the series converges.
  • (b) How many terms guarantee an error of size less than 0.001? Compute that partial sum, and give an interval that contains S.S\mathclose{\text{.}}
  • (c) Module 15 shows that S=ln⁡32.S = \ln\tfrac32\mathclose{\text{.}} Is it in your interval?
Show solution✓ Checked

(a) bn=1n 2nb_n = \dfrac{1}{n\,2^n} is positive; it decreases, because n 2nn\,2^n increases with n;n\mathclose{\text{;}} and it tends to 0. By the alternating series test the series converges. (It even converges absolutely, since bn≤1/2n.)b_n \le 1/2^n\mathclose{\text{.)}}

(b) The first term left out must be less than 0.001 in size, that is, (N+1)2N+1>1000.(N + 1)2^{N+1} > 1000\mathclose{\text{.}} For N+1=7,N + 1 = 7\mathclose{\text{,}} 7⋅128=8967 \cdot 128 = 896 is too small; for N+1=8,N + 1 = 8\mathclose{\text{,}} 8⋅256=20488 \cdot 256 = 2048 is enough. So 7 terms:

S7=12−18+124−164+1160−1384+1896=9092240≈0.405804.\begin{aligned} S_7 &= \frac12 - \frac18 + \frac{1}{24} - \frac{1}{64} \\ &\qquad + \frac{1}{160} - \frac{1}{384} + \frac{1}{896} \\ &= \frac{909}{2240} \approx 0.405804. \end{aligned}

The error S−S7S - S_7 is at most b8=12048≈0.000488b_8 = \tfrac{1}{2048} \approx 0.000488 in size, and it lies between 0 and the first term left out, −12048.-\tfrac{1}{2048}\mathclose{\text{.}} So

0.405315≤S≤0.405804.0.405315 \le S \le 0.405804.

(c) ln⁡1.5≈0.405465\ln 1.5 \approx 0.405465 lies in the interval. The error of S7S_7 is ln⁡1.5−S7≈−0.000338:\ln 1.5 - S_7 \approx -0.000338\mathclose{\text{:}} negative, like the first term left out, and smaller in size than the bound.

Exercise 14.10★★The ratio and root tests, and a geometric bound
  • (a) Decide whether ∑n=1∞n!10n\displaystyle\sum_{n=1}^{\infty}\frac{n!}{10^n} converges.
  • (b) Decide whether ∑n=1∞(nn+1)n2\displaystyle\sum_{n=1}^{\infty}\Big(\frac{n}{n + 1}\Big)^{n^2} converges.
  • (c) What does the ratio test say about ∑n=1∞1n2+1?\displaystyle\sum_{n=1}^{\infty}\frac{1}{n^2 + 1}\mathclose{\text{?}} Does the series converge?
  • (d) For ∑n=1∞n2n\displaystyle\sum_{n=1}^{\infty}\frac{n}{2^n} (Example 14.16), show that an+1an≤611\dfrac{a_{n+1}}{a_n} \le \dfrac{6}{11} for every n≥11,n \ge 11\mathclose{\text{,}} and deduce that R10≤a111−6/11.R_{10} \le \dfrac{a_{11}}{1 - 6/11}\mathclose{\text{.}} Compare with the true remainder R10=2−S10=3256.R_{10} = 2 - S_{10} = \tfrac{3}{256}\mathclose{\text{.}}
Show solution✓ Checked

(a) Ratio test: an+1an=(n+1)!10n+1⋅10nn!=n+110→∞.\dfrac{a_{n+1}}{a_n} = \dfrac{(n + 1)!}{10^{n+1}}\cdot\dfrac{10^n}{n!} = \dfrac{n + 1}{10} \to \infty\mathclose{\text{.}} The series diverges: from n=10n = 10 on the terms grow.

(b) Root test: ∣an∣1/n=(nn+1)n=1(1+1/n)n→1e<1.\abs{a_n}^{1/n} = \Big(\dfrac{n}{n + 1}\Big)^n = \dfrac{1}{(1 + 1/n)^n} \to \dfrac1e < 1\mathclose{\text{.}} The series converges.

(c) an+1an=n2+1(n+1)2+1→1:\dfrac{a_{n+1}}{a_n} = \dfrac{n^2 + 1}{(n + 1)^2 + 1} \to 1\mathclose{\text{:}} the ratio test gives no conclusion, as for every series whose terms are built from powers of n.n\mathclose{\text{.}} Compare instead: 0<1n2+1<1n2,0 < \dfrac{1}{n^2 + 1} < \dfrac{1}{n^2}\mathclose{\text{,}} so the series converges.

(d) an+1an=n+12n=12+12n,\dfrac{a_{n+1}}{a_n} = \dfrac{n + 1}{2n} = \dfrac12 + \dfrac{1}{2n}\mathclose{\text{,}} which decreases as nn grows, so for n≥11n \ge 11 it is at most 12+122=611.\dfrac12 + \dfrac{1}{22} = \dfrac{6}{11}\mathclose{\text{.}} Then a12≤611a11,a_{12} \le \tfrac{6}{11}a_{11}\mathclose{\text{,}} a13≤(611)2a11,a_{13} \le \big(\tfrac{6}{11}\big)^2 a_{11}\mathclose{\text{,}} and so on, so the remainder is at most a geometric series:

R10=a11+a12+⋯≤a11(1+611+(611)2+⋯)=a111−6/11=112048⋅115=12110 240≈0.01182.\begin{aligned} R_{10} &= a_{11} + a_{12} + \cdots \\ &\le a_{11}\Big(1 + \frac{6}{11} + \Big(\frac{6}{11}\Big)^2 + \cdots\Big) \\ &= \frac{a_{11}}{1 - 6/11} = \frac{11}{2048}\cdot\frac{11}{5} \\ &= \frac{121}{10\,240} \approx 0.01182. \end{aligned}

The true remainder is 3256≈0.01172:\tfrac{3}{256} \approx 0.01172\mathclose{\text{:}} the bound is less than 1% too large.

Exercise 14.11★★★Euler’s constant and the sum ln 2

Let HN=1+12+⋯+1NH_N = 1 + \tfrac12 + \cdots + \tfrac1N and dN=HN−ln⁡N.d_N = H_N - \ln N\mathclose{\text{.}}

  • (a) Show that dN−dN+1=∫NN+1(1x−1N+1)dx,d_N - d_{N+1} = \displaystyle\int_N^{N+1}\Big(\frac1x - \frac{1}{N + 1}\Big)dx\mathclose{\text{,}} and deduce that (dN)(d_N) decreases.
  • (b) Show that dN>0d_N > 0 for every N,N\mathclose{\text{,}} and deduce that (dN)(d_N) converges. (Its limit is Euler’s constant γ≈0.5772.)\gamma \approx 0.5772\mathclose{\text{.)}}
  • (c) Show that the 2N2Nth partial sum of the alternating harmonic series is S2N=H2N−HN,S_{2N} = H_{2N} - H_N\mathclose{\text{,}} and deduce that ∑n=1∞(−1)n−1/n=ln⁡2.\sum_{n=1}^{\infty} (-1)^{n-1}/n = \ln 2\mathclose{\text{.}}
Show solution✓ Checked

(a) dN−dN+1=(HN−HN+1)+(ln⁡(N+1)−ln⁡N)=ln⁡(N+1)−ln⁡N−1N+1.d_N - d_{N+1} = (H_N - H_{N+1}) + \big(\ln(N + 1) - \ln N\big) = \ln(N + 1) - \ln N - \dfrac{1}{N + 1}\mathclose{\text{.}} Now ln⁡(N+1)−ln⁡N=∫NN+1dxx,\ln(N + 1) - \ln N = \displaystyle\int_N^{N+1}\frac{dx}{x}\mathclose{\text{,}} and 1N+1=∫NN+1dxN+1,\dfrac{1}{N + 1} = \displaystyle\int_N^{N+1}\frac{dx}{N + 1}\mathclose{\text{,}} the integral of a constant over an interval of length 1. Subtracting gives the formula. For N≤x≤N+1,N \le x \le N + 1\mathclose{\text{,}} 1x≥1N+1,\dfrac1x \ge \dfrac{1}{N + 1}\mathclose{\text{,}} so the integrand is never negative and the integral is at least 0: dN+1≤dN.d_{N+1} \le d_N\mathclose{\text{.}}

(b) By the integral test inequality of Section 14.5, HN≥ln⁡(N+1)>ln⁡N,H_N \ge \ln(N + 1) > \ln N\mathclose{\text{,}} so dN>0.d_N > 0\mathclose{\text{.}} The sequence (dN)(d_N) is decreasing and bounded below by 0, so it converges by the Monotone Convergence Theorem. Since d1=1,d_1 = 1\mathclose{\text{,}} its limit γ\gamma lies between 0 and 1.

(c) The odd terms of H2NH_{2N} are those of S2NS_{2N} with a plus sign, and the even terms those with a minus sign, so S2N=H2N−2(12+14+⋯+12N).S_{2N} = H_{2N} - 2\big(\tfrac12 + \tfrac14 + \cdots + \tfrac{1}{2N}\big)\mathclose{\text{.}} And 2(12+14+⋯+12N)=1+12+⋯+1N=HN.2\big(\tfrac12 + \tfrac14 + \cdots + \tfrac{1}{2N}\big) = 1 + \tfrac12 + \cdots + \tfrac1N = H_N\mathclose{\text{.}} So S2N=H2N−HN.S_{2N} = H_{2N} - H_N\mathclose{\text{.}} Now write each harmonic number as dd plus a logarithm:

S2N=(d2N+ln⁡(2N))−(dN+ln⁡N)=d2N−dN+ln⁡2,\begin{aligned} S_{2N} &= \big(d_{2N} + \ln(2N)\big) - \big(d_N + \ln N\big) \\ &= d_{2N} - d_N + \ln 2, \end{aligned}

because ln⁡(2N)−ln⁡N=ln⁡2.\ln(2N) - \ln N = \ln 2\mathclose{\text{.}} As N→∞,N \to \infty\mathclose{\text{,}} dN→γd_N \to \gamma and d2N→γd_{2N} \to \gamma (every dnd_n with nn beyond some index is within ε\varepsilon of γ,\gamma\mathclose{\text{,}} and 2N2N passes that index too), so S2N→γ−γ+ln⁡2=ln⁡2.S_{2N} \to \gamma - \gamma + \ln 2 = \ln 2\mathclose{\text{.}} Also S2N+1=S2N+12N+1→ln⁡2.S_{2N+1} = S_{2N} + \tfrac{1}{2N + 1} \to \ln 2\mathclose{\text{.}} The even and the odd partial sums both tend to ln⁡2,\ln 2\mathclose{\text{,}} so the whole sequence of partial sums does: ∑(−1)n−1/n=ln⁡2.\sum (-1)^{n-1}/n = \ln 2\mathclose{\text{.}} Module 15 reaches the same value with power series.

Exercise 14.12★★★Squares of terms
  • (a) Prove that if ∑an\sum a_n converges absolutely, then ∑an2\sum a_n^2 converges.
  • (b) Show by an example that (a) can fail when ∑an\sum a_n converges only conditionally.
  • (c) Prove that if ∑an2\sum a_n^2 and ∑bn2\sum b_n^2 both converge, then ∑anbn\sum a_n b_n converges absolutely. (Hint: (∣a∣−∣b∣)2≥0.)\big(\abs{a} - \abs{b}\big)^2 \ge 0\mathclose{\text{.)}}
Show solution✓ Checked

(a) Since ∑∣an∣\sum \abs{a_n} converges, its terms tend to 0 (Theorem 14.8). So there is an index kk with ∣an∣<1\abs{a_n} < 1 for every n≥k,n \ge k\mathclose{\text{,}} and for those nn

0≤an2=∣an∣⋅∣an∣≤∣an∣.0 \le a_n^2 = \abs{a_n}\cdot\abs{a_n} \le \abs{a_n}.

By the comparison test, ∑an2\sum a_n^2 converges.

(b) Take an=(−1)n−1n.a_n = \dfrac{(-1)^{n-1}}{\sqrt n}\mathclose{\text{.}} The series ∑an\sum a_n converges by the alternating series test (1/n1/\sqrt n is positive, decreasing and tends to 0), but only conditionally (Example 14.15). And an2=1n:a_n^2 = \dfrac1n\mathclose{\text{:}} ∑an2\sum a_n^2 is the harmonic series, which diverges.

(c) Expanding the hint, a2−2∣a∣ ∣b∣+b2≥0,a^2 - 2\abs{a}\,\abs{b} + b^2 \ge 0\mathclose{\text{,}} so ∣ab∣≤12(a2+b2)\abs{ab} \le \tfrac12\big(a^2 + b^2\big) for all numbers aa and b.b\mathclose{\text{.}} The series ∑12(an2+bn2)\sum \tfrac12\big(a_n^2 + b_n^2\big) converges by the sum laws, so ∑∣anbn∣\sum \abs{a_n b_n} converges by the comparison test: ∑anbn\sum a_n b_n converges absolutely.

12

Check yourself

1
The sequence an=(−1)nna_n = \dfrac{(-1)^n}{n}
2
∑n=1∞(23)n\displaystyle\sum_{n=1}^{\infty}\Big(\frac23\Big)^n equals
3
If an→0,a_n \to 0\mathclose{\text{,}} then the series ∑an\sum a_n
4
Which of these series converges?
5
For ∑1/n2,\sum 1/n^2\mathclose{\text{,}} the ratio test
6
The partial sum S9=1−12+13−⋯+19S_9 = 1 - \tfrac12 + \tfrac13 - \cdots + \tfrac19 of the alternating harmonic series approximates its sum ln⁡2\ln 2 with an error whose size is at most
7
The series ∑n=1∞(−1)nn\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^n}{\sqrt n}
8
The sequence a1=0,a_1 = 0\mathclose{\text{,}} an+1=6+ana_{n+1} = \sqrt{6 + a_n} is increasing and bounded above by 3, so it converges. Its limit is
Finished this module?