Math Core

Lesson 6.7 · Infinite Sequences and Series

Alternating series

So far every test has required positive terms. But many important series flip sign with every term, and the cancellation between positive and negative terms can make a series converge even when the positive version would diverge. Alternating series also come with a remarkably simple way to measure how accurate a partial sum is.

Alternating series

An alternating series has terms that switch sign every time. It is usually written as

∑n=1∞(−1)n+1an=a1−a2+a3−a4+⋯(an>0),\sum_{n=1}^{\infty} (-1)^{n+1} a_n = a_1 - a_2 + a_3 - a_4 + \cdots \qquad (a_n > 0),

or with (−1)n(-1)^n if the first term is negative. The most famous example is the alternating harmonic series,

1−12+13−14+15−⋯ .1 - \frac{1}{2} + \frac{1}{3} - \frac{1}{4} + \frac{1}{5} - \cdots.

Why the partial sums settle down

Follow the partial sums of the alternating harmonic series: S1=1S_1 = 1, then step down by 12\frac12 to S2=0.5S_2 = 0.5, up by 13\frac13 to S3≈0.833S_3 \approx 0.833, down by 14\frac14 to S4≈0.583S_4 \approx 0.583, and so on. Each step is in the opposite direction from the last and smaller than the last. So the partial sums zigzag back and forth, and the zigzags shrink. If the step sizes shrink to zero, the partial sums squeeze in on a single number. (For this series that number is ln⁡2≈0.693\ln 2 \approx 0.693.)

Partial sums of 1 − 1/2 + 1/3 − ⋯ zigzag above and below the sum ln 2 ≈ 0.693, with the zigzags shrinking.Open in grapher →

Alternating series test

The alternating series ∑(−1)n+1an\displaystyle\sum (-1)^{n+1} a_n (with an>0a_n > 0) converges if both

  1. the terms decrease in size: an+1≤ana_{n+1} \le a_n for all nn (at least eventually), and
  2. lim⁡n→∞an=0\displaystyle\lim_{n\to\infty} a_n = 0.

If condition 2 fails, the series diverges by the nth term test. If condition 1 fails, the alternating series test simply doesn't apply, and you need another method.

The alternating series error bound

Since the partial sums bounce back and forth across the true sum SS, the sum always lies between two consecutive partial sums. So the error after nn terms is less than the size of the next step.

Alternating series error bound

If a series satisfies the conditions of the alternating series test, and SnS_n is the sum of its first nn terms, then

∣S−Sn∣≤an+1,|S - S_n| \le a_{n+1},

the absolute value of the first omitted term. Moreover, the error has the same sign as that first omitted term.

That last sentence tells you whether SnS_n is an overestimate or an underestimate. If the first omitted term is negative, the true sum is less than SnS_n, so SnS_n is an overestimate. If the first omitted term is positive, SnS_n is an underestimate.

Common mistake

On a free-response question, you must verify both conditions before claiming convergence or using the error bound: the terms decrease in absolute value, and they approach 00. Also, the error bound uses the next term an+1a_{n+1}, not the last term you added.

Worked examples

Worked example: Checking the conditions

Determine whether ∑n=1∞(−1)n+1n\displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{\sqrt{n}} converges.

Solution. Here an=1na_n = \dfrac{1}{\sqrt n}.

  1. n+1>n\sqrt{n+1} > \sqrt n, so 1n+1<1n\dfrac{1}{\sqrt{n+1}} < \dfrac{1}{\sqrt n}: the terms decrease.
  2. lim⁡n→∞1n=0\displaystyle\lim_{n\to\infty} \frac{1}{\sqrt n} = 0.

By the alternating series test, the series converges, even though ∑1n\sum \frac{1}{\sqrt n} diverges.

Worked example: When the terms don't shrink to zero

Determine whether ∑n=1∞(−1)n2nn+1\displaystyle\sum_{n=1}^{\infty} (-1)^n \frac{2n}{n + 1} converges.

Solution. The sizes 2nn+1→2\dfrac{2n}{n+1} \to 2, not 00. So the terms (−1)n2nn+1(-1)^n \dfrac{2n}{n+1} do not approach 00, and the series diverges by the nth term test.

Worked example: Bounding the error

Let S=∑n=1∞(−1)n+1n2S = \displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n^2}. Approximate SS with S4S_4, and bound the error. Is S4S_4 too big or too small?

Solution. The terms 1n2\frac{1}{n^2} decrease to 00, so the conditions hold.

S4=1−14+19−116=144−36+16−9144=115144≈0.7986.S_4 = 1 - \frac14 + \frac19 - \frac{1}{16} = \frac{144 - 36 + 16 - 9}{144} = \frac{115}{144} \approx 0.7986.

The first omitted term is +125+\dfrac{1}{25}, so ∣S−S4∣≤125=0.04|S - S_4| \le \dfrac{1}{25} = 0.04. Since the omitted term is positive, SS is bigger than S4S_4: S4S_4 is an underestimate. (In fact S=π212≈0.8225S = \frac{\pi^2}{12} \approx 0.8225.)

Worked example: How many terms are needed?

How many terms of ∑n=1∞(−1)n+1n!\displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n!} guarantee an error less than 0.0010.001?

Solution. The terms 1n!\frac{1}{n!} decrease to 00. We need the first omitted term 1(n+1)!\dfrac{1}{(n+1)!} to be less than 0.0010.001, that is, (n+1)!>1000(n+1)! > 1000. Since 6!=7206! = 720 and 7!=50407! = 5040, we need n+1=7n + 1 = 7, so n=6n = 6 terms.

Tip

A quick way to check that terms decrease: if an=f(n)a_n = f(n), show f′(x)<0f'(x) < 0. For simple expressions like 1n2\frac{1}{n^2} or 1ln⁡n\frac{1}{\ln n}, "the denominator increases" is enough justification.

Practice

Practice 1

Which of the following best describes ∑n=2∞(−1)nln⁡n\displaystyle\sum_{n=2}^{\infty} \frac{(-1)^n}{\ln n}?

Practice 2

Let S=∑n=1∞(−1)n+1n2S = \displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n^2}. Using the alternating series error bound, what is the best upper bound on ∣S−S4∣|S - S_4|?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

What is the smallest number of terms NN of ∑n=1∞(−1)n+1n3\displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n^3} for which the alternating series error bound guarantees ∣S−SN∣<0.001|S - S_N| < 0.001?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

What happens with ∑n=1∞(−1)nnn+1\displaystyle\sum_{n=1}^{\infty} (-1)^n \frac{n}{n + 1}?

Practice 5

Find S3S_3, the sum of the first three terms of ∑n=1∞(−1)n+1n!\displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n!}.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

The series ∑n=1∞(−1)n+1n!\displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n!} has sum SS. For S3=23S_3 = \dfrac23 from the previous problem, which statement is true?

Practice 7

Find the exact sum of the alternating series 12−14+18−116+⋯\dfrac12 - \dfrac14 + \dfrac18 - \dfrac1{16} + \cdots.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.