In mathematics, an alternating series is an infinite series whose terms alternate between positive and negative:
Any two adjacent terms in an alternating series must have opposite signs.
Examples
edit
- Grandi's series:
This series diverges, though Leibniz and others have argued that the proper value of the sum is 1⁄2.
- The alternating harmonic series:
This series converges to ln 2 ≈ 0.69314718. The sum of just the positive terms of this series is infinite, as is the sum of just the negative terms. (Such a series is called conditionally convergent.)
- The Leibniz series for pi:
- Geometric series with negative common ratio:
This category includes divergent series such as 1 − 2 + 4 − 8 + · · ·, and convergent series such as 1/2 − 1/4 + 1/8 − 1/16 + · · ·.
Notation
edit
When written as a summation, alternating series are often expressed with a (−1)n in the formula, since this alternates between −1 and +1:
For example:
When using a (−1)n, the terms with even values of n are positive, and the terms with odd values of n are negative. If the opposite signs are required, a (−1)n−1 can be used instead:
The alternating series test (or Leibniz test, named after Gottfried Leibniz) provides a simple criterion for proving the convergence of an alternating series. In many cases, an alternating series converges even though the corresponding series of positive numbers would diverge—such a series is called conditionally convergent.