A6 · Lesson 28 · Alternating series
Overshooting your way to the answer
Evaluate a square wave's Fourier series at the middle of a pulse and you get , which adds up to . The signs alternate, so each partial sum overshoots, then undershoots, closing in from both sides. That back-and-forth gives you something rare: an exact, easy bound on the error after any number of terms. Calculators and microcontrollers that compute sines and cosines rely on exactly this bound to know when to stop.
- The staircase is the partial sums of . The flat line is the true sum, .
- The partial sums land alternately above and below the line. Each one is closer than the last.
- The readout compares the actual error after terms with the bound, the size of the next term. Is the bound ever wrong?
Predict
You add the first 3 terms of (the series for ). What's the most your answer can be off by?
, the size of the first term you left out. Three terms give ; the true , off by 0.00136, inside the bound. For an alternating series with shrinking terms, the error is always smaller than the next term.
Name it
The alternating series test
A series with converges if
- the terms shrink: , and
- they approach zero: .
The partial sums step back and forth across the limit with ever-shorter steps, so they must close in on it.
The error bound
If you stop after terms, the error is at most the next term:
and the true sum lies between and . This is one of the few places in mathematics where the error of an infinite process is this easy to bound.
Absolute and conditional convergence
A series converges absolutely if converges; then it converges whatever the signs. A series that converges only because of its alternating signs converges conditionally. The alternating harmonic series is the standard example: diverges.
Conditionally convergent series are fragile. Reorder their terms and you can make them add up to any number you like, so never rearrange one. Absolutely convergent series can be rearranged freely.
Worked example
How many terms of guarantee an error below 0.001?
Show the solution
- Find the first term left out. The th term is .
- Make it small enough. giving terms.
- Interpret. That's slow: the terms shrink like . Series whose terms shrink like factorials, as in the cosine example, need only a handful.
Answer 500 terms.
Worked example
Estimate from with four terms, and bound the error.
Show the solution
- Add four terms. With :
- Bound the error. The next term is so lies between 0.401042 and 0.407292.
- Check. The true value is 0.405465, inside that range.
Answer , and the true value lies between 0.401042 and 0.407292.
Worked example
Estimate (exactly ) with five terms, and bound the error.
Show the solution
- Add five terms.
- Bound the error. The alternating series bound says the error is less than the next term:
- Compare with the true error. The true error is 0.0161. The partial sum overshoots because the last term added was positive.
Answer five terms give 0.8386, with an error bound of 0.0278; the true error is 0.0161.
Check
You add the first 10 terms of . What is the alternating series bound on the error?
Check
How many terms of guarantee an error below 0.01?
Check
What is ?
Check
You estimate with . What is the alternating series bound on the error?
Check
How does converge?
Check
How does converge?
Check
Bound the error of after 5 terms.
(a)
What is the alternating-series bound?
(b)
How many terms guarantee an error below 0.0001?
Check
Use the alternating series for to bound an error.
Step 1
Write the first three terms of .
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
For the series alternates with shrinking terms. What bounds the error of those three terms?
Explain why
Why is the error of an alternating series smaller than the first term you leave out?
After you stop, the rest of the series is . Group it in pairs: . Each pair is positive because the terms shrink, so the rest is positive. Group it the other way, , and each bracket is positive, so the rest is less than . The leftover is between 0 and .
Practice
Keep practicing
8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.