16.12.2012 Views

Computer Algebra Recipes

Computer Algebra Recipes

Computer Algebra Recipes

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

250 CHAPTER 6. LINEAR PDE MODELS. PART 2<br />

The<br />

P<br />

transverse displacement of the string at arbitrary time t is Ã(x; t) =<br />

1<br />

n=1 Ãn. For animation purposes, Vectoria takes L =10,h =1,andc =1.<br />

> L:=10: h:=1: c:=1:<br />

To obtain a good approximation to the initial string pro¯le, Vectoria keeps<br />

terms in the series up to n = 25, only the partial output being shown here.<br />

> psi:=sum(psi[n],n=1..25);<br />

³<br />

¼x<br />

´ μ <br />

¼t<br />

8sin cos<br />

10 10<br />

à :=<br />

¼2 ¡ 8<br />

μ μ <br />

3 ¼x 3 ¼t<br />

sin cos<br />

10 10<br />

9 ¼2 + 8<br />

³<br />

¼x<br />

´ μ <br />

¼t<br />

sin cos<br />

2 2<br />

25 ¼2 + ¢¢¢¢¢¢+ 8<br />

μ μ <br />

21 ¼x 21 ¼t<br />

sin cos<br />

10 10<br />

441<br />

¼2 ¡ 8<br />

μ μ <br />

23 ¼x 23 ¼t<br />

sin cos<br />

10 10<br />

529<br />

¼2 + 8<br />

μ μ <br />

5 ¼x 5 ¼t<br />

sin cos<br />

2 2<br />

625<br />

¼2 The displacement à is animated over the time interval t = 0 to 20, with 100<br />

equally spaced time frames.<br />

> animate(plot,[psi,x=0..L],t=0..20,frames=100);<br />

On running the animation command, Vectoria is at ¯rst surprised by the behavior<br />

of the string, but on thinking about it decides that it makes sense. After<br />

executing the recipe, does the behavior make sense to you? What should Vectoria<br />

write in her explanation of the wave motion?<br />

PROBLEMS:<br />

Problem 6-1: Another plucked string<br />

A light homogeneous horizontal string of length L ¯xed at its ends initially<br />

has a parabolic shape with height h in the middle. If it is released from rest,<br />

solve the wave equation to determine its subsequent transverse displacement at<br />

arbitrary time t. Animate the vibrations for parameters of your own choice and<br />

choose enough frames to produce a smooth animation.<br />

Problem 6-2: Struck piano string<br />

If a horizontal piano string ¯xed at x =0andx = L is struck in such a way<br />

that its initial displacement Ã(x; 0) is zero and its initial transverse velocity is<br />

8<br />

< 4 vx=L; 0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!