# Math for Non-Geeks/ Alternating series test

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 $\sum _{k=1}^{\infty }(-1)^{k+1}b_{k}$ or $\sum _{k=1}^{\infty }(-1)^{k}b_{k}$ (with all $b_{k}$ 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

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 $\sum _{k=1}^{\infty }{\frac {(-1)^{k+1}}{k}}$. Convergence of it can be shown by making sure that the sequence of partial sums $(S_{n})_{n\in \mathbb {N} }=\left(\sum _{k=1}^{n}{\frac {(-1)^{k+1}}{k}}\right)_{n\in \mathbb {N} }$ converges. For $n=1,2,3,4,5,6,7,8$ , those partial sums are
${\begin{aligned}S_{1}&=\sum _{k=1}^{1}{\frac {(-1)^{k+1}}{k}}=1,&S_{2}&=\sum _{k=1}^{2}{\frac {(-1)^{k+1}}{k}}={\frac {1}{2}}=0.5,\\S_{3}&=\sum _{k=1}^{3}{\frac {(-1)^{k+1}}{k}}={\frac {5}{6}}=0.8{\overline {3}},&S_{4}&=\sum _{k=1}^{4}{\frac {(-1)^{k+1}}{k}}={\frac {7}{12}}=0.58{\overline {3}},\\S_{5}&=\sum _{k=1}^{5}{\frac {(-1)^{k+1}}{k}}={\frac {47}{60}}=0.78{\overline {3}},&S_{6}&=\sum _{k=1}^{6}{\frac {(-1)^{k+1}}{k}}={\frac {37}{60}}=0.61{\overline {6}},\\S_{7}&=\sum _{k=1}^{7}{\frac {(-1)^{k+1}}{k}}={\frac {329}{420}}=0.759,&S_{8}&=\sum _{k=1}^{8}{\frac {(-1)^{k+1}}{k}}={\frac {533}{840}}=0.634.\end{aligned}}$
Those partial sums tend to make jumps of ever smaller getting distance. Those partial sums with odd indices, ($S_{2n-1}$) seem to be monotonically decreasing and those with even indices $S_{2n}$ seem to be increasing. A simple calculation can mathematically verify this assertion: For all $n\in \mathbb {N}$ there is ${\begin{aligned}S_{2n+1}-S_{2n-1}&=\sum _{k=1}^{2n+1}{\frac {(-1)^{k+1}}{k}}-\sum _{k=1}^{2n-1}{\frac {(-1)^{k+1}}{k}}\\[0.5em]&=({\color {Teal}1-{\frac {1}{2}}+{\frac {1}{3}}-\ldots +{\frac {(-1)^{2n}}{2n-1}}}+{\frac {(-1)^{2n+1}}{2n}}+{\frac {(-1)^{2n+2}}{2n+1}})\\[0.5em]&-({\color {Indigo}1-{\frac {1}{2}}+{\frac {1}{3}}-\ldots +{\frac {(-1)^{2n}}{2n-1}}})\\[0.5em]&={\frac {(-1)^{2n+1}}{2n}}+{\frac {(-1)^{2n+2}}{2n+1}}\\[0.5em]&={\frac {1}{2n+1}}-{\frac {1}{2n}}\\[0.5em]&{\color {OliveGreen}\left\downarrow \ 2n+1\geq 2n\Rightarrow {\frac {1}{2n+1}}\leq {\frac {1}{2n}}\right.}\\[0.5em]&\leq 0,\end{aligned}}$ i.e. $S_{2n+1}\leq S_{2n-1}$ (monotonically decreasing). Analogously, $S_{2n+2}-S_{2n}={\frac {(-1)^{2n+3}}{2n+2}}+{\frac {(-1)^{2n+2}}{2n+1}}=-{\frac {1}{2n+2}}+{\frac {1}{2n+1}}\geq 0$, so $S_{2n+2}\geq S_{2n}$ (monotonically increasing).
If we could now show that $(S_{2n-1})$ is bounded from below and $(S_{2n})$is bounded from above, then both sequences would converge by the monotonicity 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\in \mathbb {N}$ $S_{2n-1}-S_{2n}=-{\frac {(-1)^{2n+1}}{2n}}={\frac {(-1)^{2n+2}}{2n}}={\frac {1}{2n}}\geq 0,$ so $S_{2n-1}\geq S_{2n}$ and $S_{2n}\leq S_{2n-1}$. We therefore have the bounds $S_{2n-1}\geq S_{2n}\geq S_{2}={\frac {1}{2}}$ and $S_{2n}\leq S_{2n-1}\leq S_{1}=1$. Hence, $(S_{2n-1})$ is bounded from below by ${\frac {1}{2}}$ and $(S_{2n})$ is bounded from above by $1$ .
The monotonicity criterion now implies that both the subsequences of partial sums $(S_{2n-1})$ and $(S_{2n})$ are convergent.
In order to get convergence of the series, we need to show that the sequence of partial sums $(S_{n})$ converges. This is for sure the case, if both the odd and the even subsequence $(S_{2n-1})$ and $(S_{2n})$ converge to the same limit.
How can this be shown? First, let us assign a name too the limits: $\lim _{n\to \infty }S_{2n-1}=S$ and $\lim _{n\to \infty }S_{2n}=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'=\lim _{n\to \infty }S_{2n-1}-\lim _{n\to \infty }S_{2n}=\lim _{n\to \infty }(S_{2n-1}-S_{2n}).$ Above, we showed $S_{2n-1}-S_{2n}={\frac {1}{2n}}$ which is a null sequence: $\lim _{n\to \infty }(S_{2n-1}-S_{2n})=\lim _{n\to \infty }{\frac {1}{2n}}=0.$ Hence, $S-S'=0$ which means $S=S'$.
From this, we can imply that the sequence of partial sums $(S_{n})$ converges to $S$ . Mathematically, we need to stay closer than any $\epsilon$ to the limit value after surpassing some sequence element number $N$ for the corresponding $\epsilon$ $\forall \epsilon >0\,\exists N\in \mathbb {N} \,\forall n\geq N:|S_{n}-S|<\epsilon .$ For a fixed $\epsilon$, both the odd and the even partial sum sequences have a suitable $N$, which we name by $(2N_{1}-1)$ (odd) and $2N_{2}$(even): ${\begin{aligned}&\forall \epsilon >0\,\exists N_{1}\in \mathbb {N} \,\forall n\geq N_{1}:|S_{2n-1}-S|<\epsilon \\[0.3em]&\forall \epsilon >0\,\exists N_{2}\in \mathbb {N} \,\forall n\geq N_{2}:|S_{2n}-S|<\epsilon ,\end{aligned}}$ After reaching the greater of these two numbers $N=\max\{(2N_{1}-1),2N_{2}\}$, both sequences stay closer than $\epsilon$ to the limit value and $\forall \epsilon >0\,\exists N\in \mathbb {N} \,\forall n\geq N:|S_{n}-S|<\epsilon .$

## Generalizing the proof idea / alternating series test

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 $(b_{k})=\left({\frac {1}{k}}\right)$ without the alternating presign is monotonically decreasing. This gave us monotonicity and boundedness of the two partial sums $(S_{2n-1})$ and $(S_{2n})$ , so we could show that they converge. Without the monotonicity, this may not be the case.
* Further, we used that $(b_{k})=\left({\frac {1}{k}}\right)$ is a null sequence. This was needed to show that both $(S_{2n-1})$ and $(S_{2n})$ had the same limit, so $(S_{n})$ converges to that limit. If $(b_{k})=\left({\frac {1}{k}}\right)$ converged to a constant $B$, then $(S_{n})$ would in the end tend to "jump" up and down by an amount of $B$ and the limits of $(S_{2n-1})$ and $(S_{2n})$ 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 $(b_{k})_{k\in \mathbb {N} }$ be a non-negative, monotonically decreasing null sequence of real numbers, i.e. $\lim _{k\to \infty }b_{k}=0$. Then, the alternating series $\sum _{k=1}^{\infty }(-1)^{k+1}b_{k}$ 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 $(S_{n})=\left(\sum _{k=1}^{n}(-1)^{k+1}b_{k}\right)$ converges.
Step 1: The odd subsequence $(S_{2n-1})$ is monotonically decreasing and the even subsequence $(S_{2n})$ is monotonically increasing, as for any $n\in \mathbb {N}$ there is ${\begin{aligned}S_{2n+1}-S_{2n-1}&=\sum _{k=1}^{2n+1}(-1)^{k+1}b_{k}-\sum _{k=1}^{2n-1}(-1)^{k+1}b_{k}\\[0.5em]&=({\color {Teal}b_{1}-b_{2}+b_{3}-\ldots +(-1)^{2n}b_{2n-1}}\\[0.5em]&+(-1)^{2n+1}b_{2n}+(-1)^{2n+2}b_{2n+1})\\[0.5em]&-({\color {Indigo}b_{1}-b_{2}+b_{3}-\ldots +(-1)^{2n}b_{2n-1}})\\[0.5em]&=(-1)^{2n+2}b_{2n+1}+(-1)^{2n+1}b_{2n}\\[0.5em]&=b_{2n+1}-b_{2n}\\[0.5em]&{\color {OliveGreen}\left\downarrow \ b_{2n+1}\leq b_{2n}\right.}\\[0.5em]&\leq 0,\end{aligned}}$ and analogously $S_{2n+2}-S_{2n}=(-1)^{2n+3}b_{2n+2}+(-1)^{2n+2}b_{2n+1}=-b_{2n+2}+b_{2n+1}\geq 0$.
Step 2: $(S_{2n-1})$ is bounded from below and $(S_{2n})$ is bounded from above, since for $n\in \mathbb {N}$ there is $S_{2n-1}-S_{2n}=(-1)^{2n+2}b_{2n}=b_{2n}\geq 0$ So $S_{2n-1}\geq S_{2n}\geq S_{2}=b_{1}-b_{2}$ and $S_{2n}\leq S_{2n-1}\leq S_{1}=b_{1}$
The monotonicity criterion yields convergence of both the partial sums $(S_{2n-1})$ and $(S_{2n})$.
Step 3: $(S_{2n-1})$ and $(S_{2n})$ converge to the same limit. Let $\lim _{n\to \infty }S_{2n-1}=S$ and $\lim _{n\to \infty }S_{2n}=S'$. In step 2, we proved convergence of both sequences, so we can use the sum rule for limits of sequences: $S-S'=\lim _{n\to \infty }S_{2n-1}-\lim _{n\to \infty }S_{2n}=\lim _{n\to \infty }(S_{2n-1}-S_{2n})$ On the other hand, $\lim _{n\to \infty }(S_{2n-1}-S_{2n})=\lim _{n\to \infty }b_{2n}=0,$ since both $(b_{k})$ and $(b_{2n})$ are null sequences. So both limits are equal ($S=S'$).
Step 4: $(S_{n})$ also converges to $S$. Since $(S_{2n-1})$ and $(S_{2n})$ converge to $S$ , both approach $S$ up to any $\epsilon$: ${\begin{aligned}&\forall \epsilon >0\,\exists N_{1}\in \mathbb {N} \,\forall n\geq N_{1}:|S_{2n-1}-S|<\epsilon \\[0.5em]&\forall \epsilon >0\,\exists N_{2}\in \mathbb {N} \,\forall n\geq N_{2}:|S_{2n}-S|<\epsilon \end{aligned}}$ We now take the greater number $N=\max\{2N_{1}-1,2N_{2}\}$ and obtain that also $(S_{n})$ approaches $S$ up to $\epsilon$: $\forall \epsilon >0\,\exists N\in \mathbb {N} \,\forall n\geq N:|S_{n}-S|<\epsilon$ So the series $\sum _{k=1}^{\infty }(-1)^{k+1}b_{k}$ converges - and we are done with the proof.

## Proof alternative

Alternatively, one may use the Cauchy criterion for proving the alternating series criterion.
Math for Non-Geeks: Template:Alternativer Beweis

## Application example

Example (Generalized alternating harmonic series)
The generalized alternating harmonic series $\sum _{k=1}^{\infty }{\tfrac {(-1)^{k+1}}{k^{\alpha }}}$ converges for all $\alpha >0$ by the alternating series test, since
* $b_{k}={\tfrac {1}{k^{\alpha }}}\geq 0$ for all $k\in \mathbb {N}$.
* $b_{k+1}={\tfrac {1}{(k+1)^{\alpha }}}{\overset {(k+1)^{\alpha }\geq k^{\alpha }}{\leq }}{\tfrac {1}{k^{\alpha }}}$ for all $k\in \mathbb {N}$, so $(b_{k})$ is monotonically decreasing.
* $\lim _{k\to \infty }b_{k}=\lim _{k\to \infty }{\tfrac {1}{k^{\alpha }}}=0$, so $(b_{k})$ is a null sequence.
Note that for $\alpha >1$, this series even converges absolutely, as $\sum _{k=1}^{\infty }{\tfrac {1}{k^{\alpha }}}=\zeta (\alpha )<\infty$.

## Notes to the alternating series test

* Of course, we can also change the series presigns from positive $\rightarrow$ negative $\rightarrow$ positive $\rightarrow ...$ to negative $\rightarrow$ positive $\rightarrow$ negative $\rightarrow ...$ and get a valid convergence criterion for series like $\sum _{k=1}^{\infty }(-1)^{k}b_{k}$. The proof is the same, under an interchange of $(S_{2n-1})$ and $(S_{2n})$.
* One can also start from $k=0$, i.e. consider series like $\sum _{k=0}^{\infty }(-1)^{k}b_{k}$ or $\sum _{k=0}^{\infty }(-1)^{k+1}b_{k}$. 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 $\sum _{k=1}^{\infty }{\frac {(-1)^{k+1}}{k}}$ 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 $(I_{n})_{n\in \mathbb {N} }=([c_{n},d_{n}])_{n\in \mathbb {N} }$ with $c_{n}=S_{2n}$ and $d_{n}=S_{2n-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 $(b_{k})_{k\in \mathbb {N} }$ 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 $\sum _{k=1}^{\infty }(-1)^{k+1}b_{k}$ converges, whenever $(b_{k})_{k\in \mathbb {N} }$ is just any monotone null sequence.

## A test problem

Math for Non-Geeks: Template:Aufgabe
Additional question: Does this series converge absolutely?
No, $\sum _{k=1}^{\infty }\left|(-1)^{k+1}{\frac {\sqrt {k}}{k+1}}\right|=\sum _{k=1}^{\infty }{\frac {\sqrt {k}}{k+1}}$ diverges. For large $k$, the elements scale like ${\frac {\sqrt {k}}{k+1}}\propto {\frac {1}{\sqrt {k}}}$, which is even larger than a harmonic series ${\frac {1}{k}}$. More precisely, ${\begin{aligned}{\frac {\sqrt {k}}{k+1}}&\geq {\frac {\sqrt {k}}{k+k}}\\[0.5em]&={\frac {\sqrt {k}}{2k}}\\[0.5em]&={\frac {1}{2{\sqrt {k}}}}\\[0.5em]&\geq {\frac {1}{2k}}\end{aligned}}$ and $\sum _{k=1}^{\infty }{\frac {1}{2k}}$ is a divergent harmonic series.
So we have divergence by direct comparison.

## What, if a condition is not fulfilled?

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 $(b_{k})$ 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 $\sum _{k=1}^{\infty }(-1)^{k}\left({\frac {k+1}{k}}\right)$ with $b_{k}={\frac {k+1}{k}}$. Does it fulfil the requirements for the alternating series test? Let us check:
* $(b_{k})$ is monotonically decreasing.
Math for Non-Geeks: Template:Aufgabe
* $(b_{k})$ converges to 1, so it is not a null sequence. We can easily see this by explicitly computing the limit: $\lim _{k\to \infty }b_{k}=\lim _{k\to \infty }{\frac {k+1}{k}}=\lim _{k\to \infty }{\frac {1+{\frac {1}{k}}}{1}}={\frac {1}{1}}=1\neq 0$.
So the alternating series test can not be applied. And indeed, the series diverges, since for large $k$, it essentially behaves like $\sum _{k=1}^{\infty }(-1)^{k}\cdot 1$ . More precisely, the divergence can be proven by the term test: The sequence of elements $(a_{k})=\left((-1)^{k}{\frac {k+1}{k}}\right)$ can not be a null sequence, since the subsequence $(a_{2n})$ converges to 1. So the corresponding series diverges by the term test.
Example (Example 2: Monotonicity is needed.)
Next, we consider the series $\sum _{k=1}^{\infty }(-1)^{k+1}b_{k}$ with $b_{k}={\begin{cases}{\frac {1}{\sqrt {k}}}&{\text{ for odd }}k,\\{\frac {1}{k}}&{\text{ for even }}k\end{cases}}$. Will it converge? Let us try the alternating series test:
* $(b_{k})$ is not monotonically decreasing. This can be easily seen considering the first series elements: $\left(1,{\frac {1}{2}},{\frac {1}{\sqrt {3}}},{\frac {1}{4}},{\frac {1}{\sqrt {5}}},{\frac {1}{6}},{\frac {1}{\sqrt {7}}},{\frac {1}{8}},{\frac {1}{\sqrt {9}}}={\frac {1}{3}},{\frac {1}{10}},\ldots \right)$. Clearly, ${\frac {1}{2}}<{\frac {1}{\sqrt {3}}},{\frac {1}{4}}<{\frac {1}{\sqrt {5}}},{\frac {1}{6}}<{\frac {1}{\sqrt {7}}},{\frac {1}{8}}<{\frac {1}{\sqrt {9}}}={\frac {1}{3}}$ . More generally, for all $n\in \mathbb {N}$ there is $2n+1\leq 4n^{2}$ (can be shown by induction) and hence $a_{2n}={\frac {1}{2n}}={\frac {1}{\sqrt {4n^{2}}}}\leq {\frac {1}{\sqrt {2n+1}}}=a_{2n+1}$. So the sequence of elements is not monotonically decreasing, since otherwise we would have $a_{2n+1}\leq a_{2n}$ . Only the subsequence of elements with even and with odd index would be monotonically decreasing on their own.
* However, $(b_{k})$ is a null sequence.
Math for Non-Geeks: Template:Aufgabe
Hence, the alternating series test does not apply. In fact, we can show that the sequence of partial sums $(s_{2n})=\left(\sum _{k=1}^{2n}(-1)^{k}b_{k}\right)$ is unbounded, so the series diverges. We use the estimate $(k-1)^{2}\geq 0\Rightarrow k^{2}\geq 2k-1\Rightarrow k\geq {\sqrt {2k-1}}\Rightarrow {\frac {1}{\sqrt {2k-1}}}\geq {\frac {1}{k}}\Rightarrow {\frac {1}{\sqrt {2k-1}}}-{\frac {1}{2k}}\geq {\frac {1}{2k}}$ This implies ${\begin{aligned}s_{2n}&=\sum _{k=1}^{2n}(-1)^{k+1}b_{k}\\[0.5em]&=(b_{1}-b_{2})+(b_{3}-b_{4})+\ldots +(b_{2n-1}-b_{2n})\\[0.5em]&=\sum _{k=1}^{n}\left(b_{2k-1}-b_{2k}\right)\\[0.5em]&=\sum _{k=1}^{n}\left({\frac {1}{\sqrt {2k-1}}}-{\frac {1}{2k}}\right)\\[0.5em]&\left\downarrow \ {\text{estimate above}}\right.\\[0.5em]&\geq \sum _{k=1}^{n}{\frac {1}{2k}}\end{aligned}}$ Since the harmonic series diverges, also $(s_{2n})$ and the entire series will diverge. Loosely speaking, the reason for the divergence is that the series corresponding to the positive and negative elements, ${\frac {1}{\sqrt {k}}}$ and ${\frac {1}{k}}$ diverge to $\infty$ 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 $\sum _{k=1}^{\infty }(-1)^{k+1}b_{k}$ with $b_{k}={\begin{cases}{\frac {1}{k^{2}}}&{\text{ for even }}k,\\0&{\text{ for odd }}k\end{cases}}$. Now,
* $(b_{k})$ is not monotonically decreasing, as for all $k\in \mathbb {N}$ there is $a_{2k-1}=0<a_{2k}={\tfrac {1}{(2k)^{2}}}$.
So the alternating series test does not apply. However, the series converges by direct comparison: Math for Non-Geeks: Template:Aufgabe

## Conclusion: Error bounds for the limit

The alternating series test can show converges, but does not give us the limit. For instance, for the alternating harmonic series , there is $\sum _{k=1}^{\infty }{\frac {(-1)^{k+1}}{k}}=\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 $(S_{2n-1})$ is monotonically decreasing and converges to the limit $\lim _{n\to \infty }S_{2n-1}=S$ . Further, $S=\inf\{S_{2n-1}:n\in \mathbb {N} \}$, where the infimum of a set is the greatest possible lower bound to its elements. Hence, $S_{2n-1}\geq S$ for all $n\in \mathbb {N}$, so we have upper bounds for the limit getting better and better. Conversely, $(S_{2n})$ is monotonically increasing with $\lim _{n\to \infty }S_{2n}=S=\sup\{S_{2n}:n\in \mathbb {N} \}$ . So $S_{2n}\leq S$ gives a lower bound for all $n\in \mathbb {N}$. That means, we have an estimate $S_{2n}\leq S\leq S_{2n-1}$ and $S_{2n}\leq S\leq S_{2n+1}$.
How good is the estimate? We subtract the two inequalities and get ${\begin{aligned}S_{2n-1}-S&\leq S_{2n-1}-S_{2n}{\underset {\text{above}}{\overset {\text{see}}{=}}}b_{2n},{\text{ and}}\\S-S_{2n}&\leq S_{2n+1}-S_{2n}{\overset {\text{analogously}}{=}}b_{2n+1}.\end{aligned}}$ So, the series elements serve as a precision indicator for the estimate of the limit by partial sums: $|S-S_{n}|=\left|\sum _{k=1}^{\infty }(-1)^{k+1}b_{k}-\sum _{k=1}^{n}(-1)^{k+1}b_{k}\right|\leq b_{n+1}.$
Theorem (Error estimate for approximating alternating series)
If an alternating series $\sum _{k=1}^{\infty }(-1)^{k+1}b_{k}$ converges by the alternating series test, then the limit can be approximated by the partial sums with maximum error $\left|\sum _{k=1}^{\infty }(-1)^{k+1}b_{k}-\sum _{k=1}^{n}(-1)^{k+1}b_{k}\right|\leq b_{n+1}.$
Example (Error estimate for approximating alternating series)
Let us try to get some numerical values for the limit of the alternating harmonic series $\sum _{k=1}^{\infty }{\frac {(-1)^{k+1}}{k}}$:
We take $n=8$ and get the estimate precision $\left|\sum _{k=1}^{\infty }{\frac {(-1)^{k+1}}{k}}-\sum _{k=1}^{8}{\frac {(-1)^{k+1}}{k}}\right|\leq b_{9}={\frac {1}{9}}$. Since $S_{8}\leq S$ , we know that the limit must be in the interval $\left[{\frac {533}{840}},{\frac {533}{840}}+{\frac {1}{9}}\right]$. We round this fractions to decimal numbers and obtain $S\in [0.634,0.746]$. In fact, the limit is $S=\ln(2)\approx 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

The Dirichlet test serves for proving convergence of series of the form $\sum _{k=1}^{\infty }a_{k}b_{k}$ . It extends the alternating series test to cases where there is not $a_{k}=(-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 $(a_{k})$ and $(b_{k})$ be real sequences with
* The partial sum sequence $A_{n}=\sum _{k=1}^{n}a_{k}$ being bounded and
* $(b_{k})$ being monotonically decreasing
* $\lim _{k\to \infty }b_{k}=0$.
Then, the series $\sum _{k=1}^{\infty }a_{k}b_{k}$ converges.
The conditions for $(b_{k})$ are exactly the same as for the alternating series test. Actually, with $a_{k}=(-1)^{k+1}$, we just get the alternating series test as a special case: Math for Non-Geeks: Template:Aufgabe