If a series has only positive terms, the partial sums get larger and larger. If they get large too rapidly, the series will diverge.

However, if some of the terms are negative, the negative terms may cancel with the positive terms and prevent the partial sums from "blowing up".

* Example.* The * harmonic
series*

diverges.

However, the alternating harmonic series

converges.

I computed the , , and partial sums of the harmonic series and the alternating harmonic series. Here's what I got:

Of course, this is just numerical evidence, not a proof. However, you can see that while the partial sums of the harmonic series are getting steadily larger, the partial sums for the alternating harmonic series seem to be converging.

The pictures below show the first 20 and the first 100 partial sums of the alternating harmonic series.

Notice how the partial sums appear to converge by oscillation to a value around 0.69.

A series * alternates* if the signs of the terms
alternate. The * Alternating Series Test*
provides a way of testing an alternating series for convergence.
Suppose is an alternating series (so the 's
are positive). Suppose in addition that:

- The 's decrease.
- .

Then the series converges.

It is usually easy to see by inspection that a series alternates. To check that the 's decrease, look at the corresponding function . Compute the derivative , and use the fact that a function decreases if its derivative is negative.

is the same limit that appears in
the Zero Limit Test. By itself, the condition that is not enough to make a series
converge. (If the limit *isn't* 0, the Zero Limit Test says
the series diverges.) The Alternating Series Rule augments the
computation of this limit with other conditions, and all together
these conditions are enough to ensure convergence.

* Warning!* A common mistake is to try to apply
the conditions of the Alternating Series Rule, and then, upon
discovering that some condition doesn't hold, conclude that the
series diverges. The rule only says that *if* the conditions
are true, *then* the series converges; it does not say what
happens if the conditions *are not* true.

On the other hand, if ,
you *can* conclude that the series diverges, by the Zero Limit
Test.

* Example.* Consider the alternating harmonic
series .

The ensures that the terms alternate.

Let . Then , which is always negative. Since f is always decreasing, the terms of the series decrease in magnitude.

I could also see this by graphing .

Note that in considering whether the terms decrease, I ignore the part --- the .

Finally,

The conditions of the Alternating Series Test hold. Therefore, the series converges.

* Example.* Does converge or diverge?

The series alternates, and

Set . Then

so for . It follows that the terms of the series decrease in absolute value. By the Alternating Series Test, the series converges.

* Example.* Does converge or diverge?

This is an alternating series, though it's disguised by the absence of the usual . But note that

In fact, , so the series can be rewritten as .

The series alternates. If , then

which is always negative. Hence, the terms decrease in magnitude.

Finally,

The conditions of the Alternating Series Test are satisfied. Hence, the series converges.

When a series converges, you can approximate the sum to an arbitrary degree of accuracy by adding up sufficiently many terms. How many terms do you need to add up in order to approximate the sum to within a given tolerance? When the series is an alternating series, there's an easy way to find out.

As the picture shows, the partial sums of an alternating series converge by oscillation to the actual sum. Alternate partial sums are greater than the sum, less than the sum, greater than the sum, and so on.

If is the n-th partial sum (the sum of the terms through
the n-th), the error is smaller than the next "jump". The
*size* of the jump from to is
.

- The n-th partial sum of a convergent alternating series is in error by no more than (the absolute value of) the next term in the series.

- The actual sum of an alternating series lies between any two consecutive partial sums.

* Example.* Approximate .

I showed in the last example that this alternating series converges. Here's the sum of the first 10 terms.

The next term in the series is . Ignoring the sign, this is approximately 0.11715. The estimate 1.15141 is in error by no more than 0.11715, around .

In fact, more is true. The last term
was *subtracted*, so the estimate is too *small*.

The next partial sum

is too *large*.

The actual sum is between 1.15141 and 1.26856.

* Example.* (a) Estimate the error if the first
100 terms of the sum are used to approximate the sum.

The error in using the partial sum is less than the absolute value of the term. Hence, the error is less than

(b) How many terms would be required to estimate the sum to within 0.001?

I want the first n such that . This inequality can be rewritten as

This gives . I should take to be sure that the error is less than 0.001.

Copyright 2005 by Bruce Ikenaga