Beruflich Dokumente
Kultur Dokumente
in
Essentials of Hamiltonian Dynamics
John H. Lowenstein
Preface
This electronic book contains solutions to all of the exercises included in
Essentials of Hamiltonian Dynamics (Cambridge University Press, 2012). I
am providing it free of charge to authorized instructors via the publishers
website, with the hope that it will enhance the pedagogical value of the
textbook. In this solutions book, references to formulas, gures, and citations
in the textbook are prefaced with the initials EHD.
The page numbers and subjects of the exercise solutions are listed at the
beginning of each chapter. Those requiring computer assistance have been
prepared as Mathematica
g cos . (2)
Combining (1) and (2), we get
p
2
= 2g(1 + cos ) = 4g
1 + cos )
2
= 4g cos
2
2
.
Thus we get (EHD:1.17),
p
= 2
g cos
2
.
We now want to obtain (t), given
(0) = 0,
(0) = 2
g,
E = E(0) =
1
2
(0)
2
g cos (0) = 2g g = g.
Thus we are on the separatrix, and so we can insert (EHD:1.17) into the
equation of motion (only the plus sign is relevant) to obtain
d
dt
= 2
g cos
2
.
Solving for dt,
dt =
1
2
g
d
cos(/2)
. (3)
We can integrate (3) to obtain t as a function of :
t =
1
g
2
0
sec d =
1
g
ln
tan(
4
+
4
)
.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 3
Exponentiating both sides gives
tan(
4
+
4
) = e
g t
,
which we can solve for :
(t) = 4 tan
1
(e
g t
) .
For large t, (t) approaches . To obtain the asymptotic behavior, we
Taylor-expand the inverse-tangent function to get
(t) 4e
g t
, for t .
For long times, the pendulum rises toward the unstable equilibrium point at
= , slowing down forever and never reaching the true vertical.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 4
Exercise 1.2 Simple Pendulum Plots
Formulas (EHD:1.19) and (EHD:1.20)
Here the variable t is the time, multiplied by g to make it dimensionless. The period period[k] is defined
similarly.
In[1]:= theta@k_, t_D := 2 ArcSin@k JacobiSN@t, k^2DD
In[2]:= period@k_D := 4 EllipticK@k^2D
Plot of theta[k,t] for various k in the interval (0,1)
Plot@Table@theta@.1 * j, tD, 8j, 1, 9<D, 8t, 0, 10<D
2 4 6 8 10
-2
-1
1
2
Plot of theta[k,t] for one oscillation period, adjustable k
Manipulate@Plot@theta@k, tD, 8t, 0, period@kD<D, 8k, 0, 1<D
k
0.99
2 4 6 8 10 12
-2
-1
1
2
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 5
Exercise 1.3 Simple pendulum period
The period of a simple pendulum is given by (EHD:1.20),
T = 4
1
g
K(k
2
), k
2
=
E + g
2g
.
To determine its asymptotic behavior for k 0, 1, we refer to EHD reference
[3], Chap. 17.
Behavior near E = g
The elliptic K function has a Taylor expansion about k
2
= 0 in the form of
a hypergeometric series,
K(k
2
) =
2
F(
1
2
,
1
2
; 1; k
2
) =
2
1 +
1
2
2
k
2
+
1 3
2 4
2
k
4
+
1 +
1
4
k
2
+ O(k
4
)
For k
2
0, this tends to the period of a simple harmonic oscillator with
frequency
g.
Behavior near E = g
For asymptotically small 1 k
2
, the K function behaves as (from [3])
K(k
2
)
1
2
ln
16
1 k
2
.
Thus the period blows up logarithmically as one approaches the separatrix.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 6
Exercise 1.4 Simple pendulum, E > g
From (EHD:1.18), we have
d
dt
=
2(E + g cos )
.
Introducing
= sin
2
, k =
2g
E + g
we get
dt =
k
g
d
(1 k
2
2
)(1
2
)
.
Dening t
0
such that (t
0
) = 0, we integrate to get
t t
0
=
k
g
F(sin
1
(sin
2
|k
2
).
This can be inverted to obtain
(t) = 2 sin
1
sn(
g(t t
0
)/k, k
2
)
.
The time T during which goes from 0 to 2 corresponds to a half-period
of the sn function (i.e. 2K(k
2
), not 4K(k
2
)),and so
T =
2k
g
K(k
2
) =
8
E + g
K
2g
E + g
.
The asymptotic behaviors are:
T , E g,
T
8
E
K(0) =
2
E
, E .
As expected, the period blows up as one approaches the separatrix motion,
and the large-E formula coincides with the period of a rotor with uniform
angular frequency
E.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 7
Exercise 1.5 Morse Potential
We make the potential energy function dimensionless by dividing by V
0
potentialV@x_D := Exp@-2 xD - 2 Exp@-xD
Plot of potentialV for various a in the interval (0,1]
Plot@Table@potentialV@.1 * j * xD, 8j, 1, 10<D, 8x, -10, 10<, PlotRange 8-1, 1<D
-10 -5 5 10
-1.0
-0.5
0.5
1.0
Contour plot of the dimensionless Hamiltonian
ham@x_, p_D := p^2 2 + potentialV@xD
ContourPlot@ham@x, pD, 8x, -1, 5<, 8p, -2, 2<, ContourShading False,
Contours 20, ContourStyle 8Black, Thickness@.003D<D
-1 0 1 2 3 4 5
-2
-1
0
1
2
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 8
Calculation of x(t) for E < 0
Energy conservation gives us the rst-order dierential equation
E =
1
2
m x
2
+ V
0
_
e
2x
2e
x
_
,
from which we get
x =
_
2V
0
m
_
1 +
E
V
0
(1 e
x
)
2
_
.
Introducing
u = e
x
, =
|E|
V
0
, b =
_
m
2V
0
2
,
the dierential equation becomes
du
dt
= b
1
u
_
1 (1 u)
2
. (4)
The zeros of the quadratic polynomial under the square root sign are the
turning points of the negative-E orbit, located at
u
0
= 1
1 , u
1
= 1
1 .
We solve (4) for dt and integrate, assuming that x = 0 (i.e. u = 1) and
x > 0 (i.e. u < 0) at t = 0:
t = b
_
u
1
du
_
1 (1 u
)
2
=
i
ln
_
u
1
_
i(u )
+
_
1 (1 u)
2
__
1
e
i
_
,
where
=
b
, e
i
=
+ i
1 .
To solve for u, we isolate the square root:
_
1 (1 u)
2
) =
i(u )
+
_
1
ue
i(t)
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 9
Squaring both sides, we nd that the u independent terms cancel. The
remaining terms, divided by u, reduce to a linear equation for u, with the
solution
u(t) =
1 +
1 sin(t )
.
The turning points u
0
and u
1
correspond to the argument of the sine function
reaching
2
and
2
, respectively. The period of the oscillatory motion is twice
the travel time between the turning points, i.e.
T =
2
=
2
_
m
2|E|
.
Thanks to the symmetry properties of the sine function, the solution u(t)
given above can be extended to arbitrary real t.
Calculation of x(t) for E > 0
The calculation follows closely the pattern for negative energy. This time,
we set
=
E
V
0
,
and evaluate
t = b
_
u
1
du
_
1 + (1 u
)
2
.
This leads to the formula for u,
u =
+ 1 cosh(t + ) 1
,
where
cosh =
1 + .
Now there is only one turning point, at
u
1
= 1 +
+ 1,
where the argument of the hyperbolic cosine vanishes. The orbit comes in
from innity, turns around at x =
1
ln u
1
, and goes back to innity. The
formula for u(t) can be extended to arbitrary negative time, thanks to the
symmetry of the hyperbolic cosine function.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 10
Calculation of x(t) for E = 0
Following the same pattern as for nonzero energy, we evaluate
t = b
_
u
1
du
u
3/2
(2 u)
1/2
= b
_
_
2 u
u
1
_
.
Solving for u, we get
u =
_
1 +
t
b
+
t
2
2b
2
_
1
,
so that
x(t) =
1
ln
_
1 +
t
b
+
t
2
2b
2
_
.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 11
Numerical integration
We will do three numerical integrations, all starting at x=0,
dx
dt
>0, for t=0. The energy values are E= -V
0
/2, 0, 2 V
0
.
Runge-Kutta formula
RK4step@g_, z_D := Module@8k1, k2, k3, k4<,
k1 = g@zD * dt;
k2 = g@z + k1 2D * dt;
k3 = g@z + k2 2D * dt;
k4 = g@z + k3D * dt;
z + Hk1 + 2 * k2 + 2 * k3 + k4L 6D
E= -V
0
/2
f@x_D := Sqrt@0.5 - H1 - E^H-xLL^2D
halfperiod = N@3 Pi 4D Sqrt@2.D H* This is the time of the forward turning point *L
3.33216
dt = halfperiod 10000; x = x0 = 0;
orbit = Join@880, 0<<, Table@x = RK4step@f, xD; 8n * dt, x<, 8n, 1, 10000<DD;
ListPlot@orbit, PlotStyle 8Black, Thickness@.003D<, Joined TrueD
0.5 1.0 1.5 2.0 2.5 3.0
0.2
0.4
0.6
0.8
1.0
1.2
halfperiod = -N@ Pi 4D Sqrt@2.D H* This is the time of the backward turning point *L
-1.11072
dt = halfperiod 10000; x = x0 = 0;
orbit = Join@880, 0<<, Table@x = RK4step@f, xD; 8n * dt, x<, 8n, 1, 10000<DD;
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 12
ListPlot@orbit, PlotStyle 8Black, Thickness@.003D<, Joined TrueD
-0.8 -0.6 -0.4 -0.2
-1.0
-0.8
-0.6
-0.4
-0.2
Comparison with the exact formula
Plot@Log@2 H1 + Sqrt@1 2D Sin@t Sqrt@2.D - Pi 4.DLD,
8t, -halfperiod 3, halfperiod<, PlotStyle 8Red, Thickness@.003D<D
-1 1 2 3
-0.5
0.5
1.0
orbit@@10001, 2DD - Log@2 H1 + Sqrt@1 2D Sin@t Sqrt@2.D - Pi 4.DLD . t halfperiod
2.80971 10
-10
+ 3.60221 10
-9
Note that the pointwise accuracy can be improved by using a non-uniform dt , especially reducing its size as one
approaches the turning points.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 13
Extension to arbitrary t
Plot@Log@2 H1 + Sqrt@1 2D Sin@t Sqrt@2.D - Pi 4.DLD,
8t, -20, 20<, PlotStyle 8Red, Thickness@.003D<D
-20 -10 10 20
-0.5
0.5
1.0
E=2 V
0
Integrate@u^H-1L H1 + e - H1 - uL^2L^H-1 2L, uD
Log@uD - LogBe + u + e e - H-2 + uL u F
e
f@x_D := Sqrt@3 - H1 - E^H-xLL^2D
dt = .001; x = x0 = 0;
orbit = Join@880, 0<<, Table@x = RK4step@f, xD; 8n * dt, x<, 8n, 1, 10000<DD;
ListPlot@orbit, PlotStyle 8Black, Thickness@.003D<, Joined TrueD
2 4 6 8 10
2
4
6
8
10
12
14
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 14
Comparison with the exact formula
Plot@Log@HSqrt@3.D Cosh@t Sqrt@2.D + Log@Sqrt@3.D + Sqrt@2DDD - 1L 2D,
8t, 0, 10<, PlotStyle 8Red, Thickness@.003D<D
2 4 6 8 10
2
4
6
8
10
12
14
orbit@@10001, 2DD - Log@HSqrt@3.D Cosh@t Sqrt@2.D + Log@Sqrt@3.D + Sqrt@2DDD - 1L 2D . t 10
6.39488 10
-14
E=0
f@x_D := Sqrt@2 E^H-xL - E^H-2 xLD
dt = .001; x = x0 = 0;
orbit = Join@880, 0<<, Table@x = RK4step@f, xD; 8n * dt, x<, 8n, 1, 10000<DD;
ListPlot@orbit, PlotStyle 8Black, Thickness@.003D<, Joined TrueD
2 4 6 8 10
1
2
3
4
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 15
Comparison with the exact formula
Plot@Log@1 + t + t^2 2D, 8t, 0, 10<, PlotStyle 8Red, Thickness@.003D<D
2 4 6 8 10
1
2
3
4
orbit@@10001, 2DD - NLog@1 + t + t^2 2D . t 10
-1.5099 10
-14
Perturbed system
The Hamiltonian is now
1
2
p
2
+ e
-2 H1+e sin tL x
-2 e
-H1+e sin tL x
,
which is no longer conserved. We need to use the full equations of motion,
x
=
!H
!p
= p, p
= -
!H
!x
= 2 (1 + e sin t) ( e
-2 H1+e sin tL x
- e
-H1+e sin tL x
) ,
with initial conditions appropriate for E = 0: x(0)=0, x
(0) = 1.
f@8x_, p_, theta_<D := 8p, 2 H1 + epsilon * Sin@10 * thetaDL
HE^H-2 H1 + epsilon * Sin@10 * thetaDL xL - E^H-H1 + epsilon * Sin@10 * thetaDL xLL, 1<
The Runge-Kutta integration step is the same as before (now z will be interpreted as a 3-vector):
RK4step@g_, z_D := Module@8k1, k2, k3, k4<,
k1 = g@zD * dt;
k2 = g@z + k1 2D * dt;
k3 = g@z + k2 2D * dt;
k4 = g@z + k3D * dt;
z + Hk1 + 2 * k2 + 2 * k3 + k4L 6D
There are a number of numerical experiments which might be of interest here. We will concentrate on trying to
find evidence that the perturbation can produce complicated multiple bounces within the potential well, followed
eventually by escape. We will be interested in the sensitivity of this phenomenon to the choice of initial conditions.
The value of 0.5 for the perturbation amplitude was found by trial and error to be suitable for our investigation.
dt = .001; epsilon = .5;
x(0)=0, p(0)=1/2
z = 80, 1 2, 0<;
orbit = Join@880, 0<<, Table@Do@z = RK4step@f, zD, 810<D; 8z@@3DD, z@@1DD<, 8n, 1, 10000<DD;
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 16
ListPlot@orbit, PlotStyle 8Black, PointSize@.002D<D
20 40 60 80 100
-0.3
-0.2
-0.1
0.1
0.2
0.3
0.4
x(0)=0, p(0)=3/4
z = 80, 3 4, 0<;
orbit = Join@880, 0<<, Table@Do@z = RK4step@f, zD, 810<D; 8z@@3DD, z@@1DD<, 8n, 1, 10000<DD;
ListPlot@orbit, PlotStyle 8Black, PointSize@.002D<D
20 40 60 80 100
-0.4
-0.2
0.2
0.4
0.6
0.8
x(0)=0, p(0)=9/10
z = 80, 9 10, 0<;
orbit = Join@880, 0<<, Table@Do@z = RK4step@f, zD, 810<D; 8z@@3DD, z@@1DD<, 8n, 1, 10000<DD;
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 17
ListPlot@orbit, PlotStyle 8Black, PointSize@.002D<D
20 40 60 80 100
10
20
30
40
50
60
70
x(0)=0, p(0)=95/100
z = 80, 95 100, 0<;
orbit = Join@880, 0<<, Table@Do@z = RK4step@f, zD, 810<D; 8z@@3DD, z@@1DD<, 8n, 1, 12000<DD;
ListPlot@orbit, PlotStyle 8Black, PointSize@.002D<, PlotRange AllD
20 40 60 80 100 120
5
10
15
x(0)=0, p(0)=95/100
z = 80, 94 100, 0<;
orbit = Join@880, 0<<, Table@Do@z = RK4step@f, zD, 810<D; 8z@@3DD, z@@1DD<, 8n, 1, 25000<DD;
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 18
ListPlot@orbit, PlotStyle 8Black, PointSize@.002D<, PlotRange 8-.6, 5<D
50 100 150 200 250
1
2
3
4
5
x(0)=0, p(0)=12/10
z = 80, 12 10, 0<;
orbit = Join@880, 0<<, Table@Do@z = RK4step@f, zD, 810<D; 8z@@3DD, z@@1DD<, 8n, 1, 8000<DD;
ListPlot@orbit, PlotStyle 8Black, PointSize@.002D<, PlotRange AllD
20 40 60 80
2
4
6
8
10
12
x(0)=0, p(0)=14/10
z = 80, 14 10, 0<;
orbit = Join@880, 0<<, Table@Do@z = RK4step@f, zD, 810<D; 8z@@3DD, z@@1DD<, 8n, 1, 5000<DD;
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 19
ListPlot@orbit, PlotStyle 8Black, PointSize@.002D<, PlotRange AllD
10 20 30 40 50
2
4
6
8
10
12
14
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 20
Exercise 1.6 Elastic pendulum
Lagrangian
L(x, y, x, y) =
m
2
( x
2
+ y
2
)
k
2
x
2
+ y
2
l
0
2
mgy.
EulerLagrange equations
d
dt
L
x
L
x
= m x + k
x
2
+ y
2
l
0
x
2
+ y
2
= 0,
d
dt
L
y
L
y
= m y + k
x
2
+ y
2
l
0
x
2
+ y
2
+ mg = 0.
Canonical momenta
p
x
=
L
x
= m x, p
y
=
L
y
= m y.
Hamiltonian
H(x, y, p
x
, p
y
) = xp
x
+ yp
y
L(x, y, x, y)
=
1
2m
(p
2
x
+ p
2
y
) +
k
2
x
2
+ y
2
l
0
2
+ mgy
Hamiltons equations
x =
H
p
x
=
p
x
m
,
y =
H
p
y
=
p
y
m
,
p
x
=
H
x
= k
x
2
+ y
2
l
0
x
2
+ y
2
p
y
=
H
y
= k
x
2
+ y
2
l
0
x
2
+ y
2
mg.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 21
Exercise 1.7 Cycloid
To simplify the algebra, we write the cycloid equation as
x = f(y),
with derivative
f
(y) =
2a y
y
.
Choosing y as the generalized coordinate, the Lagrangian takes the form
L =
m
2
( x
2
+ y
2
) mgy =
m
2
(1 + f
(y)
2
) y
2
mgy,
which simplies to
ma y
2
y
mgy.
Introducing
p
y
=
2ma y
y
,
the Hamiltonian is
H =
yp
2
y
4ma
+ mgy,
with equations of motion
y =
y p
y
2ma
, p
y
= mg
p
2
y
4ma
.
The accompanying Mathematica notebook contains the numerical explo-
ration of the descent time (quarter-period) as a function initial height. It
appears that the descent time is independent of the initial height. This re-
sult is easy enough to obtain analytically, using energy conservation,
E =
ma y
2
y
+ mgy.
Solving for y gives
dy
dt
= y =
g
a
y(
E
mg
y),
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 22
so that
dt =
a
g
dy
y(
E
mg
y)
.
Integrating over one-quarter of a period,
T
4
=
a
g
E
mg
0
dy
y(
E
mg
y)
=
a
g
1
0
d
(1 )
=
a
g
.
This is clearly independent of the initial condition.
If, instead of y, one happened to choose the arc length s as the generalized
coordinate, then the relation
s =
1 + f
(y)
2
y =
2a
y
y
implies that
y(s) =
s
2
8a
.
The Hamiltonian is then
H =
p
2
s
2m
+ mgy(s) =
p
2
s
2m
+
mg
8a
s
2
,
namely that of a simple harmonic oscillator with energy-independent period
T = 4
a
g
.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 23
Numerical calculation of cycloid descent times
h@y_D := a * ArcCos@Ha - yL aD + Sqrt@2 a y - y^2D
a = 1.0;
cycloid =
ListPlot@Table@8h@k 1000D, k 1000<, 8k, 0, 2000<D, Joined True, AspectRatio AutomaticD
0.5 1.0 1.5 2.0 2.5 3.0
0.5
1.0
1.5
2.0
Calculation and plot of y(t) for 9 different initial values y(0)
RK4step@z_D := Hk1 = f@zD * dt;
k2 = f@z + k1 2D * dt;
k3 = f@z + k2 2D * dt;
k4 = f@z + k3D * dt;
z + Hk1 + 2 * k2 + 2 * k3 + k4L 6L
f@8y_, p_<D := 8y * p 2, -1 - p^2 4<
dt = Pi 2000.; p0 = 0.; t0 = 0;
For@n = 1, n 9, n++, y0 = n 5.;
t = t0; z = z0 = 8y0, p0<;
tbl@nD = Join@88t0, z0<<, Table@t = t + dt; z = RK4step@zD; 8t, z@@1DD<, 82000<DDD
ListPlot@8tbl@1D, tbl@2D, tbl@3D, tbl@4D, tbl@5D, tbl@6D, tbl@7D, tbl@8D, tbl@9D<,
PlotStyle PointSize@.002DD
0.5 1.0 1.5 2.0 2.5 3.0
0.5
1.0
1.5
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 24
Zooming in on the endpoint
ListPlot@8tbl@1D, tbl@2D, tbl@3D, tbl@4D, tbl@5D, tbl@6D, tbl@7D, tbl@8D, tbl@9D<,
PlotRange 882.5, N@PiD<, 80, .2<<, PlotStyle PointSize@.002DD
2.5 2.6 2.7 2.8 2.9 3.0 3.1
0.00
0.05
0.10
0.15
0.20
2 Ex1-7.nb
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 25
Exercise 1.8 Bead on a Rotating Circle
Hamiltonian in dimensionless units
In[3]:= ham@h_, q_, p_D := p^2 2 - Cos@qD - h 2 Sin@qD^2
Contoup plot of ham[q,p] with adjustable parameter h = w
2
/g
In[4]:= Manipulate@ContourPlot@ham@h, q, pD, 8q, -2 Pi, 2 Pi<,
8p, -3, 3<, ContourShading False, ContourStyle BlackD, 8h, 0, 3<D
Out[4]=
h
1.2
-6 -4 -2 0 2 4 6
-3
-2
-1
0
1
2
3
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 26
Exercise 1-9 Chaotic bead on a loop
Calculation of q
e
(t) - q
0
(t) for e = 0.001 and 0 b t b 200
f@8theta_, ptheta_, tau_<D :=
8ptheta, -Sin@thetaD + H157 200L H1 + Sin@tauD 2L * Sin@2 thetaD, 1<
RK4step@g_, z_D := Module@8k1, k2, k3, k4<,
k1 = g@zD * dt;
k2 = g@z + k1 2D * dt;
k3 = g@z + k2 2D * dt;
k4 = g@z + k3D * dt;
z + Hk1 + 2 * k2 + 2 * k3 + k4L 6D
dt = .01;
epsilon = .001;
z0 = 8-1, 0, 0<;
z1 = 8-1, epsilon, 0<;
tbl =
Table@z0 = RK4step@f, z0D; z1 = RK4step@f, z1D; 8z0@@3DD, z0@@1DD - z1@@1DD<, 820000<D;
ListPlot@tbl, Joined True, PlotRange AllD
50 100 150 200
-1.0
-0.5
0.5
1.0
1.5
2.0
We see that the separation between the initially nearby orbits is O(1) after a time of about 100.
Separation time t as a function of initial displacement e
t@epsilon_D := Module@8z0 = 8-1, 0, 0<, z1 = 8-1, epsilon, 0<, n<,
For@n = 1, n < 10^8, n++,
z0 = RK4step@f, z0D;
z1 = RK4step@f, z1D;
If@Abs@z0@@1DD - z1@@1DDD 1, Break@DDD;
z0@@3DDD
t@.001D H* Compare with plot above *L
94.74
t@.0001D
139.12
t@.00001D
202.21
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 27
t@.000001D
256.27
ListPlot@Table@8r 5., t@10^H-r 5.LD<, 8r, 15, 50<D, Joined -> TrueD
4 5 6 7 8 9 10
50
100
150
200
250
300
The function t[epsilon]is increasing roughly proportional to Log[epsilon] as epsilon tends to zero.
High precision calculations
precision = 40;
set@x_D := SetPrecision@x, precisionD
$MinPrecision = precision;
dt = set@1 100D;
epsilon = set@1 1000D;
z0 = set@8-1, 0, 0<D;
z1 = set@8-1, epsilon, 0<D;
tbl =
Table@z0 = RK4step@f, z0D; z1 = RK4step@f, z1D; 8z0@@3DD, z0@@1DD - z1@@1DD<, 820000<D;
ListPlot@tbl, Joined True, PlotRange AllD
50 100 150 200
-1.0
-0.5
0.5
1.0
1.5
2.0
The results are stable with respect to increasing the precision. The sensitivity to initial conditions is not due to
round-off error, but rather is a property of the (presumably chaotic) dynamics,
2 Ex1-9.nb
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 28
Exercise 1.10 Independence of top integrals
The dependence of the three integrals of the motion, H, p
, p
requires
the simultaneous vanishing of all the 3 3 minors of the matrix of partial
derivatives, whose rows are the respective gradient vectors,
H = ( p
, 0, 0,
,
,
),
= (0, 0, 0, 0, 1, 0),
= (0, 0, 0, 0, 0, 1).
The only nontrivial equations are
0 1 0
0 0 1
=
= 0,
0 1 0
0 0 1
= p
= I
= 0.
Thus the three integrals are independent everywhere except on a bound-
ary manifold of dimension < 6, hence of measure zero. On the boundary
manifold, the motions are characterized by constant (absence of nutation).
Since
=
p
cos
I
sin
2
,
=
(p
cos p
) cos
I
sin
2
+
p
I
r
,
these motions also have constant precession and spin rates.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 29
Exercise 1-11 Symmetric top orbits
Function definitions
f@u_D := Hu - u1L * Hu - u2L * Hu - u3L
a := Module@8c0, c1<,
c0 = u1 + u2 + u3 + u1 * u2 * u3;
c1 = u1 * u2 + u1 * u3 + u2 * u3 + 1;
H1 2L * HSqrt@c0 + c1D + Sqrt@c0 - c1DLD
b := Module@8c0, c1<,
c0 = u1 + u2 + u3 + u1 * u2 * u3;
c1 = u1 * u2 + u1 * u3 + u2 * u3 + 1;
H1 2L * HSqrt@c0 + c1D - Sqrt@c0 - c1DLD
RK4step@g_, 8t_, z_<D := Module@8k1, k2, k3, k4<,
k1 = g@8t, z<D * dt;
k2 = g@8t + dt 2, z + k1 2<D * dt;
k3 = g@8t + dt 2, z + k2 2<D * dt;
k4 = g@8t + dt, z + k3<D * dt;
8t + dt, z + Hk1 + 2 * k2 + 2 * k3 + k4L 6<D
phidot@u_D := Hb - a * uL H1 - u^2L
f@8t_, 8u_, phi_<<D :=
8If@EvenQ@Floor@t halfperiodDD, 1, -1D * Re@Sqrt@f@uDDD,
phidot@uD<
u3=1.1
u1 = .2; u2 = .8; u3 = 1.1;
steps = 40;
y = y0 = 80, 8u1 + .0000001, N@PiD<<;
halfperiod = Re@NIntegrate@1 Sqrt@f@uDD, 8u, u1, u2<DD;
dt = halfperiod steps;
cycles = 4;
data = Table@80, 0<, 82 * cycles * steps<D;
For@k = 0, k < cycles, k++,
y@@2, 1DD = u1 + .0000001;
For@n = 1, n steps, n++,
theta = ArcCos@y@@2, 1DDD;
phi = y@@2, 2DD;
data@@2 * k * steps + nDD = 8theta, phi<;
y = RK4step@f, yDD;
y@@2, 1DD = u2 - .0000001;
For@n = 1, n steps, n++,
theta = ArcCos@y@@2, 1DDD;
phi = y@@2, 2DD;
data@@H2 * k + 1L * steps + nDD = 8theta, phi<;
y = RK4step@f, yDD;
D
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 1 30
thetatable = Table@8Hk - 1L * dt, data@@k, 1DD<, 8k, 1, 2 * cycles * steps<D;
ListPlot@thetatable, Joined True, PlotStyle 8Black, Thickness@.003D<D
5 10 15 20 25 30
0.2
0.4
0.6
0.8
1.0
1.2
1.4
phitable = Table@8Hk - 1L * dt, data@@k, 2DD<, 8k, 1, 2 * cycles * steps<D;
ListPlot@phitable, Joined True, PlotStyle 8Black, Thickness@.003D<D
5 10 15 20 25 30
5
10
15
20
Note that precession rate f
F
p
k
G
q
k
,
with summation over k from 1 to n understood. Once the parentheses have
been removed by distributing the derivatives, there are 24 terms, which can
be seen to cancel in pairs.
The messy algebra can be avoided by properly dening the Posson bracket
as a Mathematica function, and showing that the left-hand side of the Jacobi
identity evaluates to zero. This is a little tricky, since lots of Mathematica
expressions evaluate to zero without having anything to do with the Jacobi
identity. For example, if your denition of the Poisson bracket is not proper,
so that it always evaluates to zero, then the Jacobi identity will also evaluate
to zero.
A more elegant derivation is possible using (EHD:2.1). Then, writing
k
for /
k
,
[A, [B, C]] =
k
A
kl
l
(
m
B
mn
n
C)
=
kl
mn
(
k
A
l
m
B
n
C +
k
A
l
n
C
m
B)
Using the (anti)symmetry properties of
kl
mn
with respect to interchanges
of indices, the last equation can be rewritten as
[A, [B, C]] =
kl
mn
(
k
A
l
m
B
n
C
k
B
l
n
C
m
A).
Since the second term diers from the rst by a minus sign and a cyclic
permutation A B C A, we get complete cancellation when we sum
over cyclic permutations to form the Jacobi identity.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 36
Exercise 2.2 Canonical transformation
The trick is to rewrite the transformation equation for P(q, p) as
p = 5 + P cos q.
Since the right-hand side is a function of the variables q, P, we can seek to
express it as the q-derivative of a generating function of type 2. The choice is
dictated by the set of mixed variables: if these were p, P, we would introduce
a generating function of type 4 instead. Thus
p = 5 + P cos q =
q
F
2
(q, P),
which can be integrated immediately to yield
F
2
(q, P) = 5q + P sin q + G(P),
where the constant of integration G(P) is an arbitrary function of P.
The second transformation equation is then obtained by dierentiating
F
2
with respect to P:
Q =
F
2
P
= sin q + G
p 5
cos q
e
k
(q, p, t),
F
2
t
(q, P, t)
Pf(q,p,t)
,
and the analogous equation with e
k
replaced by f
k
. To demonstrate the
method, we will consider only the rst of these.
Following the pattern of the proof in the textbook, we rst work on the
left-hand side:
e
k
t
(q, p, t) =
2
F
2
tP
k
(q, P, t)
Pf(q,p,t)
e
k
p
l
(q, p, t)
2
F
2
tq
k
(q, P, t)
Pf(q,p,t)
.
(5)
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 39
Here we have left the nal expression as an explicit function of the variables
q, p, t.
Now we turn to the right-hand side, applying the denition of the Poisson
bracket:
e
k
(q, p, t),
F
2
t
(q, P, t)
Pf(q,p,t)
=
e
k
q
l
(q, p, t)
2
F
2
tP
j
(q, P, t)
Pf(q,p,t)
f
j
p
l
(q, p, t)
e
k
p
l
(q, p, t)
2
F
2
tq
l
(q, P, t)
Pf(q,p,t)
(6)
e
k
p
l
(q, p, t)
2
F
2
tP
j
(q, P, t)
Pf(q,p,t)
f
j
q
l
(q, p, t)
We notice that, within the sum of the rst and third terms of this last
expression, is the elementary Q, P Poisson bracket,
e
k
q
l
(q, p, t)
f
j
p
l
(q, p, t)
e
k
p
l
(q, p, t)
f
j
q
l
(q, p, t) = [e
k
(q, p, t), f
j
(q, p, t)] =
kl
.
Inserting this into (6) and summing over l, we get precisely the righthand
side of (5).
The approach adopted in the textbook is quite dierent: the overload-
ing of symbols is maintained, but partial derivatives with respect to the two
coordinate systems are distinguished from one another. In this way, the
expressions are unambiguous, even when the sets of arguments are not writ-
ten explicitly. Let us now apply the same technique to the verication of
(EHD:2.11) with F = F
1
(q, Q, t). Clearly, we now associate the symbol
with the coordinate set q, p, t, and
with the set q, Q, t. In the proof, we
will exploit the identities
P
j
=
F
1
Q
j
, p
j
=
F
1
q
j
, (7)
as well as the canonical Poisson bracket relations for Q, P.
The left-hand side of the Q
k
/t identity becomes
Q
k
t
=
Q
k
Q
k
p
l
p
l
t
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 40
Since Q
k
and t are independent variables in the mixed coordinate scheme,
the quantity
Q
k
t
vanishes. Inserting the formula for p
l
in (7), we get
Q
k
t
=
Q
k
p
l
2
F
1
t
q
l
(8)
Now we turn to the right-hand side of the identity, applying the denition
of the Poisson bracket to obtain
Q
k
,
F
1
=
Q
k
q
l
2
F
1
t
Q
m
Q
m
p
l
Q
k
p
l
2
F
1
t
q
l
Q
k
p
l
2
F
1
t
Q
m
Q
m
q
l
.
We note that the sum of the rst and third terms by virtue of the canonical
Poisson bracket relation
[Q
k
, Q
m
] = 0,
and hence we are left with
Q
k
,
F
1
=
Q
k
p
l
2
F
1
t
q
l
. (9)
The right-hand sides of (8) and (9) are identitical, and hence we have the
desired identity of the left-hand sides.
The corresponding identity for P
k
follows the same pattern:
P
k
t
=
P
k
P
k
p
l
p
l
t
=
2
F
1
t
Q
k
P
k
p
l
2
F
1
t
q
l
.
P
k
,
F
1
2
F
1
t
Q
m
[P
k
, Q
m
]
P
k
p
l
2
F
1
t
q
l
.
Inserting
[P
k
, Q
m
] =
km
and summing over m, we get the desired equality of the respective right-hand
sides.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 41
Exercise 2.5 Angular momentum Poisson brackets
We calculate the Poisson bracket of L
2
x
+L
2
y
+L
2
z
with L
x
. Using linearity,
[L
2
x
+ L
2
y
+ L
2
z
, L
x
] = [L
2
x
, L
x
] + [L
2
y
, L
x
] + [L
2
z
, L
x
]. (10)
But
[L
2
x
, L
x
] = 2 [L
x
, L
x
] L
x
= 0 by antisymmetry,
L
2
y
, L
x
= 2 L
y
[L
y
, L
x
] = 2 L
y
L
z
,
[L
2
z
, L
x
] = 2 L
z
[L
z
, L
x
] = 2 L
z
L
y
.
Hence (10) vanishes. The Poisson commutation relations with L
y
and L
z
are
completely analogous.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 42
Exercise 2.6 Normal modes of a triatomic molecule
We begin by calculating the matrix
C = C:
C =
0 0 1 0
0 0 0 1
1 0 0 0
0 1 0 0
k
1
0 0 0
0 k
2
0 0
0 0 (1
3
)/(
1
2
) 1/
2
0 0 1/
2
(1
1
)/(
2
3
)
0 0 (1
3
)/(
1
2
) 1/
2
0 0 1/
2
(1
1
)/(
2
3
)
k
1
0 0 0
0 k
2
0 0
0 (1
3
)/(
1
2
) 1/
2
0 1/
2
(1
1
)/(
2
3
)
k
1
0 0
0 k
2
0
.
=
1/
2
(1
1
)/(
2
3
)
0 0
k
2
0
k
1
0 (1
3
)/(
1
2
) 1/
2
1/
2
(1
1
)/(
2
3
)
k
2
0
2
=
b
2
1
2
b
2
4c,
where
b = k
1
1
3
2
+ k
2
1
1
3
, c =
k
1
k
2
3
.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 43
Using the relation
2
= 1
1
3
, it is easy to show
b
2
> b
2
4c =
k
1
1
3
2
k
2
1
1
2
+
4k
1
k
2
2
2
> 0.
We conclude that the equation has two real, negative solutions for
2
, hence,
up to sign, two pure imaginary solutions for .
For the remainder of this exercise, we turn to the accompanying Mathe-
matica notebook.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 44
Calculation of the eigenvectors
The eigenvectors can be obtained by solving the matrix relation
( C
- l
i
1
4
) e
i
=0
for the respective eigenvalues l= l
i
, i=1,2,3,4. We solve simultaneously the 2nd, 3rd, and 4th rows
of the matrix equation, the 1st row being redundant.
matrixM = 880, -lambda, -1 mu2<, 8-k1, 0, -lambda<, 80, -k2, 0<<;
invM = Inverse@matrixMD
::
lambda mu2
k1
, -
1
k1
, -
lambda
2
mu2
k1 k2
>, :0, 0, -
1
k2
>, :-mu2, 0,
lambda mu2
k2
>>
v = -8H1 - mu1L Hmu2 mu3L, 0, -lambda<;
invM.v
:-
lambda
3
mu2
k1 k2
-
lambda H1 - mu1L
k1 mu3
, -
lambda
k2
,
lambda
2
mu2
k2
+
1 - mu1
mu3
>
psi@lambda_D := :-
lambda
3
mu2
k1 k2
-
lambda H1 - mu1L
k1 mu3
, -
lambda
k2
,
lambda
2
mu2
k2
+
1 - mu1
mu3
, 1>
b = k1 H1 - mu3L Hmu1 mu2L + k2 H1 - mu1L Hmu2 mu3L;
c = k1 k2 Hmu1 mu2 mu3L;
lam@1D = I b 2 - 1 2 b^2 - 4 c ;
lam@2D = I b 2 + 1 2 b^2 - 4 c ;
lam@3D = -I b 2 - 1 2 b^2 - 4 c ;
lam@4D = -I b 2 + 1 2 b^2 - 4 c ;
eigvec@1D = psi@lam@1DD psi@lam@3DD.matrixC.psi@lam@1DD ;
eigvec@2D = psi@lam@2DD psi@lam@4DD.matrixC.psi@lam@2DD ;
eigvec@3D = psi@lam@3DD psi@lam@3DD.matrixC.psi@lam@1DD ;
eigvec@4D = psi@lam@4DD psi@lam@4DD.matrixC.psi@lam@2DD ;
Simplify@matrixK.psi@lambdaDD
9Ilambda
2
mu1 mu2 Ik2 - k2 mu1 + lambda
2
mu2 mu3M +
k1 I-lambda
2
mu2 H-1 + mu3L mu3 - k2 H-1 + mu1 + mu3LMM Hk1 k2 mu1 mu2 mu3L, 0, 0, 0=
CollectAIlambda
2
mu1 mu2 Ik2 - k2 mu1 + lambda
2
mu2 mu3M +
k1 I-lambda
2
mu2 H-1 + mu3L mu3 - k2 H-1 + mu1 + mu3LMM Hmu1 mu2^2 mu3L, lambdaE
lambda
4
-
k1 k2 H-1 + mu1 + mu3L
mu1 mu2
2
mu3
+
lambda
2
Ik2 mu1 mu2 - k2 mu1
2
mu2 - k1 mu2 H-1 + mu3L mu3M
mu1 mu2
2
mu3
This vanishes by virtue of the eigenvalue equation. Hence we have verified directly the eigenvector property, and so
we can replace matrixC.psi[lam[j]] by -lam[j] omega.psi[lam[j]]in the orthogonality formulas.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 45
Orthogonality relations
The diagonal quantities psi[lam[i]].omega.psi[lam[i]]all vanish because of the antisymmetry of omega .
FullSimplify@psi@lam@1DD.omega.psi@lam@2DD . mu2 1 - mu1 - mu3D
0
FullSimplify@psi@lam@1DD.omega.psi@lam@4DD . mu2 1 - mu1 - mu3D
0
FullSimplify@psi@lam@2DD.omega.psi@lam@3DD . mu2 1 - mu1 - mu3D
0
Normalization conditions
FullSimplify@- lambda psi@-lambdaD.omega.psi@lambdaDD
-
1
k1 k2
2
mu3
2
2 lambda
2
Ik2
2
H-1 + mu1L
2
+ lambda
4
mu2
2
mu3
2
+ k2 mu3 I-2 lambda
2
H-1 + mu1L mu2 + k1 mu3MM
Collect@
FullSimplify@%36 * k1 * k2^2 * mu1 * mu3^2 lambda^2 . lambda^4 -b lambda^2 - cD, lambdaD
-2 Ik2
2
H-1 + mu1L
2
mu1 - k1 k2 mu2 mu3 + k1 k2 mu1 mu3
2
M -
2 lambda
2
I-k2 H-1 + mu1L mu1 mu2 mu3 + k1 mu2 H-1 + mu3L mu3
2
M
Inserting these expressions into eigvec[i], i=1,2,3,4, gives the normalized eigenvectors.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 46
Exercise 2.7 Linear triatomic molecule
mu1 = mu3 = 1 4; mu2 = 1 2;
k1 = k2 = k;
a1 = a2 = a;
omega = 880, 0, 1, 0<, 80, 0, 0, 1<, 8-1, 0, 0, 0<, 80, -1, 0, 0<<;
matrixC = 88k1, 0, 0, 0<, 80, k2, 0, 0<,
80, 0, H1 - mu3L Hmu1 mu2L, -1 mu2<, 80, 0, -1 mu2, H1 - mu1L Hmu2 mu3L<<
88k, 0, 0, 0<, 80, k, 0, 0<, 80, 0, 6, -2<, 80, 0, -2, 6<<
MatrixForm@omegaD
0 0 1 0
0 0 0 1
-1 0 0 0
0 -1 0 0
MatrixForm@matrixCD
k 0 0 0
0 k 0 0
0 0 6 -2
0 0 -2 6
tildeC = omega.matrixC; MatrixForm@tildeCD
0 0 6 -2
0 0 -2 6
-k 0 0 0
0 -k 0 0
Collect@Det@tildeC - lambda IdentityMatrix@4DD, lambdaD
32 k
2
+ 12 k lambda
2
+ lambda
4
SolveA32 k
2
+ 12 k lambda
2
+ lambda
4
0, lambdaE
::lambda -2 k >, :lambda 2 k >, :lambda -2 2 k >, :lambda 2 2 k >>
matrixK = tildeC - lambda IdentityMatrix@4D
88-lambda, 0, 6, -2<, 80, -lambda, -2, 6<, 8-k, 0, -lambda, 0<, 80, -k, 0, -lambda<<
matrixM = 880, -lambda, -1 mu2<, 8-k1, 0, -lambda<, 80, -k2, 0<<;
invM = Inverse@matrixMD
::
lambda
2 k
, -
1
k
, -
lambda
2
2 k
2
>, :0, 0, -
1
k
>, :-
1
2
, 0,
lambda
2 k
>>
v = -8H1 - mu1L Hmu2 mu3L, 0, -lambda<;
invM.v
:-
3 lambda
k
-
lambda
3
2 k
2
, -
lambda
k
, 3 +
lambda
2
2 k
>
psi@lambda_D := :-
3 lambda
k
-
lambda
3
2 k
2
, -
lambda
k
, 3 +
lambda
2
2 k
, 1>
Collect@Simplify@matrixK.psi@lambdaD k1 k2 mu2D, lambdaD
932 k
2
+ 12 k lambda
2
+ lambda
4
, 0, 0, 0=
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 47
lam@1D = I Sqrt@4 kD;
lam@2D = I Sqrt@8 kD;
lam@3D = -I Sqrt@4 kD;
lam@4D = -I Sqrt@8 kD;
MatrixForm@Simplify@Table@psi@lam@iDD.matrixC.psi@lam@jDD, 8i, 1, 4<, 8j, 1, 4<DDD
0 0 16 0
0 0 0 32
16 0 0 0
0 32 0 0
eigvec@1D = psi@lam@1DD 4
:-
2 k
, -
2 k
,
1
4
,
1
4
>
eigvec@2D = psi@lam@2DD Sqrt@32D
:
2 k
, -
2 k
, -
1
4 2
,
1
4 2
>
eigvec@3D = psi@lam@3DD 4
:
2 k
,
2 k
,
1
4
,
1
4
>
eigvec@4D = psi@lam@4DD Sqrt@32D
:-
2 k
,
2 k
, -
1
4 2
,
1
4 2
>
MatrixForm@Simplify@Table@eigvec@iD.matrixC.eigvec@jD, 8i, 1, 4<, 8j, 1, 4<DDD
0 0 1 0
0 0 0 1
1 0 0 0
0 1 0 0
Initial value problem
We use formula (EHD:2.17). Once we have determined xi(t) = (q1(t),q2(t),p1(t),p2(t)), the coordinates x1(t), x2(t),
x3(t) will be given by the transformation equations
x2=x1+a + q1, x3=x2 + a + q2
and the center-of-mass condition, mu1 x1 + mu2 x2 + mu3 x3 =0 , which implies
4 x1 + 5 a + 3 q1 + 2 q2 =0.
Initially, q1=0=q2, dq1/dt=-v0, dq2/dt=0,
and so xi = (q1,q2,p1,p2) is given by
xi0 = 80, 0, -3 v0 16, -v0 16<;
The coefficients in (EHD:2.17) are given by
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 48
coef = Table@eigvec@iD.matrixC.xi0, 8i, 1, 4<D
:-
v0
4
,
v0
4 2
, -
v0
4
,
v0
4 2
>
8q1, q2< = coef@@3DD eigvec@1D@@81, 2<DD E^Hlam@1D tL +
coef@@1DD eigvec@3D@@81, 2<DD E^Hlam@3D tL +
coef@@4DD eigvec@2D@@81, 2<DD E^Hlam@2D tL +
coef@@2DD eigvec@4D@@81, 2<DD E^Hlam@4D tL
:-
-2 k t
v0
8 k
+
2 k t
v0
8 k
-
-2 2 k t
v0
8 2 k
+
2 2 k t
v0
8 2 k
,
-
-2 k t
v0
8 k
+
2 k t
v0
8 k
+
-2 2 k t
v0
8 2 k
-
2 2 k t
v0
8 2 k
>
(q1,q2) = (-v0/ 16 k ) ( sin( 4 k t) + sin ( 8 k t )/ 2 ,
sin( 4 k t) - sin ( 8 k t )/ 2 )
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 49
Exercise 2.8 Normal modes with degeneracy
The case of degenerate eigenvalues of the matrix
C = C is handled
using essentially the same technique which we use for ordinary scalar products
in a vector space. According to the discussion of EHD, Section 2.10, all of
the vectors with eigenvalue (assumed to be pure imaginary) are orthogonal
to all of the vectors with any eigenvalue dierent from :
C = ,
C = , = = C = 0.
Let H
()
be the m-dimensional subspace of vectors with eigenvalue .
We wish to construct an orthonormal basis for these subspaces. The rst
step is easy: choose arbitrary vectors
()
1
H
()
and
()
1
H
()
such
that
()
1
C
()
1
= 1, (11)
renormalizing if necessary.
Next, we want to select
()
2
H
()
such that
()
2
C
()
1
= 0. (12)
Suppose H
()
is linearly independent of
()
1
. We can then take
()
2
= ( C
()
1
)
()
1
.
It is easy to check, using (11) that this vector satises (12).
To construct
()
2
, we choose H
()
linearly independent of
()
1
and
set
()
2
= (
()
1
C )
()
1
.
Before proceeding to the analogous construction of
()
3
and
()
3
, we
normalize
()
2
and
()
2
such that their C-scalar-product is unity.
From here on, we repeat the process until a complete orthonormal basis
has been constructed.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 50
Exercise 2.9 Stability of the collinear Lagrange points
In[5]:= ham@x_, y_, px_, py_D := px^2 2 + py^2 2 -
w^2 mu Sqrt@Hx + mu - 1L^2 + y^2D - w^2 H1 - muL Sqrt@Hx + muL^2 + y^2D + w px y - w py x
Lagrange points on the X axis
In[6]:= f@x_, mu_D :=
x Hx + muL^2 Hx + mu - 1L^2 - HSign@x + muD H1 - muL Hx + mu - 1L^2 + Sign@x + mu - 1D mu Hx + muL^2L
In[7]:= Manipulate@Plot@f@x, muD, 8x, -1.2, 1.6<, PlotRange 8-2, 2<D, 8mu, 10^H-4L, 1 2<D
Out[7]=
mu
0.25
-1.0 -0.5 0.5 1.0 1.5
-2
-1
1
2
L
1
(-mu < x < 1-mu)
f1@x_, mu_D := x Hx + muL^2 Hx + mu - 1L^2 - H1 - muL Hx + mu - 1L^2 + mu Hx + muL^2
FindRoot@f1@x, 0.1D 0, 8x, 0.5<D
8x 0.609035<
We expand the Hamiltonian about the equilibrium point at x=x1+u, y=v, px=pu, py=w x1 + pv, keeping only the
quadratic terms in u,v,pu,pv
Simplify@HNormalSeries@ham@x1 + r u, r v, r pu, w x1 + r pvD, 8r, 0, 2<D -
NormalSeries@ham@x1 + r u, r v, r pu, w x1 + r pvD, 8r, 0, 1<DL . r 1D
h :=
1
2
pu
2
+ pv
2
- 2 pv u w + 2 pu v w + w
2
v
2
mu H-1 + mu + x1L
2
H-1 + mu + x1L
4
+
Hmu + x1L
2
Hmu + x1L
4
-
mu Hmu + x1L
2
Hmu + x1L
4
+ 2 u
2
-
mu H-1 + mu + x1L
2
H-1 + mu + x1L
4
-
Hmu + x1L
2
Hmu + x1L
4
+
mu Hmu + x1L
2
Hmu + x1L
4
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 51
Now we specialize to -mu<x<1-mu
SimplifyBh . : H-1 + mu + x1L
2
-x1 - mu + 1, Hmu + x1L
2
x1 + mu>F
1
2
Ipu
2
+ pv
2
- 2 pv u w + 2 pu v w +
II2 u
2
- v
2
M w
2
I2 mu
4
- H-1 + x1L
3
+ mu
3
H-4 + 6 x1L + mu
2
I6 - 9 x1 + 6 x1
2
M +
mu I-4 + 9 x1 - 6 x1
2
+ 2 x1
3
MMM IH-1 + mu + x1L
3
Hmu + x1L
3
MM
Let
k := -
2 mu
4
- H-1 + x1L
3
+ mu
3
H-4 + 6 x1L + mu
2
I6 - 9 x1 + 6 x1
2
M + mu I-4 + 9 x1 - 6 x1
2
+ 2 x1
3
M
H-1 + mu + x1L
3
Hmu + x1L
3
x1 := x . FindRoot@f1@x, muD 0, 8x, 0.5 - mu<D
Plot@k, 8mu, 0, 1<D
0.2 0.4 0.6 0.8 1.0
5
6
7
8
ham1@u_, v_, pu_, pv_D := H1 2L Hpu^2 + pv^2 L + w Hpu v - u pvL - Hk 2L w^2 H2 u^2 - v^2L
Clear@kD
matrixC := 88-2 k w^2, 0, 0, -w 2<, 80, k w^2, w 2, 0<, 80, w 2, 1, 0<, 8-w 2, 0, 0, 1<<;
MatrixForm@matrixCD
-2 k w
2
0 0 -
w
2
0 k w
2
w
2
0
0
w
2
1 0
-
w
2
0 0 1
omega = 880, 0, 1, 0<, 80, 0, 0, 1<, 8-1, 0, 0, 0<, 80, -1, 0, 0<<; MatrixForm@omegaD
0 0 1 0
0 0 0 1
-1 0 0 0
0 -1 0 0
Det@omega.matrixC - lambda IdentityMatrix@4DD
lambda
4
+
lambda
2
w
2
2
- k lambda
2
w
2
+
w
4
16
+
k w
4
4
- 2 k
2
w
4
b := H-k + 1 2L;
c := -2 k^2 + k 4 + 1 16
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 52
Simplify@H-k + 1 2L^2 - 4 H-2 k^2 + k 4 + 1 16LD
k H-2 + 9 kL
Plot@8b + Sqrt@b^2 - 4 cD, b - Sqrt@b^2 - 4 cD<, 8mu, 0, 1 2<D
0.1 0.2 0.3 0.4 0.5
-30
-20
-10
10
L
2
(x > 1-mu)
f2@x_, mu_D := x Hx + muL^2 Hx + mu - 1L^2 - H1 - muL Hx + mu - 1L^2 - mu Hx + muL^2
h :=
1
2
pu
2
+ pv
2
- 2 pv u w + 2 pu v w + w
2
v
2
mu H-1 + mu + x1L
2
H-1 + mu + x1L
4
+
Hmu + x1L
2
Hmu + x1L
4
-
mu Hmu + x1L
2
Hmu + x1L
4
+ 2 u
2
-
mu H-1 + mu + x1L
2
H-1 + mu + x1L
4
-
Hmu + x1L
2
Hmu + x1L
4
+
mu Hmu + x1L
2
Hmu + x1L
4
SimplifyBh . : H-1 + mu + x1L
2
x1 + mu - 1, Hmu + x1L
2
x1 + mu>F
1
2
pu
2
+ pv
2
- 2 pv u w + 2 pu v w +
I-2 u
2
+ v
2
M w
2
I4 mu
3
+ H-1 + x1L
3
+ mu
2
H-6 + 9 x1L + mu I4 - 9 x1 + 6 x1
2
MM
H-1 + mu + x1L
3
Hmu + x1L
3
k :=
4 mu
3
+ H-1 + x1L
3
+ mu
2
H-6 + 9 x1L + mu I4 - 9 x1 + 6 x1
2
M
H-1 + mu + x1L
3
Hmu + x1L
3
x1 := x . FindRoot@f2@x, muD 0, 8x, 2<D
FindRoot@f2@x, .1D 0, 8x, 3<D
8x 1.2597<
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 53
Plot@k, 8mu, 0, 1 2<D
0.1 0.2 0.3 0.4 0.5
2.0
2.5
3.0
3.5
4.0
ham2@u_, v_, pu_, pv_D := H1 2L Hpu^2 + pv^2 L + w Hpu v - u pvL - Hk 2L w^2 H2 u^2 - v^2L
Clear@kD
matrixC := 88-2 k w^2, 0, 0, -w 2<, 80, k w^2, w 2, 0<, 80, w 2, 1, 0<, 8-w 2, 0, 0, 1<<;
MatrixForm@matrixCD
-2 k w
2
0 0 -
w
2
0 k w
2
w
2
0
0
w
2
1 0
-
w
2
0 0 1
omega = 880, 0, 1, 0<, 80, 0, 0, 1<, 8-1, 0, 0, 0<, 80, -1, 0, 0<<; MatrixForm@omegaD
0 0 1 0
0 0 0 1
-1 0 0 0
0 -1 0 0
Det@omega.matrixC - lambda IdentityMatrix@4DD
lambda
4
+
lambda
2
w
2
2
- k lambda
2
w
2
+
w
4
16
+
k w
4
4
- 2 k
2
w
4
b := H-k + 1 2L;
c := -2 k^2 + k 4 + 1 16
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 54
Plot@8b + Sqrt@b^2 - 4 cD, b - Sqrt@b^2 - 4 cD<, 8mu, 0, 1 2<D
0.1 0.2 0.3 0.4 0.5
-15
-10
-5
5
L
3
( x < -mu)
Clear@k, x1D
f3@x_, mu_D := x Hx + muL^2 Hx + mu - 1L^2 + H1 - muL Hx + mu - 1L^2 + mu Hx + muL^2
h :=
1
2
pu
2
+ pv
2
- 2 pv u w + 2 pu v w + w
2
v
2
mu H-1 + mu + x1L
2
H-1 + mu + x1L
4
+
Hmu + x1L
2
Hmu + x1L
4
-
mu Hmu + x1L
2
Hmu + x1L
4
+ 2 u
2
-
mu H-1 + mu + x1L
2
H-1 + mu + x1L
4
-
Hmu + x1L
2
Hmu + x1L
4
+
mu Hmu + x1L
2
Hmu + x1L
4
SimplifyBh . : H-1 + mu + x1L
2
-x1 - mu + 1, Hmu + x1L
2
-x1 - mu>F
1
2
pu
2
+ pv
2
- 2 pv u w + 2 pu v w +
I2 u
2
- v
2
M w
2
I4 mu
3
+ H-1 + x1L
3
+ mu
2
H-6 + 9 x1L + mu I4 - 9 x1 + 6 x1
2
MM
H-1 + mu + x1L
3
Hmu + x1L
3
k := -
4 mu
3
+ H-1 + x1L
3
+ mu
2
H-6 + 9 x1L + mu I4 - 9 x1 + 6 x1
2
M
H-1 + mu + x1L
3
Hmu + x1L
3
x1 := x . FindRoot@f3@x, muD 0, 8x, -1<D
FindRoot@f3@x, .1D 0, 8x, -1<D
8x -1.04161<
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 55
Plot@k, 8mu, 0, 1 2<D
0.1 0.2 0.3 0.4 0.5
1.1
1.2
1.3
1.4
1.5
ham2@u_, v_, pu_, pv_D := H1 2L Hpu^2 + pv^2 L + w Hpu v - u pvL - Hk 2L w^2 H2 u^2 - v^2L
Clear@kD
matrixC := 88-2 k w^2, 0, 0, -w 2<, 80, k w^2, w 2, 0<, 80, w 2, 1, 0<, 8-w 2, 0, 0, 1<<;
MatrixForm@matrixCD
-2 k w
2
0 0 -
w
2
0 k w
2
w
2
0
0
w
2
1 0
-
w
2
0 0 1
omega = 880, 0, 1, 0<, 80, 0, 0, 1<, 8-1, 0, 0, 0<, 80, -1, 0, 0<<; MatrixForm@omegaD
0 0 1 0
0 0 0 1
-1 0 0 0
0 -1 0 0
Det@omega.matrixC - lambda IdentityMatrix@4DD
lambda
4
+
lambda
2
w
2
2
- k lambda
2
w
2
+
w
4
16
+
k w
4
4
- 2 k
2
w
4
b := H-k + 1 2L;
c := -2 k^2 + k 4 + 1 16
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 56
Plot@8b + Sqrt@b^2 - 4 cD, b - Sqrt@b^2 - 4 cD<, 8mu, 0, 1 2<D
0.1 0.2 0.3 0.4 0.5
-4
-2
2
All 3 collinear Lagrange points are unstable (since their eigenvalues are real with opposite
signs).
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 57
Exercise 2.10 Linear stability of the Lagrange points L
4
and L
5
Exercise 2.10 Linear stability of the Lagrange points L
4
and L
5
Hamiltonian
Hamiltonian for a mass-0 particle in the S-J co-rotating frame of reference (S and J on the x-axis, center-of-mass at the
origin):
hamK = u^2 2 + v^2 2 + n * u * y - n * v * x -
m1 Sqrt@Hx + m2 * l Hm1 + m2LL^2 + y^2D - m2 Sqrt@Hx - m1 * l Hm1 + m2LL^2 + y^2D
u
2
2
+
v
2
2
- n v x + n u y -
m2
I-
l m1
m1+m2
+ xM
2
+ y
2
-
m1
I
l m2
m1+m2
+ xM
2
+ y
2
Here u and v are the momenta canonically conjugate to x and y, respectively. The velocities are given by Hamilton's
eqns.: x
= u + ny, y
2
1
0 0 0
0
2
2
0
0 1 0
0 0 0 1
.
To determine stability, we must examine the solutions of the eigenvalue
equation
det( C 1
4
) = 0,
where is (EHD:1.13) and 1
4
is the dimension-4 identity matrix. Evaluating
the determinant, we have
1 0
0 0 1
2
1
0 0
0
2
2
2
1
0
0
2
2
1 0
2
1
0
0
= 0,
hence
4
+
2
(
2
1
+
2
2
) +
2
1
(
2
2
2
) = 0.
This is a quadratic equation for
2
with the solution
2
=
1
2
(
2
1
+
2
2
)
1
2
(
2
1
+
2
2
)
2
4
2
1
(
2
2
2
)
The argument of the square root is always greater than or equal to the
non-negative expression (
2
1
2
2
)
2
, and so
2
must be real. The equilibrium
is stable if and only if the two solutions for
2
are both negative, i.e. if and
only if
|| <
2
.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 60
Exercise 2.12 Harmonic attraction in corotating frame
ham@x1_, x2_, p1_, p2_D := 1 2 Hp1^2 + p2^2L + k 2 HHx1 - rL^2 + x2^2L + w Hp1 x2 - x1 p2L
HNormalSeries@ham@k r Hk - w^2L + s u, s v, s pu, w k r Hk - w^2L + s pvD, 8s, 0, 2<DL . s 1
1
2
Ipu
2
+ pv
2
+ k u
2
+ k v
2
- 2 pv u w + 2 pu v wM -
k r
2
w
2
2 Ik - w
2
M
matrixC = 88k, 0, 0, -w<, 80, k, w, 0<, 80, w , 1, 0<, 8-w, 0, 0, 1<<;
MatrixForm@matrixCD
k 0 0 -w
0 k w 0
0 w 1 0
-w 0 0 1
tildeC = 880, 0, 1, 0<, 80, 0, 0, 1<, 8-1, 0, 0, 0<, 80, -1, 0, 0<<.matrixC;
MatrixForm@tildeCD
0 w 1 0
-w 0 0 1
-k 0 0 w
0 -k -w 0
Collect@Det@tildeC - lambda IdentityMatrix@4DD, lambdaD
k
2
+ lambda
4
- 2 k w
2
+ w
4
+ lambda
2
I2 k + 2 w
2
M
This is a quadratic equation for lambda
2
, with solutions -Hw0 - wL
2
, -Hw0 + wL
2
, where w0= k . Thus, for w!w0,
lambda= (w-w0), (w+w0). The equilibrium is always stable.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 2 61
Chapter 3 Integrable systems
CONTENTS
3.1 Projectile motion (L) 63
3.2 Two gravitational centers in the plane (L) 64
3.3 Annihilating the Hamiltonian (L) 66
3.4 Sawtooth potential action-angle coordinates (L) 67
3.5 Action-angle coordinates for a non-smooth potential (L) 69
3.6 Commuting Hamiltonian ows (L) 71
3.7 Free particle Hamilton-Jacobi generating function (L) 72
3.8 Action-angle coordinates for a free particle in 2D (L) 73
3.9 Free particle in a circular stadium (L) 76
3.10 Fast track for the spherical pendulum (L) 77
3.11 Angle coordinates for the spherical pendulum (L) 79
3.12 Toda model canonical transformation (L) 80
3.13 Toda model non-canonical transformation (L) 81
3.14 Toda model commuting integrals (L) 82
3.15 Toda model period lattice, actions, and frequencies (M) 83
3.16 Liouville-Arnold approach to a familiar system (L) 89
3.17 Integrable model with two degrees of freedom (L) 93
3.18 Hyperboloidal pendulum (L) 95
3.19 Conical pendulum (L) 99
3.20 Combined Coulomb and uniform electric elds (L) 102
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 62
Exercise 3.1 Projectile motion
This is a simple exercise illustrating the use of the Hamilton-Jacobi strat-
egy in a familiar problem with one degree of freedom. The Hamiltonian
is
H(z, p) =
p
2
2m
+ mgz.
We want to transform to new phase-space coordinates Q and P such that
P = H(z, p).
To do this we rearrange the terms of the last equation so that the right-
hand side is a function of p and P, which can then be written in terms of a
generating function of type 4:
z =
1
mg
P
p
2
2m
=
F
4
p
(p, P).
This can be integrated immediately to give
F
4
(p, P) =
p
3
6m
2
g
pP
mg
,
plus an arbitrary function of P, which we choose to be zero. The transfor-
mation equation for Q is now obtained by dierentiating F
4
with respect to
P:
Q =
F
4
P
=
p
mg
.
Hamiltons equations for Q and P are particularly simple, since the new
Hamiltonian is simply P:
Q = 1,
P = 0,
so that
Q(t) = Q(0) + t, P(t) = P(0).
We obtain z(t) by inverting the canonical transformation:
z(t) =
P(t)
mg
g
2
Q(t)
2
=
1
mg
p(0)
2
2m
+ mgz(0)
g
2
(
p(0)
mg
+ t)
2
= z(0) +
p(0)
m
t +
1
2
gt
2
This is just the familiar equation for projectile motion from elementary me-
chanics.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 63
Exercise 3.2 Two gravitational centers in the plane
Derivation of the Hamiltonian
We begin with the Lagrangian, which in rectangular coordinates is
L =
1
2
( x
2
+ y
2
) +
1
_
(x c)
2
+y
2
+
2
_
(x +c)
2
+y
2
.
We make the substitutions
x = c cosh cos , x = c sinh cos
c cosh sin ,
y = c cosh sin , y = c sinh sin
+c cosh cos ,
to obtain
L =
c
2
2
(cosh
2
cos
2
)(
2
+
2
) +
1
c(cosh cos )
+
2
c(cosh + cos )
.
The canonical momenta are dened as
p
=
L
= c
2
(cosh
2
cos
2
)
,
p
=
L
= c
2
(cosh
2
cos
2
) .
The Hamiltonian is constructed as
H =
p
+ p
L,
where all quantities are expressed as functions of , , p
, p
. Thus
H(, , p
, p
) =
p
2
+p
2
2c
2
(cosh
2
cos
2
)
1
c(cosh cos )
2
c(cosh + cos )
=
1
c
2
(cosh
2
cos
2
)
_
1
2
(p
2
+p
2
) 1 c(cosh + cos )
2
c(cosh cos )
_
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 64
Integrability
To establish integrability, we seek a quantity K which Poisson-commutes
with H. If the denominator factor were not present, the solution would be a
familiar one used for a number of simple examples of separable models where
the Hamiltonian splits into pieces dependent on dierent sets of variables.
Thus if
H
(, , p
, p
) +H
1
(, p
) +H
2
(, p
),
we can choose H
1
or H
2
as the second conserved quantity, since both are
independent of H
2
c(
1
+
2
) cosh c
2
H cosh
2
=
p
2
2
+c(
1
2
) cos c
2
H cos
2
Then
[K, H] = [
p
2
2
c(
1
+
2
) cosh ,
1
c
2
(cosh
2
cos
2
)
]c
2
H (cosh
2
cos
2
)
c
2
H[cosh
2
,
1
c
2
(cosh
2
cos
2
)
p
2
2
]. (13)
Since for any smooth function f,
[p
2
, f(cosh
2
)] = [p
2
, cosh
2
]f
(cosh
2
),
we easily verify that the terms on the righthand side of (13) cancel.
Separability
On M
H,K
, we have
p
(, H, K) =
_
2(c
2
H cosh
2
+c(
1
+
2
) cosh +K),
p
(, H, K) =
_
2(c(
1
2
) cos c
2
H cos
2
K).
which establishes separability. The Hamilton-Jacobi generating function
takes the form
W(, , H, K) =
_
0
d
, H, K) +
_
0
d p
, H, K)
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 65
Exercise 3.3 Annihilating the Hamiltonian
We make a canonical transformation with a time-dependent generating
function F
3
(P,
Q, t), so that the new Hamiltonian is
K(
Q,
P, t) = P
1
(
Q,
P, t) +
F
3
t
(P(
Q,
P),
Q, t).
Our aim is to choose F
3
so that K vanishes identically. Direct integration
gives
F
3
(P,
Q, t) = P
1
t + any t-independent function of P,
Q.
The simplest choice of the arbitrary function is zero, but this does not pro-
vide a true transformation of coordinates. The obvious next choice is the
generating function of the identity, giving
F
3
(P,
Q, t) = P
1
t
n
k=1
P
k
Q
k
,
hence the transformation
P
k
= P
k
, k = 1, . . . , n,
Q
k
= Q
k
, k = 2, . . . , n,
Q
1
= Q
1
t
This is clearly a well dened transformation of coordinates which, by con-
struction, has a Hamiltonian which vanishes identically, so that all Q
k
and
P
k
are conserved.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 66
Exercise 3.4 Sawtooth potential action-angle coordinates
The particle moves on the x axis with Hamiltonian
H(x, p) =
p
2
2m
+V (x),
where
V (x) = U|x|/, x , V (x + 2) = V (x)
Since the Hamiltonian is time-independent with a homogeneous quadratic
kinetic energy term, the Hamiltonian is the total energy E, and the latter is
conserved. Clearly action-angle variables are appropriate only for the range
0 < E < U, since for E = 0 the particle is xed at one of the minima of
the potential energy, for E = U it is either xed at a maximum or traveling
on a noncompact separatrix orbit connecting two maxima, and for E >
U, the motion is unbounded. For given E in the range 0 < E < U, the
phase manifold has innitely many connected components, one for each of the
intervals (2n1) < x < (2n+1) n = 0, 1, 2, . . .. We will deal explicitly
here only with n = 0; the treatment of the others is strictly analogous.
For xed enegy E, the phase-space orbit is a topological circle consisting
of the two parabolic arcs
x =
2mU
(2mE p
2
),
2mE p
2mE,
glued together at their endpoints. The action J is the area enclosed by the
orbit, namely
J =
1
_
2mE
2mE
x dp =
2
3mU
(2mE)
3/2
.
Inverting this relation gives the Hamiltonian for action-angle coordinates,
H(J) =
1
2m
(
3mUJ
2
)
2/3
.
To nd the angle coordinate, we construct a generating function S(p, J) of
type 4, so that
x(p, J) =
S
p
(p, J) =
2mU
_
(3mUJ/2)
2/3
p
2
_
.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 67
We integrate to get
S(p, J) =
_
p
2H(J)
dp
x(p
, J).
The angle coordinate conjugate to J is then,for the positive-x part of the
contour of integration,
=
S
J
=
2
_
3mUJ
2
_
1/3
_
p
2mH(J)
dp
=
2
_
3mUJ
2
_
1/3 _
_
2mH(J) p
_
.
On this part of the contour, goes from 0 to . On the negative-x part of
the contour, the analogous calculation gives
= +
2
_
3mUJ
2
_
1/3 _
_
2mH(J) +p
_
.
Over the full contour, the angle increases by 2, while S(p, J) increases by
2J.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 68
Exercise 3.5 Action-angle coordinates for a
non-smooth potential
p
e
r
f
e
c
t
l
y
r
e
f
l
e
c
t
i
n
g
w
a
l
l
fixed points
0
a 2a
p
x
The accompanying gure is a sketch of the phase portrait. Within the
slice 0 < x < 2a, the constant-energy orbits have equations
p
2
2m
A(x a)
2
= E Aa
2
,
hence describe hyperbolic arcs centered at x = a, p = 0. The extensions of
these orbits for x 2a satisfy
p =
2mE
hence are horizontal half-lines. When an orbit hits the wall at x = 0, the
momentum p jumps instantaneously from
2mE to
2mE, corresponding
to perfectly elastic reection. The points on the p = 0 axis with x 2a are
all xed points.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 69
For E < Aa
2
, the orbits are (nonsmooth) topological circles consisting
of hyperbolic arcs and instantaneous momentum jumps at x = 0. Although
stricly speaking the conditions of the Liouville-Arnold theorem are not met,
we can still introduce action-angle variables using the same procedures as in
other models with one degree of freedom. First, we dene the action J as
the area enclosed by an orbit of constant energy, divided by 2. Specically
J(E) =
1
xmax(E)
0
p(x, E) dx,
where
x
max
(E) = a
a
2
E/A, p(x, E) =
2m(E A(a
2
(x a)
2
).
Introducing a new integration variable z = xa and the dimensionless energy
variable
=
E
Aa
2
,
the action integral reduces to
J(E) =
a
2
2mA
1
1
z
2
(1 ) dz
=
a
2
mA
2
1
2
ln
1 +
2mA
1
1
dz
z
2
(1 )
As the energy E approaches the peak of the potential energy curve, namely
Aa
2
, the relative energy approaches unity, and the period blows up as
T
2mAln(1 ), 1.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 70
Exercise 3.6 Commuting Hamiltonian flows
The notation
g
t
i
i
= e
t
i
[,F
i
]
r,s
t
r
i
t
s
j
F
ij
rs
(),
it will be sucient to show that, for all r, s,
F
ij
rs
() = F
ji
sr
().
Explicitly,
F
ij
rs
() =
1
r!s!
[[[, F
j
], F
j
], F
j
], F
i
], F
i
], F
i
],
with r appearances of F
i
and s appearances of F
j
in the multiple Poisson
bracket. The Jacobi identity implies, for arbitrary A,
[A, F
j
], F
i
] = [[A, F
i
], F
j
] + [A, [F
j
, F
i
]] = [[A, F
i
], F
j
].
Hence, in the expression for F
ij
rs
(), the F
i
s can be commuted all the way to
the left, so that F
ij
rs
() is seen to be equal to F
ji
sr
().
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 71
Exercise 3.7 Free particle Hamilton-Jacobi
generating function
We write the generating function (EHD:3.12) out in full:
S(q
1
, q
2
, L, H) = L
_
tan
1
q
2
q
1
cos
1
_
L
|q|
2H
__
_
2H|q|
2
L
2
where |q| =
_
q
2
1
+q
2
2
. We also write out p
1
and p
2
in terms of the same
variables, by solving simultaneously the equations
H =
1
2
(p
2
1
+p
2
2
), L = q
1
p
2
p
1
q
2
to obtain
p
1
=
Lq
2
|q|
2
2H q
1
|q|
1
L
2
2H|q|
2
p
2
=
Lq
1
|q|
2
2H q
2
|q|
1
L
2
2H|q|
2
Using the standard dierentiation formulas
d
dx
tan
1
x =
1
1 +x
2
,
d
dx
cos
1
x =
1
1 x
2
,
we obtain, in straightforward fashion,
S
q
i
= p
i
, i = 1, 2,
S
L
= tan
1
q
2
q
1
cos
1
_
L
|q|
2H
_
= s,
S
H
=
_
2H|q|
2
L
2
2H
= t.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 72
Exercise 3.8 Action-angle coordinates for a free particle in 2D
Calculation of J
1
On the path
1
,
2
= 0, so that t = 0 and s increases from 0 to 2. The
contour is just the circle centered at the origin with radius b =
L
2H
. Thus
J
1
=
1
2
2
0
|p| |q| ds =
1
2
2
0
2H b ds = L.
Calculation of J
2
On the path
2
,
1
= 0, s =
s
t
t, 0 t t.
The contour, parametrized by t, is given by
q
1
= |q| cos (q) = b cos
s
t
t
2H t sin
s
t
t
,
q
2
= |q| sin (q) =
2H t cos
s
t
t
+ b sin
s
t
t
.
Moreover, the momentum vector is
(p
1
, p
2
) =
2H
sin
s
t
t
, cos
s
t
t
Dierentiating q
1
and q
2
with respect to t and inserting into
J
2
=
1
2
t
0
p
1
dq
1
dt
+ p
2
dp
2
dt
dt,
we get, in agreement with (EHD:3.15),
J
2
= Ls + 2Ht.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 73
Generating function
For our calculation of S, we concatenate the circular arc b(cos s
, sin s
), 0
s
s and the straight-line path, tangent to the circle |q| = b, fromb(cos s, sin s)
to (q
1
, q
2
). The circular part produces a contribution |p| |q| s = Ls, while the
second yields |p| |p|t = 2Ht
S = Ls + 2Ht,
in accord with (EHD:3.16).
On the M
H,L
, the generating function takes the form
S(q
1
, q
2
, J
1
, J
2
) = J
1
((q)cos
1
_
J
1
|q|
_
2H(J
1
, J
2
)
_
_
2H(J
1
, J
2
)|q|
2
J
2
1
Most of the details in verifying the derivatives can be found in the solution
to Exercise 3.7. The only additional ingredients are the formulas for
i
=
H
J
i
following (EHD:3.15). Putting these together gives us
S
q
i
= p
i
,
S
J
i
=
i
, i = 1, 2.
Numerical study of H(J
1
, J
2
)
The accompanying gure, generated with the help of the Mathematica func-
tion ContourPlot, shows the contours of constant J
2
in the J
1
, K plane,
where K = 2a
2
H. The red parabola is the boundary of the allowed region in
the energy-momentum diagram of EHD, Figure 3.9. Each contour is a graph
showing how the energy varies with J
1
for a xed value J
2
. Note that the
rescaling of H was necessary in order to assign meaningful numerical values.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 74
.
.
-4 -2 0 2 4
0
2
4
6
8
10
1
.
4
2
.
8
4
.
2
5
.
6
7
.
0
8
.
4
9
.
8
1
1
.
2
1
2
.
6
1
4
.
0
1
5
.
4
1
6
.
8
0
J
1
2a
2
H
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 75
Exercise 3.9 Free particle in a circular stadium
q
2
q
1
b
|q|
| q
|
2
-
b2
=
2
H
t
q
s
2
H
t
/
2
2
H
t/2
a
3
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 76
Exercise 3.10 Fast track for the spherical pendulum
The separability is expressed directly in the relations
p
= L, 0 < 2,
p
=
_
2E
L
2
sin
2
2 cos , 0 < ,
and the curves displayed in EHD, Figure 3.16. According to the fast-track
construction of action-angle coordinates, we rst dene the actions
J
1
= p
= L, J
2
=
1
2
_
p
d.
To evaluate the J
2
integral, we make the usual substitution u = cos to
obtain
J
2
=
1
_
u
2
u
1
du
_
f(u)
1 u
2
,
where u
1
and u
2
are roots of the cubic polynomial
f(u) = 2(1 u
2
)(E u) L
2
.
The transformation to action-angle coordinates is generated by the func-
tion
S(, , J
1
, J
2
) = J
1
+
_
p
(, J
1
, E(J
1
, J
2
))d
As usual, the generating function is specically designed to give
S
= p
,
S
= p
.
Rather than explicitly inverting the action formulas to extract E(J
1
, J
2
),
we skip to the easier task of calculating the angle variables,
1
=
S
J
1
= +
_
dp
dL
d +
__
dp
dE
d
_
dE
dJ
1
2
=
S
J
2
=
__
dp
dE
d
_
dE
dJ
2
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 77
The trick is that it is much easier to calculate the partial derivatives of
E(J
1
, J
2
) than to calculate the function itself.
From (EHD 3.21),
dE
dJ
1
=
J
2
L
_
J
2
E
_
1
=
T
,
dE
dJ
2
=
_
J
2
E
_
1
=
2
T
,
where
= 2L
_
u
2
u
1
du
(1 u
2
)
_
f(u)
, T = 2
_
u
2
u
1
du
_
f(u)
.
Inserting these formulas and once again expressing the integrals in terms of
u = cos , we end up with the transformation equations (EHD:3.23) and
(EHD:3.24).
We note that the above is almost certainly the most ecient construc-
tion of the action-angle variables in this model (as it is for other separable
systems). There was no need for Hamilton-Jacobi theory or Arnolds ow
coordinates to get the job done.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 78
Exercise 3.11 Angle coordinates for the spherical pendulum
For p
1
=
T
t +s,
2
=
2
T
t,
where, from (EHD:3.18), (EHD:3.19), and (EHD:3.20),
t =
_
u
2
u
du
_
f(u
)
+
T
2
, s =
2
_
u
2
u
Ldu
(1 u
2
)
_
f(u
)
.
Thus
1
= +
_
u
2
cos
du
_
f(u)
_
T
L
1 u
2
_
,
2
= +
2
T
_
u
2
u
du
_
f(u)
.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 79
Exercise 3.12 Toda model canonical transformation
Since the X
i
depend only on the mutually commuting x
i
, they also com-
mute with each other. The analogous argument shows that the P
i
also com-
mute with each other. In addition
[X
1
, P
1
] = [x
1
, p
1
] [x
3
, p
1
] = 1, [X
2
, P
1
] = [x
2
, p
1
] [x
3
, p
1
] = 0,
[X
3
, P
1
] = [x
3
, p
1
] = 0,
[X
1
, P
2
] = [x
1
, p
2
] [x
3
, p
2
] = 0, [X
2
, P
2
] = [x
2
, p
2
] [x
3
, p
2
] = 1,
[X
3
, P
2
] = [x
3
, p
2
] = 0,
[X
1
, P
3
] = [x
1
, p
1
+p
2
+p
3
] [x
3
, p
1
+p
2
+p
3
] = 0,
[X
2
, P
3
] = [x
2
, p
1
+p
2
+p
3
] [x
3
, p
1
+p
2
+p
3
] = 1 1 = 0,
[X
3
, P
3
] = [x
3
, p
1
+p
2
+p
3
] = 1,
Thus all the fundamental Poisson-bracket relations hold, and so the trans-
formation is canonical.
Let us construct a type-2 generating function F
2
(x
1
, x
2
, x
3
, P
1
, P
2
, P
3
), so
that
p
i
(x, P) =
F
2
x
i
(x, P), i = 1, 2, 3.
From the second row of (EHD:3.25), we have
p
1
= P
1
, p
2
= P
2
, p
3
= P
3
P
1
P
2
,
and so direct integration gives, as the simplest solution,
F
2
(x, P) = x
1
P
1
+x
2
P
2
+x
3
(P
3
P
1
P
2
).
The remaining equations of (EHD:3.25) are obtained by dierentiation:
X
1
=
F
2
P
1
= x
1
x
3
, X
2
=
F
2
P
2
= x
2
x
3
,
X
3
=
F
2
P
3
= x
3
.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 80
Exercise 3.13 Toda model non-canonical transformation
Since [x
, p
] = 8
and variables
x
, y
, p
x
, p
y
, t imply, and are implied by, the equations of motion obtained
from H using variables x, y, p
x
, p
y
and the rescaled time . Thus, the graphs
of orbits, phase portraits, etc. coincide after a simple rescaling of the axes.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 81
Exercise 3.14 Toda model commuting integrals
We write
H =
1
2
(p
2
x
+p
2
y
)+
1
24
(b+c3), K =
p
x
2
(p
2
x
3p
2
y
)
p
x
8
c+
1
16
(p
x
b
3p
y
a),
where
a = e
2y
_
e
2
3x
e
2
3x
_
, b = e
2y
_
e
2
3x
+e
2
3x
_
, c = e
4y
.
Applying the denition of the Poisson bracket, we have
[H, K] =
1
16
(p
2
x
p
2
y
)
b
x
1
8
p
x
p
y
(
b
y
+
c
y
)
1
192
c
b
x
+
1
8
p
x
p
y
c
y
+
1
384
b
b
x
3
192
a(
b
y
+
c
y
)
1
16
p
2
x
b
x
+
3
8
p
x
p
y
a
x
1
16
p
x
p
y
b
y
3
16
p
2
y
a
y
.
Inserting
a
x
= b,
a
y
= 2y,
b
x
= 2
3a,
b
y
= 2y,
c
x
= 0,
c
y
= 4c.
we get separate cancellation of the terms proportional to ap
2
x
, ap
2
y
, bp
x
p
y
, cp
x
p
y
, ac, ab.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 82
Exercise 3.15 Toda model period lattice, action variables, and
oscillation frequencies
Toda integrals
In[2]:= intH@8x_, y_, px_, py_<D :=
H1 2L Hpx^2 + py^2L + H1 12L Exp@2 yD Cosh@c1 xD + H1 24L Exp@-4 yD - 1 8
In[3]:= intK@8x_, y_, px_, py_<D :=
H1 2L * px Hpx^2 - 3 py^2L - H1 8L * px Exp@-4 yD +
H1 16L * Exp@2 yD H2 px Cosh@c1 xD - c1 py Sinh@c1 xDL
Phase space velocity fields
In[5]:= fH@8x_, y_, px_, py_<D :=
:px, py, -
1
12
c1
2 y
Sinh@c1 xD,
1
6
I
-4 y
-
2 y
Cosh@c1 xDM>
In[6]:= fK@8x_, y_, px_, py_<D := :
1
8
I-
-4 y
+ 12 px
2
- 12 py
2
+
2 y
Cosh@c1 xDM,
-3 px py -
1
16
c1
2 y
Sinh@c1 xD,
1
16
c1
2 y
Hc1 py Cosh@c1 xD - 2 px Sinh@c1 xDL,
1
8
-4 y
I-4 px +
6 y
H-2 px Cosh@c1 xD + c1 py Sinh@c1 xDLM>
Commutation of velocity fields
We show that the Hamiltonian flows generated by H and K commute, in the sense that
[ H, K ] = f
H
W f
K
= 0 .
In[7]:= omega = 880, 0, 1, 0<, 80, 0, 0, 1<, 8-1, 0, 0, 0<, 80, -1, 0, 0<<;
In[8]:= Simplify@fH@8x, y, px, py<D.omega.fK@8x, y, px, py<D . c1 2 Sqrt@3DD
Out[8]= 0
Submanifold M
h,k
(where h = 1, k = -1)
We construct an !
2
covering of the sub-manifold using the 1-parameter groups (Hamiltonian flows) generated by H
and K, namely by integrating the ODE's (x=(x, y, p
x
, p
y
))
dx
dt
= f
H
HxL ,
dx
ds
= f
H
HxL
By the Liouville-Arnol'd Thm., this !
2
covering should project onto a torus, so that we can look for a 2D lattice of
points (t, s) which project onto the same point as (0,0), and such that x(s,t), connected to x(0,0) by the flows is in fact
equal to x(0,0). We shall test this by a numerical experiment, using RK4 to integrate the flows .
We choose as our initial point x(0,0) = (0,0,1,1).
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 83
ODE integrator
In[9]:= RK4step@f_, dt_, z_D := Module@8k1, k2, k3, k4<, k1 = f@zD * dt;
k2 = f@z + k1 2D * dt;
k3 = f@z + k2 2D * dt;
k4 = f@z + k3D * dt;
z + Hk1 + 2 * k2 + 2 * k3 + k4L 6D
Calculation of x(s,t)
We construct a numerical approximation to x(s, t) on the sqauare 0 b s, t b 5. At each lattice point of a 100100 grid
covering the square, we calculate the 4-vector x(s, t) by integrating the flow ODEs with RK4step. We then define
the function over the whole square by using Mathematicas function ListInterpolation.
In[31]:= xiArray = Table@80, 0, 0, 0<, 8100<, 8100<D;
xi = xiArray@@1, 1DD = 80, 0, 1., 1.<;
dt = ds = .0001;
c1 = 2 Sqrt@3.D;
For@t = 1, t 100, t++,
If@t > 1,
Do@xi = RK4step@fH, dt, xiD, 8500<D;
xiArray@@1, tDD = xiD;
eta = xi;
For@s = 2, s 100, s++,
Do@eta = RK4step@fK, ds, etaD, 8500<D;
xiArray@@s, tDD = etaDD;
In[44]:= xiInterp = ListInterpolation@xiArray, 881, 100<, 81, 100<, 81, 4<<D
Out[44]= InterpolatingFunction@881., 100.<, 81., 100.<, 81., 4.<<, <>D
To define x(s, t) properly, we need to rescale and offset s and t.
In[69]:= xi@s_, t_D := Table@xiInterp@20 * s + 1, 20 * t + 1, iD, 8i, 1, 4<D
We now plot the contours x(s,t)=0, y(s,t)=0, p
x
Hs, tL = 1, p
y
(s,t)=1. Where all four contours intersect, we have points
of the period lattice. By eye, we choose (nonuniquely) e
1
to have its endpoint near (60,40) and e
2
to have its endpoint
near (30,65). We can home in on these points using the rootfinding function FindRoot .
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 84
In[60]:= For@i = 1, i 4, i++, xiPlot@iD = ContourPlot@xiInterp@s, t, iD, 8s, 1, 100<,
8t, 1, 100<, PlotRange If@i 2, 8-.0005, 0.0005<, 8.9995, 1.0005<D,
ContourShading False, PlotPoints 200, ContourStyle BlackDD;
Show@Table@xiPlot@iD, 8i, 1, 4<D, PlotRange 880, 100<, 80, 100<<D
Out[61]=
0 20 40 60 80 100
0
20
40
60
80
100
In[72]:= 8.05 * Hs1 - 1L, .05 * Ht1 - 1L< .
FindRoot@8xiInterp@s1, t1, 1D 0, xiInterp@s1, t1, 2D 0<, 8s1, 60<, 8t1, 40<D
Out[72]= 82.81035, 1.85786<
In[73]:= xi@2.810349336741001`, 1.857859015565531`D
Out[73]= 9-1.17961 10
-16
, -1.60982 10
-15
, 1.00001, 1.0001=
In[74]:= 8.05 * Hs2 - 1L, .05 * Ht2 - 1L< .
FindRoot@8xiInterp@s2, t2, 1D 0, xiInterp@s2, t2, 2D 0<, 8s2, 30<, 8t2, 65<D
Out[74]= 81.52273, 3.15019<
In[75]:= xi@1.5227291408346673`, 3.150188958883042`D
Out[75]= 93.8641 10
-16
, 8.32667 10
-17
, 1.00001, 1.00015=
Precision calculation of the lattice points
We can sharpen up these results using Newtons method with 100-digit precision and no interpolation.
In[85]:= Clear@xiD
In[86]:= ptcalc@8s_, t_<, n_D := Module@8ds = s n, dt = t n<,
xi = 80, 0, 1, 1<;
c1 = SetPrecision@2 Sqrt@3D, 100D;
Do@xi = RK4step@fH, dt, xiD, 8n<D;
Do@xi = RK4step@fK, ds, xiD, 8n<D;
xiD
In[91]:= steps = 10000; u = SetPrecision@8281035 100000, 185786 100000<, 100D;
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 85
In[92]:= xi = ptcalc@u, stepsD;
mx = Inverse@Transpose@8fK@xiD@@81, 2<DD, fH@xiD@@81, 2<DD<DD;
u -= mx.xi@@81, 2<DD
Out[94]= 82.810355880393483559364179097502488615765325275416036134049407614997719175098194558,
1.8578559139458896262846031867635177690915659172700836152151386852391877190686616005<
In[95]:= xi = ptcalc@u, stepsD;
mx = Inverse@Transpose@8fK@xiD@@81, 2<DD, fH@xiD@@81, 2<DD<DD;
u -= mx.xi@@81, 2<DD
Out[97]= 82.8103558803925291007504009426657449713292322832350534362197383715,
1.8578559139250087431234808299009033176859706492286017520343692332<
In[98]:= xi = ptcalc@u, stepsD;
mx = Inverse@Transpose@8fK@xiD@@81, 2<DD, fH@xiD@@81, 2<DD<DD;
u -= mx.xi@@81, 2<DD
Out[100]= 82.81035588039252910075039350446974168715493918471,
1.85785591392500874312346330739211829682626220229<
In[101]:= ptcalc@u, stepsD
Out[101]= 90. 10
-31
, 0. 10
-31
, 1.000000000000013844677465829710, 0.999999999999942934780780421699=
In[102]:=
steps = 10000; u = SetPrecision@8152273 100000, 315019 100000<, 100D;
In[103]:= xi = ptcalc@u, stepsD;
mx = Inverse@Transpose@8fK@xiD@@81, 2<DD, fH@xiD@@81, 2<DD<DD;
u -= mx.xi@@81, 2<DD
Out[105]= 81.52273790665976858425541782364623666318571557295951473191957630344881197474509378876358
,
3.15018425389170771955854847297911447100926176419678222948277589540479438556987115419259
<
In[106]:= xi = ptcalc@u, stepsD;
mx = Inverse@Transpose@8fK@xiD@@81, 2<DD, fH@xiD@@81, 2<DD<DD;
u -= mx.xi@@81, 2<DD
Out[108]= 81.5227379066590388570547911715632383468182284673221498753886482093098548030,
3.1501842538554520914406248415758987974679903610616097737151754909005034481<
In[109]:= xi = ptcalc@u, stepsD;
mx = Inverse@Transpose@8fK@xiD@@81, 2<DD, fH@xiD@@81, 2<DD<DD;
u -= mx.xi@@81, 2<DD
Out[111]= 81.5227379066590388570547785656691694937829146398574102434889608,
3.1501842538554520914406013010044729895842581148550310871452094<
e
1
=(2.8103558803925291,1.857855913925009), e
2
=(1.522737906659039,3.150184253855452)
In[112]:= ptcalc@u, stepsD
Out[112]= 91.5234494178845 10
-36
, 2.6817359659656 10
-36
,
1.0000000000000004347331192410185761989679680814242,
0.9999999999999997582752828523560534102958171461401=
Action calculation
In[113]:= fIH@8xi_, eta_<D := Hfh = fH@xiD; 8fh, xi@@83, 4<DD.fh@@81, 2<DD<L
In[114]:= fIK@8xi_, eta_<D := Hfk = fK@xiD; 8fk, xi@@83, 4<DD.fk@@81, 2<DD<L
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 86
In[123]:= Jcalc@8s_, t_<, n_D := Module@8ds = s n, dt = t n<,
psi = 880, 0, 1, 1<, 0<;
c1 = N@2 Sqrt@3DD;
Do@psi = RK4step@fIH, dt, psiD, 8n<D;
Do@psi = RK4step@fIK, ds, psiD, 8n<D;
psi@@2DD N@2 PiDD
In[124]:= steps = 10000; u = 82.8103558803925291, 1.857855913925009<;
xi = Jcalc@u, stepsD
Out[125]= -0.41701688977966833`
In[126]:= steps = 10000; u = 81.522737906659039, 3.150184253855452<;
xi = Jcalc@u, stepsD
Out[127]= 0.18047663892103705`
J
1
= - 0.41701688977966833, J
2
=0.18047663892103705
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 87
Calculation of the oscillation frequencies
We shall calculate the respective increases in
1
and
2
when the state with
s = 0, t = 0 evolves in time to s = 0, t = . The ratios
i
/, i = 1, 2 will be
the frequencies
i
which we seek. To accomplish this, we expand the vector
(0, ) in terms of the lattice vectors e
1
and e
22
which we have just determined
numerically:
1
2
e
1
+
2
2
e
2
Dividing through by /(2), this becomes
0
2
=
1
e
1
+
2
e
2
Solving for the frequencies, and setting e
i
= (e
i1
, e
i2
), we get
e
11
e
21
e
12
e
22
0
2
1
= 1.5882250671214557,
2
= 2.93121858807908.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 88
Exercise 3.16 Liouville-Arnol'd approach to a familiar system
Commutation of L and H
L = q
1
P
2
q
2
P
1
, H =
1
2
(p
2
1
+ p
2
2
+
2
q
2
1
+
2
q
2
2
)
We evaluate the Poisson bracket using the elementary brackets for q
1
, q
2
, p
1
, p
2
,
linearity, and the distributive property over ordinary products. Thus, for ex-
ample,
[q
1
p
2
,
1
2
p
2
1
] =
1
2
p
2
[q
1
, p
2
1
] = p
1
p
2
[q
1
, p
1
] = p
1
p
2
.
Hence
[L, H] = p
1
p
2
2
q
1
q
2
p
1
p
2
+
2
q
1
q
2
= 0.
Independence of L and H
Dependence requires the simultaneous vanishing of the 2 2 minors of the
rectangular array of partial derivatives of H and L:
_
H
q
1
H
q
2
H
p
1
H
p
2
L
q
1
L
q
2
L
p
1
L
p
2
_
=
_
2
q
1
2
q
2
p
1
p
2
p
2
p
1
q
2
q
1
_
Calculating all the minors gives the set of equations
q
1
p
1
+ q
2
p
2
= 0,
p
1
p
2
+
2
q
1
q
2
= 0,
p
2
2
2
q
2
1
= 0,
p
2
1
2
q
2
2
= 0.
These are easily seen to be equivalent to
p
1
= q
2
, p
2
= q
1
.
In conguration space, the orbits of this sub-manifold are circles of radius
_
[L[/. The explicit dependence of H on L is obtained from
L = (q
2
1
+ q
2
2
), H =
2
(q
2
1
+ q
2
2
) = [L[.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 89
Liouville-Arnold analysis
The analysis is analogous to that of the free particle in the plane. The
conguration-space orbits are obtained by integrating Hamiltons equations,
q
i
= p
i
, p
i
=
2
q
i
, i = 1, 2,
with the solution
q
i
(t) = q
i
(0) cos t +
1
p
i
(0) sin t,
p
i
(t) = p
i
(0) cos t q
i
(0) sin t
For xed L and H, these are a family of ellipses conned to the annular
region
r
[q[ r
+
,
where r
:
[L[ = r[p[ = r
2H
2
r
2
,
so that r satises
2
r
4
2Hr
2
+ L
2
= 0,
with the positive solutions
r
=
1
_
H
_
H
2
/
2
L
2
As in the free-particle examples, the annular region is covered without
overlap by the outgoing pieces of the orbits, starting at [q[ = r
and ending
at [q[ = r
+
. If we glue this to a copy of this region covered by the incoming
pieces of the orbits, we obtain a complete, non-redundant representation of
the points of the manifold /
H,L
. The two pieces, /
+
H,L
and /
H,L
, are
glued at both boundaries, [q[ = r
, q
20
= 0, p
10
= 0, p
20
=
_
2H
2
r
2
.
. We then calculate s and t such that
0
= e
s[,L]
e
t[,H]
.
Explicitly,
_
_
_
_
r
0
0
_
2H
2
r
2
_
_
_
_
=
_
_
_
_
cos s sin s 0 0
sin s cos s 0 0
0 0 cos s sin s
0 0 sin s cos s
_
_
_
_
_
_
_
_
cos t 0
1
sin t 0
0 cos t 0
1
sin t
1
sin t 0 cos t 0
0
1
sin t 0 cos t
_
_
_
_
_
_
_
_
q
1
q
2
p
1
p
2
_
_
_
_
Of the four equations equivalent to this matrix relations, we will use the
following pair to solve for s and t:
r
1
cos s = q
1
cos t
p
1
sin t, (14)
r
1
sin s = q
2
cos t
p
2
sin t (15)
To isolate the t dependence, we take the sum of the squares:
r
2
=
1
2
(H +
1
2
(
2
[q[
2
[p[
2
) cos(2t) (q p) sin(2t).
The explicit p dependence can be eliminated using the identities
[p[
2
= 2H
2
[q[
2
, (q p)
2
= [q[
2
[p[
2
L
2
.
This gives
r
2
=
1
2
(H + Acos(2t + )),
where
A =
H
2
2
L
2
, = cos
1
_
2
[q[
2
H
A
_
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 91
But by denition
2
r
2
= H A, and so we get
cos(2t + ) = 1,
hence
t =
1
2
2
_
. (16)
To solve for s, we substitute (16) into (14) and (15) :
r
1
cos s = q
1
sin
2
p
1
cos
2
, (17)
r
1
sin s = q
2
sin
2
p
2
cos
2
, (18)
from which it follows
r
(q
2
cos s q
1
sin s) = r
[q[ cos(s + ) =
L
cos
2
,
where the angle is dened by
q = (q
1
, q
2
) = ([q[ sin , [q[ cos ).
Inserting
cos
2
=
1 + cos
2
=
A +
2
[q[
2
H
2A
=
2
([q[
2
r
2
)
2A
,
we get, nally,
s = + cos
1
_
L([q[
2
r
2
)
2r
[q[A
_
.
The nal step of the Liouville-Arnold analysis is to relate the ow co-
ordinates to action-angle variables. But this is trivial, since both s and t
are already periodic, with periods 2 and 2/, respectively. Thus we can
simply dene
1
= s,
2
= t,
with the conjugate actions
J
1
= L, J
2
=
H
H(J
1
, J
2
) = J
2
.
We note that a far simpler description would have been possible if we had
taken as our two commuting integrals H
i
=
1
2
(p
2
i
+
2
q
2
i
), i = 1, 2.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 92
Exercise 3.17 Integrable model with two degrees of freedom
(a) Conservation of F
We wish to show
[F, H] = [2I
1
+ I
2
, 2( + )I
1
+ I
2
+ (4I
2
1
+ 2I
1
I
2
) cos(
1
2
2
)] = 0.
Since F commutes with I
1
and I
2
, we have
[F, H] = (4I
2
1
+ 2I
1
I
2
)[F, cos(
1
2
2
)]
= (4I
2
1
+ 2I
1
I
2
)
_
2
2
_
cos(
1
2
2
) = 0.
(b) Canonical transformation (, I) (, L)
We introduce a type-2 generating function F
2
(
1
,
2
, L
1
, L
2
) such that the
rst two conditions are satised,
1
=
F
2
L
1
=
2
,
2
=
F
2
L
2
=
1
2
2
.
Integrating, we get
F
2
=
2
L
1
+ (
1
2
2
)L
2
+ S(
1
,
2
).
We easily see that the third condition is satised with S = 0:
F = 2
F
2
1
+
F
2
2
= 2
_
L
2
2
_
+ L 1 L
2
= L
1
.
In addition, we have
I
1
=
F
2
1
=
L
2
2
.
The new Hamiltonian is obtained by substitution:
K(, L) = L
1
+ L
2
+ L
1
L 2 cos(2
2
).
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 93
(c) Torus structure
Set K = E and L
1
= f to get
E = f + L
2
( + f cos(2
2
)),
so that
L
2
=
E f
+ f cos(2
2
)
For values of E and f satisfying
E f ,= 0, [f[ < [
[,
L
1
and L
2
are smooth, 2-periodic functions of
1
and
2
, respectively, and
hence the manifold /
E,f
has the topological structure of a 2-torus.
(d) Energy and oscillation frequencies
The actions are calculated by integrating under the curves L
1
(
1
) and L
2
(
2
):
J
1
=
1
2
_
2
0
L
1
(
1
)d
1
= L
1
= f,
J
2
=
1
2
_
2
0
L
2
(
2
)d
2
= E J
1
4G(J
1
, 2),
where
G(J, ) =
_
0
d
+ J cos
.
Thus
E(J
1
, J
2
) = J
1
+
4J
2
G(J
1
, 2)
.
The frequencies are obtained by dierentiating E with respect to the actions:
1
=
E
J
1
=
4J
2
G(J
1
, 2)
2
G
J
1
(J
1
, 2),
2
=
E
J
2
=
4
G(J
1
, 2)
.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 94
Exercise 3.18 Hyperboloidal pendulum
(a) Lagrangian
Dierentiating the coordinate equations,
x = a sinh cos ,
y = a sinh sin ,
z = a cosh ,
we have for the velocity components,
x = a (cosh cos
sinh sin
),
y = a (cosh sin
+ sinh cos
),
z = a sinh
,
Setting ma
2
= 1 and = g/a, the Lagrangian takes the form
L =
m
2
x x mgz
=
1
2
(cosh
2
+ sinh
2
)
2
+
1
2
sinh
2
2
cosh
(b) Momenta and Hamiltonian
p
=
L
= sinh
2
, p
=
L
= (cosh
2
+ sinh
2
)
,
H =
p
+
p
L
=
1
2
_
p
2
cosh
2
+ sinh
2
+
p
2
sinh
2
_
+ cosh
(c) Constants of the motion
The relevant time evolution equations are
=
H
= 0,
H =
H
t
= 0.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 95
These show that p
2
+
1
2
L
2
sinh
2
+ cosh
Following the pattern used for the spherical pendulum, we introduce
u = cosh , u = sinh
,
so that
2
=
u
2
u
2
1
,
u
2
=
f(u)
2u
2
1
,
where
f(u) = 2(E u)(u
2
1) L
2
.
Since f(1) = L
2
and f(u) 2u
3
for u , we can sketch the function
f(u) in the physical region u 1. We see that u oscillates periodically
f(u)
u
u
1
u
-L
2
1
2
0
between the second and third roots of f(u), u
1
and u
2
, hence is bounded in
. Since is an angle, the motion as a whole is bounded.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 96
(e) Period and azimuthal shift
The period is twice the time it takes to go from u = u
1
to u = u
2
:
= 2
_
u
2
u
1
du
u
= 2
_
u
2
u
1
du
2u
2
1
f(u)
.
During one period, the azimuthal angle increases by
=
_
dt
d
dt
= 2
_
u
2
u
1
du
d
du
= 2L
_
u
2
u
1
du
u
2
1
2u
2
1
f(u)
.
(f) Example with L = 0
Intuitively, the answer is very simple. With the given initial conditions, the
motion will remain in the plane y = 0, with the x coordinate oscillating
periodically between a sinh
0
and a sinh
0
. It is the hyperbolic analogue
of a simple pendulum (motion on the arc of a hyperbola instead of on the
arc of a circle).
/2 3/2 2 /2 3/2 2
0
0
(t) (t)
t
t
The description in terms of the coordinates and is not so simple,
thanks to coordinate singularities. First, consider the time dependence of
:
=
L
sinh
2
=
L
u
2
1
.
At the initial point, with u = u
2
= cosh
0
, the denominator is positive, and
so L = 0. As long as the denominator is positive, the angle is constant and
equal to zero. However, at t = /2, the orbit reaches the turning point at u =
u
1
= 1, and so
becomes indeterminate. From our intuitive understanding
of the orbit, we know how to extend the solution past t = /2: as the particle
traverses the z axis in the xz plane, changes from 0 to . It then remains
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 97
constant at until the return passage through the z axis, when it returns to
the value 0. This is shown in the accompanying gure.
As for the time evolution, we have, for L = 0,
2
=
u
2
u
2
1
=
2(u u
2
)
2u
2
1
.
This is a nonsingular function which vanishes at the turning points. However,
is only well dened for 0 (like the radial coordinate r in spherical polar
coordinates), and so
must change sign at t = (n + 1/2), n = 0, 1, . . .. The
behavior of is sketched in the accompanying gure.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 98
Exercise 3.19 Conical pendulum
(a) Hamiltons equations
r =
H
pr
=
pr
m
,
=
H
p
= 0,
=
H
p
=
p
mr
2
p
r
=
H
r
=
p
2
mr
3
sin
2
mg cos ,
p
=
H
=
p
2
cos
mr
2
sin
3
+ mgr sin
p
=
H
= 0.
From the equations of motion in (a), and p
= L, and =
0
. Then the denition
of H gives
E =
1
2
m r
2
+
L
2
2mr
2
sin
2
0
+ mgr cos
0
. (19)
This is the energy equation for a one-dimensional system with coordinate r
restricted to positive values and a potential energy function
V
e
(r) =
a
r
2
+ br, a =
L
2
2msin
2
0
, b = mg cos .
This function is concave upward with a minimum V
0
= (2
2/3
+2
1/3
)a
1/3
b
2/3
at r = r
0
= (2a/b)
1/3
.
The radial motion is found by integrating (19), considered as a rst-order
ODE for r.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 99
(i) For E > V
0
, r
2
=
2
m
(E V
e
(r)) is positive between two neighboring
zeroes r
1
and r
2
of the righthand side, and so there is an oscillatory solution
between those extreme values. In the r, p
r
plane (with E, L,
0
xed) the
orbit is topologically equivalent to a circle. Having found r(t), one can then
directly integrate the equations of motion for (t) and p
advances an amount p
/
r
along the p
axis.
(ii) For E < V
0
, E V
e
is strictly negative, and so there are no solutions to
(19).
(iii) For E = V
0
, we have r(t) = r
0
for all t, while and p
increase at
uniform rates. In conguration space, the orbit is a circle of radius r
0
sin
0
in a plane parallel to the x, y plane, at a distance r
0
cos
0
above it. The orbit
is a helix in the 3-dimensional x, y, p
j
, F
i
= , p
, H,
j
= r, , , p
r
, p
, p
, vanish.
_
F
i
j
_
=
_
_
_
_
_
_
_
_
0 0 p
r
1 0 p
0 0 0
0 0
pr
m
0 0 0
0 1
p
mr
2
sin
_
_
_
_
_
_
_
_
The only possible nonzero minors have 1 in the rst 2 columns and either
p
r
or p
r
/m in the third column. Both vanish if and only if
p
r
= p
r
= 0,
which implies r = 0 for all t, with
r sin =
_
p
2
tan
m
2
g
_
1/3
. (20)
These exceptional orbits are just those of case (iii) in (b).
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 100
(d) Topological structure of a 3-torus?
Because of the unbounded p
2
_
+
2
u + v
(u v).
p
u
=
L
u
=
m
4
_
u + v
u
_
u, p
v
=
L
v
=
m
4
_
u + v
v
_
v,
p
=
L
= muv
L.
Substituting for u, v,
in terms of u, v, , p
u
, p
v
, p
,, we get
H =
1
u + v
_
2
m
(up
2
u
+ vp
2
v
) +
p
2
2m
_
1
u
+
1
v
_
2 + (u
2
v
2
)
_
.
Commutation, independence, and separability
[K, H] = [
2up
2
u
m
+
p
2
2mu
+ u,
1
u + v
](u + v)H H[u, H]
= [
2up
2
u
m
,
1
u + v
](u + v)H H[u,
2up
2
u
m
] = 0.
The separability is established by solving the dening relations for K for
p
u
(u, p
u
, p
v
, p
) and p
v
(v, p
u
, p
v
, p
).
To check the independence, we write down the rectangular array of par-
tialo derivatives, using the relations
K
u
= v
H
u
,
K
v
= u
H
v
,
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 102
K
p
u
= v
H
p
u
,
K
p
v
= u
H
p
v
,
K
p
=
p
mv
+ v
H
p
.
We get
_
H
u
H
v
0
H
pu
H
pv
H
p
v
H
u
u
H
v
0 v
H
pu
u
H
pv
mv
+ v
H
p
_
For H and K to be dependent, all the 2 2 minors of this matrix must
vanish. This implies, in particular,
p
mv
H
u
= 0.
This restricts the dependence domain to a set of lower dimension, hence of
measure zero. For almost all points in phase space, H and K are independent.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 3 103
Chapter 4 Canonical perturbation theory
CONTENTS
4.1 Perturbed rotor (L) 105
4.2 Double-well quartic potential (L) 107
4.3 Perturbed 2D harmonic oscillator (L) 110
4.4 Perturbed oscillator in normal-mode coordinates (L) 113
4.5 Fourier series perturbation (L) 114
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 4 104
Exercise 4.1 Perturbed rotor
We make a canonical transformation from phase space coordinates , L
to Q, P by means of a generating function of type 2,
F
2
(, P, t) = P + aS(, P, t),
so that
L = P + a
S
,
Q = = + a
S
P
,
and the new Hamiltonian is
K(Q, P, t) = H((Q, P, t), L(Q, P, t), t) + a
S
t
((Q, P, t), P, t)
=
P
2
2I
+ a
P
I
S
+ a sin
2
sin(t) + a
S
t
+ O(a
2
).
We choose S to kill all of the O(a) terms, so that in lowest order K will be
simply P
2
/(2I). The condition on S gives the partial dierential equation
P
I
S
+
S
t
=
1
2
(1 cos(2) sin(t).
The right-hand side is an explicit sum of Fourier terms, and so we expand S
as
S = Bcos(t) + C sin(2) sin(t) + Dcos(2) cos(t).
One could include more Fourier terms, but these are the only ones which,
under application of / and /t, can cancel the given terms in K(Q, P, t).
Plugging into the PDE for S, we have
2P
I
(C sin(t) cos(2) Dsin(2) cos(t)) +
(Bsin(t) + C sin(2) cos(t) Dcos(2) sin(t)) =
1
2
(sin(t) + cos(2) sin(t)) .
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 4 105
Setting = 2P/I, we equate coecients to obtain
B =
1
2
, D =
2(
2
2
, C =
2(
2
2
Thus
S =
1
2
cos(t) +
1
2
_
sin(2) sin(t) +
2
cos(2) cos(t)
_
,
P = L a
S
= L
a
2
( cos(2) cos(t) sin(2) cos(t)) ,
K(P) =
P
2
2I
+ O(a
2
).
The rst order expressions blow up when 2P/I = . If the perturba-
tion expansion were carried out to higher orders, one would expect to nd
vanishing denominators when
m
P
I
+ n = 0, m, n integers.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 4 106
Exercise 4.2 Double-well quartic potential
For the Hamiltonian
H(x, p
x
) =
1
2
p
2
x
2
x
2
+
4
x
4
,
the equations of motion are
x =
H
p
x
= p
x
, p
x
=
H
x
= x x
3
.
The equilibrium points are obtained by setting the right-hand sides equal to
zero:
p
x
= 0, x = 0, x
0
, x
0
=
_
/.
(a) Phase portrait
The gure below was obtained using the Mathematica function ContourPlot,
assuming = = 1. Obviously the equilibrium point at the origin is unsta-
ble, while those at (x
0
, 0) are stable. This will be conrmed by the analytic
calculations of (b).
x
0
-x
0
0
(b) Relative coordinates
We set
x = x
0
+ q, p
x
= p.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 4 107
That the transformation from x, p
x
to the relative coordinates q, p is canonical
follows from a direct calculation of the Poisson brackets,
[q, q] = [p, p] = 0, [q, p] = [x x
0
, p] = 1.
The new Hamiltonian is obtained by substitution, dropping the constant
term H(x
0
, 0):
K(q, p) = H(x
0
+ q, p) H(x
0
, 0) = H
0
(q, p) + H
1
(q),
where
H
0
=
1
2
p
2
+ q
2
, H
1
=
q
3
+
4
q
4
.
For asymptotically small q, p, the system behaves as a harmonic oscillator
with angular frequency =
cos , p =
2J sin .
Substitution into K(q, p) gives
H(, J) = J +
H
1
(, J),
H
1
(, J) = 2
_
J
3/2
cos
3
+
2
J
2
cos
4
.
(d) First-order perturbation
In canonical perturbation theory, a generating function is introduced which
cancels the oscillatory part of the perturbation
H
1
(, J). What is left can be
obtained by simply averaging over the angle:
H =
J +
H
1
(
J) + O(
2
),
where
H
1
(
J) = 2
_
J
3/2
cos
3
) +
J
2
cos
4
)
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 4 108
But
cos
3
) = 0, cos
4
) = 3/8,
and so, to rst order in the perturbation,
H =
J +
3
8
2
J
2
.
The oscillation frequency is obtained by dierentiating with respect to the
action:
(
J) =
H
J
= +
3
4
2
J.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 4 109
Exercise 4.3 Perturbed 2D harmonic oscillator
(a)
We seek a canonical transformation q, p Q, P such that
Q
k
=
1
q
k
+
p
k
i
k
, P
k
=
k
q
k
+
k
p
k
, k = 1, 2,
where
k
and
k
are to be determined.
The canonical Poisson bracket relation
1 = [Q
k
, P
k
] =
1
k
i
k
implies
k
=
k
i
k
,
hence
P
k
=
k
q
k
+
k
i
k
+
p
k
.
Substituting into condition (iii), we get
k
= i
k
/
2, hence
P
k
=
1
2
(p
k
i
k
q
k
).
(b)
We now seek a canonical transformation (Q, P) (, J) such that
J
k
= iQ
k
P
k
, k = 1, 2.
To construct a generating function of type 2, we rewrite this equation with
the righthand side a function of the mixed set of variables Q
1
, Q
2
, J
1
, J
2
:
P
k
=
J
k
iQ
k
=
F
2
Q
k
(Q, J).
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 4 110
Direct integration gives
F
2
(Q, J) =
1
i
2
k=1
J
k
ln Q
k
+ G(J),
with G an arbitrary smooth function of J
1
, J
2
. The angle coordinates
k
are then given by
k
=
F
2
J
k
=
1
i
ln Q
k
+
G
J
k
We must choose G such that the
k
are true angle coordinates. At the
least,
G
J
k
should cancel the imaginary part of the logarithmic term, i ln [Q
k
[.
But
[Q
k
[
2
= Q
k
Q
k
=
1
2
2
k
(p
2
k
+
2
k
q
2
k
) =
J
k
k
,
and hence we want
G
J
k
= i ln
_
J
k
k
,
G(J) = i
k
_
ln
_
J
k
k
dJ
k
.
With this choice,
Q
k
=
_
J
k
k
e
i
k
, P
k
= i
k
Q
k
= i
_
J
k
k
e
i
k
,
q
k
=
1
2
(Q
k
P
k
i
k
) =
_
2J
k
k
cos
k
,
p
k
=
1
2
(P
k
+ i
k
Q
k
) =
_
2J
k
k
sin
k
.
In terms of the , J coordinates, the Hamiltonian takes the form
H =
1
J
1
+
2
J
2
+ 4J
1
J
2
_
2
_
sin
2
1
cos
2
2
.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 4 111
(c)
Making a canonical transformation with generating function
1
J
1
+
2
J
2
+ S(
1
,
2
,
J
1
,
J
2
),
we can eliminate all oscillatory terms in the Fourier expansion of H. This is
equivalent to making an angular average of H over the region 0
1
,
2
< 2.
Since the averages of sin
2
1
cos
2
2
is equal to 1/4, we get
H =
1
J
1
+
2
J
2
+
J
1
J
2
_
2
_
+ O(
2
)
The perturbed oscillation frequencies are
1
=
H
J
1
=
1
(1 +
J
2
) + O(
2
),
2
=
H
J
2
=
2
(1 +
1
2
2
J
1
) + O(
2
).
and the corresponding periods are
T
1
=
2
1
=
2
1
(1
J
2
) + O(
2
),
T
2
=
2
2
=
2
2
(1
1
2
2
J
1
) + O(
2
).
(d)
One does not expect the model to be integrable for 2 degrees of freedom.
The perturbation series can be constructed to arbitrary order in , using the
same technique as in (c). However, the series in for
H,
k
, etc. is not
expected to converge, no matter how small we take , at least in those parts
of phase space where numerical experiments show evidence for the existence
of chaotic orbits. These issues are discussed in some detail in Chapter 5.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 4 112
Exercise 4.4 Perturbed oscillator in normal-mode coordinates
The Hamiltonian, in expanded form, is
H = ia
a + (a
4
+ 4 a
3
a
+ 6 a
2
a
2
+ 4 aa
3
+ a
4
).
We introduce a perturbative generating function for a canonical transforma-
tion to new coordinates, A and A
:
F
2
(a, A
) = aA
+ S(a, A).
where S(a, A) is a quartic polynomial. The corresponding transformation
is given by
a
=
F
2
a
= A
+
S
A
(A, A
= a +
S
A
(A, A
) = i(AA
+A
S
A
A
S
A
)+(A
4
+4 A
3
A
+6 A
2
A
2
+4 AA
3
+A
4
)
+higher degree terms.
The Birkho-Gustavson indices d(M) of the monomials M in the factor
multiplying are
d(A
4
) = 4i = d(A
4
), d(A
3
A
) = d(AA
3
) = 2i, d(A
2
A
2
) = 0.
According to the general prescription, we construct our generating function
by replacing each of the monomials M with nonzero index by M/d(M).
This gives
S(A, A
) = i
_
A
4
4
+ 2A
3
A
2AA
3
A
4
4
_
.
If we insert this into the expression for K, we get
K(A, A
) = i(AA
) + 6(AA
)
2
+ higher degree terms,
while the transformation equations are
A = a i
_
2a
3
6aa
2
4a
3
_
+ higher degree terms,
A
= a
+ i
_
6a
2
a
2a
3
+ a
3
_
+ higher degree terms.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 4 113
Exercise 4.5 Fourier series perturbation
By means of a perturbative transformation
(q
1
, q
2
, p
1
, p
2
) (
1
,
2
, J
1
, J
2
),
we seek to convert the Hamiltonian
H =
1
p
1
+
2
p
2
+
k
1
,k
2
=
h
k
1
,k
2
(p
1
, p
2
) e
i(k
1
q
1
+k
2
q
2
)
into
K =
1
J
1
+
2
J
2
+ K
1
(J
1
, J
2
) + O(
2
).
We use a generating function of the (perturbative) form
F
2
(q
1
, q
2
, J
1
, J
2
) = q
1
J
1
+ q
2
J
2
+
k
1
,k
2
=
c
k
1
,k
2
(J
1
, J
2
) e
i(k
1
q
1
+k
2
q
2
)
so that, up to O(
2
) terms,
i
=
F
2
J
i
(, J) = q
i
f
i
(, J)
p
i
=
F
2
q
i
(, J) = J
i
+ g
i
(, J)
where
f
i
(, J) =
k
1
,k
2
=
c
k
1
,k
2
J
i
(J) e
i(k
1
1
+k
2
2
)
,
g
i
(, J) =
k
1
,k
2
=
ik
i
c
k
1
,k
2
e
i(k
1
1
+k
2
2
)
Inserting the expansions of P
1
and p
2
into H, we get
K =
1
J
1
+
2
J
2
+
k
1
,k
2
=
_
i(
1
k
1
+
2
k
2
)c
k
1
,k
2
(J) +h
k
1
,k
2
(J)
_
e
i(k
1
q
1
+k
2
q
2
)
.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 4 114
We can choose the coecients c
k
1
,k
2
(J) to kill all of the h
k
1
,k
2
(J) except for
the term k
1
= k
2
= 0, which contributes to K
1
(J):
c
0,0
(J) = 0,
c
k
1
,k
2
(J) =
i h
k
1
,k
2
(J)
1
k
1
+
2
k
2
, (k
1
, k
2
) = (0, 0),
K(, J) =
1
J
1
+
2
J
2
+ h
0,0
(J) + O(
2
).
We run into convergence problems whenever
1
and
2
are rationally
related, i.e. their ratio is a rational number. In that case, at least one of the
coecients blows up. Even if there is no exact resonance, one will encounter
smaller and smaller denominators as one progresses to higher values of |k
1
| +
|k
2
|. This small denominators problem, and its solution, are an important
part of the statement and proof of the KAM theorem (see discussion in EHD,
Section 5.2).
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 4 115
Chapter 5 Order and chaos in Hamiltonian systems
CONTENTS
5.1 Covering the rationals with room to spare (L) 117
5.2 Nonlinear stability of the Lagrange points (M) 118
5.3 Full treatment of the nonlinear stability L
4
and L
5
(M) 124
5.4 Poincare sections of the driven pendulum (M) 130
5.5 Stochastic web map (M) 134
5.6 Stochastic webs (M) 137
5.7 Folded web map (M) 144
5.8 Orbits and Poincare sections of the Dung oscillator (M) 150
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 5 116
Exercise 5.1 Covering the rationals with room to spare
The result is easy to prove, but still challenges our intuition about the
real numbers. The rationals are dense in the reals, but nonetheless they are
countable, and so we can list them as r
1
, r
2
, r
3
, . . . . If, on the segment (0, 1),
we cover the nth rational r
n
with a segment of length 2
n2
, the total length
of all the segments will be less than or equal to
1
4
n=1
2
n
=
1
8
1 +
1
2
+ (
1
2
)
2
+
=
1
8
1
1
1
2
=
1
4
<
1
2
.
It is easy to change the prescription to make the total length as small as one
wants.
This simple warm-up exercise is designed to help students deal with the
KAM solution to the small denominator problem of canonical perturbation
theory. In that context, the resonant frequencies may be dense in the space
of all frequencies, but they can be covered by open sets and removed from
the space at the expense of only a small fraction of the total measure.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 5 117
Exercise 5.2 Nonlinear stability of the Lagrange points L
4
and
L
5
Hamiltonian
Hamiltonian for a mass-0 particle in the S-J co-rotating frame of reference (S and J on the x-axis, center-of-mass at the
origin):
In[15]:= hamK = px^2 2 + py^2 2 + px y - x py -
Hmu Sqrt@Hx + mu - 1L^2 + y^2D + H1 - muL Sqrt@Hx + muL^2 + y^2DL
Out[15]=
px
2
2
+
py
2
2
- py x + px y -
mu
H-1 + mu + xL
2
+ y
2
-
1 - mu
Hmu + xL
2
+ y
2
Here p
x
and p
y
are the momenta canonically conjugate to x and y, respectively. We have chosen time units such that
the Keplerian frequency is equal to unity. The velocities are given by Hamilton's eqns.: x
= p
x
+ y, y
= p
y
- x . At a
stationary point (a,b), the momenta are thus p
x
= -b, p
y
= a . At L
4
,
a = 1/2 - m, b= 3 2 Hsee EHDFigure 2.7L, while at L
5
, a = 1/2 - m, b= - 3 2 . From here on, we restrtict
ourselves to L
4
.
Hamiltonian in relative coordinates in neighborhood of L
4
We now introduce coordinates q1,q2,p1,p2 relative to the L
4
stationary point (see EHD Figurer 2.7). We also use a
parameter s is introduced to keep track of powers of q1,q2,p1,p2.
In[18]:= hamK1 = hamK . 8x 1 2 - mu + s * q1,
y Sqrt@3D 2 + s * q2, px -Sqrt@3D 2 + s * p1, py 1 2 - mu + s * p2<;
We Taylor-expand up to degree 4:
In[19]:= hamK1 = Collect@Expand@Normal@Series@hamK1, 8s, 0, 4<DDD, sD
Out[19]= -
3
2
+
mu
2
-
mu
2
2
+
p1
2
2
+
p2
2
2
- p2 q1 +
q1
2
8
+ p1 q2 -
3
4
3 q1 q2 +
3
2
3 mu q1 q2 -
5 q2
2
8
s
2
+
-
7 q1
3
16
+
7 mu q1
3
8
+
3
16
3 q1
2
q2 +
33 q1 q2
2
16
-
33
8
mu q1 q2
2
+
3 3 q2
3
16
s
3
+
37 q1
4
128
+
25
32
3 q1
3
q2 -
25
16
3 mu q1
3
q2 -
123 q1
2
q2
2
64
-
45
32
3 q1 q2
3
+
45
16
3 mu q1 q2
3
-
3 q2
4
128
s
4
Finally, we introduce the parameter k=
3
4
3 H1 - 2 mL to simplify the coefficients:
In[20]:= hamK1 = Collect@Simplify@hamK1 . mu 1 2 - 2 k H3 Sqrt@3DLD, sD
Out[20]= -
11
8
-
2 k
2
27
+
p1
2
2
+
p2
2
2
- p2 q1 +
q1
2
8
+ p1 q2 - k q1 q2 -
5 q2
2
8
s
2
+
-
7 k q1
3
12 3
+
3
16
3 q1
2
q2 +
11 k q1 q2
2
4 3
+
3 3 q2
3
16
s
3
+
37 q1
4
128
+
25
24
k q1
3
q2 -
123 q1
2
q2
2
64
-
15
8
k q1 q2
3
-
3 q2
4
128
s
4
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 5 118
Diagonalization of the quadratic Hamiltonian
hamK2 =
p1
2
2
+
p2
2
2
- p2 q1 +
q1
2
8
+ p1 q2 - k q1 q2 -
5 q2
2
8
;
The quadratic Hamiltonian hamK2 may be written
1
2
rCr , where r=(q1,q2,p1,p2) and
c = 881 4, -k, 0, -1<, 8-k, -5 4, 1, 0<, 80, 1, 1, 0<, 8-1, 0, 0, 1<<;
Hamilton's equations take the form r
3
P
2
Q
3
0 0
3
P
1
Q
3
0 0
2Q
3
(1 +
43
(
1
+
2
)) 2Q
3
0
3
P
2
P
3
+P
1
(1 + 4
41
1
+ 2
42
2
+ 2
43
3
) P
1
P
1
3
P
1
P
3
+P
2
(1 + 4
41
2
+ 2
42
1
+ 2
43
3
) P
2
P
2
3
P
1
P
2
+ 2P
3
(1 +
43
(
1
+
2
)) 2P
3
0
5
= Q
3
P
1
P
2
,
4
= P
1
P
2
P
3
,
we conclude that if P
1
= P
2
= 0, then
5
=
4
= 0 and equation (EHD:6.14)
holds trivially, while if Q
3
= 0, then
5
= 0,
4
=
P
2
1
P
2
2
P
2
3
=
3
.
Moreover, the only nontrivial minor for Q
3
= 0 is built from rows 4,5, and
6. Evaluating the determinant, we get
P
2
P
3
P
1
P
1
P
1
P
3
P
2
P
2
P
1
P
2
2P
3
0
+P
1
P
2
P
3
1 + 4
41
1
+ 2
42
2
+ 2
43
3
1 1
1 + 4
41
2
+ 2
42
1
+ 2
43
3
1 1
2(1 +
43
(
1
+
2
)) 2 0
3
+
2
2
),
while the second one evaluates to
4
4
((2
41
+
42
4,3
)(
1
+
2
) + 2
43
3
)
Setting the sum equal to zero completes the proof of (EHD:6.14).
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 6 170
Exercise 6.5 Formulas for
4
and
5
The three conserved quanties are:
K
2
=
1
2
(
1
+
2
+ 2
3
),
M =
1
2
(
2
1
),
K = K
2
+
3
4
+
41
(
2
1
+
2
2
) +
42
2
+
43
(
1
+
2
)
3
.
Solving for
4
gives
1
3
g(
3
), with g given by (EHD:6.16). Solving (EHD:6.12),
2
5
+
2
4
=
1
3
,
for
5
gives
f(
3
), with f given by (EHD:6.17).
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 6 171
Exercise 6.6 Poisson bracket [
k
,
4
]
By denition,
ln(Q
k
iP
k
) =
1
2
ln
k
+i
k
, k = 1, 2.
Thus,
[
1
2
ln
k
+i
k
,
5
+i
4
] = [ln(Q
k
iP
k
), (Q
1
iP
1
)(Q
2
iP
2
)(Q
3
+iP
3
)] = 0.
Taking the real part,
[
k
,
4
] = [
1
2
ln
k
,
5
] =
1
2
k
[
k
,
5
] =
4
k
, k = 1, 2.
Here we have used the Poisson bracket identity
[F(A), B] = F
(A)[A, B]
and the formulas (EHD:6.11).
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 6 172
Exercise 6.7 Bifurcation point
The bifurcation point is characterized by the function f(
3
) having a
cubic inection point, where
f(
3
) = f
(
3
) = f
(
3
) = 0.
Let us write these simultaneous equations in terms of the variables K
2
, M,
3
,
4
and constants m
1
=
41
/
3
, m
2
=
42
/
3
, m
3
=
43
/
3
:
f(
3
) = ((K
2
3
)
2
M
2
)
3
2
4
= 0
f
(
3
) = K
2
2
M
2
4K
2
3
+ 3
3
3
+4
4
(
3
(2m
1
+ m
2
2m
3
) K
2
(2m
1
+ m
2
m
3
)) = 0
f
(
3
) = 6
4
4K
2
8((
3
(2m
1
+ m
2
2m
3
) K
2
(2m
1
+ m
2
m
3
))
2
+4
4
(2m
1
+ m
2
2m
3
) = 0.
Using the Mathematica function Solve, we nd that the only real solu-
tions for K
2
,
3
,
4
are
K
2
=
3
=
4
= 0
and
K
2
=
3
=
512
361
,
4
= 0.
Clearly the second solution is the desired threshold solution. Note that the
condition f = 0 implies that M = 0 as well.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 6 173
Exercise 6.8 Plotting the function f(r
3
)
The function f(r
3
)
mu3 = 3 H4 Sqrt@2DL;
mu41 = 3 128;
mu42 = 51 256;
mu43 = -57 256;
rho4@K2_, M_, K_, r3_D := Module@8r1, r2, r4<,
r1 = K2 - M - r3;
r2 = K2 + M - r3;
mu3^H-1L HK - K2 - mu41 Hr1^2 + r2^2L - mu42 r1 r2 - mu43 Hr1 + r2L r3LD
f@K2_, M_, K_, r3_D := Module@8r1, r2, r4<,
r1 = K2 - M - r3;
r2 = K2 + M - r3;
r4 = mu3^H-1L HK - K2 - mu41 Hr1^2 + r2^2L - mu42 r1 r2 - mu43 Hr1 + r2L r3L;
r1 r2 r3 - r4^2D
Manipulate@Plot@f@K2, M, K, r3D, 8r3, 0, K2<, PlotRange 8-max, max<D,
8K2, 0, 5<, 8M, 0, K2<, 8K, 0, 5<, 8max, 1 1000, 10<D
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 6 174
Exercise 6.9 Derivation of EHD equation (6.28)
We start with Eq. (EHD:6.14), divided through by
3
, and make the
substitutions
1
K
2
M
3
,
2
K
2
+M
3
,
3
3
2
8
,
41
3
128
,
41
51
256
,
41
57
256
.
Easy algebra gives (EHD:6.28)
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 6 175
Exercise 6.10 Properties of the boundary curves
From (EHD:6.15), we have
K
2
+
2
+
3
M K
2
3
.
We see that the extreme values of M are achieved when
2
=
3
= 0, M = K
2
minimum value
1
=
3
= 0, M = K
2
maximum value
From (EHD:6.13) and (EHD:3.15), each of these conditions determines a
unique value of K, hence a unique point (A
+
or A
follows from the fact that the second derivative at the point
of tangency is continuous as one traverses the path E
D, and
moreover it changes from negative on E
2
is obtained by decreasing K
2
continuously until C
+
and C
2
.
For M = 0 (and only for M = 0), the boundary equations f(
3
) = 0 and
(EHD:6.28) have a special solution where
3
achieves its maximum possible
value,
3
= K
2
. Then, from (EHD6.15),
1
= 0 =
2
. Since
5
= 0 and
2
4
+
2
5
=
1
3
= 0, we conclude that
4
= 0 as well. Finally, from
(EHD6.13), we conclude K = K
2
.
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 6 176
Exercise 6.11 Angular shifts
The function f(rho3)
mu3 = 3 H4 Sqrt@2DL;
mu41 = 3 128;
mu42 = 51 256;
mu43 = -57 256;
f@H2_, L_, H_, r3_D := Module@8r1, r2, r4<,
r1 = H2 - L - r3;
r2 = H2 + L - r3;
r4 = mu3^H-1L HH - H2 - mu41 Hr1^2 + r2^2L - mu42 r1 r2 - mu43 Hr1 + r2L r3L;
r1 r2 r3 - r4^2D
rho1@H2_, L_, H_, r3_D := H2 - L - r3
rho2@H2_, L_, H_, r3_D := H2 + L - r3
rho4@H2_, L_, H_, r3_D := Module@8r1, r2, r4<,
r1 = H2 - L - r3;
r2 = H2 + L - r3;
mu3^H-1L HH - H2 - mu41 Hr1^2 + r2^2L - mu42 r1 r2 - mu43 Hr1 + r2L r3LD
froots@H2_, L_, H_D := NSolve@f@H2, L, H, r3D 0, r3, Reals, WorkingPrecision 40D
R0@H2_, L_, H_D := r3 . froots@H2, L, HD@@1DD
R1@H2_, L_, H_D := r3 . froots@H2, L, HD@@2DD
R2@H2_, L_, H_D := r3 . froots@H2, L, HD@@3DD
R3@H2_, L_, H_D := r3 . froots@H2, L, HD@@4DD
Precession rates for a
1
and a
2
; angular shifts T
1
and T
2
h1@H2_, L_, H_, r3_D := 1 + mu3 rho4@H2, L, H, r3D rho1@H2, L, H, r3D +
4 mu41 rho1@H2, L, H, r3D + 2 mu42 rho2@H2, L, H, r3D + 2 mu43 r3
h2@H2_, L_, H_, r3_D := 1 + mu3 rho4@H2, L, H, r3D rho2@H2, L, H, r3D +
4 mu41 rho2@H2, L, H, r3D + 2 mu42 rho1@H2, L, H, r3D + 2 mu43 r3
Machine precision calculation
t1@H2_, L_, H_D := Re@
NIntegrate@h1@H2, L, H, r3D Hmu3 Sqrt@f@H2, L, H, r3DDL, 8r3, R0@H2, L, HD, R1@H2, L, HD<DD
t2@H2_, L_, H_D := Re@
NIntegrate@h2@H2, L, H, r3D Hmu3 Sqrt@f@H2, L, H, r3DDL, 8r3, R0@H2, L, HD, R1@H2, L, HD<DD
ell@s_D := Cos@sD;
aitch@s_D := 29 10 + Sin@sD;
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 6 177
Plot@t1@3, ell@sD, aitch@sDD, 8s, 0, 2 Pi<, PlotPoints 20D
1 2 3 4 5 6
1
2
3
4
5
6
Plot@t2@3, ell@sD, aitch@sDD, 8s, 0, 2 Pi<, PlotPoints 20D
1 2 3 4 5 6
1
2
3
4
5
6
crit@H2_, L_D := H2 + 2 H2 L mu43 + H-2 mu43 + 4 mu41L L^2
FindRoot@29 10 + Sin@sD - crit@3, Cos@sDD, 8s, 561785 100000<D
8s 5.61781<
ss = 5.617813442939268`;
t1central = t1@3, ell@ssD, crit@3, ell@ssDDD
2.8819714591996894`
t1high = t1@3, ell@ssD, crit@3, ell@ssDD + 10^H-8LD
5.7667086190687105`
t1low = t1@3, ell@ssD, crit@3, ell@ssDD - 10^H-8LD
2.8491076368387365`
t1high - t1central
2.88474
t1central - t1low
0.0328638
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 6 178
30-digit precision calculation
t1@H2_, L_, H_D := Re@NIntegrate@h1@H2, L, H, r3D Hmu3 Sqrt@f@H2, L, H, r3DDL,
8r3, R0@H2, L, HD, R1@H2, L, HD<, WorkingPrecision 50DD
t2@H2_, L_, H_D := Re@NIntegrate@h2@H2, L, H, r3D Hmu3 Sqrt@f@H2, L, H, r3DDL,
8r3, R0@H2, L, HD, R1@H2, L, HD<, WorkingPrecision 50DD
ell@s_D := Cos@sD;
aitch@s_D := 29 10 + Sin@sD;
Plot@t1@3, ell@sD, aitch@sDD, 8s, 0, 2 Pi<, PlotPoints 20D
1 2 3 4 5 6
1
2
3
4
5
6
Plot@t2@3, ell@sD, aitch@sDD, 8s, 0, 2 Pi<, PlotPoints 20D
1 2 3 4 5 6
1
2
3
4
5
6
crit@H2_, L_D := H2 + 2 H2 L mu43 + H-2 mu43 + 4 mu41L L^2
FindRoot@29 10 + Sin@sD - crit@3, Cos@sDD, 8s, 561785 100000<, WorkingPrecision 30D
8s 5.61781344293926866033965055305<
ss = 5.617813442939268660339650553050140652837305601216`30.;
t1central = t1@3, ell@ssD, crit@3, ell@ssDDD
2.8819717005845005541533999179150928920767448107503
t1high = t1@3, ell@ssD, crit@3, ell@ssDD + 10^H-8LD
6.0235642482604376566811416765587310722501189247269
t1low = t1@3, ell@ssD, crit@3, ell@ssDD - 10^H-8LD
-0.25962084710453133216287626553102795648460536068828
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 6 179
t1high - t1central
3.1415925476759371025277417586436381801733741139767
t1central - t1low
3.1415925476890318863162761834461208485613501714386
N@Pi, 15D
3.14159265358979
40-digit precision calculation
t1@H2_, L_, H_D := Re@NIntegrate@h1@H2, L, H, r3D Hmu3 Sqrt@f@H2, L, H, r3DDL,
8r3, R0@H2, L, HD, R1@H2, L, HD<, WorkingPrecision 100DD
t2@H2_, L_, H_D := Re@NIntegrate@h2@H2, L, H, r3D Hmu3 Sqrt@f@H2, L, H, r3DDL,
8r3, R0@H2, L, HD, R1@H2, L, HD<, WorkingPrecision 100DD
ell@s_D := Cos@sD;
aitch@s_D := 29 10 + Sin@sD;
Plot@t1@3, ell@sD, aitch@sDD, 8s, 0, 2 Pi<, PlotPoints 20D
1 2 3 4 5 6
1
2
3
4
5
6
Plot@t2@3, ell@sD, aitch@sDD, 8s, 0, 2 Pi<, PlotPoints 20D
1 2 3 4 5 6
1
2
3
4
5
6
crit@H2_, L_D := H2 + 2 H2 L mu43 + H-2 mu43 + 4 mu41L L^2
FindRoot@29 10 + Sin@sD - crit@3, Cos@sDD, 8s, 561785 100000<, WorkingPrecision 40D
80 5.617813442939268660339650553050140652837<
ss = 5.6178134429392686603396505530501406528372413235087821165531`40.;
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 6 180
t1central = t1@3, ell@ssD, crit@3, ell@ssDDD
2.88197170058450055428930540503236675257870039940184075704755395588173212525507302925166
3492545879943
t1high = t1@3, ell@ssD, crit@3, ell@ssDD + 10^H-8LD
6.02356434466354496610179256252604133461683097003268116103276033741566049508778894199175
3119848004658
t1low = t1@3, ell@ssD, crit@3, ell@ssDD - 10^H-8LD
-0.2596209435234309890677914018274716594718933274073923896526588712631350941625091951713
419654822583305
t1high - t1central
3.14159264407904441181248715749367458203813057063084040398520638153392836983271591274008
9627302124715
t1central - t1low
3.14159264410793154335709680685983841205059372680923314670021282714486721941758222442300
5458028138274
N@Pi, 15D
3.14159265358979
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 6 181
Exercise 6.12 Angular shifts, curves a,h,e
The function f(rho3)
mu3 = 3 H4 Sqrt@2DL;
mu41 = 3 128;
mu42 = 51 256;
mu43 = -57 256;
f@H2_, L_, H_, r3_D := Module@8r1, r2, r4<,
r1 = H2 - L - r3;
r2 = H2 + L - r3;
r4 = mu3^H-1L HH - H2 - mu41 Hr1^2 + r2^2L - mu42 r1 r2 - mu43 Hr1 + r2L r3L;
r1 r2 r3 - r4^2D
rho1@H2_, L_, H_, r3_D := H2 - L - r3
rho2@H2_, L_, H_, r3_D := H2 + L - r3
rho4@H2_, L_, H_, r3_D := Module@8r1, r2, r4<,
r1 = H2 - L - r3;
r2 = H2 + L - r3;
mu3^H-1L HH - H2 - mu41 Hr1^2 + r2^2L - mu42 r1 r2 - mu43 Hr1 + r2L r3LD
froots@H2_, L_, H_D := NSolve@f@H2, L, H, r3D 0, r3, Reals, WorkingPrecision 40D
R0@H2_, L_, H_D := r3 . froots@H2, L, HD@@1DD
R1@H2_, L_, H_D := r3 . froots@H2, L, HD@@2DD
R2@H2_, L_, H_D := r3 . froots@H2, L, HD@@3DD
R3@H2_, L_, H_D := r3 . froots@H2, L, HD@@4DD
Precession rates for a
1
and a
2
; angular shifts T
1
and T
2
h1@H2_, L_, H_, r3_D := 1 + mu3 rho4@H2, L, H, r3D rho1@H2, L, H, r3D +
4 mu41 rho1@H2, L, H, r3D + 2 mu42 rho2@H2, L, H, r3D + 2 mu43 r3
h2@H2_, L_, H_, r3_D := 1 + mu3 rho4@H2, L, H, r3D rho2@H2, L, H, r3D +
4 mu41 rho2@H2, L, H, r3D + 2 mu42 rho1@H2, L, H, r3D + 2 mu43 r3
40-digit precision calculation, curve alpha on first sheet (R0 r
3
R1)
t1@H2_, L_, H_D := Re@NIntegrate@h1@H2, L, H, r3D Hmu3 Sqrt@f@H2, L, H, r3DDL,
8r3, R0@H2, L, HD, R1@H2, L, HD<, WorkingPrecision 100DD
t2@H2_, L_, H_D := Re@NIntegrate@h2@H2, L, H, r3D Hmu3 Sqrt@f@H2, L, H, r3DDL,
8r3, R0@H2, L, HD, R1@H2, L, HD<, WorkingPrecision 100DD
ell@s_D := -15 10 + Cos@sD;
aitch@s_D := 36 10 + Sin@sD;
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 6 182
Plot@t1@3, ell@sD, aitch@sDD, 8s, 0, 2 Pi<, PlotPoints 20D
1 2 3 4 5 6
1.8
2.0
2.2
2.4
2.6
2.8
Plot@t2@3, ell@sD, aitch@sDD, 8s, 0, 2 Pi<, PlotPoints 20D
1 2 3 4 5 6
3.4
3.6
3.8
4.0
4.2
4.4
4.6
40-digit precision calculation, curve h on second sheet (R2 r
3
R3)
t1@H2_, L_, H_D := Re@NIntegrate@h1@H2, L, H, r3D Hmu3 Sqrt@f@H2, L, H, r3DDL,
8r3, R2@H2, L, HD, R3@H2, L, HD<, WorkingPrecision 100DD
t2@H2_, L_, H_D := Re@NIntegrate@h2@H2, L, H, r3D Hmu3 Sqrt@f@H2, L, H, r3DDL,
8r3, R2@H2, L, HD, R3@H2, L, HD<, WorkingPrecision 100DD
ell@s_D := 71 1000 Cos@sD;
aitch@s_D := 2933 1000 + 12 1000 Sin@sD;
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 6 183
Plot@t1@3, ell@sD, aitch@sDD, 8s, 0, 2 Pi<, PlotPoints 20D
1 2 3 4 5 6
2
4
6
8
Plot@t2@3, ell@sD, aitch@sDD, 8s, 0, 2 Pi<, PlotPoints 20D
1 2 3 4 5 6
2
4
6
8
crit@H2_, L_D := H2 + 2 H2 L mu43 + H-2 mu43 + 4 mu41L L^2
FindRoot@2933 1000 + 12 1000 Sin@sD - crit@3, 71 1000 Cos@sDD,
8s, 561785 100000<, WorkingPrecision 40D
8s 5.640590623801827229397488525678998245667<
ss = 5.6405906238018272293974885256789982456666663843812780632571`40.;
t1central = t1@3, ell@ssD, crit@3, ell@ssDDD
4.88025937363718741298381323119518650719102297125723497557887705964416524371290679879175
6076063378838
t1high = t1@3, ell@ssD, crit@3, ell@ssDD + 10^H-8LD
8.07246963180181738758308049063563587308505595986358247631755118966250305101105148678123
8948878729779
t1low = t1@3, ell@ssD, crit@3, ell@ssDD - 10^H-8LD
1.73866743385467228854348724659288609058939984656448340195280768591518294035037283782454
6221120657764
t1high - t1central
3.19221025816462997459926725944044936589403298860634750073867413001833780729814468798948
287281535094
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 6 184
t1central - t1low
3.14159193978251512444032598460230041660162312469275157362606937372898230336253396096720
9854942721074
N@Pi, 15D
3.14159265358979
FindRoot@2933 1000 + 12 1000 Sin@sD - crit@3, 71 1000 Cos@sDD,
8s, 90 100<, WorkingPrecision 40D
8s 0.9048257448434651736769392766442910677288<
ss = 0.9048257448434651736769392766442910677288301435835598133664`40.;
t1central = t1@3, ell@ssD, crit@3, ell@ssDDD
4.15077126125876560117592726936595284549346630647245564926227780965532744555677883371950
0364150625273
t1high = t1@3, ell@ssD, crit@3, ell@ssDD + 10^H-8LD
7.28951338212943296247894687092927641102189871820779001829930963707900527181164513594793
5118610455571
t1low = t1@3, ell@ssD, crit@3, ell@ssDD - 10^H-8LD
1.01202913653994115215739423298399590957239701972538306304202601991738298896712878066871
57389570571316
t1high - t1central
3.13874212087066736130301960156332356552843241173533436903703182742367782625486630222843
4754459830298
t1central - t1low
3.13874212471882444901853303638195693592106928674707258622025178973794445658965005305078
4625193568141
N@Pi, 15D
3.14159265358979
40-digit precision calculation, curve epsilon on first sheet (R0 r
3
R1)
t1@H2_, L_, H_D := Re@NIntegrate@h1@H2, L, H, r3D Hmu3 Sqrt@f@H2, L, H, r3DDL,
8r3, R0@H2, L, HD, R1@H2, L, HD<, WorkingPrecision 100DD
t2@H2_, L_, H_D := Re@NIntegrate@h2@H2, L, H, r3D Hmu3 Sqrt@f@H2, L, H, r3DDL,
8r3, R0@H2, L, HD, R1@H2, L, HD<, WorkingPrecision 100DD
ell@s_D := 2 10 Cos@sD;
aitch@s_D := 1 + 2 10 Sin@sD;
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 6 185
Plot@t1@1, ell@sD, aitch@sDD, 8s, 0, 2 Pi<, PlotPoints 20D
1 2 3 4 5 6
4
5
6
7
8
9
Plot@t2@1, ell@sD, aitch@sDD, 8s, 0, 2 Pi<, PlotPoints 20D
1 2 3 4 5 6
4
5
6
7
8
9
crit@H2_, L_D := H2 + 2 H2 L mu43 + H-2 mu43 + 4 mu41L L^2
FindRoot@1 + 2 10 Sin@sD - crit@1, 2 10 Cos@sDD, 8s, 6<, WorkingPrecision 40D
8s 5.952453347078372748883292510236566250682<
ss = 5.9524533470783727488832925102365662506820920865304285653036`40.;
t1central = t1@1, ell@ssD, crit@1, ell@ssDDD
6.35311592788436677107046234090913651037421995552524065809501886574540152036500119217244
0454065763788
t1high = t1@1, ell@ssD, crit@1, ell@ssDD + 10^H-8LD
9.49470856872318921749279079294507196475698106092966070924817192395212677303892082435683
6761303396400
t1low = t1@1, ell@ssD, crit@1, ell@ssDD - 10^H-8LD
3.21152328704540143603534798103253208536312781703337953813441416698616667380068008121383
7585592763503
t1high - t1central
3.14159264083882244642232845203593545438276110540442005115315305820672525267391963218439
630723763261
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 6 186
t1central - t1low
3.14159264083896533503511435987660442501109213849186111996060469875923484656432111095860
2868473000285
N@Pi, 15D
3.14159265358979
Solutions to the Exercises Essentials of Hamiltonian Dynamics
Chapter 6 187
Exercise 6.13 Polar angle in the quasi-laboratory frame
We wish to show that the polar angle of the eigenvector a
+
of the matrix
M of (EHD:6.37) is equal to
1
= tan
1
P
1
Q
1
tan
1
P
2
Q
2
2h
Y
+
m
m 2h
X
+
a
+X
a
+Y
0
0
,
where
+
= h
X
+h
Y
(h
X
+h
Y
)
2
l
2
,
h
X
=
1
2
(X
2
+P
2
X
), h
Y
=
1
2
(Y
2
+P
2
Y
), m = XY +P
X
P
Y
.
Thus
tan =
2h
X
+
m
=
h
X
h
Y
m
+O
l
2
(h
X
+h
Y
)
2
.
We now want to express tan(
2
1
) in the quasi-laboratory frame. Since
tan
1
=
Y +P
X
X P
Y
, tan
2
=
X +P
Y
Y P
X
,
we obtain
tan(
2
1
) =
tan
2
tan
1
1 + tan
1
tan
2
=
X
2
+P
2
X
Y
2
P
2
Y
2XY + 2P
X
P
Y
=
h
X
h
Y
m
= tan +O
l
2
(h
X
+h
Y
)
2