Back to homeMathematics · AP Calculus BC · Change subject
Start for free
Infinite Series · Convergence of Series

Alternating Series and Error Bound

Practise this section (12)

Suppose you write a program that approximates $\ln 2$ by adding up $1-\tfrac12+\tfrac13-\tfrac14+\cdots$ and then stops. How do you know when you have added enough terms? You don't know the true sum, so you can't just compare to it. For alternating series there is a wonderfully simple answer: the error is never bigger than the first term you skipped.

The Alternating Series Test

An alternating series has terms that switch sign every step. It can be written as

$$\sum_{n=1}^{\infty}(-1)^{n+1}b_n \quad\text{or}\quad \sum_{n=1}^{\infty}(-1)^{n}b_n, \qquad\text{where } b_n>0.$$

The number $b_n$ is the size of the $n$th term. Here is what the partial sums of $1-\tfrac12+\tfrac13-\tfrac14+\cdots$ do:

The partial sums Sₙ of 1 − 1/2 + 1/3 − 1/4 + … jump above and below the dashed line (the sum S). Each jump is shorter than the last, so the zigzag closes in and S is trapped between consecutive sums. S₁ S₂ S₃ Dashed line = the sum S Sn 1 2 3 4 5 6 7 8 n The partial sums Sₙ of 1 − 1/2 + 1/3 − 1/4 + … jump above and below the dashed line (the sum S). Each jump is shorter than the last, so the zigzag closes in and S is trapped between consecutive sums.

Each step goes back the other way, but a little shorter than the step before. The partial sums zigzag, the zigzag gets tighter, and the sum $S$ is trapped in the middle. That is exactly why the test below works.

The "beyond some point" matters. Changing or ignoring finitely many terms never changes whether a series converges. To show $b_n$ is decreasing, you can compare $b_{n+1}$ with $b_n$ directly, or you can let $f(x)=b_x$ and show $f'(x)<0$.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
State the conditions of the alternating series test for $\sum_{n=1}^{\infty}(-1)^{n+1}b_n$. Then verify each condition for $b_n=\frac{1}{n}$ and state the conclusion…

State the conditions of the alternating series test for $\sum_{n=1}^{\infty}(-1)^{n+1}b_n$. Then verify each condition for $b_n=\frac{1}{n}$ and state the conclusion about $\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n}$.

Solve
Practice★☆☆Not started
Does $\sum_{n=1}^{\infty}(-1)^n\frac{n}{n+1}$ converge? Identify which condition of the alternating series test fails, and use the nth-term test to state a correct…

Does $\sum_{n=1}^{\infty}(-1)^n\frac{n}{n+1}$ converge? Identify which condition of the alternating series test fails, and use the nth-term test to state a correct conclusion.

Solve

Absolute and Conditional Convergence

The alternating harmonic series $1-\frac12+\frac13-\cdots$ converges. But if you remove the signs you get the harmonic series $1+\frac12+\frac13+\cdots$, which diverges. So the minus signs are doing real work. We need vocabulary for that.

Why? If the total size of the terms is finite, then letting some of them be negative can only help cancel. So a series with positive terms is never conditionally convergent: it is either absolutely convergent or divergent.

So every series falls into exactly one of three classes. Use this order:

Classifying a series: if Σ|aₙ| converges (p-series, comparison, ratio), it is absolutely convergent; if not, but Σaₙ converges (alternating series test), it is conditionally convergent; if neither, it diverges. Does Σ|an| converge? (p-series, comparison, ratio) yes Absolutely convergent no Does Σan converge? (alternating series test) yes Conditionally convergent no Divergent Classifying a series: if Σ|aₙ| converges (p-series, comparison, ratio), it is absolutely convergent; if not, but Σaₙ converges (alternating series test), it is conditionally convergent; if neither, it diverges.
Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
Classify each series as absolutely convergent, conditionally convergent, or divergent. (a) $\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^2}$ (b)…

Classify each series as absolutely convergent, conditionally convergent, or divergent.

(a) $\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^2}$ (b) $\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{\sqrt n}$

Solve
Practice★★☆Not started
Determine whether $\sum_{n=1}^{\infty}(-1)^n\frac{n}{n^2+1}$ converges absolutely, converges conditionally, or diverges. Show that $b_n=\frac{n}{n^2+1}$ is decreasing…

Determine whether $\sum_{n=1}^{\infty}(-1)^n\frac{n}{n^2+1}$ converges absolutely, converges conditionally, or diverges. Show that $b_n=\frac{n}{n^2+1}$ is decreasing for $n\ge1$ using $f'(x)$, and test $\sum b_n$ with the limit comparison test.

Solve
Practice★★☆Not started
Classify $\sum_{n=2}^{\infty}\frac{(-1)^n}{\ln n}$ as absolutely convergent, conditionally convergent, or divergent. Justify the convergence of the alternating series…

Classify $\sum_{n=2}^{\infty}\frac{(-1)^n}{\ln n}$ as absolutely convergent, conditionally convergent, or divergent. Justify the convergence of the alternating series and compare $\frac{1}{\ln n}$ with $\frac{1}{n}$ to treat the absolute series.

Solve

Alternating p-Series and Absolute Convergence Facts

The most important family of examples is $\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^p}$. Recall that $\sum\frac1{n^p}$ converges exactly when $p>1$.

Number line for the exponent p in the series Σ(-1)^(n+1)/n^p: it diverges for p ≤ 0, converges conditionally for 0 < p ≤ 1 (the series of absolute values diverges), and converges absolutely for p > 1. The cutoffs are p = 0 and p = 1. diverges p ≤ 0 conditional 0 < p ≤ 1 absolute p > 1 0 1 p Number line for the exponent p in the series Σ(-1)^(n+1)/n^p: it diverges for p ≤ 0, converges conditionally for 0 < p ≤ 1 (the series of absolute values diverges), and converges absolutely for p > 1. The cutoffs are p = 0 and p = 1.

A useful fact about absolute convergence

If $\sum a_n$ converges absolutely, then $|a_n|\to0$, so the terms eventually get smaller than $1$. For small numbers, raising to a higher power makes them even smaller. That lets you use direct comparison.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★★Not started
For each real number $p$, decide whether $\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^p}$ converges absolutely, converges conditionally, or diverges. Treat the cases $p>1$,…

For each real number $p$, decide whether $\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^p}$ converges absolutely, converges conditionally, or diverges. Treat the cases $p>1$, $0<p\le1$, and $p\le0$ separately and name the test used in each case.

Solve
Practice★★★Not started
Suppose $\sum_{n=1}^{\infty}a_n$ converges absolutely. (a) Show that $\sum_{n=1}^{\infty}a_n^2$ converges. (Think about what must happen to $|a_n|$ for large $n$, then…

Suppose $\sum_{n=1}^{\infty}a_n$ converges absolutely. (a) Show that $\sum_{n=1}^{\infty}a_n^2$ converges. (Think about what must happen to $|a_n|$ for large $n$, then use direct comparison.) (b) Use $a_n=\frac{(-1)^n}{n}$ to show that the converse is false: $\sum a_n^2$ can converge even though $\sum a_n$ does not converge absolutely.

Solve

The Alternating Series Error Bound

Let $S$ be the sum of a convergent series and let $S_N$ be the partial sum through the $N$th term. The error in using $S_N$ to approximate $S$ is $S-S_N$. Usually you can't know it exactly, but for alternating series you can bound it.

Why does it work? After $N$ terms, what is left over is

$$S-S_N=\pm\bigl(b_{N+1}-b_{N+2}+b_{N+3}-\cdots\bigr).$$

Group the bracket as $(b_{N+1}-b_{N+2})+(b_{N+3}-b_{N+4})+\cdots$. Each pair is $\ge0$, so the bracket is $\ge0$. Group it instead as $b_{N+1}-(b_{N+2}-b_{N+3})-\cdots$, and it is $\le b_{N+1}$. So the leftover is between $0$ and $b_{N+1}$, with the sign of its first term.

S (true sum) lies between S₄ ≈ 0.8964 and S₅ ≈ 0.9044, which are separated by b₅ = 1/125 = 0.008. So the error |S − S₄| is at most b₅, and S₄ underestimates S. b₅ = 1/125 = 0.008 S₄ ≈ 0.8964 S (true sum) S₅ ≈ 0.9044 S is trapped between consecutive partial sums S (true sum) lies between S₄ ≈ 0.8964 and S₅ ≈ 0.9044, which are separated by b₅ = 1/125 = 0.008. So the error |S − S₄| is at most b₅, and S₄ underestimates S.
Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
The series $S=\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^2}$ is approximated by $S_3=1-\frac14+\frac19$. Use the alternating series error bound to find a bound on $|S-S_3|$,…

The series $S=\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^2}$ is approximated by $S_3=1-\frac14+\frac19$. Use the alternating series error bound to find a bound on $|S-S_3|$, and say whether $S_3$ is an overestimate or an underestimate of $S$.

Solve
Practice★★★Not started
The series $\sum_{n=0}^{\infty}\frac{(-1)^n}{(2n+1)!}$ equals $\sin 1$. (a) Compute $S_2=1-\frac16+\frac1{120}$ as a fraction. (b) Use the alternating series error bound…

The series $\sum_{n=0}^{\infty}\frac{(-1)^n}{(2n+1)!}$ equals $\sin 1$. (a) Compute $S_2=1-\frac16+\frac1{120}$ as a fraction. (b) Use the alternating series error bound to bound $|\sin1-S_2|$. (c) Use the bound to write an interval that must contain $\sin1$, and say whether $S_2$ is an overestimate or an underestimate.

Solve

Using the Bound: How Many Terms, and Where Is the Sum?

The error bound answers two kinds of questions.

Question 1: how many terms do I need? Make $b_{N+1}$ smaller than the allowed error and solve for $N$. Because $b_n$ is decreasing, once $b_{N+1}$ is small enough it stays small for every larger $N$. So the first $N$ that works is the smallest one the bound can guarantee.

Question 2: where is the sum? Because $S$ lies between $S_N$ and $S_{N+1}$, you get an interval. Any number outside that interval cannot be the sum.

Back to the start. For $\ln2=1-\frac12+\frac13-\cdots$, stopping at $S_{10}\approx0.6456$ gives an error of at most $b_{11}=\frac1{11}\approx0.091$, so $0.6456\le\ln2\le0.7365$. The first omitted term is positive, so $S_{10}$ is an underestimate. To guarantee an error below $0.001$ we would need $\frac{1}{N+1}<0.001$, which means about a thousand terms. This series converges very slowly, and the error bound tells you that without ever knowing $\ln 2$.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★☆Not started
Consider $\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n!}$. Find the smallest $n$ for which the alternating series error bound guarantees that $|S-S_n|<0.001$, and compute that…

Consider $\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n!}$. Find the smallest $n$ for which the alternating series error bound guarantees that $|S-S_n|<0.001$, and compute that partial sum as a fraction.

Solve
Practice★★☆Not started
The series $\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{2n-1}$ is approximated by its partial sum $S_n$. Find the smallest $n$ for which the alternating series error bound…

The series $\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{2n-1}$ is approximated by its partial sum $S_n$. Find the smallest $n$ for which the alternating series error bound guarantees $|S-S_n|<0.01$, and explain how you decided between consecutive values of $n$.

Solve
Practice★★★Not started
Let $S=\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n\cdot2^n}$. (a) Show that the series converges. (b) Compute $S_4$ as a fraction. (c) Show that $|S-S_4|\le\frac{1}{160}$.…

Let $S=\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n\cdot2^n}$. (a) Show that the series converges. (b) Compute $S_4$ as a fraction. (c) Show that $|S-S_4|\le\frac{1}{160}$. (d) Could $S$ equal $0.4$? Justify using the fact that partial sums of an alternating series straddle the sum, together with $S_4\approx0.40104$.

Solve

Summary

  • Alternating Series Test: $\sum(-1)^nb_n$ converges if $b_n>0$, $b_n$ is (eventually) decreasing, and $b_n\to0$. If $b_n\not\to0$, the series diverges by the nth-term test; if only the decreasing condition fails, the AST is silent.

  • Classify a series by testing $\sum|a_n|$ first. If it converges, the series is absolutely convergent. If not, apply the AST: if that works, the series is conditionally convergent, and otherwise it diverges.

  • Alternating $p$-series $\sum\frac{(-1)^{n+1}}{n^p}$: absolute for $p>1$, conditional for $0<p\le1$, divergent for $p\le0$.

  • Error bound: $|S-S_N|\le b_{N+1}$, the first omitted term. $S$ lies between $S_N$ and $S_{N+1}$, and $S_N$ is an overestimate when the first omitted term is negative and an underestimate when it is positive.

  • To find how many terms you need, solve $b_{N+1}<\text{tolerance}$. To trap the sum, use the interval between consecutive partial sums.

Can't find your problem here?

The AI checks one of your exercises: paste the problem with your answer or take a photo of it.

See all the exercises in this section