---
title: Absolute and conditional convergence
heading: When the order of the terms changes the sum
eyebrow: A14 · Lesson 7 · Absolute and conditional convergence
xp: 40
---

::: hook
Addition of finitely many numbers doesn't care about order. Infinite sums can. The alternating harmonic series $1 - \frac12 + \frac13 - \cdots$ converges to ln 2, but the same terms taken in a different order converge to ln 3, or to 0, or to anything you like, or diverge. The difference is between **absolute** convergence, where even the sizes of the terms add up to something finite, and **conditional** convergence, where the sum only works because positive and negative terms cancel in a particular order. Absolutely convergent series behave like finite sums; conditionally convergent ones need care, in proofs and in code.
:::

::: play
- Rearrange the alternating harmonic series: take p positive terms ($1 + \frac13 + \cdots$), then q negative ones ($-\frac12 - \frac14 - \cdots$), and repeat. Every term is used exactly once.
- The curve gives the sum as a function of the ratio p/q, and the readout gives it for your choice: $\ln 2 + \frac12\ln\frac pq$.
- With p = q the usual sum, ln 2, comes back. With p/q = 4 the sum is ln 4; with p/q = 1/4 it's 0.
:::
:::

```sim plot
view: graph
x: r = 0.05..20 log
y: S = -1..2.5
slider: p = 1..10 step 1 = 2
slider: q = 1..10 step 1 = 1
plot: ln(2) + 0.5*ln(r) | label: sum of the rearranged series
marker: r = p/q | label: p/q
readout: sum for this p and q = ln(2) + 0.5*ln(p/q)
```

::: predict
## The terms of $\sum_{k\ge 0}\frac{(-1)^k}{2^k}$ are added in some other order. What happens to the sum?

- [x] Nothing: it converges absolutely, so every rearrangement has the same sum, $\frac23$
- [ ] It can be made anything
- [ ] It diverges
- [ ] It doubles

::: reveal
Nothing changes: $\sum\frac{1}{2^k} = 2$ is finite, so the series converges absolutely, and absolutely convergent series can be rearranged freely. The sum stays $\frac{1}{1 + 1/2} = \frac23$.
:::
:::

::: nameit
## Absolute and conditional

$\sum a_k$ **converges absolutely** if $\sum\lvert a_k\rvert$ converges. Absolute convergence implies convergence: by the Cauchy criterion, $\left\lvert\sum_{k=m}^na_k\right\rvert \le \sum_{k=m}^n\lvert a_k\rvert$, which is small for large m.

A series that converges but not absolutely **converges conditionally**, like $\sum\frac{(-1)^{k+1}}{k}$.

## Rearrangements

- **Absolutely convergent:** every rearrangement converges to the same sum.
- **Riemann's rearrangement theorem:** a conditionally convergent series of real numbers can be rearranged to converge to any real number, or to diverge. The positive terms alone and the negative terms alone each diverge, so you can always add positives until you pass a target, then negatives until you fall below it, with overshoots shrinking to zero.

## Products

The **Cauchy product** of $\sum a_k$ and $\sum b_k$ is $\sum c_n$ with $c_n = \sum_{k=0}^na_kb_{n-k}$, the rule for multiplying power series and for convolving sequences. If both converge absolutely, it converges to the product of the sums.

## In practice

Floating-point sums are always finite, but the same caution applies: summing a long alternating series in a different order changes the rounding, and for conditionally convergent sums the reordering itself can change the answer.
:::

::: example
## Find the sum when the alternating harmonic series is rearranged as two positive terms, then one negative.

::: solution
1. **Use the rearrangement formula.** With p = 2 positive terms and q = 1 negative,
   $$\begin{aligned} S &= \ln 2 + \frac12\ln\frac21 \\ &= \ln 2 + \frac12\ln 2 \\ &= \frac32\ln 2 \\ &= 1.0397 \end{aligned}$$
2. **Check numerically.** Summing 300 000 terms in that order gives 1.03972, matching.

**Answer:** the rearranged series sums to $\frac32\ln 2 = 1.0397$.
:::
:::

::: example
## Multiply $\sum x^k$ by itself as a Cauchy product.

::: solution
1. **Coefficients of the product.**
   $$\begin{aligned} c_n &= \sum_{k=0}^n x^kx^{n-k} \\ &= (n + 1)x^n \end{aligned}$$
2. **Sum it.** For $\lvert x\rvert < 1$, where both factors converge absolutely,
   $$\sum(n + 1)x^n = \frac{1}{(1 - x)^2}$$
3. **Check at x = 0.5.**
   $$\frac{1}{(1 - 0.5)^2} = 4$$

**Answer:** $\sum(n + 1)x^n = \frac{1}{(1 - x)^2}$ for $\lvert x\rvert < 1$, which is 4 at x = 0.5.
:::
:::

::: example
## The alternating harmonic series sums to ln 2. How good is its tenth partial sum, and how can it be improved cheaply?

::: solution
1. **The error of $S_{10}$.** With $S_{10} = 0.645635$ and $\ln 2 = 0.693147$, the error is
   $$0.693147 - 0.645635 = 0.0475$$
2. **Compare with the bound.** The alternating-series bound promises only $\frac{1}{11} = 0.091$; the actual error is close to half the next term,
   $$\frac{1}{2 \times 11} = 0.045$$
3. **Average neighbors.** Averaging uses that. With $S_{11} = 0.736544$,
   $$\frac{S_{10} + S_{11}}{2} = 0.691089$$
   with an error of 0.0021, more than 20 times smaller.
4. **Why it works.** Because the series converges only conditionally, its partial sums swing around the limit, and the midpoint of a swing is much closer.

**Answer:** $S_{10}$ is off by 0.0475, and averaging $S_{10}$ with $S_{11}$ gives 0.691089, off by only 0.0021.
:::
:::

::: check
given: p = 1 | 3 | 5; q = 2 | 4
answer: ln(2) + 0.5*ln(p/q)
tolerance: 0.1%

## The alternating harmonic series is rearranged as {p} positive terms, then {q} negative ones, repeated. What's the sum?

::: right
Right. $\ln 2 + \frac12\ln\frac pq$ = {answer}.
:::

::: misses
- [ln(2)] That's the original order; the rearrangement changes it unless p = q.
- [any] Not yet. $\ln 2 + \frac12\ln\frac pq$.
:::
:::

::: check
given: r = 0.5 | 0.25 | 0.8
answer: 1/(1 + r)
tolerance: 0.01%

## What's $\sum_{k\ge 0}(-\given{r})^k$, in any order?

::: right
Right. $\frac{1}{1 + r}$ = {answer}: absolutely convergent, so order doesn't matter.
:::

::: misses
- [1/(1 - r)] That's the sum of the sizes, $\sum r^k$.
- [any] Not yet. Geometric with ratio −r.
:::
:::

::: check
given: x = 0.5 | 0.2 | -0.4
answer: 1/(1 - x)^2
tolerance: 0.01%

## What's $\sum_{n\ge 0}(n + 1)x^n$ at x = {x}, the Cauchy product of $\sum x^k$ with itself?

::: right
Right. $\frac{1}{(1 - x)^2}$ = {answer}.
:::

::: misses
- [1/(1 - x)] That's one factor; the product is its square.
- [any] Not yet. Multiply the two sums.
:::
:::

::: check
given: r = 0.5 | 0.9; N = 10 | 30
answer: r^(N + 1)/(1 - r)
tolerance: 0.5%

## For $\sum(-\given{r})^k$, how large can the error be after the terms through k = {N}, using the absolute tail as a bound?

::: right
Right. $\sum_{k>N}r^k = \frac{r^{N+1}}{1 - r}$ = {answer}.
:::

::: misses
- [r^(N + 1)] That's the alternating-series bound, which is sharper here; the question asks for the absolute tail.
- [any] Not yet. Bound by the tail of $\sum r^k$.
:::
:::

::: check
kind: choice

## Which series converges conditionally?

- [ ] $\sum\frac{(-1)^k}{k^2}$
- [x] $\sum\frac{(-1)^k}{\sqrt k}$
- [ ] $\sum\frac{(-1)^k k}{k + 1}$
- [ ] $\sum\frac{1}{k}$

::: misses
- [1] $\sum\frac{1}{k^2}$ converges, so it converges absolutely.
- [3] Its terms don't tend to 0, so it diverges.
- [4] It diverges.
:::
:::

::: check
kind: order

## Put the steps of the proof that absolute convergence implies convergence in order.

1. Let ε > 0, and suppose $\sum\lvert a_k\rvert$ converges.
2. By the Cauchy criterion, there's an N with $\sum_{k=m}^n\lvert a_k\rvert < \varepsilon$ for all n ≥ m > N.
3. By the triangle inequality, $\left\lvert\sum_{k=m}^na_k\right\rvert \le \sum_{k=m}^n\lvert a_k\rvert < \varepsilon$.
4. So the partial sums of $\sum a_k$ are Cauchy.
5. By completeness they converge.

::: right
Right. The proof never needs to know the sum, only that the tail of the sizes is small.
:::
:::

::: check
kind: parts
given: N = 5 | 10 | 40

## The alternating harmonic series is cut after N = {N} terms.

::: part
answer: 1/(N + 1)
tolerance: 0.5%

### What bound does the alternating-series test give on the error?

::: misses
- [1/N] It's the first omitted term, $\frac{1}{N + 1}$.
- [any] The next term.
:::
:::

::: part
answer: 1/(2*N + 1)
tolerance: 3%

### About how large is the actual error?

::: misses
- [any] About half the next term.
:::
:::
:::

::: check
kind: derivation
vars: x = -0.9..0.9

## Cauchy products of $\sum x^k = \frac{1}{1 - x}$.

::: step
answer: 1/(1 - x)^2

### What is $\sum_{n\ge0}(n + 1)x^n$, the product with itself?
:::

::: step
answer: x/(1 - x)^2

### What is $\sum_{n\ge0}nx^n$?
:::

::: right
Right. Absolutely convergent series can be multiplied term by term, and these are the series for the derivatives of $\frac{1}{1 - x}$.
:::
:::

::: explain
## How can rearranging the terms of a convergent series change its sum?

::: model
For a conditionally convergent series the positive terms alone add up to infinity, and so do the negative terms alone; the series converges only because they cancel in the order given. A rearrangement that uses positive terms more often, say two for every negative one, lets the positive side get ahead by a growing amount before the cancellation catches up, and the partial sums settle at a larger value. Because each side diverges, you can steer the partial sums to any target, overshooting by less each time as the terms shrink. If the sizes add up to something finite, there's no infinite supply on either side to exploit, and every arrangement gives the same sum.
:::
:::

::: practice

::: check
given: p = 4 | 5; q = 1 | 2
answer: ln(2) + 0.5*ln(p/q)
tolerance: 0.1%

## Rearranged sum, {p} positive then {q} negative?

::: misses
- [any] $\ln 2 + \frac12\ln\frac pq$.
:::
:::

::: check
given: r = 0.1 | 0.2 | 0.3 | 0.5 | 0.6 | 0.8
answer: 1/(1 + r)
tolerance: 0.01%

## $\sum(-\given{r})^k$?

::: misses
- [any] $\frac{1}{1 + r}$.
:::
:::

::: check
given: x = 0.1 | 0.2 | 0.3 | 0.5 | 0.7 | 0.9
answer: 1/(1 - x)^2
tolerance: 0.01%

## $\sum(n + 1)x^n$ at {x}?

::: misses
- [any] $\frac{1}{(1 - x)^2}$.
:::
:::
:::
