The Alternating Series Test

Shrinking terms with flipping signs settle.

Over, then under

In the alternating harmonic series 1 − 1/2 + 1/3 − 1/4 + 1/5 − …, 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.

0.40.50.60.70.80.911.1

The partial sums 1, 0.5, 0.833, 0.583, 0.783: each hop is a term, −1/2, +1/3, −1/4, +1/5, and each crosses the gold mark at 0.693.

The three conditions

Write the series as b₁ − b₂ + b₃ − b₄ + …, with every bₙ positive. The alternating series test says it converges if three things hold: the signs alternate; the sizes decrease, b₁ ≥ b₂ ≥ b₃ ≥ …; and the sizes tend to 0.

For 1 − 1/2 + 1/3 − …, the sizes are 1/n: they fall, since 1/(n + 1) < 1/n, and they tend to 0. The series converges.

All three are needed. In 1/2 − 2/3 + 3/4 − 4/5 + …, the sizes n/(n + 1) 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 S₁, S₃, S₅, …. From S₁ to S₃ the series subtracts b₂ and adds b₃, and since b₃ ≤ b₂ the total goes down, or stays put. So the odd sums never rise: 1, 0.833, 0.783, …. In the same way, from S₂ to S₄ the series adds b₃ and subtracts b₄, so the even sums never fall: 0.5, 0.583, 0.617, ….

Every even sum is below every odd sum, and the gap between Sₙ and Sₙ₊₁ is bₙ₊₁, 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 S₁ to S₁₀ of 1 − 1/2 + 1/3 − …, 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 Sₙ and Sₙ₊₁, and those two are bₙ₊₁ apart, stopping after n terms leaves an error of at most bₙ₊₁: |S − Sₙ| ≤ bₙ₊₁, the size of the first term left out.

After four terms, S₄ = 1 − 1/2 + 1/3 − 1/4 = 7/12, about 0.583, and the first term left out is 1/5. So the sum is within 0.2 of 0.583, and it lies between S₄ ≈ 0.583 and S₅ ≈ 0.783. 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: 1/(n + 1) ≤ 0.01, so n + 1 ≥ 100, and 99 terms are enough.

A series whose sizes fall faster closes in faster. In 1 − 1/4 + 1/9 − 1/16 + 1/25 − …, the sizes are 1/n². After five terms the partial sum is about 0.8386, and the bound is 1/36, about 0.0278. The sum is π²/12, about 0.8225, so the actual error is about 0.0161.

When the sizes do not fall

Take 2 − 1 + 1 − 1/2 + 2/3 − 1/3 + 2/4 − 1/4 + …, made of pairs 2/k − 1/k for k = 1, 2, 3, …. The signs alternate and the sizes tend to 0, but they do not fall steadily: after 1/3 comes 2/4, which is larger.

Each pair adds to 1/k, so after 2n terms the partial sum is 1 + 1/2 + … + 1/n, 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 1 − 1/2 + 1/3 − … 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 1 − 1/4 + 1/9 − … and what is left is Σ 1/n², 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 1/5, the first term left out, not 1/4.

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: 1/5 after four terms, 1/100 after 99.

Calling 1 − 1/2 + 1/3 − … absolutely convergent. Without its signs it is the harmonic series.

A robot arm's corrections

In the application below, a robot arm moves 12/n 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. 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.

    678910111212345812steps takenposition, mmsigns alternate, sizes shrink to 0
    678910111212345812steps takenposition, mmsigns alternate, sizes shrink to 0
    The moves alternate in direction and shrink to 0, so the arm settles.
  2. 2.Add the first four moves: 12 − 6 + 4 − 3 = 7 mm. After four steps the arm stands 7 mm from where it started.

    678910111212345812steps takenposition, mm7signs alternate, sizes shrink to 012 − 6 + 4 − 3 = 7 mm
    678910111212345812steps takenposition, mm7signs alternate, sizes shrink to 012 − 6 + 4 − 3 = 7 mm
    Four moves: 12 − 6 + 4 − 3 = 7 mm.
  3. 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.

    678910111212345812steps takenposition, mm79.4signs alternate, sizes shrink to 012 − 6 + 4 − 3 = 7 mmthe next move is 12/5 = 2.4 mm
    678910111212345812steps takenposition, mm79.4signs alternate, sizes shrink to 012 − 6 + 4 − 3 = 7 mmthe next move is 12/5 = 2.4 mm
    The error is at most the first move left out, 125 = 2.4 mm.
  4. 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.

    678910111212345812steps takenposition, mm8.3279.42.4 mmsigns alternate, sizes shrink to 012 − 6 + 4 − 3 = 7 mmthe next move is 12/5 = 2.4 mmit settles at 8.32 mm, between 7 and 9.4
    678910111212345812steps takenposition, mm8.3279.42.4 mmsigns alternate, sizes shrink to 012 − 6 + 4 − 3 = 7 mmthe next move is 12/5 = 2.4 mmit settles at 8.32 mm, between 7 and 9.4
    (a) The arm is at 7 mm and settles between 7 mm and 9.4 mm, at 12 ln 2 = 8.32 mm.
  5. 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.

    678910111212345812steps takenposition, mm8.3279.42.4 mmsigns alternate, sizes shrink to 012 − 6 + 4 − 3 = 7 mmthe next move is 12/5 = 2.4 mmit settles at 8.32 mm, between 7 and 9.412/(n + 1) = 0.05 needs n = 239
    678910111212345812steps takenposition, mm8.3279.42.4 mmsigns alternate, sizes shrink to 012 − 6 + 4 − 3 = 7 mmthe next move is 12/5 = 2.4 mmit settles at 8.32 mm, between 7 and 9.412/(n + 1) = 0.05 needs n = 239
    (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.

More series and convergence problems, worked step by step →

Practice The Alternating Series Test in the app