Calculus · Infinite series
The harmonic series \(1 + \frac12 + \frac13 + \cdots\) diverges. But flip every second sign, \(1 - \frac12 + \frac13 - \cdots\), and it converges. Stranger still: reorder its terms and it can converge to any number you like. This post explains what is going on, gives the tests for series with terms of both signs, and shows which algebraic operations are safe with infinite series.
In the first post of this series, all terms were non-negative and the partial sums could only grow. Now the terms may be positive or negative, and the partial sums can go back and forth. The first idea is to strip off the signs and see what happens.
Why absolute convergence implies convergence: use Cauchy's criterion. By the triangle inequality,
\[ |a_{n+1} + \cdots + a_{n+p}| \le |a_{n+1}| + \cdots + |a_{n+p}|. \]If the right side becomes small (because (2) converges), so does the left side, so (1) satisfies Cauchy's criterion. Intuitively, cancellation between positive and negative terms can only help convergence.
The practical value: to test (2) you can use every test from the first post (comparison, ratio, root, Raabe, integral), since \(|a_n| \ge 0\).
The standard example is the alternating harmonic series:
\[ 1 - \frac12 + \frac13 - \frac14 + \cdots = \ln 2. \]It converges (we prove this in Section 3), but its absolute values form the harmonic series, which diverges. It converges only "thanks to" the cancellation between terms.
Why this happens: in a conditionally convergent series, the positive terms alone add up to \(+\infty\) and the negative terms alone to \(-\infty\) (if either part were finite, the series would converge absolutely). Want the sum to be, say, \(10\)? Take positive terms until you pass \(10\), then negative terms until you fall below it, then positive again, and so on. You never run out of terms on either side, and since the terms tend to zero, the overshoots shrink: the partial sums settle at \(10\).
A series whose signs strictly alternate is called alternating. For these there is a beautifully simple test.
Why it works: picture the partial sums on a number line. Starting at \(S_1 = b_1\), each step goes back by \(b_2\), forward by \(b_3\), back by \(b_4\), and so on. Since the steps keep shrinking, each step overshoots less than the one before. The even partial sums \(S_2, S_4, S_6, \dots\) climb upward, the odd ones \(S_1, S_3, S_5, \dots\) come down, and they are always trapped between each other:
\[ S_2 \le S_4 \le S_6 \le \cdots \le S \le \cdots \le S_5 \le S_3 \le S_1. \]Since the gap \( S_{2k+1} - S_{2k} = b_{2k+1} \) tends to zero, both sequences converge to the same limit \(S\).
The formula for \(R_n\) says two practical things:
This makes alternating series ideal for numerical computation: you know in advance how many terms you need.
How good is \(S_{100}\) as an approximation of \(\ln 2\)? The error is at most \(b_{101} = \frac{1}{101} < 0.01\). Only about two correct decimals after 100 terms: conditionally convergent series often converge slowly.
We need \( b_{n+1} = \frac{1}{(n+1)^3} < 0.001 \), i.e. \( (n+1)^3 > 1000 \), so \( n + 1 \ge 11 \). Taking \(n = 10\) terms is enough, since \( b_{11} = \frac{1}{1331} < 0.001 \).
\(b_n \to 0\): without it, the series diverges by the n-th term test. Example: \( \sum (-1)^{n-1}\frac{n}{n+1} \).
Monotonicity: take \( b_{2k-1} = \frac1k \), \( b_{2k} = \frac{1}{k^2} \). Then \(b_n \to 0\), but the terms do not decrease, and
\[ 1 - 1 + \frac12 - \frac14 + \frac13 - \frac19 + \cdots = \sum_{k=1}^\infty\Big(\frac1k - \frac1{k^2}\Big) = \infty. \]The positive terms are much bigger than the negative ones, and cancellation fails.
Leibniz's test handles strict alternation \(+, -, +, -\). Many series have irregular sign patterns, like \( \sum\frac{\sin n}{n} \), where \(|\sin n|/n\) doesn't even give an absolutely convergent series. The two tests below handle series of the form \( \sum a_nb_n \), where one factor oscillates and the other is "tame".
How to tell them apart: the two tests trade conditions. Dirichlet asks less of \(\sum a_n\) (bounded partial sums, not necessarily convergent) but more of \(b_n\) (must go to zero). Abel asks more of \(\sum a_n\) (convergence) but less of \(b_n\) (only monotone and bounded).
The idea behind both is summation by parts, the discrete version of integration by parts:
\[ \sum_{k=1}^{n} a_kb_k = A_nb_n + \sum_{k=1}^{n-1} A_k\,(b_k - b_{k+1}). \]If \(A_k\) is bounded and \(b_k\) decreases monotonically to zero, the first term tends to zero and the sum on the right converges absolutely, because \( \sum (b_k - b_{k+1}) \) telescopes.
Leibniz's test is a special case of Dirichlet's: take \( a_n = (-1)^{n-1} \), whose partial sums are \(1, 0, 1, 0, \dots\) (bounded), and \(b_n\) decreasing to zero.
This always works, for any convergent series: it follows directly from adding the partial sums and passing to the limit. Similarly, \( \sum c\,a_n = c\sum a_n \) for any constant \(c\).
How should we multiply two infinite series? Expanding \((a_1 + a_2 + \cdots)(b_1 + b_2 + \cdots)\) gives all products \(a_ib_k\), and these must be arranged into one series. The standard choice collects the products along "diagonals":
Why "diagonals"? Write the products \(a_ib_k\) in a table. The term \(c_n\) collects all products with \(i + k = n + 1\), one antidiagonal of the table. It's exactly how you collect equal powers when multiplying polynomials (or power series).
| Type | \(\sum a_n\) | \(\sum |a_n|\) | Rearrangement | Example |
|---|---|---|---|---|
| Absolute convergence | converges | converges | sum unchanged | \( \sum\frac{(-1)^{n-1}}{n^2} \) |
| Conditional convergence | converges | diverges | any sum possible | \( \sum\frac{(-1)^{n-1}}{n} \) |
| Divergence | diverges | diverges | — | \( \sum(-1)^{n-1} \) |
Try each one before opening the solution. More solved problems from this topic are in Series.
\( |a_n| = \frac{n}{n^2+1} \sim \frac1n \): the absolute series diverges (limit comparison). But \( f(x) = \frac{x}{x^2+1} \) decreases for \(x \ge 1\) and tends to \(0\), so Leibniz gives convergence. Conditionally convergent.
\( \left|\frac{\cos n}{n^2}\right| \le \frac1{n^2} \). Absolutely convergent.
\( |a_n| \to \frac12 \ne 0 \). Divergent by the n-th term test.
The absolute series \( \sum\frac{1}{n\ln n} \) diverges (integral test, see the first post). But \( \frac{1}{n\ln n} \) decreases to zero, so Leibniz gives convergence. Conditionally convergent.
We need \( \frac{1}{(n+1)^2} < 0.01 \), i.e. \( n + 1 > 10 \), so \(n + 1 \ge 11\) and \( n = 10 \) terms suffice (\( b_{11} = \frac1{121} < 0.01 \)).
Abel's test: \( \sum\frac{(-1)^{n-1}}{n} \) converges, and \( \operatorname{arctg}n \) is increasing and bounded by \(\frac\pi2\).
For \(x \ne 2k\pi\), the partial sums of \(\cos nx\) are bounded (by \( \frac{1}{|\sin(x/2)|} \)), and \( \frac1{\sqrt n} \) decreases to zero: converges by Dirichlet. For \(x = 2k\pi\), the series is \( \sum\frac1{\sqrt n} \), which diverges. So it converges exactly for \( x \ne 2k\pi \).
Series with mixed signs live in two very different worlds. Absolutely convergent series behave like finite sums: you can reorder, regroup and multiply them freely. Conditionally convergent series converge only through a delicate balance of cancellations, and that balance is destroyed by rearranging. Knowing which world you are in is the first question to ask about any series with negative terms.
Next in the series: iterated and double series, then series of functions and uniform convergence, and power series.