Skip to content

Commit 414b8df

Browse files
committed
Copied (in new empty repo)
0 parents  commit 414b8df

File tree

2,817 files changed

+393193
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,817 files changed

+393193
-0
lines changed

.XM_IGNORE/remainders1172/digInAlternatingSeriesTestRemainders.tex

Lines changed: 466 additions & 0 deletions
Large diffs are not rendered by default.

.XM_IGNORE/remainders1172/digInAlternatingSeriesTestRemainders1172.tex

Lines changed: 518 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 260 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,260 @@
1+
\documentclass{ximera}
2+
3+
\input{../preamble.tex}
4+
5+
\outcome{Determine if a series converges using the alternating series test.}
6+
7+
\title[Dig-In:]{Remainders for alternating series}
8+
\author{Jim Talamo}
9+
10+
\begin{document}
11+
\begin{abstract}
12+
There is a nice result for approximating the remainder of convergent alternating series.
13+
\end{abstract}
14+
\maketitle
15+
16+
\section{Introduction}
17+
Recall that if $\{a_n\}_{n=n_0}$ is a sequence of positive terms, we say the series $\sum_{k=n_0}^{\infty} (-1)^k a_k$ and $\sum_{k=n_0}^{\infty} (-1)^{k+1} a_k$ are \emph{alternating series}, and we have a nice result to test these for convergence, which is reprinted below.
18+
19+
\begin{theorem}[Alternating Series Test]
20+
Let $\{a_n\}_{n=n_0}$ be a sequence whose terms are eventually positive and decreasing and
21+
$\lim_{n\to\infty}a_n=0$. Then, the series
22+
\[
23+
\sum_{k=n_0}^\infty (-1)^{k}a_k \qquad \text{and}\qquad \sum_{k=n_0}^\infty (-1)^{k+1}a_k
24+
\]
25+
both converge.
26+
\end{theorem}
27+
28+
29+
Note that this test gives us a way to determine if many alternating series \emph{must} converge, but it does not give us information about the value to which the series converges. If we want to obtain insight as to what the approximate value of the convergent series is, we must study remainders.
30+
31+
32+
33+
\begin{image}
34+
\begin{tikzpicture}
35+
\draw[densely dashed] (-1,0)--(10,0);
36+
\node at (-1.2, 0) {$S$};
37+
\draw[fill=black] (0,5) circle (3pt) node[below,left] {$s_1$};
38+
\draw[fill=black] (1, -3.8) circle(3pt) node[below,left] {$s_2$};
39+
\draw[fill=black] (2, 2.8) circle(3pt) node[below,left] {$s_3$};
40+
\draw[fill=black] (4.6, 2) circle (1pt);
41+
\draw[fill=black] (5, 2) circle (1pt);
42+
\draw[fill=black] (5.4, 2) circle (1pt);
43+
\draw[fill=black] (7, -2.1) circle (3pt) node[below,left] {$s_n$};
44+
\draw[fill=black] (8, 1.6) circle (3pt) node[below, left] {$s_{n+1}$};
45+
\draw[fill=black] (9, -1.2) circle (3pt) node[below,left] {$s_{n+2}$};
46+
\draw[<->] (7, -0.1) -- (7, -1.9) node[pos=0.5, left] {$r_n$};
47+
\draw[<->] (7.5, -1.9) -- (7.5, 1.45) node[pos=0.4, right] {$a_{n+1}$};
48+
\end{tikzpicture}
49+
\end{image}
50+
51+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
52+
53+
\section{Remainders for Alternating Series}
54+
As usual we must establish that a series converges first before we begin to think about remainders. Once we have established that an alternating series $\sum_{k=1}^{\infty} (-1)^k a_k$ converges, we recall the important result
55+
56+
\begin{image}
57+
\begin{tikzpicture}
58+
\node at (0,0) {
59+
$ \sum_{k=1}^{\infty} (-1)^k a_k=\underbrace{\sum_{k=1}^{n}(-1)^k a_k}+ \underbrace{\sum_{k=n+1}^\infty (-1)^k a_k} = s_n+r_n$.};
60+
\node at (1.5,-1) { This is $r_n$.};
61+
62+
\node at (-1,-1) { This is $s_n$. };
63+
64+
\end{tikzpicture}
65+
\end{image}
66+
67+
While we cannot find an explicit formula for $s_n$ here, we have a good way to establish bounds on the error made when approximating $ \sum_{k=1}^{\infty} (-1)^k a_k$ by the finite sum $s_n= \sum_{k=1}^{n} (-1)^k a_k$. We'll state the test, then explore how it works in the context of an example.
68+
69+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
70+
\begin{theorem}[Alternating Series Remainder Estimates]\index{alternating series remainder estimates}
71+
Let $\{a_n\}_{n=n_0}$ be a sequence whose terms are positive and decreasing and
72+
$\lim_{n\to\infty}a_n=0$. Then,
73+
\[
74+
\big| r_n \big| \leq a_{n+1} \qquad \textrm{ for all } n \geq n_0,
75+
\]
76+
where $r_n = \sum_{k=n+1}^{\infty} a_k$.
77+
\end{theorem}
78+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
79+
80+
Note that the above guarantees that for any integer $N>n_0$, the term $s_N$ will approximate the series $\sum_{k=1}^{\infty} a_k$ with an error no greater than $a_{n+1}$. Before we work an example, a few comments are in order.
81+
82+
\begin{itemize}
83+
\item[1.] In most cases, we will have $n_0 = 0$ or $n_0 =1$. As a technical point, we have to make the specification of when the sequence $\{a_n\}$ is actually both decreasing and contains only positive terms before we can use the result.
84+
\item[2.] If the sequence $\{a_n\}_{n = n_0}$ meets the criteria, note that we can split up the series $\sum_{k=1}^{\infty} a_k$ as
85+
86+
\[
87+
\sum_{k=1}^{\infty} a_k = \sum_{k=1}^{n_0} a_k +\sum_{k=n_0+1}^{\infty} a_k
88+
\]
89+
90+
We can compute the first sum by hand since it requires adding finitely many terms, then use the remainder result on the infinite series.
91+
\end{itemize}
92+
93+
Let's see how the test works in the context of an example.
94+
95+
\begin{model}
96+
Consider the alternating harmonic series $\sum_{k=1}^{\infty} \frac{(-1)^k}{k}$. Here, $a_n = \frac{1}{n}$, and the reader can verify that the series meets the hypothesis for the alternating series test. To develop some intuition about the error made when we approximate the infinite series by adding only finitely many of its terms, let's write out some of its terms.
97+
98+
\[
99+
\sum_{k=1}^{\infty} \frac{(-1)^k}{k} = -1+\frac{1}{2}-\frac{1}{3}+\frac{1}{4}-\frac{1}{5}+\frac{1}{6}-\frac{1}{7} + \ldots
100+
\]
101+
102+
Now, let's say we want to approximate the infinite series with $s_2$.
103+
104+
\begin{image}
105+
\begin{tikzpicture}
106+
\node at (0,0) {
107+
$\sum_{k=1}^{\infty} \frac{(-1)^k}{k}=\underbrace{-1+\frac{1}{2}}-\frac{1}{3}+ \underbrace{\left[\frac{1}{4}-\frac{1}{5}\right]}+\underbrace{\left[\frac{1}{6}-\frac{1}{7}\right]} + \ldots$};
108+
\node at (.9,-1) { positive};
109+
\node at (2.6,-1) { positive};
110+
\node at (-1.4,-.8) { $s_2$};
111+
112+
\end{tikzpicture}
113+
\end{image}
114+
115+
Note that each pair of terms we've enclose in brackets is \wordChoice{\choice[correct]{positive}\choice{negative}}, which means that
116+
117+
\[
118+
\sum_{k=1}^{\infty} \frac{(-1)^k}{k} \geq -1+\frac{1}{2}-\frac{1}{3} = s_2 -a_3
119+
\]
120+
121+
Similarly, had we used $s_3$ for the approximation, we could obtain an overestimate for the value of the series.
122+
123+
\begin{image}
124+
\begin{tikzpicture}
125+
\node at (0,0) {
126+
$\sum_{k=1}^{\infty} \frac{(-1)^k}{k}=\underbrace{-1+\frac{1}{2}-\frac{1}{3}}+ \frac{1}{4}+\underbrace{\left[-\frac{1}{5}+\frac{1}{6}\right]}+\underbrace{\left[-\frac{1}{7} +\frac{1}{8}\right]} + \ldots$};
127+
\node at (1.1,-1) { negative};
128+
\node at (3.1,-1) { negative};
129+
\node at (-1.7,-.8) { $s_3$};
130+
131+
\end{tikzpicture}
132+
\end{image}
133+
134+
Note that each pair of terms we've enclose in brackets is \wordChoice{\choice{positive}\choice[correct]{negative}}, which means that
135+
136+
\[
137+
\sum_{k=1}^{\infty} \frac{(-1)^k}{k} \leq -1+\frac{1}{2}-\frac{1}{3} +\frac{1}{4} = s_3 -a_4
138+
\]
139+
140+
Note that since we can split the convergent series up as
141+
142+
\[
143+
\sum_{k=1}^{\infty} \frac{(-1)^k}{k} = s_n +r_n,
144+
\]
145+
We can see in both cases that the magnitude of the error is bounded above by the magnitude of the next term in the series; that is
146+
147+
\[\big| r_n \big| \leq a_{n+1}.\]
148+
149+
We can repeat this construction by using $s_n$ for an unspecified value for $n$ and arrive at the conclusion above.
150+
\end{model}
151+
152+
We hope that the curious reader understands that a similar argument can be made for series that meet the assumptions of the alternating series remainder test. In order to gain some practice, let's work some examples.
153+
154+
\begin{example}
155+
Consider the alternating geometric series $\sum_{k=0}^{\infty} (-1)^k \left(\frac{1}{2}\right)^k$.
156+
157+
I. Compute $\sum_{k=0}^{\infty} (-1)^k \left(\frac{1}{2}\right)^k$.
158+
159+
\begin{explanation}
160+
First, note that by using laws of exponents, $\sum_{k=0}^{\infty} (-1)^k \left(\frac{1}{2}\right)^k = \sum_{k=0}^{\infty} \left(\frac{-1}{2}\right)^k$.
161+
Hence, the geometric series $\sum_{k=0}^{\infty} (-1)^k \left(\frac{1}{2}\right)^k$ converges because $|r| = \frac{1}{2} <1$.
162+
163+
164+
When $r<1$, note that $\sum_{k=0}^{\infty} ar^k = \frac{a}{1-r}$. Here, $r= -\frac{1}{2}$, so we find that $\sum_{k=0}^{\infty} (-1)^k \left(\frac{1}{2}\right)^k= \frac{2}{3}.$
165+
\end{explanation}
166+
167+
II. Use the theorem above to obtain an estimate for the remainder if $s_4$ is used to approximate the series. What do you notice?
168+
169+
\begin{explanation}
170+
Since $\left\{\left(\frac{1}{2}\right)^k\right\}_{k=0}$ is decreasing and $\lim_{n \to \infty} \left(\frac{1}{2}\right)^n =0$, we can use the remainder results. If we use $s_7$ to approximate $\sum_{k=0}^{\infty} (-1)^k \left(\frac{1}{2}\right)^k$, we have $n=7$, and conclude
171+
172+
\[
173+
|r_4| < a_5 = \left(\frac{1}{2}\right)^5 = \frac{1}{32}.
174+
\]
175+
176+
We can explicitly compute $s_4$ by using the formula for partial sums for geometric series or by hand.
177+
178+
\[
179+
s_4 = 1-\frac{1}{2}+\frac{1}{4}-\frac{1}{8}+\frac{1}{16} = \frac{11}{16}.
180+
\]
181+
182+
We note that to five decimal places, we have the following.
183+
184+
\begin{itemize}
185+
\item The error bound from the theorem is $|r_4| < \frac{1}{32} = .03125$.
186+
\item The approximate value of the series $\sum_{k=0}^{\infty} (-1)^k \left(\frac{1}{2}\right)^k$ is $s_4 = \frac{11}{16} = .68750$.
187+
\item The actual value of the series $\sum_{k=0}^{\infty} (-1)^k \left(\frac{1}{2}\right)^k$ is $\frac{2}{3} \approx .66667$.
188+
\end{itemize}
189+
190+
Thus, $s_4$ is actually within $.02083$ of the actual value of $\sum_{k=0}^{\infty} (-1)^k \left(\frac{1}{2}\right)^k$; $s_4$ is thus within the $.03125$ of the actual value of $\sum_{k=0}^{\infty} (-1)^k \left(\frac{1}{2}\right)^k$ guaranteed by the remainder result.
191+
192+
\end{explanation}
193+
\end{example}
194+
195+
In the above example, we could compute the exact value of the series in question, so the remainder result could be verified explicitly. In the next example, the exact value of the series is not known, but we can approximate as closely as we want.
196+
197+
\begin{example}
198+
Consider the alternating series $\sum_{k=1}^{\infty} \frac{(-1)^k}{k^3}$.
199+
200+
\begin{itemize}
201+
\item[I.] Find a value for $N$ so $s_N$ approximates $\sum_{k=1}^{\infty} \frac{(-1)^k}{k^3}$ to within $.0001$ of its actual value.
202+
\item[II.] Using technology, compute $\sum_{k=1}^{\infty} \frac{(-1)^k}{k^3}$ to within $.0001$.
203+
\item[III.] Using technology, it can be shown that $\sum_{k=1}^{100000} \frac{(-1)^k}{k^3} = -.9015426774$ to ten decimal places. Using the remainder result, how far off from the exact value of the series $\sum_{k=1}^{100000} \frac{(-1)^k}{k^3}$ could this be?
204+
\end{itemize}
205+
206+
\begin{explanation}
207+
Check for yourself that $\sum_{k=1}^{\infty} \frac{(-1)^k}{k^3}$ satisfies the criteria for the remainder result for alternating series to hold before reading on.
208+
209+
\begin{itemize}
210+
\item[I.] To find a value for $N$ so $s_N$ approximates $\sum_{k=1}^{\infty} \frac{(-1)^k}{k^3}$ to within $.0001$ of its actual value, we can find $N$ so $\big|r_N\big| < .0001$. Since we have an explicit formula $a_n = \frac{1}{n^3}$ and that $\big|r_N\big| < a_{N+1}$, we can set $a_{N+1} < .0001$ (so $|r_N|$ will be less than $.0001$ by transitivity).
211+
212+
\begin{align*}
213+
a_{N+1} = \frac{1}{\answer{\left(N+1\right)^3}} &< .0001 \\
214+
1 &< .0001 (N+1)^3 \\
215+
\answer{10000} &< (N+1)^3 \\
216+
21.54 &< N+1 \qquad \textrm{ (to two decimal places) }\\
217+
20.54 &< N \\
218+
\end{align*}
219+
220+
We should thus use $N =$ \wordChoice{\choice{$20$}\choice[correct]{$21$}}.
221+
222+
\item[II.] We can thus approximate $\sum_{k=1}^{\infty} \frac{(-1)^k}{k^3}$ by using \wordChoice{\choice{$s_20$}\choice[correct]{$s_21$}}. While this would be tedious to do by hand, technology can compute this sum quickly to find
223+
224+
\[
225+
\sum_{k=1}^{21} \frac{(-1)^k}{k^3} \approx -.90159.
226+
\]
227+
228+
Using this result above, we conclude that $-.90159-.0001 \leq \sum_{k=1}^{\infty} \frac{(-1)^k}{k^3} \leq -.90159+.0001$ or
229+
230+
\[
231+
-.90169 \leq \sum_{k=1}^{\infty} \frac{(-1)^k}{k^3} \leq -.90149
232+
\]
233+
\item[III.] Here, we have used $s_{100000}$ to approximate the value of the series. The remainder result tells us that the error $r_{100000}$ made in this approximation can be no worse than $a_{100001}$; i.e.
234+
235+
\[
236+
\big|r_{100000}\big| < \frac{1}{(100001)^3}.
237+
\]
238+
239+
Noting that $\frac{1}{(100001)^3} = 9.9997 \times 10^{-16}$, we see that the approximation given above corresponds with the actual value of the series to the ten decimal places listed.
240+
241+
\end{itemize}
242+
\end{explanation}
243+
\end{example}
244+
245+
We conclude this section with a question.
246+
\begin{question}
247+
Determine if there is a value for $N$ so $\sum_{k=1}^{N} (-1)^k \cdot \frac{k+2}{2k+1}$ is within $.01$ of the value of $\sum_{k=1}^{N} (-1)^k \cdot \frac{k+2}{2k+1}$. If there is such a value, give one possibility for it.
248+
249+
\begin{multipleChoice}
250+
\choice[correct]{There is no such value for $N$ since the series $\sum_{k=1}^{N} (-1)^k \cdot \frac{k+2}{2k+1}$ diverges.}
251+
\choice{There is such a value for $N$.}
252+
\end{multipleChoice}
253+
254+
\begin{feedback}
255+
Note that before we try to approximate the value of a series, we must first determine that it converges (so it actually \emph{has} a value). Here, note that $\lim_{n \to \infty} \frac{n+2}{2n+1} = \frac{1}{2}$, so $\lim_{n \to \infty} (-1)^n \cdot \frac{n+2}{2n+1}$ does not exist, and hence $\sum_{k=1}^{N} (-1)^k \cdot \frac{k+2}{2k+1}$ diverges by the divergence test.
256+
\end{feedback}
257+
\end{question}
258+
259+
260+
\end{document}

0 commit comments

Comments
 (0)