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
- Grandi's series:
- The alternating harmonic series:
- The Leibniz series for pi:
- Geometric series with negative common ratio:
Notation
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.