Alternating series
A series is alternating if each term has the sign opposite to that of the term before it. The size of a term is its absolute value, which some books call its magnitude. If the first term is positive, the \(n\)th term is \((-1)^{n+1}\) times its size \(\cy{b_n}\):
The sign factor \((-1)^{n+1}\) is 1 for odd \(n\) and \(-1\) for even \(n\). A series that starts with a negative term has the sign factor \((-1)^n\) instead. This topic finds conditions on the sizes that make an alternating series converge, and it shows what those conditions prove.
The zigzag of partial sums
Two graphs for n from 1 to 20. The upper graph has teal dots for the partial sums of the alternating harmonic series, 1, 0.5, 0.83, 0.58 and so on, joined by steps that go up in green and down in red, and the dots approach a dashed line near 0.69. A faint horizontal strip runs between the dots at n − 1 and n, and every later dot lies inside it. The lower graph has orange bars for the sizes 1, 1/2, 1/3 and so on. A toggle changes the sizes to n + 1 over 2n, which decrease toward 1/2. The dots then alternate near two heights half a unit apart, and the dashed line disappears.
Figure 1 shows the alternating harmonic series \(1-\frac12+\frac13-\frac14+\cdots\), whose sizes are \(b_n=\frac1n\). In the upper graph, the teal dots are its partial sums \(\cb{S_n}\), the sums of its first \(n\) terms. The step from \(S_{n-1}\) to \(S_n\) has length \(b_n\), read from the orange bar at \(n\) in the lower graph. It goes up, in green, when \(n\) is odd, and down, in red, when \(n\) is even.
Each step reverses the direction of the step before it. Suppose that \(b_{n+1}\le b_n\) for every \(n\), so that no step is longer than the step before it. Each new partial sum then lies between the two before it. In Figure 1, the faint strip runs between \(S_{n-1}\) and \(S_n\), so it is \(b_n\) wide. Each later dot lies between two earlier dots inside the strip, so it lies inside the strip too. Move \(n\) to the right. Each new strip lies inside the one before.
The even partial sums, reached by steps down, are the lower ends of the strips. From \(S_{2k}\) to \(S_{2k+2}\), the sum goes up by \(b_{2k+1}\) and then down by \(b_{2k+2}\), so the even partial sums never decrease:
Each of them lies inside the first strip, from \(S_2\) to \(S_1\), so it is at most \(S_1=b_1\). A sequence that never decreases and never rises above a fixed number approaches a limit, by the Monotonic Sequence Theorem, which topic 10.4 also uses. The even partial sums therefore approach a number \(S\). Each odd partial sum is \(S_{2k+1}=S_{2k}+b_{2k+1}\), so if \(b_n\) approaches 0, the odd partial sums approach \(S\) too. Then, for every \(w>0\), the even and the odd partial sums both lie within \(w\) of \(S\) from some index on. The series therefore converges to \(S\), the height of the dashed line.
An alternating series whose sizes decrease and approach 0 therefore converges. This result is the alternating series test, which some books call the Leibniz test. The decrease makes the even partial sums rise to a limit, and \(b_n\to0\) makes the odd ones approach it too.
Use the toggle under Figure 1 to keep the sizes above \(\frac12\). They become \(\frac{n+1}{2n}\), which still decrease, so each strip still lies inside the one before. No strip is narrower than \(\frac12\), and the dots alternate near two heights \(\frac12\) apart. The terms do not approach 0, so the series diverges by the nth-term test (topic 10.3), and the dashed line disappears.
If the first term is negative, each partial sum of \(\sum(-1)^nb_n\) is the negative of the matching one of \(\sum(-1)^{n+1}b_n\). The same conditions therefore apply. The sizes need to decrease only from some index \(N\) on. From \(n=N\) on, each partial sum is \(S_{N-1}\) plus a partial sum of the series from term \(N\). That series meets both conditions, so the whole series converges too.
Checking the conditions
First write each term as a sign factor times a size \(b_n\), which must be positive for every \(n\). Other factors can carry the sign. For example, \(\cos(n\pi)\) is \(-1\) for odd \(n\) and 1 for even \(n\), so \(\cos(n\pi)=(-1)^n\). Two sign factors can also cancel, as in \((-1)^n\cos(n\pi)=1\). Check that the sign of the whole term changes at every step.
Next find \(\lim_{n\to\infty}b_n\). For a fraction of powers of \(n\), divide top and bottom by the highest power in the bottom. If the sizes do not approach 0, the series diverges by the nth-term test, and the decrease does not matter.
The sizes decrease eventually if, for some index \(N\), \(b_{n+1}\le b_n\) for every \(n\ge N\). Three methods show it, and the first two use \(b_{n+1}\), which is \(b_n\) with every \(n\) replaced by \(n+1\). Compare \(b_{n+1}\) with \(b_n\) directly: a positive fraction becomes smaller when its bottom grows and its top does not. Because the sizes are positive, you can also show that \(\frac{b_{n+1}}{b_n}\le1\), which suits sizes with powers such as \(2^n\). The third method uses a function \(f\), differentiable for \(x\ge N\), with \(f(n)=b_n\). If \(f'(x)<0\) for every \(x>N\), then \(f\) decreases on \([N,\infty)\) by the Increasing/Decreasing Test (topic 5.3), so \(b_{n+1}<b_n\) for every \(n\ge N\).
What the test proves
The alternating series test has one conclusion: the series converges. It does not give the sum \(S\). It also gives no conclusion about the series of sizes \(\sum b_n\). The alternating harmonic series converges, for example, but the harmonic series \(\sum\frac1n\) diverges (topic 10.5).
If a condition fails, the test gives no conclusion. When the sizes do not approach 0, the nth-term test shows divergence. When they approach 0 but do not decrease eventually, the series can converge or diverge, so another argument is needed.
Two graphs for n from 1 to 20. The upper graph has teal dots for the partial sums of 2 − 1 + 2/2 − 1/2 + 2/3 − 1/3 and so on, which are 2, 1, 2, 1.5, 2.17, 1.83 and so on, joined by steps that go up in green and down in red. The dots climb to about 3 at n = 20. The lower graph has orange bars for the sizes 2, 1, 1, 1/2, 2/3, 1/3 and so on, and from n = 5 on, every bar at an odd n has a red outline, because it is taller than the bar before it.
Figure 2 shows \(2-1+\frac22-\frac12+\frac23-\frac13+\cdots\). Its sizes approach 0. Every size \(b_n\) with odd \(n\ge5\), outlined in red, is larger than the size before it, so no index \(N\) works. At each of these steps, the new partial sum lies above both partial sums before it. Each pair of terms \(\frac2k-\frac1k\) adds \(\frac1k\), so the even partial sums are \(1\), \(1+\frac12\), \(1+\frac12+\frac13\), and so on. These are the partial sums of the harmonic series, which grow without bound, so the series diverges. Example 4 below has sizes that fail in the same way, but its series converges. The test never shows that a series diverges.
Example 1
Identify the alternating signs and magnitudes
Determine whether each series is alternating. If it is, write its \(n\)th term as a sign factor times a positive size \(b_n\). (a) \(\displaystyle\sum_{n=1}^{\infty}\frac{\cos(n\pi)}{2n+1}\) (b) \(\displaystyle\sum_{n=1}^{\infty}\frac{\sin n}{n^2}\)
Solution
(a) The angle \(n\pi\) is an odd multiple of \(\pi\) for odd \(n\) and an even multiple for even \(n\). Its cosine is therefore \(-1\) and 1 in turn, so \(\cos(n\pi)=(-1)^n\), and the \(n\)th term is
The size \(b_n=\frac{1}{2n+1}\) is positive for every \(n\ge1\). The series is alternating, and its first term, \(-\frac13\), is negative.
(b) The numbers 1, 2 and 3 lie between 0 and \(\pi\), so \(\sin 1\), \(\sin 2\) and \(\sin 3\) are positive. The first three terms have the same sign, so the series is not alternating, and the alternating series test does not apply.
Example 2
Check that magnitudes approach zero
Determine whether \(\displaystyle\sum_{n=1}^{\infty}(-1)^{n+1}\frac{3n+4}{2n+1}\) converges or diverges.
Solution
The sizes are \(b_n=\frac{3n+4}{2n+1}\), which are positive. Find their limit first, by dividing the top and the bottom by \(n\):
The limit is not 0. The terms with odd \(n\) approach \(\frac32\), and those with even \(n\) approach \(-\frac32\), so the terms do not approach 0. The alternating series test therefore gives no conclusion, but the nth-term test does: the series diverges.
Example 3
Check eventual decrease
Determine whether \(\displaystyle\sum_{n=1}^{\infty}(-1)^{n}\frac{\sqrt n}{n+4}\) converges or diverges.
Solution
The sizes \(b_n=\frac{\sqrt n}{n+4}\) are positive. Dividing the top and the bottom by \(n\) gives \(\frac{1/\sqrt n}{1+4/n}\), whose top approaches 0 and whose bottom approaches 1, so \(b_n\to0\). For the decrease, use \(f(x)=\frac{\sqrt x}{x+4}\), which is differentiable for \(x>0\) and has \(f(n)=b_n\). By the quotient rule,
For \(x>4\), the top is negative and the bottom is positive, so \(f'(x)<0\). The function \(f\) therefore decreases on \([4,\infty)\), and \(b_{n+1}<b_n\) for every \(n\ge4\). Both conditions hold, so the series converges by the alternating series test.
Example 4
State only the supported conclusion
Determine whether \(\displaystyle\sum_{n=1}^{\infty}(-1)^{n+1}\frac{2+(-1)^n}{2^n}\) converges or diverges.
Solution
The terms alternate in sign, and their sizes \(b_n=\frac{2+(-1)^n}{2^n}\) are \(\frac{1}{2^n}\) for odd \(n\) and \(\frac{3}{2^n}\) for even \(n\). The sizes approach 0, but each even size is larger than the size before it, because \(\frac{3}{2^n}>\frac{2}{2^n}=\frac{1}{2^{n-1}}\). No index \(N\) works, so the alternating series test gives no conclusion. Split each term instead, with \((-1)^{n+1}(-1)^n=-1\):
The first parts, \(1-\frac12+\frac14-\cdots\), form a geometric series with ratio \(-\frac12\). The second parts, \(\frac12+\frac14+\frac18+\cdots\), form one with ratio \(\frac12\). Both ratios have size less than 1, so both series converge:
Each partial sum of the series is the difference of the matching partial sums of the two geometric series. The series therefore converges, and its sum is \(-\frac13\).
Each example is one of the four skills of topic 10.7 in Which & Why: AP Calculus.