Skip to content
Family Table Math

Alternating Series Error Bound

When a series converges, you usually can’t add up infinitely many terms, so you stop after a few and use the partial sum as an estimate. The natural question is: how good is that estimate? For alternating series there is a beautifully simple answer: the error is no bigger than the first term you left out. This is how calculators and AP questions justify statements like “this estimate is within 0.0010.001 of the true value.”

Suppose an alternating series

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

meets the conditions of the alternating series test: the ana_n are positive, decreasing, and lim⁡n→∞an=0\displaystyle\lim_{n \to \infty} a_n = 0. Let SnS_n be the nnth partial sum (the sum of the first nn terms).

The error (or remainder) is the difference between the true sum and your estimate, S−SnS - S_n. The alternating series error bound says

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

In words: the size of the error is at most the absolute value of the first omitted term.

Each new term overshoots in the opposite direction, but by less than the term before. So the partial sums bounce back and forth around SS, closing in, and SS is always trapped between two consecutive partial sums SnS_n and Sn+1S_{n+1}. The distance from SnS_n to Sn+1S_{n+1} is exactly an+1a_{n+1}, so SS can’t be farther than that from SnS_n.

Number line from 0.78 to 0.86. The partial sums S4, about 0.799, and S5, about 0.839, are 0.04 apart, the size of the first omitted term. The sum S, about 0.822, lies between them, so the actual error of S4 is about 0.024, less than 0.04. 0.78 0.79 0.80 0.81 0.82 0.83 0.84 0.85 0.86 first omitted term a5 = 1/25 = 0.04 actual error ≈ 0.024 S4 ≈ 0.799 S5 ≈ 0.839 S ≈ 0.822
The sum SS of ∑(−1)n+1/n2\sum (-1)^{n+1}/n^2 is trapped between S4S_4 and S5S_5, so the error of S4S_4 is less than the gap a5=0.04a_5 = 0.04.

Because SS lies between SnS_n and Sn+1S_{n+1}, the first omitted term also tells you which side of SS your estimate is on:

First omitted term isThen SnS_n isBecause
positivean underestimate (Sn<SS_n \lt S)adding it would move the sum up toward SS
negativean overestimate (Sn>SS_n \gt S)adding it would move the sum down toward SS

To guarantee an error less than some tolerance EE, find the first nn with an+1<Ea_{n+1} \lt E. Then SnS_n (the first nn terms) is close enough. Be careful about whether the series starts at n=0n = 0 or n=1n = 1 when you count terms.

Many Taylor polynomials, such as those for sin⁡x\sin x, cos⁡x\cos x and e−xe^{-x}, give alternating series when you plug in a number. Then the error of the Taylor polynomial is at most the first omitted nonzero term. (For series that aren’t alternating, use the Lagrange error bound instead.)

On the AP exam, say why the bound applies: “The series is alternating, the terms decrease in absolute value, and they approach 00, so by the alternating series error bound, the error is at most the absolute value of the first omitted term, which is …”

Example 1: Bounding the error of a partial sum

Section titled “Example 1: Bounding the error of a partial sum”

Estimate S=∑n=1∞(−1)n+1n2S = \displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n^2} using the first four terms. Bound the error, and say whether the estimate is too big or too small.

Solution. The terms an=1n2a_n = \dfrac{1}{n^2} are positive, decreasing, and approach 00, so the alternating series error bound applies.

S4=1−14+19−116=115144≈0.799S_4 = 1 - \frac{1}{4} + \frac{1}{9} - \frac{1}{16} = \frac{115}{144} \approx 0.799

The first omitted term is +125+\dfrac{1}{25}, so

∣S−S4∣≤125=0.04|S - S_4| \le \frac{1}{25} = 0.04

The first omitted term is positive, so S4S_4 is an underestimate. (Check: the exact sum is π212≈0.822\dfrac{\pi^2}{12} \approx 0.822. The actual error is about 0.0240.024, which is less than 0.040.04, and S4S_4 is indeed too small.)

How many terms of ∑n=1∞(−1)n+1n3\displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n^3} are needed to guarantee the partial sum is within 0.00050.0005 of the true sum?

Solution. The terms 1n3\dfrac{1}{n^3} are positive, decreasing, and approach 00. If you add nn terms, the error is at most an+1=1(n+1)3a_{n+1} = \dfrac{1}{(n+1)^3}. You need

1(n+1)3<0.0005⇒(n+1)3>2000\frac{1}{(n+1)^3} \lt 0.0005 \quad\Rightarrow\quad (n+1)^3 \gt 2000

Since 123=172812^3 = 1728 and 133=219713^3 = 2197, you need n+1≥13n + 1 \ge 13, so n≥12n \ge 12. Twelve terms are enough.

Use 1−x22!+x44!1 - \dfrac{x^2}{2!} + \dfrac{x^4}{4!} to approximate cos⁡0.5\cos 0.5 (radians). Show the error is less than 0.00010.0001, and say whether the approximation is too big or too small.

Solution. The Maclaurin series for cosine at x=0.5x = 0.5 is

cos⁡0.5=1−0.522!+0.544!−0.566!+⋯\cos 0.5 = 1 - \frac{0.5^2}{2!} + \frac{0.5^4}{4!} - \frac{0.5^6}{6!} + \cdots

This is alternating, and its terms decrease in absolute value toward 00. The approximation is

1−0.125+0.0026042=0.8776042≈0.8781 - 0.125 + 0.0026042 = 0.8776042 \approx 0.878

The first omitted term is −0.566!=−0.015625720-\dfrac{0.5^6}{6!} = -\dfrac{0.015625}{720}, so

∣error∣≤0.015625720≈0.0000217<0.0001|\text{error}| \le \frac{0.015625}{720} \approx 0.0000217 \lt 0.0001

The first omitted term is negative, so the approximation is an overestimate. (Check: cos⁡0.5≈0.8775826\cos 0.5 \approx 0.8775826, slightly less.)

The Maclaurin series for a function ff is

f(x)=1−x3+x25−x37+⋯+(−1)nxn2n+1+⋯f(x) = 1 - \frac{x}{3} + \frac{x^2}{5} - \frac{x^3}{7} + \cdots + \frac{(-1)^n x^n}{2n + 1} + \cdots

Use the first three terms to approximate f(12)f\left(\tfrac{1}{2}\right), and show the approximation differs from f(12)f\left(\tfrac{1}{2}\right) by less than 150\tfrac{1}{50}.

Solution. At x=12x = \tfrac{1}{2}:

f(12)≈1−16+120=5360≈0.883f\left(\tfrac{1}{2}\right) \approx 1 - \frac{1}{6} + \frac{1}{20} = \frac{53}{60} \approx 0.883

The series at x=12x = \tfrac{1}{2} is alternating, and its terms (1/2)n2n+1\dfrac{(1/2)^n}{2n + 1} decrease (both the numerator shrinks and the denominator grows) and approach 00. So the error is at most the first omitted term:

∣(1/2)37∣=156<150\left|\frac{(1/2)^3}{7}\right| = \frac{1}{56} \lt \frac{1}{50}

Using the last term you kept instead of the first one you left out. The bound is the next term, an+1a_{n+1}. If you add terms through 116\dfrac{1}{16}, the bound is 125\dfrac{1}{25}, not 116\dfrac{1}{16}.

Applying the bound when the conditions fail. The error bound needs an alternating series whose terms decrease in absolute value toward 00. For a series with all positive terms (like e0.3e^{0.3}‘s Maclaurin series), it does not apply; use the Lagrange error bound.

Skipping zero terms incorrectly in Taylor polynomials. For cos⁡x\cos x, after the x4x^4 term the next nonzero term is the x6x^6 term. The “first omitted term” means the first omitted nonzero term.

Miscounting terms. If a series starts at n=0n = 0, the first four terms are n=0,1,2,3n = 0, 1, 2, 3, and the first omitted term is the n=4n = 4 term. Write the terms out if you’re unsure.

Saying the error equals the bound. The bound is a guarantee: the error is at most an+1a_{n+1}. In Example 1, the bound is 0.040.04 but the actual error is about 0.0240.024.

Getting the over/under rule backwards. Ask: “Would adding the next term push my estimate up or down?” If up, the estimate is currently too small (an underestimate).

1. (Warm-up) Find S5S_5 for ∑n=1∞(−1)n+1n\displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n} and give an upper bound for the error.

SolutionS5=1−12+13−14+15=4760≈0.783S_5 = 1 - \frac{1}{2} + \frac{1}{3} - \frac{1}{4} + \frac{1}{5} = \frac{47}{60} \approx 0.783

The terms 1n\dfrac{1}{n} are positive, decreasing, and approach 00, so ∣S−S5∣≤a6=16≈0.167|S - S_5| \le a_6 = \dfrac{1}{6} \approx 0.167. (The true sum is ln⁡2≈0.693\ln 2 \approx 0.693.)

2. (Warm-up) Is S3S_3 an overestimate or an underestimate of ∑n=1∞(−1)n+1n\displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{\sqrt{n}}? Give the error bound.

Solution

S3=1−12+13≈0.870S_3 = 1 - \dfrac{1}{\sqrt{2}} + \dfrac{1}{\sqrt{3}} \approx 0.870. The terms 1n\dfrac{1}{\sqrt{n}} decrease toward 00, so the bound applies. The first omitted term is −14=−12-\dfrac{1}{\sqrt{4}} = -\dfrac{1}{2}, which is negative, so S3S_3 is an overestimate, with error at most 12\dfrac{1}{2}.

3. (Warm-up) Use the terms through n=4n = 4 of ∑n=0∞(−1)nn!\displaystyle\sum_{n=0}^{\infty} \frac{(-1)^n}{n!} to estimate the sum. Bound the error.

Solution1−1+12−16+124=924=0.3751 - 1 + \frac{1}{2} - \frac{1}{6} + \frac{1}{24} = \frac{9}{24} = 0.375

The terms 1n!\dfrac{1}{n!} are decreasing (from n=1n = 1 on) and approach 00. The first omitted term is the n=5n = 5 term, −1120-\dfrac{1}{120}, so the error is at most 1120≈0.008\dfrac{1}{120} \approx 0.008, and the estimate is an overestimate. (The sum is e−1≈0.368e^{-1} \approx 0.368.)

4. (Core) The series 1−13+15−17+⋯=∑n=1∞(−1)n+12n−11 - \dfrac{1}{3} + \dfrac{1}{5} - \dfrac{1}{7} + \cdots = \displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{2n - 1} converges to π4\dfrac{\pi}{4}. How many terms guarantee an error less than 0.010.01?

Solution

After nn terms, the error is at most an+1=12(n+1)−1=12n+1a_{n+1} = \dfrac{1}{2(n + 1) - 1} = \dfrac{1}{2n + 1}.

12n+1<0.01⇒2n+1>100⇒n>49.5\frac{1}{2n + 1} \lt 0.01 \quad\Rightarrow\quad 2n + 1 \gt 100 \quad\Rightarrow\quad n \gt 49.5

So 5050 terms are needed. (This series converges very slowly!)

5. (Core) Approximate sin⁡0.2\sin 0.2 (radians) using x−x33!x - \dfrac{x^3}{3!}. Give an error bound and say whether the approximation is too big or too small.

Solution0.2−0.236=0.2−0.0013333=0.1986667≈0.1990.2 - \frac{0.2^3}{6} = 0.2 - 0.0013333 = 0.1986667 \approx 0.199

The series for sin⁡0.2\sin 0.2 is alternating with terms decreasing to 00. The first omitted term is +0.255!=0.00032120≈0.0000027+\dfrac{0.2^5}{5!} = \dfrac{0.00032}{120} \approx 0.0000027. So the error is at most about 0.00000270.0000027, and since that term is positive, the approximation is an underestimate. (Check: sin⁡0.2≈0.1986693\sin 0.2 \approx 0.1986693.)

6. (Core) Use the Maclaurin series e−x=1−x+x22!−x33!+⋯e^{-x} = 1 - x + \dfrac{x^2}{2!} - \dfrac{x^3}{3!} + \cdots with three terms to estimate e−0.3e^{-0.3}. Show that the error is less than 0.0050.005.

Solutione−0.3≈1−0.3+0.092=0.745e^{-0.3} \approx 1 - 0.3 + \frac{0.09}{2} = 0.745

At x=0.3x = 0.3 the series is alternating, and the terms 0.3nn!\dfrac{0.3^n}{n!} decrease toward 00. The first omitted term is −0.333!=−0.0045-\dfrac{0.3^3}{3!} = -0.0045, so

∣error∣≤0.0045<0.005|\text{error}| \le 0.0045 \lt 0.005

(Check: e−0.3≈0.7408e^{-0.3} \approx 0.7408; the actual error is about 0.00420.0042.)

7. (Core) A function has Maclaurin series f(x)=∑n=1∞(−1)n+1xnn⋅2nf(x) = \displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1} x^n}{n \cdot 2^n}.

  • (a) Use the first three terms to approximate f(1)f(1).
  • (b) Show that this approximation differs from f(1)f(1) by less than 0.020.02.
  • (c) Is the approximation too big or too small?
Solution

(a) At x=1x = 1, the terms are (−1)n+1n⋅2n\dfrac{(-1)^{n+1}}{n \cdot 2^n}:

f(1)≈12−18+124=512≈0.417f(1) \approx \frac{1}{2} - \frac{1}{8} + \frac{1}{24} = \frac{5}{12} \approx 0.417

(b) The series is alternating, and n⋅2nn \cdot 2^n increases, so the terms decrease toward 00. The first omitted term is −14⋅16=−164-\dfrac{1}{4 \cdot 16} = -\dfrac{1}{64}, so the error is at most 164≈0.0156<0.02\dfrac{1}{64} \approx 0.0156 \lt 0.02.

(c) The first omitted term is negative, so 512\dfrac{5}{12} is too big (an overestimate). (In fact f(x)=ln⁡(1+x2)f(x) = \ln\left(1 + \tfrac{x}{2}\right), and f(1)=ln⁡1.5≈0.405f(1) = \ln 1.5 \approx 0.405.)

8. (Challenge) What is the smallest degree of a Maclaurin polynomial for cos⁡x\cos x that is guaranteed by the alternating series error bound to approximate cos⁡1\cos 1 within 0.00010.0001? Give the approximation.

Solutioncos⁡1=1−12!+14!−16!+18!−⋯\cos 1 = 1 - \frac{1}{2!} + \frac{1}{4!} - \frac{1}{6!} + \frac{1}{8!} - \cdots

The terms 1(2k)!\dfrac{1}{(2k)!} decrease to 00. Look for the first one below 0.00010.0001: 16!=1720≈0.00139\dfrac{1}{6!} = \dfrac{1}{720} \approx 0.00139 is too big, but 18!=140320≈0.0000248\dfrac{1}{8!} = \dfrac{1}{40320} \approx 0.0000248 works. So stop just before the x8x^8 term: use the polynomial through x6x^6, which has degree 6.

cos⁡1≈1−12+124−1720≈0.540278\cos 1 \approx 1 - \frac{1}{2} + \frac{1}{24} - \frac{1}{720} \approx 0.540278

(Check: cos⁡1≈0.540302\cos 1 \approx 0.540302.)

9. (Challenge) Consider S=∑n=1∞(−1)n+1n3nS = \displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1} n}{3^n}.

  • (a) Show that the terms an=n3na_n = \dfrac{n}{3^n} are decreasing.
  • (b) Find S4S_4 and use the error bound to give an interval that must contain SS.
Solution

(a) Compare consecutive terms:

an+1an=n+13n+1⋅3nn=n+13n≤23<1for n≥1\frac{a_{n+1}}{a_n} = \frac{n + 1}{3^{n+1}} \cdot \frac{3^n}{n} = \frac{n + 1}{3n} \le \frac{2}{3} \lt 1 \quad \text{for } n \ge 1

so each term is smaller than the one before. Also an→0a_n \to 0, so the series converges by the alternating series test.

(b)

S4=13−29+327−481=1481≈0.1728S_4 = \frac{1}{3} - \frac{2}{9} + \frac{3}{27} - \frac{4}{81} = \frac{14}{81} \approx 0.1728

The first omitted term is +5243≈0.0206+\dfrac{5}{243} \approx 0.0206. SS lies between S4S_4 and S5=S4+5243=47243S_5 = S_4 + \dfrac{5}{243} = \dfrac{47}{243}:

0.1728<S<0.19340.1728 \lt S \lt 0.1934

(The exact sum is 316=0.1875\dfrac{3}{16} = 0.1875, which is inside.)