Zum Inhalt springen

Alternating series test

Aus Wikibooks
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. I 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

[Bearbeiten]

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, (S2n1) seem to be monotonously 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+1S2n1=k=12n+1(1)k+1kk=12n1(1)k+1k=(112+13+(1)2n2n1+(1)2n+12n+(1)2n+22n+1)(112+13+(1)2n2n1)=(1)2n+12n+(1)2n+22n+1=12n+112n 2n+12n12n+112n0,

i.e. S2n+1S2n1 (monotonously decreasing). Analogously, S2n+2S2n=(1)2n+32n+2+(1)2n+22n+1=12n+2+12n+10, so S2n+2S2n (monotonously increasing).

If we could now show that (S2n1) is bounded from below and (S2n)is bounded from above, then both sequences would converge by the monotony criterion. Luckily, this is exacly 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

S2n1S2n=(1)2n+12n=(1)2n+22n=12n0,

so S2n1S2n and S2nS2n1. We therefore have the bounds S2n1S2nS2=12 and S2nS2n1S1=1. Hence, (S2n1) is bounded from below by 12 and (S2n) is bounded from above by 1 .

The monotony criterion now implies that both the subsequences of partial sums (S2n1) 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 (S2n1) and (S2n) converge to the same limit.

How can this be shown? First, let us assign a name too the limits: limnS2n1=S and limnS2n=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:

SS=limnS2n1limnS2n=limn(S2n1S2n).

Above, we showed S2n1S2n=12n which is a null sequence:

limn(S2n1S2n)=limn12n=0.

Hence, SS=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 ϵ

ϵ>0NnN:|SnS|<ϵ.

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

ϵ>0N1nN1:|S2n1S|<ϵϵ>0N2nN2:|S2nS|<ϵ,

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

ϵ>0NnN:|SnS|<ϵ.


Generalizing the proof idea / alternating series test

[Bearbeiten]

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 presign is monotonously decreasing. This gave us monotony and boundedness of the two partial sums (S2n1) and (S2n) , so we could show that they converge. Without the monotony, this may not be the case.
  • Further, we used that (bk)=(1k) is a null sequence. This was needed to show that both (S2n1) 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 (S2n1) 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, monotonously decreasing null sequence of real numbers, i.e. limkbk=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 (S2n1) is monotonously decreasing and the even subsequence (S2n) is monotonously increasing, as for any n there is

S2n+1S2n1=k=12n+1(1)k+1bkk=12n1(1)k+1bk=(b1b2+b3+(1)2nb2n1+(1)2n+1b2n+(1)2n+2b2n+1)(b1b2+b3+(1)2nb2n1)=(1)2n+2b2n+1+(1)2n+1b2n=b2n+1b2n b2n+1b2n0,

and analogously S2n+2S2n=(1)2n+3b2n+2+(1)2n+2b2n+1=b2n+2+b2n+10.

Step 2: (S2n1) is bounded from below and (S2n) is bounded from above, since for n there is

S2n1S2n=(1)2n+2b2n=b2n0

So S2n1S2nS2=b1b2 and S2nS2n1S1=b1

The monotony criterion yields convergence of both the partial sums (S2n1) and (S2n).

Step 3: (S2n1) and (S2n) converge to the same limit. Let limnS2n1=S and limnS2n=S. In step 2, we proved convergence of both sequences, so we can use the sum rule for limits of sequences:

SS=limnS2n1limnS2n=limn(S2n1S2n)

On the other hand,

limn(S2n1S2n)=limnb2n=0,

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

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

ϵ>0N1nN1:|S2n1S|<ϵϵ>0N2nN2:|S2nS|<ϵ

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

ϵ>0NnN:|SnS|<ϵ

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

Proof alternative

[Bearbeiten]

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

ϵ>0NnmN:|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 oddm+1 evenm+2 odd=bmbm+1+bm+2bm+3++{bn if n odd,(bn) if n even  associativity=(bmbm+1)+(bm+2bm+3)++{bn if n odd,(bn1bn) if n even (bk) monotonously decreasing bkbk+10=(bmbm+1)0+(bm+2bm+3)0++{bn0 if n odd,(bn1bn)0 if n even0.

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 oddm+1 evenm+2 odd =bmbm+1+bm+2bm+3++{bn if n odd,(bn) if n even  associativity=bm(bm+1(bm+2)(bm+3bm+4)++{(bn1bn) if n odd,bn if n even (bk) monotonously decreasing bkbk+10=bm(bm+1bm+2)0(bm+3bm+4)0++{(bn1bn)0 if n odd,bn0 if n evenbm.

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

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

k=mn(1)k+1bk0 and k=mn(1)k+1bkbm,

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 ϵ>0NmN:|bm|<ϵ. The inequality for the absolute value hence implies

ϵ>0NnmN:|k=mn(1)k+1bk|<ϵ.

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

Application example

[Bearbeiten]

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 monotonously decreasing.
  • limkbk=limk1kα=0, so (bk) is a null sequence.

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

Notes to the alternating series test

[Bearbeiten]
  • Of course, we can also change the series presigns 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 (S2n1) 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=S2n1 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 monotonously 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

[Bearbeiten]

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 monotonously decreasing null sequence. That means, we need 2 proof steps:

  1. We prove: (bk) is monotonously decreasing, i.e. bk+1bk. This can be shown by proving that the ratio between two elements is bk+1bk1 or their difference is bk+1bk0 . Differences of square roots are hard to handle, so we investigate the ratio bk+1bk1.
  2. We prove: (bk) is a null sequence, i.e. limkbk=0. We can prove this using limit theorems for sequences.

Proof (Alternating series test)

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

Step 1: bk+1bk1

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 monotonously 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+k1k3+3k2+3k+1k3+3k2+3k+1=1

Hence, bk+1bk1, so (bk) is monotonously decreasing.

Step 2: limkbk=0

limkbk=limkkk+1  factorize the denominator =limkkk(k+1k) cancel k=limk1k+1k limk1k=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=1kk+1 diverges. For large k, the elements scale like kk+11k, which is even larger than a harmonic series 1k. More precisely,

kk+1kk+k=k2k=12k12k

and k=112k is a divergent harmonic series.

So we have divergence by direct comparison.

What, if a condition is not fulfilled?

[Bearbeiten]

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 monotonous. 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 monotonous), 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 monotonously decreasing.

Exercise (Monotony)

Prove it.

Proof (Monotony)

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

  • (bk) converges to 1, so it is not a null sequence. We can easily see this by explicitly computing the limit: limkbk=limkk+1k=limk1+1k1=11=10.

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)k1 . 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: Monotony 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 monotonously 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+14n2 (can be shown by induction) and hence a2n=12n=14n212n+1=a2n+1. So the sequence of elements is not monotonously decreasing, since otherwise we would have a2n+1a2n . Only the subsequence of elements with even and with odd index would be monotonously 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 : limnb2n1=limn12n1=0 and limnb2n=limn12n=0. So

ϵ>0N1nN1:|b2n10|=12n1<ϵ  and  ϵ>0N2nN2:|b2n0|=12n<ϵ

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

ϵ>0NkN:|bk0|=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

(k1)20k22k1k2k112k11k12k112k12k

This implies

s2n=k=12n(1)k+1bk=(b1b2)+(b3b4)++(b2n1b2n)=k=1n(b2k1b2k)=k=1n(12k112k) estimate abovek=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 monotonously decreasing, as for all k there is a2k1=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=11k2<

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

Conclusion: Error bounds for the limit

[Bearbeiten]

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 (S2n1) is monotonously decreasing and converges to the limit limnS2n1=S . Further, S=inf{S2n1:n}, where the infimum of a set is the greatest possible lower bound to its elements. Hence, S2n1S for all n, so we have upper bounds for the limit getting better and better. Conversely, (S2n) is monotonously increasing with limnS2n=S=sup{S2n:n} . So S2nS gives a lower bound for all n. That means, we have an estimate S2nSS2n1 and S2nSS2n+1.

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

S2n1SS2n1S2n=seeaboveb2n, andSS2nS2n+1S2n=analogouslyb2n+1.

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

|SSn|=|k=1(1)k+1bkk=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+1bkk=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+1kk=18(1)k+1k|b9=19. Since S8S , we know that the limit must be in the interval [533840,533840+19]. We round this 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

[Bearbeiten]

The Dirichlet test serves for proving convergence of series of the form k=1akbk . It extends the alternating series test to cases where there is not ak=(1)k+1 . This is particularly useful, if the presign 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 monotonously decreasing
  • limkbk=0.

Then, the series k=1akbk 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=11+11±+(1)n={1 for odd n,0 for even n.

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