Chapter 8: Infinite Sequences and Series
Section 8.2: Series
Example 8.2.3
Use Maple to sum the alternating series ∑n=1∞−1n+1/n2 and show that the sum is the limit of the sequence of partial sums.
Test the claim that a partial sum is closer to the sum than the magnitude of the first neglected term.
Solution
Obtain the sum of the series
Control-drag the given series.
Context Panel: Evaluate and Display Inline
∑n=1∞−1n+1n2 = 112⁢π2
Obtain the partial sum Sk and the first few values of Sk
S__k≔∑n=1k−1n+1n2:
valueS__k
112⁢12⁢LerchPhi⁡−1,2,k⁢−1k⁢k2+π2⁢k2−12⁢−1kk2
Obtain the first few values of Sk
valueseqS__k,k=1..10
1,34,3136,115144,30193600,9731200,4887758800,191833235200,52578916350400,51943876350400
Obtain the limit of the sequence of partial sums
Calculus palette: Limit operator
Expression palette: Summation template Sum up through n=k.
limk→∞S__k = 112⁢π2
Maple expresses the partial sum via the special function Lerch Phi. Nevertheless, Maple's value for Sk will be accepted as correct.
Figure 8.2.3(a) shows the convergence of the first 10 members of the sequence of partial sums to π2/12≐0.82247.
use plots in module() local Sk,X,Y,p1,p2,p3,k; Sk:=k->sum((-1)^(n+1)/n^2,n=1..k); X:=[seq(k,k=1..10)]; Y:=[seq(Sk(k),k=1..10)]; p1:=pointplot(X,Y,symbol=solidcircle,symbolsize=15,color=red,labels=[k,typeset(S[k])],view=[0..10,0..1]); p2:=plot(Pi^2/12,k=0..10,color=black); p3:=display(p1,p2); print(p3) end module: end use:
Figure 8.2.3(a) Convergence of Sk to S≐0.82247
<< Previous Example Section 8.2 Next Example >>
© 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