<?xml version="1.0" encoding="UTF-8"?>
<Worksheet><Version major="6" minor="1"/><View-Properties><Hide name="Section Range"/><Hide name="Group Range"/><Zoom percentage="100"/></View-Properties><Styles><Layout alignment="left" firstindent="0.0" name="Heading 3" spaceabove="0.0" spacebelow="0.0"/><Layout alignment="left" firstindent="0.0" name="Heading 2" spaceabove="8.0" spacebelow="2.0"/><Layout leftmargin="80.0" name="Share Details"/><Layout alignment="left" firstindent="0.0" name="Heading 1" spaceabove="8.0" spacebelow="4.0"/><Layout alignment="centred" name="_pstyle265"/><Layout alignment="centred" name="_pstyle264"/><Layout alignment="centred" name="_pstyle263"/><Layout alignment="centred" name="Author" spaceabove="8.0" spacebelow="8.0"/><Layout alignment="centred" name="Maple Plot"/><Layout alignment="centred" firstindent="0.0" name="_pstyle260" spaceabove="8.0" spacebelow="4.0"/><Layout name="Normal"/><Layout name="AC - Disclaimer" spaceabove="12.0"/><Layout alignment="centred" name="_pstyle258"/><Layout alignment="centred" name="_pstyle257"/><Layout alignment="centred" name="_pstyle256"/><Font background="[0,0,0]" name="Share Details"/><Font background="[0,0,0]" bold="true" italic="true" name="Heading 3" size="12"/><Font background="[0,0,0]" bold="true" name="Heading 2" size="14"/><Font background="[0,0,0]" bold="true" name="Heading 1" size="18"/><Font background="[0,0,0]" bold="true" executable="true" family="Monospaced" foreground="[255,0,0]" name="Maple Input"/><Font background="[0,0,0]" name="Normal"/><Font background="[0,0,0]" name="Maple Plot"/><Font background="[0,0,0]" bold="true" name="_cstyle270"/><Font background="[0,0,0]" name="Author"/><Font background="[0,0,0]" foreground="[0,128,128]" italic="false" name="Hyperlink" underline="true"/><Font background="[0,0,0]" bold="false" family="Times New Roman" foreground="[0,0,0]" italic="false" name="AC - Disclaimer" readonly="false" size="9" underline="false"/><Font background="[0,0,0]" bold="true" italic="true" name="_cstyle266"/><Font background="[0,0,0]" bold="true" italic="true" name="_cstyle265"/><Font background="[0,0,0]" bold="true" italic="true" name="_cstyle264"/><Font background="[0,0,0]" name="_cstyle263" underline="true"/><Font background="[0,0,0]" name="_cstyle262" underline="true"/><Font background="[0,0,0]" bold="true" italic="true" name="_cstyle261"/><Font background="[0,0,0]" bold="true" italic="true" name="_cstyle260"/><Font background="[0,0,0]" name="_pstyle265"/><Font background="[0,0,0]" name="_pstyle264"/><Font background="[0,0,0]" bold="true" name="_pstyle260" size="18"/><Font background="[0,0,0]" bold="true" italic="true" name="_cstyle258"/><Font background="[0,0,0]" bold="true" italic="true" name="_cstyle257"/><Font background="[0,0,0]" italic="true" name="_cstyle256"/><Font background="[0,0,0]" family="Times New Roman" name="2D Comment" underline="false"/><Font background="[0,0,0]" name="_pstyle256"/></Styles><Group><Input><Text-field layout="_pstyle260" style="_pstyle260"><Font family="Times New Roman">Section 11.3-Motion of a string</Font></Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Author" style="Author"><Font family="Times New Roman">by Alain Goriely, goriely@math.arizona.edu,
 <Font style="_cstyle262">(</Font></Font><Hyperlink family="Times New Roman" hyperlink="true" linktarget="http://www.math.arizona.edu/~goriely" style="Hyperlink">http://www.math.arizona.edu/~goriely</Hyperlink><Font family="Times New Roman" style="_cstyle263">)</Font><Font family="Times New Roman">
</Font></Text-field><Text-field layout="Share Details" style="Share Details"><Font family="Times New Roman" style="_cstyle258">Abstract:</Font><Font family="Times New Roman"> This section illustrates Section 11.3 in Kreyszig 's book (8th ed.)</Font></Text-field><Text-field layout="Share Details" style="Share Details"><Font family="Times New Roman" style="_cstyle261">Application Areas/Subjects: </Font><Font family="Times New Roman"> Engineering, Applied Mathematics</Font></Text-field><Text-field layout="Share Details" style="Share Details"><Font family="Times New Roman" style="_cstyle260">Keywords:</Font><Font family="Times New Roman"> String Motion, 1D-Wave equation <Font style="_cstyle265">
See Also:</Font>  Other Worksheets in the same package.</Font></Text-field><Text-field layout="Share Details" style="Share Details"><Font family="Times New Roman" style="_cstyle266">Prerequisites:</Font><Font family="Times New Roman">  plots</Font></Text-field><Text-field layout="Share Details" style="Share Details"><Font family="Times New Roman" style="_cstyle264">Note:</Font><Font family="Times New Roman">  Send me an e-mail (comments-criticisms) if you use this worksheet.</Font></Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">restart;assume(n,integer):with(plots):
setoptions(thickness=2): #set the tickness of the lines in the plots</Text-field></Input></Group><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1"><Font family="Times New Roman">Introduction</Font></Text-field></Title><Group><Input><Text-field layout="Normal" style="Normal"><Font family="Times New Roman">Let </Font><Equation input-equation="u=u(x,t)" style="2D Comment">NiMvJSJ1Ry1GJDYkJSJ4RyUidEc=</Equation><Font family="Times New Roman"> be the vertical displacement of the string. Under suitable assumptions (see 11.2), the displacement obeys the following PDEs (the so-called <Font style="_cstyle270">1D wave equation</Font>):</Font></Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="_pstyle263" style="2D Comment"><Equation input-equation="diff(u,`$`(t,2)) = c^2*diff(u,`$`(x,2))" style="2D Comment">NiMvLSUlZGlmZkc2JCUidUctJSIkRzYkJSJ0RyIiIyomJSJjR0YsLUYlNiRGJy1GKTYkJSJ4R0YsIiIi</Equation></Text-field><Text-field layout="Normal" style="Normal"><Font family="Times New Roman">where </Font><Equation input-equation="c" style="2D Comment">NiMlImNH</Equation><Font family="Times New Roman">  is the speed of the wave (</Font><Equation input-equation="c^2=rho/T" style="2D Comment">NiMvKiQlImNHIiIjKiYlJHJob0ciIiIlIlRHISIi</Equation><Font family="Times New Roman"> : density of the string/ tension in the string) </Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font family="Times New Roman">The string is attached at </Font><Equation input-equation="x = L;" style="2D Comment">NiMvJSJ4RyUiTEc=</Equation><Font family="Times New Roman">, that is we have the boundary conditions
</Font></Text-field><Text-field layout="_pstyle264" style="_pstyle264"><Font family="Times New Roman"> </Font><Equation input-equation="u(0,t)=0 " style="2D Comment">NiMvLSUidUc2JCIiISUidEdGJw==</Equation><Font family="Times New Roman">  and   </Font><Equation input-equation="u(L,t)=0" style="2D Comment">NiMvLSUidUc2JCUiTEclInRHIiIh</Equation></Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font family="Times New Roman">
Here we explore different solutions for the string, starting with initial data. </Font></Text-field><Text-field layout="_pstyle265" style="_pstyle265"><Font style="Maple Input">
Look at the animations of the string!</Font></Text-field></Input></Group></Section><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1"><Font family="Times New Roman">Section 1: The fundamental modes</Font></Text-field></Title><Group><Input><Text-field layout="Normal" style="Normal"><Font family="Times New Roman">The following functions are the solutions for boundary conditions</Font></Text-field><Text-field layout="_pstyle256" style="_pstyle256"><Font family="Times New Roman"> </Font><Equation input-equation="u(0,t)=0 " style="2D Comment">NiMvLSUidUc2JCIiISUidEdGJw==</Equation><Font family="Times New Roman">  and   </Font><Equation input-equation="u(L,t)=0" style="2D Comment">NiMvLSUidUc2JCUiTEclInRHIiIh</Equation></Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">Su:=u=(A[n]*cos(lambda[n]*t)+B[n]*sin(lambda[n]*t))*sin(n*Pi*x/L);</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">Slambda:=lambda[n]=c*n*Pi/L;</Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font family="Times New Roman">Let us verify that this is indeed a solution of the equation:</Font></Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">Diff(u,`$`(t,2)) - c^2*Diff(u,`$`(x,2))=eval(subs(Su,diff(u,`$`(t,2)) - c^2*diff(u,`$`(x,2))));</Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font family="Times New Roman">We want to see what these modes look like: Start with n=1, the FUNDAMENTAL MODE:</Font></Text-field></Input></Group><Section collapsed="true"><Title><Text-field layout="Heading 2" style="Heading 2"><Font family="Times New Roman">Fundamental mode</Font></Text-field></Title><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">M1:=subs(n=1,L=2*Pi,c=2,subs(Su,Slambda,B[n]=1,A[n]=0,u));</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">plot(subs(t=Pi/2,M1),x=0..2*Pi,thickness=3);</Text-field></Input></Group><Section collapsed="true"><Title><Text-field layout="Heading 3" style="Heading 3"><Font family="Times New Roman">Animation </Font></Text-field></Title><Text-field layout="Normal" style="Normal"><Font family="Times New Roman">If we start with the fundamental mode at time t=0, it will evolve in the following way:
</Font></Text-field><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">animate( M1,x=0..2*Pi,t=Pi/2..2*Pi+Pi/2,frames=30,color=red,thickness=3);</Text-field><Text-field layout="Normal" style="Normal"/></Input></Group></Section></Section><Section collapsed="true"><Title><Text-field layout="Heading 2" style="Heading 2"><Font family="Times New Roman">Higher modes</Font></Text-field></Title><Group><Input><Text-field layout="Normal" style="Normal"><Font family="Times New Roman">See the effect of higher modes (also called harmonics)</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">M2:=subs(n=2,L=2*Pi,c=2,subs(Su,Slambda,B[n]=0,A[n]=1,u));
M3:=subs(n=3,L=2*Pi,c=2,subs(Su,Slambda,B[n]=0,A[n]=1,u));
M4:=subs(n=4,L=2*Pi,c=2,subs(Su,Slambda,B[n]=0,A[n]=1,u));
M5:=subs(n=5,L=2*Pi,c=2,subs(Su,Slambda,B[n]=0,A[n]=1,u));</Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input">plot(subs(t=0,[M2,M3,M4,M5]),x=0..2*Pi,title="Higher modes, n=2,3,4",thickness=3);</Text-field></Input></Group><Section collapsed="true"><Title><Text-field layout="Heading 3" style="Heading 3"><Font family="Times New Roman">Animation</Font></Text-field></Title><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">animate( {M2,M4},x=0..2*Pi,t=0..Pi,frames=30,color=red,thickness=3);</Text-field><Text-field layout="Maple Plot" style="Maple Plot"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font family="Times New Roman">Observe the presence of nodes: The Nth mode has (N-1) nodes (places at which the string does not move).</Font></Text-field><Text-field layout="Normal" style="Normal"><Font family="Times New Roman">Observe also that the mode N=4 oscillates twice as fast as the mode N=2.</Font></Text-field></Input></Group></Section></Section></Section><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1"><Font family="Times New Roman">Section 2: Initial Data</Font></Text-field></Title><Section collapsed="true"><Title><Text-field layout="Heading 2" style="Heading 2"><Font family="Times New Roman">The triangular initial data</Font></Text-field></Title><Group><Input><Text-field layout="Normal" style="Normal"><Font family="Times New Roman">Take </Font><Equation input-equation="L=2*Pi" style="2D Comment">NiMvJSJMRyomIiIjIiIiJSNQaUdGJw==</Equation><Font family="Times New Roman"> and </Font><Equation input-equation="f" style="2D Comment">NiMlImZH</Equation><Font family="Times New Roman"> like:</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">f:=(1-Heaviside(x-Pi/2))*x+Heaviside(x-Pi/2)*(Pi-x);</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">plot(f,x=0..Pi,thickness=3);</Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font family="Times New Roman">Compute the coefficients of the solution</Font></Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="_pstyle257" style="2D Comment"><Equation input-equation="u(x,t)=sum(A[n]*cos(lambda[n]*t)*sin(n*x),n=1..infinity)" style="2D Comment">NiMvLSUidUc2JCUieEclInRHLSUkc3VtRzYkKigmJSJBRzYjJSJuRyIiIi0lJGNvc0c2IyomJiUnbGFtYmRhR0YvRjFGKEYxRjEtJSRzaW5HNiMqJkYwRjFGJ0YxRjEvRjA7RjElKWluZmluaXR5Rw==</Equation></Text-field><Text-field layout="Normal" style="Normal"><Font family="Times New Roman">with </Font><Equation input-equation="c=1, lambda[n]=n" style="2D Comment">NiQvJSJjRyIiIi8mJSdsYW1iZGFHNiMlIm5HRio=</Equation></Text-field><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font family="Times New Roman">The Coefficients </Font><Equation input-equation="A[n]" style="2D Comment">NiMmJSJBRzYjJSJuRw==</Equation><Font family="Times New Roman"> are given by:</Font></Text-field><Text-field layout="_pstyle258" style="2D Comment"><Equation input-equation="A[n]=2/Pi*int(f(x)*sin(n*x),x=0..Pi)" style="2D Comment">NiMvJiUiQUc2IyUibkcqKCIiIyIiIiUjUGlHISIiLSUkaW50RzYkKiYtJSJmRzYjJSJ4R0YqLSUkc2luRzYjKiZGJ0YqRjRGKkYqL0Y0OyIiIUYrRio=</Equation></Text-field><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/><Text-field layout="Normal" style="Normal"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">A:= 2/Pi*(int(x*sin(m*x),x=0.. Pi/2)+int((Pi-x)*sin(m*x),x=Pi/2..Pi));</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">S:=(N,x)-&gt;sum(subs(m=k,A)*sin(k*x)*cos(k*t),k=1..N);</Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font family="Times New Roman">Consider increasing approximations for t=0, N=4, 10,  20</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">plot(subs(t=0,[S(4,x),S(10,x), S(20,x)]),x=0..Pi,color=[blue,black,red],thickness=3);</Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font family="Times New Roman">Take N=100 for a good approximation</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">plot(subs(t=0,[S(100,x)]),x=0..Pi,color=[red],thickness=3);</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">St:=S(100,x):</Text-field></Input></Group><Group><Input><Text-field layout="Normal" style="Normal"><Font family="Times New Roman">Now, we take a few snapshots at regular intervals t=0,</Font></Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">plot([subs(t=0,St),subs(t=Pi/6,St),subs(t=2*Pi/6,St),
subs(t=3*Pi/6,St),subs(t=4*Pi/6,St),subs(t=5*Pi/6,St),subs(t=6*Pi/6,St)],x=0..Pi,color=red,thickness=3);</Text-field></Input></Group><Section collapsed="true"><Title><Text-field layout="Heading 3" style="Heading 3"><Font family="Times New Roman">Animation</Font></Text-field></Title><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">animate( St,x=0..Pi,t=0..2*Pi,frames=31,color=blue,thickness=3);</Text-field></Input></Group></Section></Section><Section collapsed="true"><Title><Text-field layout="Heading 2" style="Heading 2"><Font family="Times New Roman">The Parabolic string: Animation</Font></Text-field></Title><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">f:=Pi*x-x^2;</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">A:= 2/Pi*int(f*sin(m*x),x=0.. Pi);
S:=(N,x)-&gt;sum(subs(m=k,A)*sin(k*x)*cos(k*t),k=1..N):
St:=S(100,x):</Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">animate( St,x=0..Pi,t=0..2*Pi,frames=31,color=green,thickness=3);</Text-field></Input></Group></Section><Section collapsed="true"><Title><Text-field layout="Heading 2" style="Heading 2"><Font family="Times New Roman">A cubic string: Animation</Font></Text-field></Title><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">f:=x*(Pi*x-x^2);</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">A:= 2/Pi*int(f*sin(m*x),x=0.. Pi);
S:=(N,x)-&gt;sum(subs(m=k,A)*sin(k*x)*cos(k*t),k=1..N):
St:=S(20,x):</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">animate( St,x=0..Pi,t=0..2*Pi,frames=31,color=magenta,thickness=3);</Text-field></Input></Group></Section><Section collapsed="true"><Title><Text-field layout="Heading 2" style="Heading 2"><Font family="Times New Roman">A pentic string: Animation</Font></Text-field></Title><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">f:=x^3*(Pi*x-x^2);</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">A:= 2/Pi*int(f*sin(m*x),x=0.. Pi);
S:=(N,x)-&gt;sum(subs(m=k,A)*sin(k*x)*cos(k*t),k=1..N):
St:=S(20,x):</Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/><Text-field layout="Normal" prompt="&gt; " style="Maple Input">animate( St,x=0..Pi,t=0..2*Pi,frames=31,color=yellow,thickness=3);</Text-field></Input></Group></Section><Section collapsed="true"><Title><Text-field layout="Heading 2" style="Heading 2"><Font family="Times New Roman">A small triangle: Animation</Font></Text-field></Title><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">A:= 2/Pi*(int(x/2*sin(m*x),x=0.. 1/2)+int((1/2-x/2)*sin(m*x),x=1/2..1));
S:=(N,x)-&gt;sum(subs(m=k,A)*sin(k*x)*cos(k*t),k=1..N):
St:=S(150,x):</Text-field><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">animate( St,x=0..Pi,t=0..2*Pi,frames=31,color=gold,thickness=3);</Text-field></Input></Group></Section></Section><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1"><Font family="Times New Roman">Section 3: Wave propagation</Font></Text-field></Title><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">A:= 2/Pi*(int(sin(Pi*x*20)*sin(m*x),x=0..1/20));
S:=(N,x)-&gt;sum(subs(m=k,A)*sin(k*x)*cos(k*t),k=1..N):
St:=S(200,x):</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input">animate( St,x=0..Pi,t=0..2*Pi,frames=51,color=blue,thickness=2,numpoints=200);</Text-field></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group><Group><Input><Text-field layout="Normal" prompt="&gt; " style="Maple Input"/></Input></Group></Section><Section collapsed="true"><Title><Text-field layout="Heading 1" style="Heading 1"><Font family="Times New Roman"> References</Font></Text-field></Title><Group><Input><Text-field layout="Normal" style="Normal"><Font family="Times New Roman">E. Kreyszig : <Font style="_cstyle256">Advanced Engineering Mathematics (8th Edition) </Font>John Wiley  New York (1999)</Font></Text-field></Input></Group><Group><Input><Text-field layout="AC - Disclaimer" style="AC - Disclaimer"><Font family="Times New Roman" foreground="[0,0,0]" size="9" style="_cstyle257" underline="false">Disclaimer:</Font> While every effort has been made to validate the solutions in this worksheet, Waterloo Maple Inc. and the contributors are not responsible for any errors contained and are not liable for any damages resulting from the use of this material.</Text-field></Input></Group></Section><Text-field/></Worksheet>