Chapter 8 ยท Sequences and Series

8.5 Alternating Series

When the signs take turns, terms that shrink steadily to zero are enough for convergence โ€” and the error is never bigger than the first term you leave out.

In Section 8.2 we met a disappointing fact: the harmonic series $1+\tfrac12+\tfrac13+\tfrac14+\cdots$ diverges, even though its terms shrink to zero. The partial sums creep upward forever. Now flip every second sign: $$1-\frac12+\frac13-\frac14+\frac15-\cdots$$ Each step now goes the other way, and by a smaller amount than the step before. Up by $1$, down by $\tfrac12$, up by $\tfrac13$, down by $\tfrac14$โ€ฆ The partial sums zig-zag, overshooting and undershooting, but the swings keep getting narrower. It is hard to believe they could wander off to infinity โ€” and indeed they don't.

Series whose signs alternate appear everywhere: in the Taylor series of $\sin x$, $\cos x$ and $\ln(1+x)$ (Chapter 9), in Fourier series used in signal processing, and in physics whenever successive corrections push in opposite directions. In this section we find a very simple test for their convergence, and โ€” just as useful in practice โ€” a free, guaranteed error bound for every partial sum. We then separate series that converge robustly (absolutely) from series that converge only thanks to the cancellation between signs (conditionally), and see the surprising things that can happen to the second kind.

Alternating Series and the Alternating Series Test

๐Ÿ“˜ Definition 8.7 โ€” Alternating series
An alternating series is a series whose terms are alternately positive and negative. It can be written in one of the forms $$\sum_{n=1}^{\infty}(-1)^{n+1}b_n=b_1-b_2+b_3-b_4+\cdots\qquad\text{or}\qquad\sum_{n=1}^{\infty}(-1)^{n}b_n=-b_1+b_2-b_3+b_4-\cdots,$$ where $b_n\gt 0$ for every $n$. The numbers $b_n=|a_n|$ are the sizes of the terms; the factor $(-1)^{n+1}$ or $(-1)^n$ supplies the signs.

For example, $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n}$ (the alternating harmonic series), $\displaystyle\sum_{n=0}^{\infty}\frac{(-1)^n}{2n+1}=1-\frac13+\frac15-\cdots$ and $\displaystyle\sum_{n=1}^{\infty}\cos(n\pi)\,\frac1{n^2}$ (because $\cos(n\pi)=(-1)^n$) are all alternating. A series such as $\displaystyle\sum\frac{\sin n}{n^2}$ is not alternating: its signs follow an irregular pattern.

๐Ÿ“ Theorem 8.17 โ€” The alternating series test (AST)
Consider $\displaystyle\sum_{n=1}^{\infty}(-1)^{n+1}b_n$ (or $\displaystyle\sum_{n=1}^{\infty}(-1)^{n}b_n$). Suppose that
  1. $b_n\gt 0$ for all $n$;
  2. the sizes are eventually decreasing: there is an index $N_0$ with $b_{n+1}\le b_n$ for all $n\ge N_0$;
  3. $\displaystyle\lim_{n\to\infty}b_n=0$.
Then the series converges.

Why it works. Take the case $\sum(-1)^{n+1}b_n$ with $b_n$ decreasing from the very first term. Group the even partial sums in pairs: $$S_{2k}=(b_1-b_2)+(b_3-b_4)+\cdots+(b_{2k-1}-b_{2k}).$$ Every bracket is $\ge 0$, so $S_2\le S_4\le S_6\le\cdots$ is increasing. Grouping differently, $$S_{2k}=b_1-(b_2-b_3)-(b_4-b_5)-\cdots-(b_{2k-2}-b_{2k-1})-b_{2k}\le b_1,$$ so the even partial sums are bounded above. By the Monotone Convergence Theorem for sequences (Section 8.1) they converge to some number $S$. Finally $S_{2k+1}=S_{2k}+b_{2k+1}$ and $b_{2k+1}\to 0$, so the odd partial sums converge to the same $S$. Hence $S_n\to S$. (If the decrease only starts at $N_0$, the first $N_0$ terms change the sum but not whether it exists.) Interactive 1 below lets you watch exactly this: even sums climbing, odd sums falling, the two closing in from either side.

โœ๏ธ Example 1 โ€” The alternating harmonic series
Show that $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n}=1-\frac12+\frac13-\frac14+\cdots$ converges.
Identify The series is alternating with $b_n=\dfrac1n$.
Check the hypotheses (1) $b_n=\dfrac1n\gt 0$. (2) $b_{n+1}=\dfrac1{n+1}\lt\dfrac1n=b_n$, so the sizes decrease. (3) $\displaystyle\lim_{n\to\infty}\frac1n=0$.
Conclude By the alternating series test the series converges. Contrast this with the harmonic series $\sum\frac1n$, which diverges: the alternating signs make all the difference. (We show below that the sum is exactly $\ln 2\approx0.6931$.)
โœ๏ธ Example 2 โ€” Checking all three hypotheses
Determine whether each series converges or diverges.  (a) $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}\,n}{n^2+1}$   (b) $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n}\,3n}{4n-1}$
(a) Positivity and limit $b_n=\dfrac{n}{n^2+1}\gt 0$, and dividing top and bottom by $n^2$, $\displaystyle\lim_{n\to\infty}\frac{1/n}{1+1/n^2}=0$.
(a) Decreasing? It is not obvious, because both numerator and denominator grow. Use the function $f(x)=\dfrac{x}{x^2+1}$, so $b_n=f(n)$: $$f^\prime(x)=\frac{(x^2+1)-x(2x)}{(x^2+1)^2}=\frac{1-x^2}{(x^2+1)^2}\le 0\quad\text{for }x\ge1.$$ So $f$ is decreasing on $[1,\infty)$ and $b_{n+1}\le b_n$ for all $n\ge1$.
(a) Conclude All three hypotheses hold, so the series converges by the AST.
(b) Here $b_n=\dfrac{3n}{4n-1}\to\dfrac34\ne0$. The terms $a_n=(-1)^n b_n$ do not tend to $0$ (they keep jumping between values near $\tfrac34$ and $-\tfrac34$), so the series diverges by the divergence test (Section 8.3). Note: the AST can never prove divergence โ€” when its hypotheses fail, we use a different test.
โœ๏ธ Example 3 โ€” Eventually decreasing is enough
Show that $\displaystyle\sum_{n=2}^{\infty}\frac{(-1)^n\ln n}{n}$ converges.
Look at the first terms $b_n=\dfrac{\ln n}{n}$: $b_2=\dfrac{\ln2}{2}\approx0.3466$, $b_3=\dfrac{\ln3}{3}\approx0.3662$. The sizes increase at first, so we need the "eventually" in the theorem.
Decreasing from some point on With $f(x)=\dfrac{\ln x}{x}$, $$f^\prime(x)=\frac{\frac1x\cdot x-\ln x}{x^2}=\frac{1-\ln x}{x^2}\lt 0\quad\text{when }\ln x\gt 1,\ \text{i.e. }x\gt e.$$ So $b_{n+1}\le b_n$ for all $n\ge3$.
Limit By L'Hospital's rule, $\displaystyle\lim_{x\to\infty}\frac{\ln x}{x}=\lim_{x\to\infty}\frac{1/x}{1}=0$, and $b_n\gt 0$ for $n\ge2$.
Conclude The hypotheses of the AST hold (with $N_0=3$), so the series converges.
โš ๏ธ Common mistakes with the alternating series test

1. Forgetting the decrease condition. $b_n\to0$ alone is not enough. Consider $$1-\frac14+\frac13-\frac1{16}+\frac15-\frac1{36}+\cdots,$$ where the positive terms are $\frac1{2k-1}$ and the negative terms are $\frac1{(2k)^2}$. The signs alternate and the terms tend to $0$, but the sizes are not decreasing ($\tfrac14\lt\tfrac13$). The sum of the first $2k$ terms is $\displaystyle\sum_{j=1}^{k}\frac1{2j-1}-\sum_{j=1}^{k}\frac1{4j^2}$; the first sum grows without bound (it is larger than $\tfrac12\sum_{j=1}^k\tfrac1j$) while the second stays below $\tfrac{\pi^2}{24}$. So this series diverges.

2. Using the AST to "prove" divergence. If a hypothesis fails, the AST simply says nothing. Check $\lim a_n$ with the divergence test instead (as in Example 2(b)).

3. Mixing up $a_n$ and $b_n$. The conditions are on the positive sizes $b_n=|a_n|$, not on the signed terms $a_n$ (which are certainly not decreasing!).

Estimating the Sum: the Alternating Series Remainder

Most series cannot be summed exactly, so we stop after $N$ terms and use $S_N$ as an approximation. The remainder $R_N=S-S_N$ is the error we make. For general series, bounding $R_N$ takes work (Sections 8.3 and 8.4). For alternating series it is almost free: the true sum is always trapped between two consecutive partial sums.

๐Ÿ“ Theorem 8.18 โ€” Alternating series remainder estimate
Suppose $\displaystyle S=\sum_{n=1}^{\infty}(-1)^{n+1}b_n$ satisfies the hypotheses of the AST with $b_{n+1}\le b_n$ for all $n\ge N$, and let $S_N$ be the sum of the first $N$ terms. Then $$|R_N|=|S-S_N|\le b_{N+1},$$ i.e. the error is at most the size of the first omitted term. Moreover, $S$ lies between $S_N$ and $S_{N+1}$, and $R_N$ has the same sign as the first omitted term $(-1)^{N+2}b_{N+1}$.

Why. The tail $R_N=(-1)^{N+2}\left(b_{N+1}-b_{N+2}+b_{N+3}-\cdots\right)$ is itself an alternating series with decreasing sizes. By the grouping argument above, the bracket lies between $0$ and its first term $b_{N+1}$. So $|R_N|\le b_{N+1}$, and the sign of $R_N$ is the sign of the first omitted term.

Interactive 1 โ€” Zig-Zag Partial Sums and the Shrinking Error Band

Dots are the partial sums $S_N$: red above the true sum, blue below it. The green dashed line is the sum $S$. The shaded funnel is $S_N\pm b_{N+1}$ for every $N$, and the orange bar is the guaranteed interval at the current $N$ โ€” the true sum is always inside it, and the funnel narrows exactly as fast as the terms shrink.

terms used $N$โ€”
partial sum $S_N$โ€”
bound $b_{N+1}$โ€”
actual error $|S-S_N|$โ€”
true sum $S$โ€”
โœ๏ธ Example 4 โ€” How many terms are needed?
How many terms of $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^3}$ must we add to be sure the error is less than $0.001$? Compute that partial sum.
Hypotheses $b_n=\dfrac1{n^3}\gt0$ is decreasing with limit $0$, so Theorem 8.18 applies.
Make the bound small We need $b_{N+1}=\dfrac{1}{(N+1)^3}\lt0.001$, i.e. $(N+1)^3\gt1000$, i.e. $N+1\gt10$. The smallest such $N$ is $N=10$. (With $N=9$ the bound is $\tfrac1{1000}$, which is not less than $0.001$.)
Compute $$S_{10}=1-\frac18+\frac1{27}-\frac1{64}+\cdots-\frac1{1000}\approx0.901116.$$ So $S\approx0.9011$ with $|S-S_{10}|\le\dfrac1{1331}\approx0.000751$. The last term used, $-\tfrac1{1000}$, was negative, so the first omitted term $+\tfrac1{1331}$ is positive and $S\gt S_{10}$.
Check The exact sum is $\tfrac34\zeta(3)\approx0.901543$, and $0.901543-0.901116=0.000427\lt0.000751$. โœ“
โœ๏ธ Example 5 โ€” Estimating $1/e$ to four decimal places
It can be shown (Chapter 9) that $\displaystyle\frac1e=\sum_{n=0}^{\infty}\frac{(-1)^n}{n!}=1-1+\frac1{2!}-\frac1{3!}+\cdots$. Use enough terms to guarantee an error less than $0.00005$, and compare with $1/e$.
Hypotheses $b_n=\dfrac1{n!}\gt0$, $b_{n+1}=\dfrac{1}{(n+1)!}=\dfrac{b_n}{n+1}\le b_n$, and $b_n\to0$.
Choose the stopping point If we add the terms $n=0,1,\dots,M$, the first omitted term has size $\dfrac1{(M+1)!}$. Since $\dfrac1{7!}=\dfrac1{5040}\approx0.000198$ is too big but $\dfrac1{8!}=\dfrac1{40320}\approx0.0000248\lt0.00005$, we stop at $M=7$ (eight terms).
Compute $$1-1+\frac12-\frac16+\frac1{24}-\frac1{120}+\frac1{720}-\frac1{5040}=\frac{1854}{5040}\approx0.367857.$$
Check $1/e\approx0.367879$; the actual error is $0.0000223\lt0.0000248$ โœ“, and since the first omitted term $+\tfrac1{8!}$ is positive, the true value is slightly larger than our estimate โ€” as it is.

Absolute and Conditional Convergence

The series $\sum\frac{(-1)^{n+1}}{n^2}$ and $\sum\frac{(-1)^{n+1}}{n}$ both converge, but for very different reasons. The first would converge even if we made every sign positive ($\sum\frac1{n^2}$ is a convergent $p$-series). The second converges only because positive and negative terms cancel; make the signs positive and it diverges. This distinction matters a great deal.

๐Ÿ“˜ Definition 8.8 โ€” Absolute and conditional convergence
A series $\sum a_n$ (with terms of any signs) is
  • absolutely convergent if the series of absolute values $\sum|a_n|$ converges;
  • conditionally convergent if $\sum a_n$ converges but $\sum|a_n|$ diverges.
๐Ÿ“ Theorem 8.19 โ€” Absolute convergence implies convergence
If $\displaystyle\sum_{n=1}^{\infty}|a_n|$ converges, then $\displaystyle\sum_{n=1}^{\infty}a_n$ converges, and $\displaystyle\left|\sum_{n=1}^{\infty}a_n\right|\le\sum_{n=1}^{\infty}|a_n|$.

Why. For every $n$, $-|a_n|\le a_n\le|a_n|$, so $0\le a_n+|a_n|\le2|a_n|$. Since $\sum2|a_n|$ converges, the Comparison Test (Section 8.4) shows that $\sum(a_n+|a_n|)$ converges. Then $\sum a_n=\sum(a_n+|a_n|)-\sum|a_n|$ is the difference of two convergent series, so it converges. This theorem is powerful because it lets us use all our tests for positive series (comparison, integral, and โ€” in Section 8.6 โ€” ratio and root) on series whose signs are mixed, even irregularly.

๐Ÿงญ Classifying a series with mixed signs
  1. Check $\lim a_n$. If it is not $0$, the series diverges (divergence test). Stop.
  2. Test $\sum|a_n|$ with a positive-series test. If it converges, $\sum a_n$ is absolutely convergent. Stop.
  3. If $\sum|a_n|$ diverges and the series is alternating, try the AST. If it applies, the series is conditionally convergent.
โœ๏ธ Example 6 โ€” Absolute, conditional or divergent?
Classify:  (a) $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^2}$   (b) $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{\sqrt n}$   (c) $\displaystyle\sum_{n=1}^{\infty}\frac{\sin n}{n^2}$
(a) $\displaystyle\sum\left|\frac{(-1)^{n+1}}{n^2}\right|=\sum\frac1{n^2}$ is a $p$-series with $p=2\gt1$, so it converges. The series is absolutely convergent (its sum is $\tfrac{\pi^2}{12}\approx0.8225$).
(b) $\displaystyle\sum\frac1{\sqrt n}$ is a $p$-series with $p=\tfrac12\le1$, so it diverges: no absolute convergence. But $b_n=\dfrac1{\sqrt n}$ is positive, decreasing and tends to $0$, so the series converges by the AST. It is conditionally convergent.
(c) This is not an alternating series ($\sin1,\sin2,\sin3,\dots\approx0.84,\,0.91,\,0.14,\,-0.76,\dots$), so the AST does not apply. Instead, $\left|\dfrac{\sin n}{n^2}\right|\le\dfrac1{n^2}$ and $\sum\frac1{n^2}$ converges, so $\sum\left|\frac{\sin n}{n^2}\right|$ converges by comparison. Hence the series is absolutely convergent, and therefore convergent by Theorem 8.19.

The Sum $\ln 2$ and Rearrangements

๐Ÿ“ Theorem 8.20 โ€” The alternating harmonic series
$$\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n}=1-\frac12+\frac13-\frac14+\cdots=\ln 2.$$

Why. For $t\ne-1$ the finite geometric sum gives $1-t+t^2-\cdots+(-1)^{N-1}t^{N-1}=\dfrac{1-(-t)^N}{1+t}$. Integrate both sides from $0$ to $1$: $$\underbrace{1-\frac12+\frac13-\cdots+\frac{(-1)^{N-1}}{N}}_{S_N}=\int_0^1\frac{dt}{1+t}-(-1)^N\int_0^1\frac{t^N}{1+t}\,dt=\ln2-(-1)^N\int_0^1\frac{t^N}{1+t}\,dt.$$ Since $0\le\dfrac{t^N}{1+t}\le t^N$ on $[0,1]$, the last integral lies between $0$ and $\displaystyle\int_0^1t^N\,dt=\frac1{N+1}$, which tends to $0$. Hence $S_N\to\ln2$. (Notice the error bound $\frac1{N+1}=b_{N+1}$ โ€” exactly Theorem 8.18.)

For a finite sum, the order of the terms never matters. For an infinite series it can. Watch what happens if we take the alternating harmonic series and write one positive term followed by two negative terms: $$\left(1-\frac12\right)-\frac14+\left(\frac13-\frac16\right)-\frac18+\left(\frac15-\frac1{10}\right)-\frac1{12}+\cdots=\frac12-\frac14+\frac16-\frac18+\frac1{10}-\frac1{12}+\cdots=\frac12\ln2.$$ Every term of the original series appears exactly once โ€” yet the sum has been halved! This is no trick of notation: the partial sums of the rearranged series really do converge to $\tfrac12\ln 2\approx0.3466$.

๐Ÿ“ Theorem 8.21 โ€” Rearrangements (Riemann)
  1. If $\sum a_n$ is absolutely convergent with sum $S$, then every rearrangement of $\sum a_n$ also converges, with the same sum $S$.
  2. If $\sum a_n$ is conditionally convergent and $T$ is any real number, there is a rearrangement of $\sum a_n$ whose sum is $T$. There are also rearrangements that diverge to $+\infty$ or $-\infty$.

The idea behind part 2 is simple. In a conditionally convergent series, the positive terms alone add up to $+\infty$ and the negative terms alone add up to $-\infty$ (otherwise the series would converge absolutely), yet the individual terms tend to $0$. So: add positive terms until you pass $T$, then negative terms until you fall below $T$, then positive terms again, and so on. Each overshoot is at most the size of the last term used, which tends to $0$, so the partial sums close in on $T$. Interactive 2 runs this recipe.

Interactive 2 โ€” Rearranging the Alternating Harmonic Series to Any Target

Choose a target $T$. The recipe uses the terms $1,\tfrac13,\tfrac15,\dots$ (positive) and $-\tfrac12,-\tfrac14,-\tfrac16,\dots$ (negative), each exactly once: add a positive term while the sum is $\le T$, otherwise add a negative term. The running sum (dark curve) homes in on the orange target, not on $\ln 2$ (grey). The proportion $p/q$ of positive to negative terms approaches $e^{2T}/4$ โ€” set $T=\ln2\approx0.69$ and it is $1$, the original order.

1.5
terms usedโ€”
positive terms $p$โ€”
negative terms $q$โ€”
running sumโ€”
$p/q$ vs. $e^{2T}/4$โ€”
โš ๏ธ What rearrangements teach us

A conditionally convergent series is delicate: its sum depends on the order in which the terms are added, so you must keep the terms in their given order and must not regroup infinitely many terms carelessly. An absolutely convergent series is robust: you may reorder, regroup or split it into its positive and negative parts and the sum will not change. This is one reason mathematicians, engineers and physicists like to establish absolute convergence whenever they can โ€” and why the ratio and root tests of Section 8.6, which prove absolute convergence, are so popular.

Exercises

I
Determine whether each series converges or diverges. If you use the alternating series test, check all three hypotheses.
  • 1 $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{2n-1}$
  • 2 $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n}}{\sqrt{n+1}}$
  • 3 $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}\,n}{3n+2}$
  • 4 $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n}}{\ln(n+1)}$
  • 5 $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}\,n}{n^2+4}$
  • 6 $\displaystyle\sum_{n=1}^{\infty}(-1)^{n}\,n\,e^{-n}$
  • 7 $\displaystyle\sum_{n=1}^{\infty}(-1)^{n+1}\,\frac{n+1}{n}$
  • 8 $\displaystyle\sum_{n=1}^{\infty}(-1)^{n}\cos\left(\frac{\pi}{n}\right)$
  • 9 $\displaystyle\sum_{n=1}^{\infty}(-1)^{n+1}\sin\left(\frac1n\right)$
  • 10 $\displaystyle\sum_{n=1}^{\infty}\frac{\cos(n\pi)}{n^{2/3}}$
  • 11 $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n}\sqrt n}{n+5}$
1 $b_n=\dfrac1{2n-1}\gt0$, $b_{n+1}=\dfrac1{2n+1}\lt b_n$, $b_n\to0$. Converges by the AST. (Its sum, $1-\tfrac13+\tfrac15-\cdots$, is $\tfrac\pi4$.)
2 $b_n=\dfrac1{\sqrt{n+1}}\gt0$ decreases (the denominator increases) and tends to $0$. Converges by the AST.
3 $b_n=\dfrac{n}{3n+2}\to\dfrac13\ne0$, so $a_n\not\to0$. Diverges by the divergence test.
4 $b_n=\dfrac1{\ln(n+1)}\gt0$ for $n\ge1$; $\ln(n+1)$ increases, so $b_n$ decreases; $\ln(n+1)\to\infty$ so $b_n\to0$. Converges by the AST.
5 $f(x)=\dfrac{x}{x^2+4}$, $f^\prime(x)=\dfrac{4-x^2}{(x^2+4)^2}\le0$ for $x\ge2$, so $b_n$ is decreasing for $n\ge2$ (eventually decreasing; note $b_1=0.2\lt b_2=0.25$). $b_n\to0$. Converges by the AST.
6 $f(x)=xe^{-x}$, $f^\prime(x)=(1-x)e^{-x}\le0$ for $x\ge1$, so $b_n=ne^{-n}$ decreases; $b_n=\dfrac{n}{e^n}\to0$ (L'Hospital). Converges by the AST.
7 $b_n=\dfrac{n+1}{n}\to1\ne0$. Diverges by the divergence test.
8 $b_n=\cos(\pi/n)\to\cos0=1\ne0$ (and $b_1=\cos\pi=-1$ is not even positive). The terms do not tend to $0$: diverges.
9 For $n\ge1$, $0\lt\tfrac1n\le1\lt\tfrac\pi2$, so $b_n=\sin(1/n)\gt0$; $\sin$ is increasing on $[0,\tfrac\pi2]$ and $\tfrac1{n+1}\lt\tfrac1n$, so $b_{n+1}\lt b_n$; $b_n\to\sin0=0$. Converges by the AST.
10 $\cos(n\pi)=(-1)^n$, so the series is $\displaystyle\sum\frac{(-1)^n}{n^{2/3}}$ with $b_n=n^{-2/3}$ positive, decreasing, $\to0$. Converges by the AST.
11 $f(x)=\dfrac{\sqrt x}{x+5}$, $f^\prime(x)=\dfrac{\frac{x+5}{2\sqrt x}-\sqrt x}{(x+5)^2}=\dfrac{5-x}{2\sqrt x\,(x+5)^2}\le0$ for $x\ge5$: eventually decreasing. $b_n=\dfrac{1/\sqrt n}{1+5/n}\to0$. Converges by the AST.
II
Remainder estimates. Use Theorem 8.18.
  • 1 How many terms of $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^2}$ are needed to guarantee an error less than $0.001$?
  • 2 How many terms of $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^4}$ are needed to guarantee an error less than $10^{-4}$?
  • 3 The series $\displaystyle\sum_{n=0}^{\infty}\frac{(-1)^n}{2n+1}$ has sum $\dfrac{\pi}{4}$. How many terms guarantee an error less than $10^{-3}$? What accuracy does that give for $\pi$ itself?
  • 4 Approximate $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n\,2^n}$ with error less than $0.0005$. (Its exact value is $\ln\tfrac32$.)
  • 5 Bound the error made by approximating $\dfrac1e=\displaystyle\sum_{n=0}^{\infty}\frac{(-1)^n}{n!}$ with the first six terms ($n=0$ to $5$). Compare with the actual error.
  • 6 Compute $S_{10}$ for $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n}$ and give its error bound. Without using a calculator for $\ln 2$, decide whether $S_{10}$ is above or below the sum.
  • 7 Use $S_4$ and $S_5$ to find an interval that contains $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^2}$.
  • 8 Show that $b_n=\dfrac{n}{4^n}$ is decreasing, then find how many terms of $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}n}{4^n}$ guarantee an error less than $0.001$. Compute the estimate.
Check: partial sums against the remainder bound
terms usedโ€”
partial sumโ€”
bound (next term)โ€”
actual errorโ€”
1 Need $\dfrac1{(N+1)^2}\lt0.001$, i.e. $(N+1)^2\gt1000$. Since $31^2=961$ and $32^2=1024$, $N+1\ge32$: $N=31$ terms.
2 Need $(N+1)^4\gt10^4$, i.e. $N+1\gt10$: $N=10$ terms (with $N=9$ the bound equals $10^{-4}$ exactly, not less).
3 Adding $n=0,\dots,M$, the next term has size $\dfrac1{2M+3}$. Need $2M+3\gt1000$, so $M\ge499$: 500 terms. Then $|\tfrac\pi4-S|\lt10^{-3}$, so $4S$ approximates $\pi$ with error less than $4\times10^{-3}$. This series converges very slowly.
4 $b_n=\dfrac1{n2^n}$ decreases to $0$. $b_7=\dfrac1{896}\approx0.00112$ is too big; $b_8=\dfrac1{2048}\approx0.000488\lt0.0005$, so take $N=7$: $$S_7=\frac12-\frac18+\frac1{24}-\frac1{64}+\frac1{160}-\frac1{384}+\frac1{896}\approx0.405804.$$ Check: $\ln1.5\approx0.405465$, error $0.000338\lt0.000488$ โœ“.
5 Six terms: $1-1+\tfrac12-\tfrac16+\tfrac1{24}-\tfrac1{120}=\tfrac{11}{30}\approx0.366667$. The first omitted term is $+\tfrac1{6!}$, so the error is at most $\tfrac1{720}\approx0.00139$ and the true value is larger. Actual: $0.367879-0.366667=0.00121\le0.00139$ โœ“.
6 $S_{10}=1-\tfrac12+\tfrac13-\cdots-\tfrac1{10}=\dfrac{1627}{2520}\approx0.645635$, with $|R_{10}|\le\tfrac1{11}\approx0.0909$. The first omitted term $+\tfrac1{11}$ is positive, so $R_{10}\gt0$: $S_{10}$ is below the sum. (Indeed $\ln2\approx0.6931$.)
7 $S_4=1-\tfrac14+\tfrac19-\tfrac1{16}=\tfrac{115}{144}\approx0.798611$ and $S_5=S_4+\tfrac1{25}\approx0.838611$. The sum lies between them: $0.7986\lt S\lt0.8386$. (Exact: $\tfrac{\pi^2}{12}\approx0.822467$.)
8 $\dfrac{b_{n+1}}{b_n}=\dfrac{n+1}{4n}\le\dfrac{2n}{4n}=\dfrac12\lt1$, so $b_n$ decreases, and $b_n\to0$. $b_6=\tfrac{6}{4096}\approx0.00146$ is too big; $b_7=\tfrac7{16384}\approx0.000427\lt0.001$, so $N=6$: $$S_6=\tfrac14-\tfrac2{16}+\tfrac3{64}-\tfrac4{256}+\tfrac5{1024}-\tfrac6{4096}\approx0.159668.$$ (The exact sum is $0.16$; error $0.000332$ โœ“.)
III
Classify each series as absolutely convergent, conditionally convergent, or divergent.
  • 1 $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^n}{n^{3/2}}$
  • 2 $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{\sqrt[3]{n}}$
  • 3 $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n}\,n^2}{n^3+1}$
  • 4 $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n}}{n^2+1}$
  • 5 $\displaystyle\sum_{n=1}^{\infty}(-1)^{n+1}\left(\frac23\right)^n$
  • 6 $\displaystyle\sum_{n=1}^{\infty}\frac{\cos n}{n^2}$
  • 7 $\displaystyle\sum_{n=2}^{\infty}\frac{(-1)^{n}\ln n}{n}$
  • 8 $\displaystyle\sum_{n=1}^{\infty}(-1)^{n}\,\frac{n+1}{n}$
  • 9 $\displaystyle\sum_{n=2}^{\infty}\frac{(-1)^{n+1}}{n\ln n}$
  • 10 $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n}}{\sqrt n\,(n+1)}$
1 $\sum n^{-3/2}$ is a $p$-series with $p=\tfrac32\gt1$: absolutely convergent.
2 $\sum n^{-1/3}$ diverges ($p=\tfrac13\le1$), but $n^{-1/3}$ is positive, decreasing, $\to0$, so the AST applies: conditionally convergent.
3 $|a_n|=\dfrac{n^2}{n^3+1}$; limit comparison with $\tfrac1n$: $\dfrac{n^2/(n^3+1)}{1/n}=\dfrac{n^3}{n^3+1}\to1$, and $\sum\frac1n$ diverges, so $\sum|a_n|$ diverges. For the AST: $f(x)=\dfrac{x^2}{x^3+1}$ has $f^\prime(x)=\dfrac{x(2-x^3)}{(x^3+1)^2}\le0$ for $x\ge\sqrt[3]2$, and $b_1=\tfrac12\gt b_2=\tfrac49$, so $b_n$ decreases; $b_n\to0$. Conditionally convergent.
4 $\dfrac1{n^2+1}\le\dfrac1{n^2}$ and $\sum\frac1{n^2}$ converges: absolutely convergent.
5 $\sum\left(\tfrac23\right)^n$ is geometric with $r=\tfrac23\lt1$: absolutely convergent (sum $\tfrac{2/3}{1+2/3}=\tfrac25$).
6 Not alternating, but $\left|\dfrac{\cos n}{n^2}\right|\le\dfrac1{n^2}$: absolutely convergent by comparison and Theorem 8.19.
7 For $n\ge3$, $\dfrac{\ln n}{n}\ge\dfrac1n$ and $\sum\frac1n$ diverges, so no absolute convergence. Example 3 showed the AST applies: conditionally convergent.
8 $|a_n|=\dfrac{n+1}{n}\to1\ne0$: divergent (divergence test).
9 Integral test: $\displaystyle\int_2^{\infty}\frac{dx}{x\ln x}=\lim_{t\to\infty}\Big[\ln(\ln x)\Big]_2^t=\infty$, so $\sum\frac1{n\ln n}$ diverges. But $b_n=\dfrac1{n\ln n}$ is positive, decreasing (the denominator increases) and $\to0$: conditionally convergent.
10 $\dfrac1{\sqrt n\,(n+1)}\lt\dfrac1{n^{3/2}}$ and $\sum n^{-3/2}$ converges: absolutely convergent.
IV
Concepts and applications.
  • 1 Applied. A cleaning robot on a straight corridor moves $1$ m forward, then $\tfrac12$ m back, then $\tfrac13$ m forward, $\tfrac14$ m back, and so on. Where does it end up (relative to its start)? How many moves guarantee that it is within $1$ cm of that final position?
  • 2 Show that the rearrangement $1-\tfrac12-\tfrac14+\tfrac13-\tfrac16-\tfrac18+\tfrac15-\tfrac1{10}-\tfrac1{12}+\cdots$ has sum $\tfrac12\ln2$. (Hint: combine the first two terms of each group of three.)
  • 3 True or false? Justify. (a) If $\sum a_n$ converges, then $\sum|a_n|$ converges. (b) If $\sum|a_n|$ converges, then $\sum(-1)^na_n$ converges. (c) If $b_n\gt0$ and $b_n\to0$, then $\sum(-1)^nb_n$ converges. (d) For a series satisfying the AST with decreasing $b_n$, consecutive partial sums lie on opposite sides of the sum.
  • 4 For which real numbers $p$ is $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^p}$ absolutely convergent, conditionally convergent, divergent?
  • 5 Applied. A damped pendulum's successive half-swings move the bob by signed displacements $d_n=(-1)^{n+1}\,20\,(0.9)^{n-1}$ cm. Find the total net displacement $\sum d_n$, and use Theorem 8.18 to find how many half-swings guarantee that the partial sum is within $0.5$ cm of it.
1 Its position after all moves is $1-\tfrac12+\tfrac13-\cdots=\ln2\approx0.693$ m forward of the start (Theorem 8.20). The error after $N$ moves is at most $\tfrac1{N+1}$ m; we need $\tfrac1{N+1}\le0.01$, i.e. $N\ge99$. So 99 moves guarantee it is within $1$ cm. (The actual error after 99 moves is about $0.50$ cm.)
2 In the $k$-th group, $\dfrac1{2k-1}-\dfrac1{2(2k-1)}-\dfrac1{4k}=\dfrac1{2(2k-1)}-\dfrac1{4k}=\dfrac12\left(\dfrac1{2k-1}-\dfrac1{2k}\right)$. Summing over $k$ gives $\tfrac12\left(1-\tfrac12+\tfrac13-\tfrac14+\cdots\right)=\tfrac12\ln2\approx0.3466$. (The terms inside each group tend to $0$, so the partial sums inside a group also approach this limit.)
3 (a) F The alternating harmonic series converges but $\sum\frac1n$ diverges. (b) T $|(-1)^na_n|=|a_n|$, so $\sum(-1)^na_n$ converges absolutely, hence converges. (c) F The decreasing condition is needed; see the series $1-\tfrac14+\tfrac13-\tfrac1{16}+\cdots$ in the warning box, which diverges. (d) T $S$ lies between $S_N$ and $S_{N+1}$ (Theorem 8.18).
4 $p\gt1$: absolutely convergent ($p$-series). $0\lt p\le1$: $\sum n^{-p}$ diverges but $n^{-p}$ decreases to $0$, so conditionally convergent. $p\le0$: $|a_n|=n^{-p}\ge1$ does not tend to $0$, so divergent.
5 Geometric series, first term $20$, ratio $-0.9$: $\sum d_n=\dfrac{20}{1-(-0.9)}=\dfrac{20}{1.9}\approx10.53$ cm. After $N$ half-swings the error is at most $b_{N+1}=20(0.9)^N$. Need $20(0.9)^N\lt0.5$, i.e. $(0.9)^N\lt0.025$, i.e. $N\gt\dfrac{\ln0.025}{\ln0.9}\approx35.01$. So 36 half-swings.
๐Ÿ”ฌ Researchโ€“Teaching NexusResearch-tutored ยท optional, about 30 minutes

Research question. Can we squeeze far more accuracy out of a slowly converging alternating series than the bound $b_{N+1}$ suggests?

Why it matters. The series $1-\tfrac13+\tfrac15-\cdots=\tfrac\pi4$ was found by the Kerala mathematician Madhava around 1400 and rediscovered in Europe centuries later. It converges painfully slowly, yet Madhava computed $\pi$ to 11 decimal places โ€” by adding clever correction terms. Today, numerical analysts use "series acceleration" to speed up slowly converging sums in physics simulations, finance and signal processing.

What to do.

  1. In a spreadsheet, list $n=0,1,\dots,60$, the terms $\frac{(-1)^n}{2n+1}$, and the partial sums $S_N$ (sum of the first $N$ terms). Plot $4S_N-\pi$ against $N$.
  2. Confirm that $|\tfrac\pi4-S_N|\le\tfrac1{2N+1}$ for every $N$, and that $\tfrac\pi4$ always lies between $S_N$ and $S_{N+1}$.
  3. Because the sum lies between consecutive partial sums, try their average $A_N=\tfrac12(S_N+S_{N+1})$. Compare the errors $|4A_N-\pi|$ and $|4S_N-\pi|$ at $N=50$.
  4. Average again: $B_N=\tfrac12(A_N+A_{N+1})$, then a third time. How many correct decimal places do you gain each time?
  5. Explain, using the zig-zag picture of Interactive 1, why averaging helps.

Tools: Spreadsheet or Python; Interactive 1 above.

Hand in: A one-page note with a table of errors for $S_{50}$, $A_{50}$, $B_{50}$ and the third average, a log-scale plot, and a two-sentence explanation.

Going further. Try the same averaging on the alternating harmonic series ($\ln2$) and on $\sum\frac{(-1)^{n+1}}{\sqrt n}$. Does it work equally well? Look up the "Euler transform" of a series.

Instructor note: with $S_N$ = sum of the first $N$ terms, $|4S_{50}-\pi|\approx0.020$, $|4A_{50}-\pi|\approx2.0\times10^{-4}$, $|4B_{50}-\pi|\approx3.8\times10^{-6}$ and the third average gives about $1.1\times10^{-7}$ โ€” roughly two extra decimal places per averaging, at almost no cost.

๐Ÿงช Self-check quiz

0/5 correct

Q1. Which of these is not a hypothesis of the alternating series test for $\sum(-1)^{n+1}b_n$?

Q2. We approximate $\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^2}$ by the sum of its first $9$ terms. The error is at most

Q3. The series $\sum_{n=1}^{\infty}\frac{(-1)^n}{\sqrt n}$ is

Q4. $1-\tfrac12+\tfrac13-\tfrac14+\cdots=$

Q5. By Riemann's theorem, the terms of a conditionally convergent series can be rearranged to give