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.

5.1. CHECKING SOLUTIONS 215<br />

Neglecting sti®ness and assuming Ã(x; 0) = 0,<br />

4 vd<br />

Ã(x; t) =<br />

¼2 1X 1 sin(n¼x0=a)cos(n¼d=(2 a))<br />

c n (1 ¡ (nd=a) 2 sin(n¼x=a)sin(n¼ct=a)<br />

)<br />

n=1<br />

istheshapeofthestringattimet. Verify that this series solution is correct<br />

and animate it for parameter values of your own choosing.<br />

5.1.3 Three Easy Pieces<br />

I would advise you Sir, to study algebra, if you are not already an<br />

adept in it: your head would be less muddy ...<br />

Samuel Johnson, English writer and lexicographer (1709{1784)<br />

Spurred by her earlier success, and feeling happier after her long phone conversation<br />

last night with Mike, Vectoria is pursuing another vibrating string<br />

example, which she has entitled Three Easy Pieces. Thisdoesnotrefertothe<br />

old Jack Nicholson movie with a similar title (cf. Five Easy Pieces), but to<br />

the fact that the algebraic manipulations involved in dealing with plane-wave<br />

propagation along a three-piece string are easy if one uses computer algebra.<br />

When an intermediate section of a very long horizontal string has a greater<br />

mass density ² than the remaining two identical portions of the string, a transverse<br />

plane wave incident on that section will in general experience partial<br />

re°ection and transmission. Recall that the velocity of the transverse wave is<br />

given by c = p T =², whereT is the tension in the string. The wave number is<br />

k = !=c =2¼=¸, where! is the angular frequency and ¸ is the wavelength.<br />

Since the frequency of the wave and the tension must remain the same in each<br />

region, the ratio r of wave numbers in two di®erent regions of mass density ²2<br />

and ²1 is given by r = k2=k1 = p ²2=²1. Vectoria reads in a certain physics<br />

text that for the case k1 = K, theratior = 3, and the more massive segment<br />

(labeled 2) stretches from x =0tox = L, the energy transmission (T )and<br />

re°ection (R) coe±cientsaregivenby,<br />

9<br />

8 ¡ 8cos(6KL)<br />

T =<br />

; R =<br />

17 ¡ 8cos(6KL) 17 ¡ 8cos(6KL) :<br />

Here T and R measure the fraction of the incident power that is transmitted and<br />

re°ected. The power here is proportional to the square of the string amplitude.<br />

Vectoria's objective is to verify the cited re°ection and transmission coe±cients<br />

and plot them for K =1asafunctionofL. Hermethodofattackisto<br />

write down plane-wave expressions in each region, determine the coe±cients by<br />

matching the solutions at x =0andx = L, and then calculate T and R.<br />

She begins by entering r =3,k1 = K, andk2 = rk1.<br />

> restart: r:=3: k[1]:=K; k[2]:=r*k[1];<br />

k1 := K k2 := 3 K

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

Saved successfully!

Ooh no, something went wrong!