Jump to content

Alternating series test – "Math for Non-Geeks"

From Wikibooks, open books for an open world
An introductory video to the alternating series test. (German) (YouTube-Video , channel: Quatematik)

The alternating series criterion serves to prove convergence of an alternating series, i.e. a series where the pre-signs alternately change from positive to negative, like ∑k=1∞(−1)k+1bk or ∑k=1∞(−1)kbk (with all bk being positive). Series of this kind can be convergent, but not absolutely convergent. In those cases, criteria for absolute convergence will fail, but the alternating series criterion may be successful.

The alternating series criterion goes back to Gottfried Wilhelm Leibniz and was published in 1682.

Introductory example: Convergence of the alternating harmonic series

[edit | edit source]

Series treated by the alternating series criterion will often converge, but not converge absolutely. Perhaps, the most prominent example for such a converging, but not absolutely convergent series is the alternating harmonic series ∑k=1∞(−1)k+1k. Convergence of it can be shown by making sure that the sequence of partial sums (Sn)n∈ℕ=(∑k=1n(−1)k+1k)n∈ℕ converges. For n=1,2,3,4,5,6,7,8 , those partial sums are

The partial sums - visualized

S1=∑k=11(−1)k+1k=1,S2=∑k=12(−1)k+1k=12=0.5,S3=∑k=13(−1)k+1k=56=0.83‾,S4=∑k=14(−1)k+1k=712=0.583‾,S5=∑k=15(−1)k+1k=4760=0.783‾,S6=∑k=16(−1)k+1k=3760=0.616‾,S7=∑k=17(−1)k+1k=329420=0.759,S8=∑k=18(−1)k+1k=533840=0.634.

Those partial sums tend to make jumps of ever smaller getting distance. Those partial sums with odd indices, (S2n−1) seem to be monotonically decreasing and those with even indices S2n seem to be increasing. A simple calculation can mathematically verify this assertion: For all n∈ℕ there is

S2n+1−S2n−1=∑k=12n+1(−1)k+1k−∑k=12n−1(−1)k+1k=(1−12+13−…+(−1)2n2n−1+(−1)2n+12n+(−1)2n+22n+1)−(1−12+13−…+(−1)2n2n−1)=(−1)2n+12n+(−1)2n+22n+1=12n+1−12n↓ 2n+1≥2n⇒12n+1≤12n≤0,

i.e. S2n+1≤S2n−1 (monotonically decreasing). Analogously, S2n+2−S2n=(−1)2n+32n+2+(−1)2n+22n+1=−12n+2+12n+1≥0, so S2n+2≥S2n (monotonically increasing).

If we could now show that (S2n−1) is bounded from below and (S2n)is bounded from above, then both sequences would converge by the monotonicity criterion. Luckily, this is exactly the case: all odd partial sums are bounded from below by any even partial sum and all even partial sums are bounded from above by any odd partial sum: For all n∈ℕ

S2n−1−S2n=−(−1)2n+12n=(−1)2n+22n=12n≥0,

so S2n−1≥S2n and S2n≤S2n−1. We therefore have the bounds S2n−1≥S2n≥S2=12 and S2n≤S2n−1≤S1=1. Hence, (S2n−1) is bounded from below by 12 and (S2n) is bounded from above by 1 .

The monotonicity criterion now implies that both the subsequences of partial sums (S2n−1) and (S2n) are convergent.

In order to get convergence of the series, we need to show that the sequence of partial sums (Sn) converges. This is for sure the case, if both the odd and the even subsequence (S2n−1) and (S2n) converge to the same limit.

How can this be shown? First, let us assign a name too the limits: limn→∞S2n−1=S and limn→∞S2n=S′. The statement we want to show can then mathematically be expressed as S=S′. We show this by subtracting both limits from each other, which is equivalent to taking the limit of the sequence difference:

S−S′=limn→∞S2n−1−limn→∞S2n=limn→∞(S2n−1−S2n).

Above, we showed S2n−1−S2n=12n which is a null sequence:

limn→∞(S2n−1−S2n)=limn→∞12n=0.

Hence, S−S′=0 which means S=S′.

From this, we can imply that the sequence of partial sums (Sn) converges to S . Mathematically, we need to stay closer than any ϵ to the limit value after surpassing some sequence element number N for the corresponding ϵ

∀ϵ>0∃N∈ℕ∀n≥N:|Sn−S|<ϵ.

For a fixed ϵ, both the odd and the even partial sum sequences have a suitable N, which we name by (2N1−1) (odd) and 2N2(even):

∀ϵ>0∃N1∈ℕ∀n≥N1:|S2n−1−S|<ϵ∀ϵ>0∃N2∈ℕ∀n≥N2:|S2n−S|<ϵ,

After reaching the greater of these two numbers N=max⁡{(2N1−1),2N2}, both sequences stay closer than ϵ to the limit value and

∀ϵ>0∃N∈ℕ∀n≥N:|Sn−S|<ϵ.

Generalizing the proof idea / alternating series test

[edit | edit source]

Now we consider any alternating series. Can we use the same proof as for the alternating harmonic series to show that our general alternating series converges? The answer will depend on the properties of the general alternating series. We used the following properties from the alternating harmonics series:

  • The sequence of coefficients (bk)=(1k) without the alternating sign is monotonically decreasing. This gave us monotonicity and boundedness of the two partial sums (S2n−1) and (S2n) , so we could show that they converge. Without the monotonicity, this may not be the case.
  • Further, we used that (bk)=(1k) is a null sequence. This was needed to show that both (S2n−1) and (S2n) had the same limit, so (Sn) converges to that limit. If (bk)=(1k) converged to a constant B, then (Sn) would in the end tend to "jump" up and down by an amount of B and the limits of (S2n−1) and (S2n) may differ by B, so they are not equal.

No further properties of the alternating harmonic series have been used for the proof. So we may use the above proof steps to show convergence of a general alternating series:

Theorem (Alternating series test)

Let (bk)k∈ℕ be a non-negative, monotonically decreasing null sequence of real numbers, i.e. limk→∞bk=0. Then, the alternating series ∑k=1∞(−1)k+1bk converges.

The proof uses the same steps as the convergence proof for the alternating harmonic series above.

Proof (Alternating series test)

We need to show that the sequence of partial sums (Sn)=(∑k=1n(−1)k+1bk) converges.

Step 1: The odd subsequence (S2n−1) is monotonically decreasing and the even subsequence (S2n) is monotonically increasing, as for any n∈ℕ there is

S2n+1−S2n−1=∑k=12n+1(−1)k+1bk−∑k=12n−1(−1)k+1bk=(b1−b2+b3−…+(−1)2nb2n−1+(−1)2n+1b2n+(−1)2n+2b2n+1)−(b1−b2+b3−…+(−1)2nb2n−1)=(−1)2n+2b2n+1+(−1)2n+1b2n=b2n+1−b2n↓ b2n+1≤b2n≤0,

and analogously S2n+2−S2n=(−1)2n+3b2n+2+(−1)2n+2b2n+1=−b2n+2+b2n+1≥0.

Step 2: (S2n−1) is bounded from below and (S2n) is bounded from above, since for n∈ℕ there is

S2n−1−S2n=(−1)2n+2b2n=b2n≥0

So S2n−1≥S2n≥S2=b1−b2 and S2n≤S2n−1≤S1=b1

The monotonicity criterion yields convergence of both the partial sums (S2n−1) and (S2n).

Step 3: (S2n−1) and (S2n) converge to the same limit. Let limn→∞S2n−1=S and limn→∞S2n=S′. In step 2, we proved convergence of both sequences, so we can use the sum rule for limits of sequences:

S−S′=limn→∞S2n−1−limn→∞S2n=limn→∞(S2n−1−S2n)

On the other hand,

limn→∞(S2n−1−S2n)=limn→∞b2n=0,

since both (bk) and (b2n) are null sequences. So both limits are equal (S=S′).

Step 4: (Sn) also converges to S. Since (S2n−1) and (S2n) converge to S , both approach S up to any ϵ:

∀ϵ>0∃N1∈ℕ∀n≥N1:|S2n−1−S|<ϵ∀ϵ>0∃N2∈ℕ∀n≥N2:|S2n−S|<ϵ

We now take the greater number N=max⁡{2N1−1,2N2} and obtain that also (Sn) approaches S up to ϵ:

∀ϵ>0∃N∈ℕ∀n≥N:|Sn−S|<ϵ

So the series ∑k=1∞(−1)k+1bk converges - and we are done with the proof.

Alternative proof

[edit | edit source]

Alternatively, one may use the Cauchy criterion for proving the alternating series criterion.

Alternative proof (Alternating series test)

In order to apply the alternating series criterion, we need to show that (under the assumptions of the alternating series test), there is ∀ϵ>0∃N∈ℕ∀n≥m≥N:|∑k=mn(−1)k+1bk|<ϵ.

At first, let us take only odd m and estimate the sum ∑k=mn(−1)k+1bk . This sum is positive: ∑k=mn(−1)k+1bk=(−1)m+1bm+(−1)m+2bm+1+(−1)m+3bm+2+(−1)m+4bm+3+…↓ m odd⇒m+1 even⇒m+2 odd=bm−bm+1+bm+2−bm+3+…+{bn if n odd,(−bn) if n even↓  associativity=(bm−bm+1)+(bm+2−bm+3)+…+{bn if n odd,(bn−1−bn) if n even↓ (bk) monotonically decreasing ⇒bk−bk+1≥0=(bm−bm+1)⏟≥0+(bm+2−bm+3)⏟≥0+…+{bn⏟≥0 if n odd,(bn−1−bn)⏟≥0 if n even≥0.

But it is also bounded:

∑k=mn(−1)k+1bk=(−1)m+1bm+(−1)m+2bm+1+(−1)m+3bm+2+(−1)m+4bm+3+…↓ m odd⇒m+1 even⇒m+2 odd =bm−bm+1+bm+2−bm+3+…+{bn if n odd,(−bn) if n even↓  associativity=bm−(bm+1−(bm+2)−(bm+3−bm+4)+…+{−(bn−1−bn) if n odd,−bn if n even↓ (bk) monotonically decreasing ⇒bk−bk+1≥0=bm−(bm+1−bm+2)⏟≤0−(bm+3−bm+4)⏟≤0+…+{−(bn−1−bn)⏟≤0 if n odd,−bn⏟≤0 if n even≤bm.

So, for odd m, there is |∑k=mn(−1)k+1bk|=∑k=mn(−1)k+1bk≤bm=|bm|.

Analogously, for even m , the sum is negative and bounded:

∑k=mn(−1)k+1bk≤0 and ∑k=mn(−1)k+1bk≤−bm,

And the absolute value of the sum is also bounded by |∑k=mn(−1)k+1bk|≤|bm| . The latter inequality holds for odd and even, i.e. for all m∈ℕ.

But now, (bk) was assumed to be a null sequence, so ∀ϵ>0∃N∈ℕ∀m≥N:|bm|<ϵ. The inequality for the absolute value hence implies

∀ϵ>0∃N∈ℕ∀n≥m≥N:|∑k=mn(−1)k+1bk|<ϵ.

And hence, the series ∑k=1∞(−1)k+1bk converges by the Cauchy criterion.

Application example

[edit | edit source]
Example (Generalized alternating harmonic series)

The generalized alternating harmonic series ∑k=1∞(−1)k+1kα converges for all α>0 by the alternating series test, since

  • bk=1kα≥0 for all k∈ℕ.
  • bk+1=1(k+1)α≤(k+1)α≥kα1kα for all k∈ℕ, so (bk) is monotonically decreasing.
  • limk→∞bk=limk→∞1kα=0, so (bk) is a null sequence.

Note that for α>1, this series even converges absolutely, as ∑k=1∞1kα=ζ(α)<∞.

Notes to the alternating series test

[edit | edit source]
  • Of course, we can also change the series signs from positive → negative → positive →... to negative → positive → negative →... and get a valid convergence criterion for series like ∑k=1∞(−1)kbk. The proof is the same, under an interchange of (S2n−1) and (S2n).
  • One can also start from k=0, i.e. consider series like ∑k=0∞(−1)kbk or ∑k=0∞(−1)k+1bk. Any starting index k is OK. The proof is just the same including an index shift.
  • As above, the alternating series test does only lead convergence, but no absolute convergence. For instance, the alternating harmonic series ∑k=1∞(−1)k+1k converges by the alternating series test. However, it does not converge absolutely.
  • The alternating series test can never be used for implying divergence of a series. If a series fails to meet the criteria for the alternating series test, it can still converge. There is an example warning about this below See below.
  • The proof for the alternating series implies that (In)n∈ℕ=([cn,dn])n∈ℕ with cn=S2n and dn=S2n−1 is a sequence of nested intervals.
  • One can also prove the more general Dirichlet test and then conclude the alternating series test as a special case. Further infos will be given in the end of this article.
  • We could also take (bk)k∈ℕ to be a non-positive and monotonically increasing null sequence. I.e. it approaches 0 from below. The proof works the same way. Especially, that means ∑k=1∞(−1)k+1bk converges, whenever (bk)k∈ℕ is just any monotone null sequence.

A test problem

[edit | edit source]
Exercise (Alternating series test)

Is the series ∑k=1∞(−1)k+1kk+1 convergent?

How to get to the proof? (Alternating series test)

In order to apply the alternating series test, we need to show that the sequence (bk)=(kk+1) is a monotonically decreasing null sequence. That means, we need 2 proof steps:

  1. We prove: (bk) is monotonically decreasing, i.e. bk+1≤bk. This can be shown by proving that the ratio between two elements is bk+1bk≤1 or their difference is bk+1−bk≤0 . Differences of square roots are hard to handle, so we investigate the ratio bk+1bk≤1.
  2. We prove: (bk) is a null sequence, i.e. limk→∞bk=0. We can prove this using limit theorems for sequences.
Proof (Alternating series test)

The sequence (bk)=(kk+1) is nonnegative (bk≥0) and

Step 1: bk+1bk≤1

bk+1bk=k+1k+2kk+1=k+1(k+1)k(k+2)=(k+1)(k+1)2k(k+2)2=k3+3k2+3k+1k3+4k2+4k=k3+3k2+3k+1k3+4k2+4k

Now, the square root defines a strictly monotonically increasing function. Hence, it is ≤1, whenever the number under the root is ≤1. We investigate the behaviour of the expression under the root in the limit k→∞:

k3+3k2+3k+1k3+4k2+4k=k3+3k2+3k+1k3+3k2+3k+(k2+k)↓ k2+k≥1≤k3+3k2+3k+1k3+3k2+3k+1=1

Hence, bk+1bk≤1, so (bk) is monotonically decreasing.

Step 2: limk→∞bk=0

limk→∞bk=limk→∞kk+1↓  factorize the denominator =limk→∞kk(k+1k)↓ cancel k=limk→∞1k+1k↓ limk→∞1k=0 use limit theorems=0

So (bk) is a null sequence.

Additional question: Does this series converge absolutely?

No, ∑k=1∞|(−1)k+1kk+1|=∑k=1∞kk+1 diverges. For large k, the elements scale like kk+1∝1k, which is even larger than a harmonic series 1k. More precisely,

kk+1≥kk+k=k2k=12k≥12k

and ∑k=1∞12k is a divergent harmonic series.

So we have divergence by direct comparison.

What, if a condition is not fulfilled?

[edit | edit source]

It is important to check that the 2 conditions for the alternating series test are fulfilled! There are alternating series, which do not meet one. The following examples will illustrate alternating series, where (bk) is either not converging to 0 (our example converges to 1) or not monotone. Both examples fail to be convergent (although they are alternating). The third example is an alternating series, which fails the alternating series test (as it is not monotone), but nevertheless converges. So the alternating series test does not identify all convergent alternating series.

Example (Example 1: Convergence to 0 is needed.)

We consider the series ∑k=1∞(−1)k(k+1k) with bk=k+1k. Does it fulfil the requirements for the alternating series test? Let us check:

  • (bk) is monotonically decreasing.
Exercise (Monotonicity)

Prove it.

Proof (Monotonicity)

We investigate the ratio bk+1bk=k+2k+1k+1k=k(k+2)(k+1)2=k2+2kk2+2k+1≤1 , so bk+1≤bk. Hence, (bk) is monotonically decreasing.

  • (bk) converges to 1, so it is not a null sequence. We can easily see this by explicitly computing the limit: limk→∞bk=limk→∞k+1k=limk→∞1+1k1=11=1≠0.

So the alternating series test can not be applied. And indeed, the series diverges, since for large k, it essentially behaves like ∑k=1∞(−1)k⋅1 . More precisely, the divergence can be proven by the term test: The sequence of elements (ak)=((−1)kk+1k) can not be a null sequence, since the subsequence (a2n) converges to 1. So the corresponding series diverges by the term test.

Example (Example 2: Monotonicity is needed.)

Next, we consider the series ∑k=1∞(−1)k+1bk with bk={1k for odd k,1k for even k. Will it converge? Let us try the alternating series test:

  • (bk) is not monotonically decreasing. This can be easily seen considering the first series elements: (1,12,13,14,15,16,17,18,19=13,110,…). Clearly, 12<13,14<15,16<17,18<19=13 . More generally, for all n∈ℕ there is 2n+1≤4n2 (can be shown by induction) and hence a2n=12n=14n2≤12n+1=a2n+1. So the sequence of elements is not monotonically decreasing, since otherwise we would have a2n+1≤a2n . Only the subsequence of elements with even and with odd index would be monotonically decreasing on their own.
  • However, (bk) is a null sequence.
Exercise (Null sequence)

Prove it.

Proof (Null sequence)

The subsequences of elements with only odd or only even index are both null sequences : limn→∞b2n−1=limn→∞12n−1=0 and limn→∞b2n=limn→∞12n=0. So ∀ϵ>0∃N1∈ℕ∀n≥N1:|b2n−1−0|=12n−1<ϵ  and  ∀ϵ>0∃N2∈ℕ∀n≥N2:|b2n−0|=12n<ϵ

(More precisely, some suitable N numbers are provided by N1>12ϵ2+12 and N2>12ϵ.) Now, we set N=max⁡{2N1−1,2N2}. So if the index surpasses N , it will also have surpassed 2N1−1 and 2N2, so both subsequences stay closer to 0 than ϵ, which means that the entire sequence will stay closer to 0 than ϵ:

∀ϵ>0∃N∈ℕ∀k≥N:|bk−0|=bk<ϵ. Therefore, (bk) converges to 0.

Hence, the alternating series test does not apply. In fact, we can show that the sequence of partial sums (s2n)=(∑k=12n(−1)kbk) is unbounded, so the series diverges. We use the estimate

(k−1)2≥0⇒k2≥2k−1⇒k≥2k−1⇒12k−1≥1k⇒12k−1−12k≥12k

This implies

s2n=∑k=12n(−1)k+1bk=(b1−b2)+(b3−b4)+…+(b2n−1−b2n)=∑k=1n(b2k−1−b2k)=∑k=1n(12k−1−12k)↓ estimate above≥∑k=1n12k

Since the harmonic series diverges, also (s2n) and the entire series will diverge. Loosely speaking, the reason for the divergence is that the series corresponding to the positive and negative elements, 1k and 1k diverge to ∞ at different speeds. And their speed difference is so huge that the series of differences diverges, too.

Example (Example 3: A converging alternating series, which fails the alternating series test.)

Let us consider the series ∑k=1∞(−1)k+1bk with bk={1k2 for even k,0 for odd k. Now,

  • (bk) is not monotonically decreasing, as for all k∈ℕ there is a2k−1=0<a2k=1(2k)2.

So the alternating series test does not apply. However, the series converges by direct comparison:

Exercise

Prove that ∑k=1∞(−1)k+1bk converges.

Solution

There is

  • |(−1)k+1bk|≤1k2 for all k∈ℕ
  • ∑k=1∞1k2<∞

So the series converges by direct comparison, even though its elements do not form a monotone sequence.

Conclusion: Error bounds for the limit

[edit | edit source]

The alternating series test can show converges, but does not give us the limit. For instance, for the alternating harmonic series , there is ∑k=1∞(−1)k+1k=ln⁡(2) . But this limit can not be computed by the alternating series test. However, we can approximate the limit by considering partial sums, and the alternating series test will provide us with a neat upper bound for the error of such an approximation.

We have seen above in this article, that the sequence of partial sums with odd index (S2n−1) is monotonically decreasing and converges to the limit limn→∞S2n−1=S . Further, S=inf⁡{S2n−1:n∈ℕ}, where the infimum of a set is the greatest possible lower bound to its elements. Hence, S2n−1≥S for all n∈ℕ, so we have upper bounds for the limit getting better and better. Conversely, (S2n) is monotonically increasing with limn→∞S2n=S=sup⁡{S2n:n∈ℕ} . So S2n≤S gives a lower bound for all n∈ℕ. That means, we have an estimate S2n≤S≤S2n−1 and S2n≤S≤S2n+1.

How good is the estimate? We subtract the two inequalities and get

S2n−1−S≤S2n−1−S2n=seeaboveb2n, andS−S2n≤S2n+1−S2n=analogouslyb2n+1.

So, the series elements serve as a precision indicator for the estimate of the limit by partial sums:

|S−Sn|=|∑k=1∞(−1)k+1bk−∑k=1n(−1)k+1bk|≤bn+1.

Theorem (Error estimate for approximating alternating series)

If an alternating series ∑k=1∞(−1)k+1bk converges by the alternating series test, then the limit can be approximated by the partial sums with maximum error |∑k=1∞(−1)k+1bk−∑k=1n(−1)k+1bk|≤bn+1.

Example (Error estimate for approximating alternating series)

Let us try to get some numerical values for the limit of the alternating harmonic series ∑k=1∞(−1)k+1k:

We take n=8 and get the estimate precision |∑k=1∞(−1)k+1k−∑k=18(−1)k+1k|≤b9=19. Since S8≤S , we know that the limit must be in the interval [533840,533840+19]. We round these fractions to decimal numbers and obtain S∈[0.634,0.746]. In fact, the limit is S=ln⁡(2)≈0.693. However, this is only a coarse approximation, which already needed summing up 8 terms. There are better ways to compute the logarithm, e.g. Newton's method. The good news is that the above estimate works for any series which converges by the alternating series test.

Generalizing the alternating series test to the Dirichlet test

[edit | edit source]

The Dirichlet test serves for proving convergence of series of the form ∑k=1∞akbk . It extends the alternating series test to cases where there is not ak=(−1)k+1 . This is particularly useful, if the sign does not change from element to element (like +,−,+,−,+,−,+,...) but can have streaks without a change in between (like +,−,−,+,−,+,+,...) . The proof is based on Abel's partial summation, which is quite some work to do. We will not state it here.

Theorem (Dirichlet's test)

Let (ak) and (bk) be real sequences with

  • The partial sum sequence An=∑k=1nak being bounded and
  • (bk) being monotonically decreasing
  • limk→∞bk=0.

Then, the series ∑k=1∞akbk converges.

The conditions for (bk) are exactly the same as for the alternating series test. Actually, with ak=(−1)k+1, we just get the alternating series test as a special case:

Exercise

Prove that ak=(−1)k+1 fulfils the first condition for Dirichlet's test, i.e.An=∑k=1nak is bounded.

Solution

There is

An=∑k=1nak=∑k=1n(−1)k+1=1−1+1−1±…+(−1)n={1 for odd n,0 for even n.

So (An) alternates between 1 and 0 and is obviously bounded.