Unit 7, lesson 99

Alternating Series

Why a series whose signs alternate converges when the sizes of its terms shrink steadily to zero, and how to bound the error of stopping early by the first term left out.

  • Theory part 197
  • Practice part 198
  • Convergence and Convergence Tests

Take a step forward, then a shorter step back, then a still shorter step forward, and so on. Each move overshoots and then partly undoes the last one, so you zigzag around a single point and close in on it. Series whose signs alternate behave like this walk, and they can converge even when the sizes of their terms would add up to infinity.

Key terms

Alternating series test

Definition An alternating series has the form

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

or the same with (−1)n(-1)^n. If

  1. the sizes never increase, bn+1≤bnb_{n+1} \le b_n for all n≥1n \ge 1, and
  2. the sizes tend to zero, lim⁡n→∞bn=0\lim_{n \to \infty} b_n = 0,

then the series converges.

The even partial sums s2,s4,s6,…s_2, s_4, s_6, \ldots increase, the odd partial sums s1,s3,s5,…s_1, s_3, s_5, \ldots decrease, every even one lies below every odd one, and their difference s2k+1−s2k=b2k+1s_{2k+1} - s_{2k} = b_{2k+1} tends to 00. So both close in on the same number.

In plain words If the signs alternate and the step sizes shrink to zero without ever growing, the zigzag settles down.

Example For ∑n=1∞(−1)n−1n\sum_{n=1}^{\infty} \frac{(-1)^{n-1}}{\sqrt{n}} we have bn=1n>0b_n = \frac{1}{\sqrt{n}} > 0, the sequence 1n\frac{1}{\sqrt{n}} decreases, and it tends to 00. So the series converges, even though ∑1n\sum \frac{1}{\sqrt{n}} diverges.

Decreasing magnitudes that tend to zero

Definition The decreasing condition may be weakened to bn+1≤bnb_{n+1} \le b_n for all n≥Nn \ge N, for some integer NN, because finitely many terms do not affect convergence. The condition bn→0b_n \to 0 cannot be dropped, and neither can the decreasing condition. A common way to check decreasing is to write bn=f(n)b_n = f(n) for a function ff that is differentiable on [N,∞)[N, \infty) and show f′(x)≤0f'(x) \le 0 for x≥Nx \ge N.

In plain words The sizes only need to go downhill from some point on. They must go to zero, and they must not jump back up along the way.

Example For ∑n=2∞(−1)nln⁡nn\sum_{n=2}^{\infty} (-1)^n \frac{\ln n}{n} take f(x)=ln⁡xxf(x) = \frac{\ln x}{x}. Its derivative is

f′(x)=1−ln⁡xx2<0for x>e,f'(x) = \frac{1 - \ln x}{x^2} < 0 \quad \text{for } x > e,

so bnb_n decreases for n≥3n \ge 3. Also ln⁡nn→0\frac{\ln n}{n} \to 0, so the series converges.

Compare ∑(−1)nnn+1\sum (-1)^n \frac{n}{n + 1}. Here bn=nn+1→1b_n = \frac{n}{n + 1} \to 1, so the terms do not go to zero and the series diverges by the nth term test.

Decreasing matters too. The series 1−1+12−14+13−19+14−116+⋯1 - 1 + \frac{1}{2} - \frac{1}{4} + \frac{1}{3} - \frac{1}{9} + \frac{1}{4} - \frac{1}{16} + \cdots alternates the positive terms 1k\frac{1}{k} with the negative terms −1k2-\frac{1}{k^2}. Its sizes tend to 00 but do not decrease, since 14\frac{1}{4} is followed by 13\frac{1}{3}. It diverges, because its partial sums with an even number of terms are

s2K=HK−∑k=1K1k2≥HK−2→∞,s_{2K} = H_K - \sum_{k=1}^{K} \frac{1}{k^2} \ge H_K - 2 \to \infty,

where HKH_K is the KKth harmonic partial sum and every partial sum of ∑1k2\sum \frac{1}{k^2} is below 22.

Alternating harmonic series

Definition The alternating harmonic series is

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

It converges by the alternating series test, since 1n\frac{1}{n} is positive, decreasing and tends to 00. Its sum is ln⁡2\ln 2, a fact that follows from the Taylor series of ln⁡(1+x)\ln(1 + x).

In plain words The harmonic series diverges, but flipping every other sign makes it converge. The positive and negative parts nearly cancel.

Example The partial sums zigzag around ln⁡2≈0.6931\ln 2 \approx 0.6931.

NN112233445566
sNs_N110.50.50.83330.83330.58330.58330.78330.78330.61670.6167

Odd partial sums sit above ln⁡2\ln 2 and even ones below.

Alternating remainder estimate

Definition Suppose ∑(−1)n−1bn\sum (-1)^{n-1} b_n satisfies bn>0b_n > 0, bn+1≤bnb_{n+1} \le b_n for all n≥1n \ge 1, and bn→0b_n \to 0, with sum SS. Then for every n≥1n \ge 1

∣Rn∣=∣S−sn∣≤bn+1.\lvert R_n \rvert = \lvert S - s_n \rvert \le b_{n+1}.

Moreover S−snS - s_n has the same sign as the first omitted term (−1)nbn+1(-1)^n b_{n+1}, or is zero.

In plain words When you stop, the error is no bigger than the size of the next term you would have added, and it points the same way as that term.

Example How many terms of ∑n=1∞(−1)n−1n3\sum_{n=1}^{\infty} \frac{(-1)^{n-1}}{n^3} make the error less than 0.0010.001? The sizes 1n3\frac{1}{n^3} are positive, decreasing and tend to 00, so it is enough that

bn+1=1(n+1)3<0.001,b_{n+1} = \frac{1}{(n + 1)^3} < 0.001,

that is (n+1)3>1000(n + 1)^3 > 1000. So n+1≥11n + 1 \ge 11 and n=10n = 10 terms suffice. Indeed s10≈0.901116s_{10} \approx 0.901116, and the true sum is 34ζ(3)≈0.901543\frac{3}{4}\zeta(3) \approx 0.901543, an error of about 0.000430.00043, below b11=11331≈0.00075b_{11} = \frac{1}{1331} \approx 0.00075. Since the first omitted term is positive, s10s_{10} is below the sum, as it should be.

Check yourself

  1. Does ∑n=2∞(−1)nln⁡n\sum_{n=2}^{\infty} \frac{(-1)^n}{\ln n} converge?
Show the answer

Yes. The sizes 1ln⁡n\frac{1}{\ln n} are positive, decrease because ln⁡n\ln n increases, and tend to 00. The alternating series test applies.

  1. Does ∑n=1∞(−1)nn2n2+1\sum_{n=1}^{\infty} (-1)^n \frac{n^2}{n^2 + 1} converge?
Show the answer

No. The sizes tend to 11, so the terms do not tend to 00 and the series diverges.

  1. Estimate ∑n=1∞(−1)n−1n!\sum_{n=1}^{\infty} \frac{(-1)^{n-1}}{n!} with error less than 0.010.01.
Show the answer

The sizes 1n!\frac{1}{n!} are positive and decrease to 00. We need 1(n+1)!<0.01\frac{1}{(n + 1)!} < 0.01, so (n+1)!>100(n + 1)! > 100, which first holds at n+1=5n + 1 = 5. Then

s4=1−12+16−124=0.625,s_4 = 1 - \frac{1}{2} + \frac{1}{6} - \frac{1}{24} = 0.625,

within 1120≈0.0083\frac{1}{120} \approx 0.0083 of the sum. The exact value is 1−1e≈0.6321 - \frac{1}{e} \approx 0.632.

How this lesson connects