Educerie

Educerie · AP · Calculus AB and BC

Unit 10 Infinite Sequences and Series · 10.10 Alternating Series Error Bound

BC only. This topic is on the AP Calculus BC exam and not on AB.

Big ideas: LIM (Limits). When you add up only some of the terms of a convergent alternating series, you can say how far you are from the true sum. The answer is the size of the first term you left out.

The question this unit answers: When does an endless sum settle on a number, and how do we tell, and how do we use it to approximate?

Where it is examined: Section I multiple choice: the error bound for a given partial sum, or how many terms are needed for a given accuracy. Section II free response (series question 6): "use the first three nonzero terms to approximate ... and show that the error is less than 0.01", where the alternating series error bound is the expected tool, and the reader checks that you showed the series is alternating with decreasing terms.


AP Calculus AB and BC 10.10

Alternating Series Error Bound

When does an endless sum settle on a number, and how do we tell, and how do we use it to approximate?

What you will learn

  • Understand that the error is at most the size of the first omitted term.
  • Know the bound needs the alternating series conditions.
  • Understand that the true sum lies between consecutive partial sums.

You must be able to

  1. State the conditions and the first omitted term.
  2. Find how many terms guarantee a tolerance.
  3. Say whether a partial sum is an over- or underestimate.
  4. Write at most, never equal to.
  5. Give an interval for the sum.

1The bound

Alternating series error bound. If ∑an\sum a_n is an alternating series that converges by the alternating series test, with sum SS, and SnS_n is the sum of its first nn terms, then

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

Here an+1a_{n+1} is the first term not included in SnS_n. The sign of the error is also known: if the last term you included is positive, SnS_n is too big, and if the last term included is negative, SnS_n is too small.

Both parts of the alternating series test matter. The bound is only valid when ∣an∣\lvert a_n\rvert decreases to 0 and the signs alternate. A series that fails that test has no such bound.

2Using it

Example (invented): ∑n=1∞(−1)n+1n2=1−14+19−116+⋯\displaystyle \sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n^2} = 1 - \frac14 + \frac19 - \frac1{16} + \cdots.

The terms 1n2\tfrac{1}{n^2} decrease to 0, so the series converges by the alternating series test. Take the first four terms:

S4=1−14+19−116≈0.7986. S_4 = 1 - \tfrac14 + \tfrac19 - \tfrac1{16} \approx 0.7986.

The first omitted term is a5=125a_5 = \tfrac{1}{25}, so ∣S−S4∣≤125=0.04\lvert S - S_4\rvert \le \tfrac{1}{25} = 0.04.

The true sum is π212≈0.8225\tfrac{\pi^2}{12} \approx 0.8225, so the actual error is about 0.024, which is within the bound. The bound is not the error, and it does not claim to be.

The last term of S4S_4 is negative, so S4S_4 is too small. Check: 0.7986<0.82250.7986 < 0.8225. The next partial sum is S5≈0.8386S_5 \approx 0.8386, which is too big, and the true sum lies between S4S_4 and S5S_5: 0.7986≤S≤0.83860.7986 \le S \le 0.8386.

3Another example, with the exact terms

Example: the alternating harmonic series ∑n=1∞(−1)n+1n\displaystyle \sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n}, with the first ten terms.

S10≈0.6456S_{10} \approx 0.6456. The first omitted term has size 111≈0.0909\tfrac{1}{11} \approx 0.0909, so the error is at most 0.091. The true sum is ln⁡2≈0.6931\ln 2 \approx 0.6931, and the actual error is about 0.0475, comfortably within the bound.

Notice how weak the bound is for this series. Ten terms leave an error of up to 0.09, so the alternating harmonic series is a poor way to calculate ln⁡2\ln 2. The faster the terms shrink, the better the approximation.

Example: ∑n=0∞(−1)nn!=1−1+12−16+124−⋯\displaystyle \sum_{n=0}^{\infty} \frac{(-1)^n}{n!} = 1 - 1 + \tfrac12 - \tfrac16 + \tfrac1{24} - \cdots.

The first four terms give S4=1−1+12−16=13S_4 = 1 - 1 + \tfrac12 - \tfrac16 = \tfrac13. The first omitted term is 124\tfrac{1}{24}, so the error is at most 124≈0.042\tfrac{1}{24} \approx 0.042. The true sum is 1e≈0.3679\tfrac{1}{e} \approx 0.3679, so the error is about 0.035. Because this series starts at n=0n = 0, "the first four terms" means n=0,1,2,3n = 0, 1, 2, 3, and the next term is the one with n=4n = 4.

4How many terms do you need?

To guarantee an accuracy, find the first term whose size is smaller than the tolerance. That term is the first one you may leave out.

Example (invented): how many terms of ∑n=1∞(−1)n+1n2\displaystyle \sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n^2} guarantee an error less than 0.001?

You need 1(n+1)2<0.001\dfrac{1}{(n+1)^2} < 0.001, so (n+1)2>1000(n+1)^2 > 1000 and n+1>31.6n + 1 > 31.6, which means n+1≥32n + 1 \ge 32 and n≥31n \ge 31. Check: 1322≈0.000977<0.001\tfrac{1}{32^2} \approx 0.000977 < 0.001, but 1312≈0.00104>0.001\tfrac{1}{31^2} \approx 0.00104 > 0.001. So n=31n = 31 terms are enough, and 30 are not guaranteed to be enough.

Example: how many terms of ∑n=1∞(−1)n+1n3\displaystyle \sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n^3} guarantee an error less than 0.01?

You need 1(n+1)3<0.01\dfrac{1}{(n+1)^3} < 0.01, so (n+1)3>100(n+1)^3 > 100 and n+1>4.64n + 1 > 4.64. So n+1≥5n + 1 \ge 5 and n=4n = 4. Check: S4=1−18+127−164≈0.8964S_4 = 1 - \tfrac18 + \tfrac1{27} - \tfrac1{64} \approx 0.8964, with error at most 1125=0.008<0.01\tfrac{1}{125} = 0.008 < 0.01. The true sum is about 0.9015, so the actual error is about 0.005.

The pattern to follow: write the inequality for the first omitted term, solve it, then check the neighboring values.

5What a justification looks like

An exam answer has three parts.

  1. Conditions. "The series is alternating, the terms decrease in size, and lim⁡∣an∣=0\lim\lvert a_n\rvert = 0, so the alternating series test applies."
  2. The bound. "So ∣S−Sn∣≤∣an+1∣\lvert S - S_n\rvert \le \lvert a_{n+1}\rvert."
  3. The value. "Here ∣an+1∣=⋯<0.01\lvert a_{n+1}\rvert = \dots < 0.01."

The most common loss is skipping part 1. The bound is a theorem with a hypothesis, and the reader looks for the hypothesis.

6The bound is a ceiling

The bound is one-sided in meaning: it says the error is at most that large. Wording matters.

  • "The error is at most 0.04." Correct.
  • "The error is 0.04." Wrong, and the exam penalizes it.
  • "The error is less than 125\tfrac{1}{25}." Correct, and stronger than needed.

If an approximation is required "within 0.01", you show the bound is less than 0.01. You do not need to find the exact error, and you can't.

7What the bound says about the sum

Because the true sum lies between two consecutive partial sums, the bound can be turned into an interval.

Example: for ∑n=1∞(−1)n+1n3\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^3}, S4≈0.8964S_4 \approx 0.8964 and the omitted term is 1125=0.008\tfrac{1}{125} = 0.008. So

0.8964−0.008≤S≤0.8964+0.008,that is0.8884≤S≤0.9044. 0.8964 - 0.008 \le S \le 0.8964 + 0.008, \quad\text{that is}\quad 0.8884 \le S \le 0.9044.

The true sum, about 0.9015, is in this interval. Because the last term of S4S_4 is negative, S4S_4 is too small, and a sharper statement is 0.8964≤S≤0.90440.8964 \le S \le 0.9044. The exam does not ask for the sharper form, but it is worth knowing: the interval from SnS_n to Sn+1S_{n+1} always contains SS.

When a question asks "is the approximation an overestimate or an underestimate?", look at the sign of the last term you included. A positive last term means the partial sum is too big. A negative last term means it is too small. Say that, and say why: the terms alternate and decrease, so the next term moves the total back towards the sum without passing it.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.