Chapter 8: Infinite Sequences and Series
Section 8.2: Series
Example 8.2.17
Show that Leibniz' theorem (see Table 8.2.2) on the convergence of alternating series applies to the series ∑n=1∞−1n+1n.
Obtain the first few, but graph the first 50, partial sums.
If Sk is the partial sum of the first k terms, what value of k will guarantee that the error in Sk is no worse than 10−3?
Solution
Part (a)
In the alternating series ∑n=1∞−1n+1n, an=1/n defines a sequence of positive terms that decrease monotonically to zero. Hence the conditions of Leibniz' theorem hold, and the sequence converges conditionally.
Part (b)
Maple is unable to obtain the sum of the series
Write the alternating harmonic series.
Context Panel: Evaluate and Display Inline
∑n=1∞−1n+1n = ∑n=1∞−1n+1n
Maple is unable to obtain an expression for the kth partial sum
Control-drag the series and change ∞ to k.
Context Panel: Assign to a Name≻S[k]
Sk=∑n=1k−1n+1n→assign as functionS
Display the first few partial sums
Type Sk and press the Enter key.
Context Panel: Sequence≻k In the resulting dialog box, set k=1 to k=15
evalfseqSk,k=1..10
1.,0.2928932190,0.8702434883,0.3702434883,0.8174570837,0.4092087931,0.7871732662,0.4336198756,0.7669532089,0.4507254429
Figure 8.3.17(a) shows the convergence of the first 50 members of the sequence of partial sums.
use plots in module() local Sk,X,Y,p1,p2,p3,k; unassign('S'); Sk:=k->sum((-1)^(n+1)/sqrt(n),n=1..k); X:=[seq(k,k=1..50)]; Y:=[seq(Sk(k),k=1..50)]; p1:=pointplot(X,Y,symbol=solidcircle,symbolsize=15,color=red,labels=[k,typeset(S[k])],view=[0..50,0..1]); print(p1); end module: end use:
Figure 8.2.17(a) Convergence of Sk to S
Part (c)
The question amounts to this: what is the smallest value of k for which 1/k+1 is less than 10−3? Hence, solve the equation 1/k+1=10−3 for k+1=106, so the first 999,999 terms have to be summed to be sure the result has an error no worse than 10−3. This series converges very slowly!
The desired accuracy might be achieved with fewer terms, but using the estimate of error in these notes, it would take nearly one million terms to guarantee that accuracy.
<< Previous Example Section 8.2 Next Section >>
© Maplesoft, a division of Waterloo Maple Inc., 2024. All rights reserved. This product is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation.
For more information on Maplesoft products and services, visit www.maplesoft.com
Download Help Document