16.12.2012 Views

Computer Algebra Recipes

Computer Algebra Recipes

Computer Algebra Recipes

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

312 CHAPTER 7. THE HUNT FOR SOLITONS<br />

Problem 7-19: Ampli¯cation<br />

Multiply the smallest of the three solitary waves in the text recipe by a factor of<br />

3 and interpret the resulting behavior when the worksheet is executed. Explore<br />

the e®ect of multiplying one or more pulses by numerical factors.<br />

Problem 7-20: Radiative ripples<br />

In the text recipe, change the sech 2 terms in the input pulses to sech 4 terms,<br />

then execute the modi¯ed recipe, and discuss the results.<br />

7.3.2 Are Diamonds a Kink's Best Friend?<br />

I never hated a man enough to give him diamonds back.<br />

Zsa Zsa Gabor, Movie actress (1919{)<br />

Although the sine{Gordon equation,<br />

@2Ã @x2 ¡ @2Ã =sinÃ;<br />

@t2 (7.7)<br />

can be numerically solved with an explicit scheme based on a rectangular mesh,<br />

it lends itself more naturally to being tackled with a diamond-shaped mesh<br />

chosen to follow the characteristic directions of the equation. To see how this<br />

works, let's consider the general PDE<br />

a @2U @x2 + b @2U @x@y + c @2U + e =0;<br />

@y2 (7.8)<br />

where a, b, c, and e are functions of U, @U=@x, @U=@y, but not of higher<br />

derivatives. For the SGE, U = Ã, y = t, a =1,b =0,c = ¡1, and e = ¡ sin Ã.<br />

Equation (7.8) can be quite generally solved by the method of characteristics.<br />

Setting p ´ @U=@x and q ´ @U=@y, equation (7.8) can be written in the form<br />

a @p @p @q<br />

+ b + c + e =0:<br />

@x @y @y<br />

Since p = p(x; y) andq = q(x; y), then<br />

(7.9)<br />

dp @p @p dy<br />

= + ;<br />

dx @x @y dx<br />

dq @q dx @q<br />

= + :<br />

dy @x dy @y<br />

(7.10)<br />

Substituting @p=@x and @q=@y into (7.9), then multiplying through by dy=dx,<br />

noting that @q=@x = @p=@y, and rearranging yields<br />

" μ 2 μ # ·<br />

@p dy dy<br />

a ¡ b + c ¡ a<br />

@y dx dx<br />

dp<br />

¸<br />

dy dq dy<br />

+ c + e =0:<br />

dx dx dx dx<br />

(7.11)<br />

At this stage, the resulting equation looks like a mathematical mess! However,<br />

if we choose to work in the characteristic directions whose slopes are given by<br />

μ 2 μ <br />

dy dy<br />

a ¡ b + c =0; (7.12)<br />

dx dx

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

Saved successfully!

Ooh no, something went wrong!