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.

172 CHAPTER 4. NONLINEAR ODE MODELS<br />

> B:=points[2];<br />

B := ¡ 11<br />

12 +<br />

p<br />

33<br />

12<br />

If ¯ = 0, the potential well would have been symmetric about x =0,andthe<br />

second turning point would have been at x = ¡ 1<br />

3 ¼¡0:333. For ¯ =1,the<br />

ppotential well is asymmetric and the second turning point is at B =(¡11 +<br />

33)=12 ¼¡0:438. Clearly, the period of oscillation will be somewhat longer<br />

than the period 2 ¼=!0 ¼ 6:28forthelinearcase.<br />

Mike calculates the period T for the nonlinear situation by multiplying the<br />

time it takes the system to go from B to A by 2, i.e, T =2 R A<br />

(1=vel) dy.<br />

B<br />

> T:=2*int(1/vel,y=B..A);<br />

Ãs<br />

15 ¡<br />

24 EllipticK<br />

T :=<br />

p 33<br />

15 + p !<br />

33<br />

p p<br />

30 + 2 33<br />

The period is expressed in terms of the complete elliptic integral K(k) ofthe<br />

¯rst kind, which is de¯ned as<br />

Z ¼=2<br />

d®<br />

K(k) ´ p<br />

0 1 ¡ k2 sin 2 : (4.10)<br />

®<br />

Maple expresses<br />

q<br />

the complete elliptic integral in the form EllipticK(k), so in<br />

this case k = (15 ¡ p 33)=(15 + p 33): The elliptic integral can be evaluated<br />

numerically,<br />

> T:=evalf(T);<br />

T := 6:747679332<br />

so the period is T ¼ 6:75, which is about 7 1%<br />

longer than for the linear case.<br />

2<br />

To perform the necessary integration to obtain the analytic solution, it is<br />

necessary to assume that the displacement satis¯es x>Band x assume(x>B,x sol:=t=int(1/vel,y=B..x); #implicit solution<br />

à s<br />

45 x +33¡<br />

12 EllipticF 2<br />

sol := t =<br />

p 33 + 3 p 33 x<br />

(15 ¡ p 33) (11 + p 33 + 12 x) ;<br />

s<br />

15 ¡ p 33<br />

15 + p !<br />

33<br />

p p<br />

30 + 2 33<br />

The implicit solution is expressed in terms of the incomplete elliptic integral of<br />

the ¯rst kind, u ´ F (Á; k), which is de¯ned as follows:<br />

Z Á<br />

Z sin Á<br />

d®<br />

dy<br />

u ´ F (Á; k) = p = p<br />

0 1 ¡ k2 2<br />

sin ® 0 1 ¡ y2 p 1 ¡ k2 : (4.11)<br />

y2 Maple expresses the incomplete elliptic integral in the form EllipticF(z; k) with<br />

z ´ sin Á. The complete elliptic integral K(k) corresponds to taking Á = ¼=2.

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

Saved successfully!

Ooh no, something went wrong!