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.

8.1. THE POINCAR ESECTION 325<br />

To aid in interpreting the contour plot, let's ¯nd the stationary points where the<br />

force vanishes. Di®erentiating V with respect to each coordinate and solving<br />

for the coordinate values that make the force components equal to zero,<br />

> sol:=solve(fdiff(V,q1),diff(V,q2)g,fq1,q2g);<br />

sol := fq2 =0; q1 =0g; fq2 =1; q1 =0g;<br />

fq2 = ¡1 1<br />

; q1 =<br />

2 2 RootOf(¡3+ Z 2 ; label = L2 )g<br />

yields a stationary point at q1 = q2 =0andq1 =0; q2 = 1, as well as others<br />

at q2 = ¡ 1 and q1 given by the RootOf placeholder. These latter values may<br />

2<br />

be found by applying the allvalues command to the third entry in sol.<br />

> sol3:=allvalues(sol[3]);<br />

p p<br />

3 ¡1 ¡1 3<br />

sol3 := fq1 = ; q2 = g; fq2 = ; q1 = ¡<br />

2 2 2 2 g<br />

1 ; q2 = ¡ 2 2 and at q1 = ¡ p 3;<br />

q2 = 2<br />

. The four stationary points are now extracted separately and labeled,<br />

> s1:=sol[1]; s2:=sol[2]; s3:=sol3[1]; s4:=sol3[2];<br />

There are two more ¯xed points at q1 = p 3<br />

¡ 1<br />

2<br />

s1 := fq2 =0; q1 =0g s2 := fq2 =1; q1 =0g<br />

p p<br />

3 ¡1<br />

¡1 3<br />

s3 := fq1 = ; q2 = g s4 := fq2 = ; q1 = ¡<br />

2 2 2 2 g<br />

and the potential energy at each stationary point determined.<br />

> U:=v->eval(V,v): V1:=U(s1); V2:=U(s2); V3:=U(s3); V4:=U(s4);<br />

V1 := 0 V2 := 1 1 1<br />

V3 := V4 :=<br />

6 6 6<br />

The stationary point s1 at the origin is the minimum of what would be a<br />

parabolic potential well if the cubic terms were not present in V . Referring<br />

to the contour plot, the shape of the contour lines changes as one moves away<br />

from the origin, the contour lines near the other three stationary points being<br />

characteristic of saddle points. 1 If the particle has a total energy below the<br />

potential energy 1<br />

6 at the saddle point and starts inside the region bounded<br />

by the three saddle points, it will have a bounded orbit inside this region. If<br />

E> 1<br />

6 , the particle could escape through one of the saddle points to in¯nity.<br />

The Hamiltonian is entered, and the command hamilton eqs used to generate<br />

Hamilton's equations and a list of the four dependent variables.<br />

> H:=p1^2/2+p2^2/2+V;<br />

> hamilton_eqs(H);<br />

[ d<br />

d<br />

p1(t) =¡q1 (t) ¡ 2 q1(t) q2 (t);<br />

dt dt p2 (t) =¡q2 (t) ¡ q1 (t)2 + q2 (t) 2 ;<br />

d<br />

d<br />

q1 (t) =p1(t); q2 (t) =p2 (t)]; [p1(t); p2 (t); q1 (t); q2 (t)]<br />

dt dt<br />

1 You can con¯rm this by making a 3-dimensional contour plot using the plot3d command.

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

Saved successfully!

Ooh no, something went wrong!