Over, then under
In the alternating harmonic series , the terms are the harmonic series's terms with every second one subtracted.
Its partial sums are 1, then 0.5, then about 0.833, 0.583, 0.783, 0.617. Each added term carries the total up past where it is heading, and each subtracted term brings it back down below, by a little less each time. The totals close in on one number from both sides. That number is ln 2, about 0.693.
The partial sums 1, 0.5, 0.833, 0.583, 0.783: each hop is a term, , , , , and each crosses the gold mark at 0.693.
The three conditions
Write the series as , with every positive. The alternating series test says it converges if three things hold: the signs alternate; the sizes decrease, ; and the sizes tend to 0.
For , the sizes are : they fall, since , and they tend to 0. The series converges.
All three are needed. In , the sizes tend to 1, not 0, and by the nth term test the series diverges. And sizes that tend to 0 without falling steadily can fail as well, as in a series further down.
Why the limit is trapped
Look at the odd partial sums , , , …. From to the series subtracts and adds , and since the total goes down, or stays put. So the odd sums never rise: 1, 0.833, 0.783, …. In the same way, from to the series adds and subtracts , so the even sums never fall: 0.5, 0.583, 0.617, ….
Every even sum is below every odd sum, and the gap between and is , which tends to 0. The falling odd sums and the rising even sums close in on the same number, S, and it lies between any two consecutive partial sums.
The partial sums to of , with the vertical scale stretched. The odd ones fall from 1 to about 0.746; the even ones rise from 0.5 to about 0.646; the gold line at ln 2, about 0.693, runs between them.
The error from stopping early
Since S lies between and , and those two are apart, stopping after n terms leaves an error of at most : , the size of the first term left out.
After four terms, , about 0.583, and the first term left out is . So the sum is within 0.2 of 0.583, and it lies between and . The actual error is 0.693 − 0.583, about 0.110, inside the bound.
To be sure of an error of at most 0.01, the first term left out must be at most 0.01: , so , and 99 terms are enough.
A series whose sizes fall faster closes in faster. In , the sizes are . After five terms the partial sum is about 0.8386, and the bound is , about 0.0278. The sum is , about 0.8225, so the actual error is about 0.0161.
When the sizes do not fall
Take , made of pairs for k = 1, 2, 3, …. The signs alternate and the sizes tend to 0, but they do not fall steadily: after comes , which is larger.
Each pair adds to , so after 2n terms the partial sum is , a partial sum of the harmonic series. The series diverges. The decreasing condition is not a technicality.
Absolute and conditional convergence
Drop the signs of and what is left is the harmonic series, which diverges. The series converges only because of its signs: it is conditionally convergent.
Drop the signs of and what is left is , which converges. A series that still converges with every term made positive is absolutely convergent; the signs are not needed.
The usual mistakes
Giving the last term used as the error bound. After four terms the bound is , the first term left out, not .
Checking only that the signs alternate and the terms tend to 0. The sizes must also decrease.
Keeping an old bound after adding terms. The bound moves with n: after four terms, after 99.
Calling absolutely convergent. Without its signs it is the harmonic series.
A robot arm's corrections
In the application below, a robot arm moves millimeters on step n, in alternate directions. The test shows the arm settles, and the first move left out bounds how far it still has to go.
Worked example: A Robot Arm's Alternating Corrections: Where It Settles and How Close It Is Already
Question A robot arm corrects its own position. On step n it moves (−1)n+112n millimeters along one axis, so it moves 12 mm one way, then 6 mm back, then 4 mm forward, and so on. (a) Show that the arm settles at a position, and give where it stands after four steps together with a bound on how far it still has to go. (b) How many steps guarantee that the arm is within 0.05 mm of where it settles?
1.Check the alternating series test. The signs alternate; the sizes decrease, because 12n+1 < 12n for every n; and 12n tends to 0. All three conditions hold, so the series converges and the arm settles at a definite position.
The moves alternate in direction and shrink to 0, so the arm settles. 2.Add the first four moves: 12 − 6 + 4 − 3 = 7 mm. After four steps the arm stands 7 mm from where it started.
Four moves: 12 − 6 + 4 − 3 = 7 mm. 3.For an alternating series that passes the test, the error after any number of terms is at most the size of the first term left out. Here that is the fifth move, 125 = 2.4 mm.
The error is at most the first move left out, 125 = 2.4 mm. 4.(a) The arm settles, and after four steps it is at 7 mm with at most 2.4 mm still to go. Consecutive partial sums straddle the settled value: 7 mm is below it and 7 + 2.4 = 9.4 mm is above it, so the arm settles between 7 mm and 9.4 mm. The exact value is 12 ln 2 = 8.32 mm.
(a) The arm is at 7 mm and settles between 7 mm and 9.4 mm, at 12 ln 2 = 8.32 mm. 5.(b) After n steps the bound is 12n+1 mm. Solve 12n+1 ≤ 0.05, which gives n + 1 ≥ 240 and n = 239 steps. Check: 12240 = 0.05 exactly, while 238 steps leave a bound of 12239 ≈ 0.0502 mm, which is more than 0.05.
(b) 12n+1 ≤ 0.05 gives n + 1 ≥ 240, so 239 steps.
Answer: (a) It settles; after four steps it stands at 7 mm, within 2.4 mm of the settled value, which lies between 7 mm and 9.4 mm and equals 12 ln 2 = 8.32 mm; (b) 239 steps
Common mistakes
- Using the alternating series test without checking that the sizes decrease. Alternating signs and terms tending to 0 are not enough between them; all three conditions are needed, and a series whose sizes rise and fall can fail the test even with the signs alternating perfectly.
- Adding more terms to sharpen an estimate but quoting the bound belonging to the old number of terms. The bound is the first term left out, so it changes with every extra term: after four steps it is 125 = 2.4 mm, and after 239 steps it is 12240 = 0.05 mm.