Infinite series: Convergence tests
Alternernating series
We have seen that the harmonic series \(\sum\frac 1n\) diverges to infinity. Therefore \(\lim_{n\to\infty} a_n = 0\) does not imply the series \(\sum a_n\) converges. However, in the special case of so-called alternating series this is true:
If \((a_n)_{n=1}^\infty\) is a decreasing sequence of positive numbers with \(\lim_{n\to\infty} a_n = 0\) then the series \( \sum_{n=1}^\infty (-1)^n a_n\) converges.
The series \(\sum_{n=1}^\infty \frac{(-1)^n}{n}\) converges according to the theorem.
The alternating sequence \( \sum_{n=1}^\infty (-1)^n a_n\) does not necessarily converge if \((a_n)_{n=1}^\infty\) is not decreasing or is not positive.
For \[ a_n = \begin{cases} \frac{1}{n} &\text{if }n\text{ is even} \\ \frac{1}{n^2}&\text{if }n\text{ is odd} \end{cases}\] it holds that \(\sum_{n=1}^\infty (-1)^n a_n = \infty\) .