---
title: Absolute and conditional convergence
heading: Series whose sum depends on the order you add them
eyebrow: A6 · Lesson 29 · Absolute and conditional convergence
xp: 50
---

::: hook
Addition doesn't care about order, or so it seems. Yet the alternating harmonic series $1 - \frac12 + \frac13 - \frac14 + \cdots$ sums to $\ln 2 = 0.693$, and the same terms rearranged, two positive ones then a negative one, sum to $\frac32\ln 2 = 1.040$. The difference comes down to whether a series still converges when every term is made positive. That distinction decides when a series can be trusted to behave like ordinary arithmetic.
:::

::: play
- The stems are the running sums of the alternating harmonic series in its usual order: they swing above and below $\ln 2$, by about $\frac{1}{2n}$.
- The same terms taken two positive, one negative settle at the upper dashed line, $\frac32\ln 2$.
- The readouts give both limits. The terms are identical; only the order changed.
:::

```sim plot
view: graph
x: n = 1..60
y: S = 0.4..1.2
plot: ln(2) + (-1)^(n + 1)/(2*n) | stems | label: running sums, close to ln 2 ± 1/2n
plot: ln(2) + 0*n | dashed | label: ln 2, the usual sum
plot: 1.5*ln(2) + 0*n | dashed | color: ch3 | label: the rearranged sum
readout: usual order sums to = ln(2) | digits: 4
readout: rearranged sums to = 1.5*ln(2) | digits: 4
```

::: predict
## Does $\sum\frac{(-1)^{n+1}}{n^2}$ give the same sum in every order?

- [x] Yes: the series of absolute values, $\sum\frac{1}{n^2}$, converges
- [ ] No: no alternating series can be rearranged safely
- [ ] Only if you keep the signs alternating
- [ ] It doesn't converge at all

::: reveal
Yes. Since $\sum\frac{1}{n^2}$ converges, the series converges absolutely, and an absolutely convergent series sums to the same value in every order: $\frac{\pi^2}{12}$. The alternating harmonic series is different because $\sum\frac1n$ diverges: it converges only conditionally, thanks to cancellation, and rearranging can change or destroy that cancellation.
:::
:::

::: nameit
## Two kinds of convergence

- $\sum a_n$ converges **absolutely** if $\sum|a_n|$ converges. Absolute convergence implies convergence.
- It converges **conditionally** if $\sum a_n$ converges but $\sum|a_n|$ diverges.

The ratio and root tests test absolute convergence: when they say "converges", it's absolutely.

## Why it matters

- **Rearrangement:** an absolutely convergent series has the same sum in any order. A conditionally convergent one can be rearranged to sum to any value you like, or to diverge (Riemann's rearrangement theorem). The positive terms alone and the negative terms alone each diverge, so you can spend them in any proportion.
- **Products and grouping:** absolutely convergent series can be multiplied term by term and regrouped freely, as polynomials can. Power series inside their radius converge absolutely, which is why they behave so well.
- **Rounding in code:** summing a conditionally convergent series on a computer, where large positive and negative partial sums cancel, loses accuracy.

## Testing

1. Test $\sum|a_n|$ with comparison, ratio or integral tests. If it converges, done: absolute convergence.
2. If it diverges, the alternating series test may still show conditional convergence.
3. If $a_n \not\to 0$, it diverges.

A useful example: $\sum\frac{\sin n}{n^2}$ converges absolutely, since $\frac{|\sin n|}{n^2} \le \frac{1}{n^2}$, even though its signs follow no simple pattern.
:::

::: example
## Classify $\sum\frac{(-1)^{n+1}}{n}$ and $\sum\frac{(-1)^{n+1}}{n^2}$.

::: solution
1. **The alternating harmonic series.** $\sum\frac1n$ diverges, but the alternating series test applies to $\sum\frac{(-1)^{n+1}}{n}$ (terms shrink to 0): it converges conditionally, to $\ln 2 = 0.6931$.
2. **The alternating $1/n^2$ series.** $\sum\frac{1}{n^2}$ converges, so $\sum\frac{(-1)^{n+1}}{n^2}$ converges absolutely, to $\frac{\pi^2}{12} = 0.8225$, in any order.

**Answer:** $\sum\frac{(-1)^{n+1}}{n}$ converges conditionally, to $\ln 2$, and $\sum\frac{(-1)^{n+1}}{n^2}$ converges absolutely, to $\frac{\pi^2}{12}$.
:::
:::

::: example
## Rearrange $1 - \frac12 + \frac13 - \frac14 + \cdots$ as two positive terms then one negative. What does it sum to?

::: solution
1. **Rearrange.** Take two positive terms, then one negative:
   $$1 + \frac13 - \frac12 + \frac15 + \frac17 - \frac14 + \cdots$$
2. **Add it up.** Adding up 600 000 terms this way gives 1.0397, and the limit is
   $$\frac32\ln 2 = 1.0397$$
3. **Interpret.** Taking positive terms faster than negative ones pushes the sum up; a different ratio gives a different sum.

**Answer:** it sums to $\frac32\ln 2 = 1.0397$.
:::
:::

::: example
## Does $\sum\frac{(-1)^n}{\sqrt n}$ converge? Absolutely?

::: solution
1. **Alternating series test.** The terms shrink to 0, so by the alternating series test it converges.
2. **Absolute values.** $\sum\frac{1}{\sqrt n}$ is a p-series with $p = \frac12 \le 1$, which diverges, so the convergence is only conditional.

**Answer:** it converges, but not absolutely: the convergence is conditional.
:::
:::

::: check
kind: choice

## How does $\sum\frac{(-1)^n}{n^{1.5}}$ converge?

- [x] Absolutely
- [ ] Conditionally
- [ ] It diverges
- [ ] It depends on the order

::: misses
- [2] $\sum\frac{1}{n^{1.5}}$ converges ($p > 1$), so it's absolute.
- [3] It converges: check the series of absolute values.
- [4] Absolutely convergent series sum the same in every order.
:::
:::

::: check
kind: choice

## How does $\sum\frac{(-1)^n}{\ln n}$ (from $n = 2$) converge?

- [ ] Absolutely
- [x] Conditionally
- [ ] It diverges
- [ ] It sums to $\ln 2$

::: misses
- [1] $\frac{1}{\ln n} > \frac1n$, and $\sum\frac1n$ diverges, so the absolute values diverge.
- [3] The terms shrink to zero and alternate: the alternating series test applies.
- [4] That's the alternating harmonic series, a different one.
:::
:::

::: check
given: p = 0.5 | 1 | 2 | 3
answer: 2 - step(p - 1.5)
tolerance: 0

## Does $\sum\frac{(-1)^n}{n^{\given{p}}}$ converge absolutely? Answer 1 for yes, 2 for no.

::: right
Right. It's absolute exactly when $p > 1$.
:::

::: misses
- [any] Not yet. Check $\sum\frac{1}{n^p}$.
:::
:::

::: check
given: a = 2 | 3 | 4
answer: ln(2) + 0.5*ln(a)
tolerance: 0.5%

## The alternating harmonic series is rearranged to take {a} positive terms for each negative one. Its sum is $\ln 2 + \tfrac12\ln(\text{that ratio})$. What does it sum to?

::: right
Right. $\ln 2 + \tfrac12\ln \given{a}$ = {answer}.
:::

::: misses
- [ln(2)] That's the usual order, one positive per negative.
- [any] Not yet. Use $\ln 2 + \tfrac12\ln a$.
:::
:::

::: check
kind: parts
given: N = 5 | 10 | 20 | 50 | 100 | 1000

## Compare two series after {N} terms.

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

### For $\sum\frac{(-1)^{n+1}}{n}$, the alternating series bound on the error is the next term. What is it?

::: misses
- [any] The first term left out.
:::
:::

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

### For $\sum\frac{(-1)^{n+1}}{n^2}$, what is the bound?

::: misses
- [any] The first term left out.
:::
:::
:::

::: check
kind: derivation
vars: n = 1..100

## Show that $\sum\frac{\cos n}{n^2}$ converges absolutely.

::: step
answer: 1/n^2

### $|\cos n| \le 1$. What simpler term bounds $\left|\frac{\cos n}{n^2}\right|$?
:::

::: step
answer: pi^2/6

### $\sum\frac{1}{n^2}$ converges. To what? (Then compare.)
:::

::: right
Right. The absolute values are below a convergent series, so the series converges absolutely, whatever its signs do.
:::
:::

::: explain
## How can rearranging the terms of a convergent series change its sum, when addition is commutative?

::: model
Commutativity is a statement about finitely many terms; an infinite series is a limit of partial sums, and rearranging changes which partial sums you see. For the alternating harmonic series, the positive terms alone add up to infinity and so do the negative ones: the finite sum comes only from their careful interleaving. Rearranging changes the proportion in which positive and negative terms are used up along the way, and since each side has an infinite supply, any proportion can be maintained forever, leading to any target sum. If the series converges absolutely, the positive and negative parts each have a finite total, so every arrangement eventually includes almost all of both, and the sum can't change.
:::
:::

::: practice

::: check
given: N = 5..1000
answer: 1/(N + 1)
tolerance: 0.5%

## Error bound after {N} terms of $\sum\frac{(-1)^{n+1}}{n}$?

::: misses
- [any] The next term.
:::
:::

::: check
given: a = 1..10 int
answer: ln(2) + 0.5*ln(a)
tolerance: 0.5%

## Alternating harmonic rearranged {a} positive to 1 negative: the sum?

::: misses
- [any] $\ln 2 + \tfrac12\ln a$.
:::
:::
:::
