impera Open Impera

AP Calculus BC · Infinite sequences and series

Alternating series and error bounds

1The alternating series test

An alternating series has terms that switch sign: $\sum (-1)^{n+1}b_n = b_1 - b_2 + b_3 - b_4 + \cdots$ with $b_n > 0$.

Alternating series test: the series converges if

  1. $b_{n+1} \le b_n$ for all $n$ (the sizes are decreasing), and
  2. $\lim_{n \to \infty} b_n = 0$.
Worked example

the alternating harmonic series $1 - \frac{1}{2} + \frac{1}{3} - \frac{1}{4} + \cdots$

  1. $b_n = \frac{1}{n}$ is decreasing and tends to 0.
  2. So the series converges (its sum is $\ln 2$), even though $\sum\frac{1}{n}$ diverges.

Partial sums of 1 − 1/2 + 1/3 − ⋯ zigzag in toward ln 2

Check yourself

Does Σ (−1)ⁿ n/(n + 1) converge?

  • Yes, to 1/2

  • Yes, by the alternating series test

  • No: its terms do not tend to 0

  • Yes, it is geometric

Show the answer

No: its terms do not tend to 0

n/(n + 1) → 1, so the nth-term test applies.

2Absolute and conditional convergence

  • $\sum a_n$ converges absolutely if $\sum |a_n|$ converges. Absolute convergence implies convergence.
  • $\sum a_n$ converges conditionally if it converges but $\sum |a_n|$ diverges.

Examples:

  • $\sum\frac{(-1)^n}{n^2}$: $\sum\frac{1}{n^2}$ converges, so absolutely convergent.
  • $\sum\frac{(-1)^{n+1}}{n}$: converges by the alternating series test, but $\sum\frac{1}{n}$ diverges, so conditionally convergent.
  • $\sum\frac{(-1)^n}{\sqrt{n}}$: conditionally convergent ($p = \frac{1}{2}$).
Check yourself

Σ (−1)ⁿ/n³ is:

  • Not alternating

  • Conditionally convergent

  • Absolutely convergent

  • Divergent

Show the answer

Absolutely convergent

Σ 1/n³ converges.

3The alternating series error bound

If an alternating series satisfies the test, stopping after $N$ terms leaves an error no larger than the first omitted term:

$$|S - S_N| \le b_{N+1}$$

Also, the true sum lies between any two consecutive partial sums, and the sign of the error matches the sign of the first omitted term.

Worked example

estimate $S = \sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^3}$ using 3 terms.

  1. $S_3 = 1 - \frac{1}{8} + \frac{1}{27} \approx 0.9120$.
  2. Error bound: $|S - S_3| \le b_4 = \frac{1}{64} \approx 0.0156$.
  3. The first omitted term $-\frac{1}{64}$ is negative, so $S_3$ is an overestimate.
Worked example

how many terms of $\sum\frac{(-1)^{n+1}}{n^2}$ guarantee an error below $0.001$?

  1. Need $b_{N+1} = \frac{1}{(N + 1)^2} < 0.001$, so $(N + 1)^2 > 1000$, $N + 1 \ge 32$.
  2. $N = 31$ terms.
Check yourself

Using S₄ for 1 − 1/2 + 1/3 − 1/4 + ⋯, the error bound is:

  • 1/4

  • 1/16

  • 1/5

  • 1/2

Show the answer

1/5

The first omitted term is 1/5.

4Error bounds for Taylor polynomials (preview)

The alternating series bound is often used with Taylor series whose terms alternate, such as $\sin x$ or $\cos x$.

Worked example

approximate $\sin(0.5)$ with $x - \frac{x^3}{6}$.

  1. $0.5 - \frac{0.125}{6} = 0.47917$.
  2. The next term is $\frac{x^5}{120} = \frac{0.03125}{120} \approx 0.00026$.
  3. So the error is less than $0.00026$. (True value: $0.479426$.)

For non-alternating series you use the Lagrange error bound instead (see Taylor polynomials).

Check yourself

Approximating cos(0.2) by 1 − x²/2, the alternating error bound is:

  • (0.2)³/6

  • 0.2

  • (0.2)²/2

  • (0.2)⁴/24

Show the answer

(0.2)⁴/24

The next term is x⁴/4!.

5Going deeper: checking the conditions, bounding the error and choosing the number of terms

Alternating series test: $\sum(-1)^na_n$ (with $a_n > 0$) converges if

  1. the terms $a_n$ are decreasing (eventually), and
  2. $\lim_{n \to \infty} a_n = 0$.

Both conditions must be stated.

Worked example

$\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n}$.

  1. $\frac{1}{n}$ decreases.
  2. $\frac{1}{n} \to 0$.
  3. Converges (to ln 2), though $\sum\frac{1}{n}$ diverges: conditional convergence.

Alternating series error bound: if a series satisfies the test and S is its sum, the error in using the n-th partial sum satisfies

$$|S - S_n| \le a_{n+1}$$

The error is no larger than the first omitted term, and has the same sign as that term.

Worked example

approximate $S = \sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^2}$ with four terms.

  1. $S_4 = 1 - \frac{1}{4} + \frac{1}{9} - \frac{1}{16} = 0.7986$.
  2. First omitted term: $+\frac{1}{25} = 0.04$.
  3. $|S - S_4| \le 0.04$.
  4. The omitted term is positive, so $S_4$ is an underestimate: 0.7986 < S < 0.8386. (The true sum is $\frac{\pi^2}{12} = 0.8225$.)

Worked example (how many terms?): how many terms of that series guarantee an error below 0.001?

  1. Need $a_{n+1} = \frac{1}{(n + 1)^2} < 0.001$.
  2. $(n + 1)^2 > 1000$, so n + 1 ≥ 32.
  3. 31 terms.

Worked example (with a Taylor series): estimate $\int_0^1 e^{-x^2}\,dx$ using $e^{-x^2} = 1 - x^2 + \frac{x^4}{2} - \frac{x^6}{6} + \dots$

  1. Integrate term by term: $1 - \frac{1}{3} + \frac{1}{10} - \frac{1}{42} + \dots$
  2. Three terms: 0.7667.
  3. Error at most $\frac{1}{42} = 0.0238$; since the next term is negative, 0.7667 is an overestimate.

Over or under? Partial sums of an alternating series lie alternately above and below the sum.

  • If the last term used is positive, the partial sum is an overestimate.
  • If the last term used is negative, an underestimate.

Absolute or conditional? After showing convergence, test $\sum|a_n|$.

  • $\sum\frac{(-1)^n}{n^2}$: $\sum\frac{1}{n^2}$ converges: absolutely convergent.
  • $\sum\frac{(-1)^n}{\sqrt{n}}$: converges by the alternating series test; $\sum\frac{1}{\sqrt{n}}$ diverges: conditionally convergent.
  • $\sum\frac{(-1)^nn}{n + 1}$: terms do not tend to 0: diverges (n-th term test).

When the bound applies: only to series that are alternating with decreasing terms tending to zero. For other series, use the Lagrange error bound or an integral estimate.

Justification wording: "The series is alternating with terms decreasing in absolute value to 0, so by the alternating series error bound, the error is at most the absolute value of the first omitted term, which is …"

Common mistakes

  • Using the last included term as the bound.
  • Checking only that the terms tend to 0.
  • Applying the bound to a non-alternating series.
  • Calling a conditionally convergent series divergent.
  • Off-by-one errors when counting the number of terms needed.
Check yourself

An alternating series satisfying the alternating series test is approximated by its first five terms. The error is at most:

  • The sum of the first five terms

  • Zero

  • The absolute value of the fifth term

  • The absolute value of the sixth term

Show the answer

The absolute value of the sixth term

The error is bounded by the first omitted term.

6For top marks

  • State both conditions of the alternating series test (decreasing and limit 0).
  • To classify, test $\sum|a_n|$ first: if it converges, the answer is "absolutely".
  • For the error bound, name it: "by the alternating series error bound, $|S - S_N| \le \dots$".
  • Make sure the terms are decreasing in size from the start of the bound.
Example

"The series alternates, $\frac{1}{\sqrt{n}}$ decreases to 0, so it converges; but $\sum\frac{1}{\sqrt{n}}$ is a p-series with $p = \frac{1}{2} \le 1$, so the convergence is conditional."

Check yourself

To show Σ (−1)ⁿ bₙ converges by the alternating series test, you must show:

  • bₙ decreases and bₙ → 0

  • Σ bₙ converges

  • bₙ is positive only

  • bₙ → 0 only

Show the answer

bₙ decreases and bₙ → 0

Both conditions.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera