07 Hamiltonian Mechanics
07 Hamiltonian Mechanics
ide
Sk Jahiruddin*
gu *Assistant Professor
Sister Nibedita Govt. College, Kolkata
ics
Author was the topper of IIT Bombay M.Sc Physics 2009-2011 batch
He ranked 007 in IIT JAM 2009 and 008 (JRF) in CSIR NET June 2011
1
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
Contents
1 Phase space 4
ide
2 Hamiltonian 5
2.2
2.3
gu
Does all Lagrangian have a proper Hamiltonian?
8
ics
3 Drawing Phase space 16
ys
4 Canonical Transformation 29
Ph
[email protected] 2 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
5 Poission Bracket 38
ide
6 Equation of motion of a dynamical variable 48
7.1 gu
Generators of linear momentum, angular mo-
mentum and time . . . . . . . . . . . . . . . . 52
ics
7.2 integration of the equation of motion . . . . . 53
[email protected] 3 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
we can, but for that we’ll need 2n equations.
∂L (qj , q̇j , t)
We take qi and the conjugate momenta, pi ≡
∂ q̇i
1
gu
as independent variables.
Phase space
ics
Consider coordinates and momenta as independent. Now the
state of the system is given by
ys
[email protected] 4 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
2 Hamiltonian
gu
Hamiltonian is same as the ”energy function” defined earlier,
just written in terms of q and p instead of q and q̇.
ics
You can see that the total derivative of Hamiltonian would
be
∂L
dH = q̇i dpi − ṗi dqi − dt
∂t
ys
Hence we find
∂H ∂H ∂H ∂L
= q̇i = −ṗi and =− (2.2)
∂pi ∂qi ∂t ∂t
[email protected] 5 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
1
L = mv 2 − qφ + qA · v
2
gu L=
m 2
ẋ − qφ + qAi ẋi
2 i
=⇒pi = mẋi + qAi
mẋ2i
ics
=⇒ = H = (mẋi + qAi ) ẋi − L = + qφ
2
2m
[email protected] 6 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
2
Its Hamiltonian is [TIFR 2017]
(a) not defined (b) zero (c) −q̇ sin2 q (d)
q̇ p − 21 sin2 q
gu
Solution: We see that
p=
∂L sin2 q
∂ q̇
=
2
; pq̇ = q̇
sin2 q
2
ics
hence we see
H = pq̇ − L = 0
Now the question is can the Hamiltonian of a physical system
ys
∂L sin2 q ∂L 2q̇
p= = ; = sin q cos q
∂ q̇ 2 ∂q 2
d ∂L d ∂L ∂L
= q̇ sin q cos q; − =0
dt ∂ q̇ dt ∂ q̇ ∂q
So we did not get a valid Lagrangian equation of motion
of the particle.
[email protected] 7 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
2.3 Some solved problems using Hamilton’s
equation of motion
Hamilton’s canonical equations of motion
gu q˙i =
∂H
∂pi
; ṗi = −
∂H
∂qi
2 r
To calculate the Hamiltonian we start with calculating the
momentum.
∂L ∂L
pr = = µṙ and pθ = = µr2 θ̇
∂ ṙ ∂ θ̇
So the Hamiltonian is
1 2 2 2
k
H = pr ṙ + pθ θ̇ − L = µ ṙ + r θ̇ −
2 r
[email protected] 8 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
p2r p2θ k
H= + −
2µ 2µr2 r
Hamilton’s equation’s of motions are - Equation-2.4
∂H pr ∂H pθ
and
gu ṙ =
∂pr
=
m
p˙r = −
and θ̇ =
∂H
∂r
p2θ k
= 3− 2
µr r
∂pθ
= 2
µr
ics
∂H
p˙θ = − =0
∂θ
Example 2.3: Find Hamilton’s equation of motion and
ys
p2
H(p, q, t) = − mtq
Ph
2m
p
q̇ = and ṗ = mt
m
Second equation gives
1
p(t) = mt2 + p0
2
[email protected] 9 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
1 p0 t
q = t3 +
6 m
value of p0 depends on the initial condition.
Example 2.4: Problem: Find the Hamiltonian for an-
harmonic oscillator with the given lagrangian
gu 1 1
L = ẋ2 − ωx2 − αx3 + βxẋ2
2 2
ics
Solution:
∂L
p= = ẋ + 2βxẋ
∂ ẋ
p
ẋ =
(1 + 2βx)
ys
H = pẋ − L
substitute all ẋ with p, x, β
p2 1
− ω 2 x2 + αx3
Ph
H=
2(1 + 2βx) 2
[email protected] 10 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
1 2 1 2 2
ẋ = p + 2λ p + ω0 x p
2 2
2 1 2 1 2 2
ṗ = −ω0 x − 2λ p + ω0 x ω0 x
2 2
Take
gu 1
E0 = ω02 a2 ; ω = (1 + 2λE0 ) ω0
2
Take derivative again →substituite ẋ and ṗ and get harmonic
ics
oscillator solution. (Calculation is little tough, but you need
to do it )
c|~p|
H=
n (~p, ~r)
where n is the refractive index of the medium. Deter-
mine the trajectory for the case when n(r) = ax.
[email protected] 11 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
when n = ax, then
y
x = c1 cosh + c2
c1
gu
Example 2.7: Problem: Describe the motion of
a charged particle in uniform magnetic field B in ẑ
direction by solving the Hamilton’s equations of motion.
ics
Solution: We know the Hamiltonian for a charged particle
in uniform magnetic field is.
ys
1
H= (p − qA)2 + qφ
2m
For magnetic field in ẑ direction we can take vector potential
Ph
p2x + p2y 1
H= + (py − qBx)2
2m 2m
H does not depend on y and z. So using Hamilton’s equation
of motionp˙y = p˙z = 0 From here we get py and pz = constant.
[email protected] 12 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
p2x 1 2 2 p2z
H= = mω (x − x0 ) +
ide
2m 2 2m
So the solution is for x and px
px
ẋ = ; p˙x = −mω 2 (x − x0 )
m
gu ẍ =
p˙x
m
= −ω 2 (x − x0 )
p¨x = −mω 2 ẋ = −ω 2 px
ics
Hence the solution is
pz
y = a sin(ωt + φ) = y0 ; z = t + z0
m
The particle is moving along a spiral with axis parallel to z axis
(i.e the axis of applied magnetic field). Note: This problem is
very important quantum mechanically. Try to solve the same
using quantum mechanics.
[email protected] 13 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
x
Where a,b,c,f,g, k are constants. What is the Hamilto-
nian? What quantities are conserved?
gu px =
∂L
∂ ẋ
∂L
= 2aẋ + cẏ + f y 2 ż
b
ics
py = = + cẋ + 2g
∂ ẏ x
∂L
pz = = f y 2 ẋ
∂ ż
Hamiltonian is
ys
X
H= pi q̇i − L
i
H = ẋpx + ẏpy + żpz − L
Ph
[email protected] 14 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ap2z
px pz 1 b cpz
H= − 2 4+ py − − 2
ide
f y2 f y 2 x fy
p
+ k x2 + y 2
pz is conserved since ∂L
∂z = 0. Energy is conserved since the
Hamiltonian is time independent.
gu
Example 2.9: Problem: A dynamical system has the
Lagrangian
q˙2 2
ics
L = q˙1 2 + 2 + k1 q12 + k2q˙1 q˙2
a + bq1
Where a, b, k1 , k2 are constants. Find the equation of
motion in Hamiltonian.
ys
Solution:
∂L
p1 = = q˙1 + k q˙2
∂ q˙1
Ph
∂L 2q˙2
p2 = = + k q˙1
∂ q˙2 a + bq12
H = q˙1 p1 + q˙2 p2 − L
q˙2 2
= q˙1 2 + 2 − k1 q12 + k2q˙1 q˙2
a + bq1
[email protected] 15 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
3 Drawing Phase space
We can simply say A diagram which consists all information
diagrams. gu
about the system. Phase space is basically constant energy
[email protected] 16 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
gu
The actual line the particle is on is determined by the ini-
tial coordinates (q0 , p0 ) . Note that the lines associated with
negative p are traced out leftward (that is, in the direction of
ics
decreasing q) as should be the case. Note also that although
all the lines look basically the same on the page, the parti-
cle traverses the ones with larger |p| more quickly, due to the
above q̇ = p/m equation; the larger the |p|, the greater the
ys
[email protected] 17 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
p2 − q = E = Constant
ide
The drawing of the parabola will be like the figure below.
When q is zero, p should be minimum and when q increases
p increases too, to keep p2 − q fixed.
How can we find the direction of the arrows? Well we have
gu
taken positive q defined to be downward. So when the ball
moves towards the ground from some height. It’s q increases
and as velocity increase so as momentum also increases. Then
the arrow will be like the figure.
ics
ys
Ph
[email protected] 18 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
in the second collision is less than the first collision as there
are some energy is lost during collision. This is shown in right
side of the diagram
gu
ics
ys
p2 + q = E = constant
[email protected] 19 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
gu
ics
Example 3.13: Harmonic oscillator The Hamilto-
nian for a harmonic oscillator is
p2 kq 2
ys
H= +
2m 2
What will be the phase space?
Ph
[email protected] 20 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
gu
ics
ys
Ph
[email protected] 21 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
the particle trajectory in the phase space? [GATE
2018]
gu
ics
ys
Ph
What does this mod sign do in the phase space? You see
that at q = 0, the potential changes sign. So the force is
discontinuous there.
[email protected] 22 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
So the forces flip direction at q = 0, hence as the force is
gu
the derivative of momentum, the phase space trajectory will
display the discontinuity of the derivative of the momentum
at position q = 0. So the ans will be A.
ics
3.1 Fixed points and separatrix
Now we will learn something more to plot phase space diagram
ys
properly.
Fixed points are the points where
ṗ = q̇ = 0
Ph
[email protected] 23 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
Example 3.15: The Hamiltonian of particle of mass m
p2 αq 2
is given by H = − . Which one of the following
2m 2
figures describes the motion of the particle in phase
space?
gu [GATE 2014]
ics
ys
Ph
[email protected] 24 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
only
H = p2 − q 2
. Hamilton’s equation says
ide
∂H ∂H
ṗ = − = 2q; q̇ = = 2p
∂q ∂p
To find the fixed points we just make ṗ = q̇ = 0. So the
fixed points become
gu p=q=0
First we see that whether H = 0 solutions are possible or
not. If we make H = 0 then
ics
H=0 =⇒ p2 − q 2 = 0 =⇒ p = ±q
∂V
V (q) = −q 2 =⇒ F (q) = = 2q
∂q
Now when q > 0 force is +ive. So the force will increase the
displacement in positive direction. And when q < 0, the force
is −ive, so the force will try to increase the displacement in
negative direction.
[email protected] 25 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
Next, consider the fourth quadrant q > 0, p < 0. The co-
ordinate is positive and the velocity is negative, means the
particle moving towards the origin. Now the force is posi-
tive as F = 2q, so the force try to move the particle towards
gu
positive q but as the particle velocity already is in the −q di-
rection, the the particle continues to move towards the origin
but because of the force towards q direction the velocity de-
ics
creases and eventually the particle moves towards the origin
with less and less velocity. hence the direction of the arrow
will be inwards.
Similarly you can check the direction of the second and
ys
is enough.
[email protected] 26 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
a one dimensional potential
1 1
V (x) = − x2 + x4
2 4
[NET June 2015]
gu
ics
ys
Ph
The Hamiltonian is
p2 1 1
H= − x2 + x4
2m 2 4
[email protected] 27 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
Now to make
ṗ = q̇ = 0
we need
x − x3 = 0; and p/m =
gu
Hence the fixed points are
x = 0, 1, −1; and p = 0
ics
Hence we get three fixed points (0, 0), (1, 0), (−1, 0) Now we
will check the H = 0 solution.
p2 1 2 1 4
H=0= − q + q
ys
2 2 4
indeed have a solution which passes through (0, 0). So, among
the fixed points only (0, 0) point implies H = 0. So the (0, 0)
Ph
[email protected] 28 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
(x0 , y0 ) is a fixed point, then that fixed point is repulsive (hy-
d2 H
perbolic). And if = +ive, then the fixed point is
dx2 x0 ,y0
stable.
gu
Now you have learned enough of the phase space trajectory.
Attempt the exercises in the problem set.
4 Canonical Transformation
ics
4.1 Basic ideas
Lagrangian → Hamiltonian formalism meant moving from the
ys
(q1 , . . . , qn ) =⇒ (q1 , . . . , qn , p1 , . . . , pn )
Ph
Qi = Qi (q1 , . . . , qn , p1 , . . . , pn , t) ;
[email protected] 29 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
Pi = Pi (q1 , . . . , qn , p1 , . . . , pn , t)
Not all these types of general transformations are dynam-
ically possible. But we have certain types of transformations
ide
which are called canonical transformations. Now what is so
special about canonical transformation?
Canonical Transformation is a special kind of transforma-
tion of coordinate and momentum
gu Qi = Qi (q1 , . . . , qn , p1 , . . . , pn , t) ;
Pi = Pi (q1 , . . . , qn , p1 , . . . , pn , t)
ics
that satisfy Hamilton’s equation of motion, i.e after trans-
forming the coordinate and momentum the transformed Hamil-
tonian K(Q, P, t), sometimes called Kamiltonian satisfies the
Hamilton’s equations of motion with respect to the new trans-
ys
[email protected] 30 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
Now we have two ways such that the Hamilton’s least ac-
tion principle remains intact. One is just to multiply the old
Hamiltonian by a constant number which is called a scale /
contact transformation. The other way is to add total time
ide
derivative of a function of coordinate, momentum and time
which is the actual canonical transformation.
gudF
Pi Q̇i − K +
dt
Combining we get
= pi q̇i − H; canonical transformation
ics
dF
Pi Q̇i − K + = λ (pi q̇i − H)
dt (4.3)
extended canonical transformation
dF
Pi Q̇i − K + = pi q̇i − H
dt
To preserve Hamilton’s principle we must have
Z t2 Z t2
dF
δ Pi Q̇i − K dt = δ pi q̇i − H − dt
t1 t1 dt (4.4)
= −δ[F ]tt21 =0
[email protected] 31 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
Satisfied if δp = δq = δP = δQ = 0 at t1 and t2 .
We see that F can be any function of pi , qi , Pi , Qi and t. F
is called the generating function or generator of the transfor-
mation. The transformation depends on F .
ide
Now we see some special types of generating functions and
evaluate what they actually do.
Example 4.17: Try a generating function: F = qi Pi −
Qi Pi .
gu
As we know
dF
Pi Q̇i − K +
dt
= pi q̇i − H
ics
We see that the canonical transformation generated by F is
dF
Pi Q̇i − K + = −K + (qi − Qi ) Ṗi + Pi q̇i = pi q̇i − H
dt
ys
Hence we have
Q i = qi ; P i = pi ; K=H
Ph
F = fi (q1 , . . . , qn , t) Pi − Qi Pi
[email protected] 32 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
See
dF ∂fi ∂fi
Pi Q̇i − K + = −K + (fi − Qi ) Ṗi + Pi q̇j + Pi
dt ∂qj ∂t
ide
= pi q̇i − H
gu
Using this type of generating function we can transform the
coordinate to any function of generalized coordinates.
ics
One thing you must know at this point- The generating
function is not unique for a particular type of canonical trans-
formation. There are many possible F for each canonical
transformation.
ys
[email protected] 33 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
gu
There is no reason to consider any of these 4 definitions to
ics
be more fundamental than the others.
We arbitrarily chose the first form (which happens to be
the Lagrangian form) to write the generating functions in the
table.
ys
p2 1
H= + 2
Ph
2 2q
Now you need find a canonical transformation and the
co-responding generating function F2 (q, P, t). You are
given P = pq. Find F and Q. Construct the new Hamil-
tonian and then solve Hamilton’s equation of motion to
get P and Q as function of time.
[email protected] 34 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
We are given
P
P = pq =⇒ p =
q
∂F2 P
=p=
gu
Integrating we get
∂q q
F2 = P log q
Now differentiate F2 with respect to P to get
ics
Q = log q ⇒ q = eQ
p2 1 P 2 + 1 −2Q
H= + 2= e =E Constant
2 2q 2
Now
∂H
Ph
= P 2 + 1 e−2Q = 2E
Ṗ = −
∂Q
Integrating
P = 2Et + C
We also get
r r
Q P2 + 1 C2 + 1
q=e = = 2Et2 + 2Ct +
2E 2E
[email protected] 35 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
r
C2 + 1
Q = log 2Et2 + 2Ct +
2E
ide
given by
Q
F1 = −
q
Find the new canonical variables Q and P
gu
Solution: We see
p=
∂F1
∂q
Q
= 2
q
and P =−
∂F1
∂Q
=
1
q
ics
Writing the new coordinates as function of the old ones gives
1
Q = pq 2 and P =
q
ys
2
p q p
Q = ln and P = − +1
q 2 q
[email protected] 36 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
Which gives us
q2 Q
Z
Q
F1 = qe dq + g(Q) = e + g(Q)
2
ide
And
q 2 Q dg
2 2
∂F1 q p q
P =− =− e − =− +1 =− + 1 eQ
∂Q 2 dQ 2 q 2
⇒ g(Q) = eQ
gu
So the generating function is given by
F1 =
2
q
+ 1 eQ
ics
2
so
p i = αi
are all constant. If H is conserved, then:
H = H (α1 , . . . , αn )
[email protected] 37 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
∂αi
All coordinates are linear in time and the motion becomes very
simple. We might imagine searching for a variable transfor-
mation to make as many coordinates as possible cyclic. The
gu
search of such types of coordinates is guided by the canonical
transformation as we can not transform the coordinates and
momentums arbitrarily and make the new coordinates cyclic.
ics
5 Poission Bracket
Poisson bracket of two dynamical variables u(p, q, t) and v(p.q.t)
ys
is defined by
X ∂u ∂v ∂v ∂u
{u, v}q,p = − (5.1)
i
∂q i ∂p i ∂q i ∂p i
Ph
[email protected] 38 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
{u, u} = 0
{u, v} = −{v, u}
ide
{au + bv, w} = a{u, w} + b{v, w}
{uv, w} = u{v, w} + {u, w}v
{u, {v, w}} + {v, {w, u}} + {w, {u, v}} = 0
df
gu {f (u), v} =
du
df
{u, v}
[email protected] 39 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
(a)Is the transformation canonical?
(b) Determine the new Hamiltonian.
(c) Write down the Hamilton’s equations for both
Hamiltonians and solve for the variables.
gu
(d) Check that the solutions set of both old and new
Hamiltonian are same.
ics
Solution: Calculate Poisson Bracket for the new coordi-
nates with respect to old coordinates
∂Q ∂P ∂Q ∂P
[Q, P ]q,p = − =1
∂q ∂p ∂p ∂q
ys
[email protected] 40 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
Ṗ = − = 4P Q
∂Q
We solve for old coordinates
the problem.
p −q0 sin t + p0 cos t
Q(t) = =
2q 2 (q0 cos t + p0 sin t)
Ph
P = p + q 2 + pq 2 ; Q = tan−1 q
[email protected] 41 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
Solution:
∂Q ∂P ∂Q ∂P 1 + q2
[Q, P ]q,p = − = =1
∂q ∂p ∂p ∂q 1 + q2
ide
So the transformation is canonical.
It is given that we need to find the generating function of the
type F3 (p, Q). Hence we need to write q and P in terms of Q
and p.
So
gu
q = tan Q; P = p(1 + q 2 ) + q 2 = p sec2 Q + tan2 Q
q = tan Q = −
∂F3
ics
∂p
∂F3
P = p sec2 Q + tan2 Q = −
∂Q
From first equation F3 = −p tan Q + f1 (Q) and from 2nd
ys
F3 = −p tan Q − tan Q + Q
Ph
F3 = −p tan Q − tan Q + Q
[email protected] 42 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
Q = αpq γ ; P = βq δ
Solution:
∂Q ∂P ∂Q ∂P
[Q, P ]q,p = − = αpγq γ−1 × 0 − αq γ βδq δ−1
gu ∂q ∂p
= αβδq γ+δ−1
∂p ∂q
[email protected] 43 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
p2 1
H= 2
+ mgq 2
2mq 2
(a) Derive the HAmilton’s equation of motion.
(b) Show that the coordinate transformation
gu 1
z = q2
2
and pz =
p
q
is a canonical transformation. Derive the Hamilton equa-
ics
tions of motion for z and pz and find the general solutions
for z(t) and pz (t) in terms of intial values z(0) and pz (0).
(c) Let us define a new coordinate P which is equals to
ys
new Hamiltonian.
p2z
P =H= + mgz
2m
Ph
[email protected] 44 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
Solution: (a)
∂H p ∂H p2
q̇ = = ; ṗ = − = − mgq
∂p mq 2 ∂q mq 3
ide
(b)
∂z ∂pz ∂z ∂pz 1
[z, pz ]q,p = − =q −0=1
∂q ∂p ∂p ∂q q
So the transformation is canonical.
gu
Let us try to find a second type generating function F2 (q, pz ).
We have studied the convention of Q and P as the transformed
coordinates. Here the new variables are Q = z and P = pz .
ics
∂F2 1
= p = qpz −→ F2 = q 2 pz + f (pz )
∂q 2
and
∂F2 1
z= = q 2 + f 0 (pz )
∂pz 2
ys
1
F2 (q, pz ) = q 2 pz
2
Well, now you see that the Hamiltonian becomes in terms
of new variables
p2
H = z + mgz
2m
[email protected] 45 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
m
So the solution
1 pz
z = gt2 + 0 t + z0
2 m
gu
(c) Given
P =H=
pz = −mgt + pz0
p2z
2m
+ mgz
ics
We need to find a Q, such that the transformation is canonical.
Lets try to find a generating function F2 (z, P ).
∂F2 p
= pz = 2m(P − mgz)
ys
∂z
Hence
√
2 2m
Ph
F2 (z, P ) = − (P − mgz)3/2 + f (P )
3 mg
√
2 2
=− (P − mgz)3/2 + f (P )
3g m
r
∂F2 1 2
Q= =− (P − mgz)1/2 + f 0 (P )
∂P g m
[email protected] 46 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
p2z
Now use P = 2m + mgz to get
2
pz 0 pz
Q=− +f ( + mgz)
mg 2m
ide
pz
If we choose f 0 (P ) = 0.We get Q = − mg . We could not have
0
chosen f (P ) = 0. But as we see
pz p2z
{Q, P } = {− , + mgz} = 1
mg 2m
gu
So P and Q are canonical variables. If we have chosen f 0 (P ) 6=
0, then the Q would have been more complex. And as our
task is to choose just another Q which is canonical to P , why
ics
should we go for more complex Q when we have already have
got simpler Q. So our Q is just
pz
Q=−
mg
ys
Now we have H = P so
∂H ∂H
Ṗ = − = 0 and Q̇ = =1
∂Q ∂P
Ph
P = P0 and Q = t + Q0
Easy, isn’t it?? In this problem you have seen that an other-
wise complex problem can be made simple by use of canonical
transformation.
[email protected] 47 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
let us consider a dynamical variable (function of q, p, t ) u =
u(q, p, t) Then we have by application of partial derivative
∂u ∂u ∂u
u̇ = q̇i + ṗi +
∂qi ∂pi ∂t
gu
Using Hamilton’s equation of motion we get
u̇ =
∂u ∂H
−
∂u ∂H ∂u
∂qi ∂pi ∂pi ∂qi
+
∂t
In terms of Poission Bracket we write the above equation
ics
more concisely as
∂u
u̇ = {u, H} + (6.1)
∂t
If u = qi then
ys
∂qi ∂H
q̇i = {qi , H} + =
∂t ∂pi
If u = pi , then
Ph
∂pi ∂H
ṗi = {pi , H} + =−
∂t ∂qi
These two equations are Hamilton’s equation of motion.
Now if u = H then
∂H ∂H
Ḣ = {H, H} + =
∂t ∂t
[email protected] 48 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
So we can say if
∂u
= 0 and {u, H} = 0 ⇒ u is conserved
∂t
Another fact, is that if u and v are conserved then so is {u, v}.
gu
This could potentially provide a way to compute a new con-
stant of motion. To prove it, first consider the special case
where:
ics
∂u ∂v
= =0 =⇒ {u, H} = {v, H} = 0
∂t ∂t
then using the Jacobi identity we have:
ys
{H, {u, v}} = −{u, {v, H}}−{v, {H, u}} = −{u, 0}−{v, 0} = 0
du ∂u ∂u
= {u, H} + =0 ⇒ {u, H} = −
dt ∂t ∂t
And
dv ∂v ∂v
= {v, H} + =0 ⇒ {v, H} = −
dt ∂t ∂t
[email protected] 49 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
So we get
{{u, v}, H} = {u, {v, H}} + {v, {H, u}}
∂v ∂u
= − u, + v,
ide
∂t ∂t
∂
= − {u, v}
∂t
Now the equation 6.1 for tha variable {u, v} is
d ∂
gu
Hence we get
dt
{u, v} = {{u, v}, H} + {u, v}
d
dt
∂t
{u, v} = 0
ics
7 Infinitesimal Canonical Transfor-
mation
ys
F2 (q, P, t) = qi Pi + G(q, P, t)
Ph
ide
since Pj = pj +O() and and is infinitesimal we can replace
∂G(q, P, t)/∂Pj = ∂G(q, p, t)/∂pj + O(). Therefore we have:
∂G ∂G
+ O 2
Q j = qj + ⇒ δqj = Qj − qj = (7.3)
∂pj ∂pj
gu
where now we note that we can consider G = G(q, p, t), a
function of q and p, to this order.
We can see
ics
∂qi ∂G ∂qi ∂G ∂G
ε [qi , G] = ε − =ε = δqi (7.4)
∂qj ∂pj ∂pj ∂qj ∂pi
and
ys
∂pi ∂G ∂pi ∂G ∂G
ε [pi , G] = ε − = −ε = δpi (7.5)
∂qj ∂pj ∂pj ∂qj ∂qi
ICT ∂u ∂u ∂u
u −→ u + δu = u + δqi + δpi + δt
∂qi ∂pi ∂t
∂u ∂G ∂u ∂G ∂u
=u+ ε − ε + δt
∂qi ∂pi ∂pi ∂qi ∂t
∂u
= u + ε[u, G] + δt
∂t
[email protected] 51 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
That is
∂u
δt
δu = ε[u, G] + (7.6)
∂t
Hence we get the equation of motion of a dynamical vari-
ide
able again
∂u du ∂u
δu = δt[u, H] + δt → = [u, H] + (7.7)
∂t dt ∂t
7.1
gu
Generators of linear momentum, angu-
lar momentum and time
Now look at the infinitesimal canonical transformation again.
ics
Just see if G = pi then δpi = 0 and δqj = δij , which is why
momentum is the generator of spatial translations.
momentum??
First writing as if there is only one particle.
Ph
G = Lz = (xpy − ypx )
[email protected] 52 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
and
δpx = [px , G] = −py
δpy = [py , G] = px
δpz = [pz , G] = 0
ide
Now for which infinitesimal change of the x changes by
−y? and y changes by x? Obviously it is the δθ,the change
of angle in the xy plane. As we know for a rotation in xy
plane
gu
δx = −yδθ , δy = xδθ , δz = 0
So we see that = δθ. Hence we find that if G = angular
momentum in z direction then the infinitesimal change = δθ
ics
Which is why angular momentum is the generator of rotations.
Now consider the very important example: if G = H then
∂H δp
δp = − = −(−ṗ) =
∂q δt
ys
Hence we see = δt
So if Hamiltonian is the generator then is the time trans-
lation
Ph
ide
α2 d2 u α3 d3 u
du
u(α) = u0 + α + + + ···
dα 0 2! dα2 0 3! dα3 0
du
α dα 0
is [u, G]0 .
gu du
Now since dα = [u, G] is true for any u, we can say
[, G]. Apply this operator repeatedly
d2 u
dα2
=
d
dα
[u, G] = [[u, G], G]
d
dα =
ics
dj u
→ j = [[· · · [u, G], G], · · · , G]
dα
Going back to the Taylor expansion,
α2 d2 u α3 d3 u
du
ys
u(α) = u0 + α + + + ···
dα 2! dα2
0 0 3! dα3 0
2 3
α α
= u0 + α[u, G]0 + [[u, G], G]0 + [[[u, G], G], G]0 + · · ·
2! 3!
Ph
(7.8)
Now we have a formal solution – But does it work?
Example 7.26: An object is falling under gravity, so
the Hamiltonian is
p2
H= + mgz
2m
[email protected] 54 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
t2 t3
z(t) = z0 + t[z, H]0 + [[z, H], H]0 + [[[z, H], H], H]0 + · · ·
ide
2! 3!
You see
p
[z, H] = , [[z, H], H] = −g, [[[z, H], H], H] = 0
m
So you get
gu z(t) = z0 +
p0
m
g
t − t2
2
ics
8 Phase space volume and Liouville’s
Theorem
ys
[email protected] 55 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
gu
Now calculate the jacobian of the Canonical Transforma-
tion in 1-D
∂Q ∂P ∂P ∂Q
|M| = − = [Q, P ] = 1 → dQdP = dqdp
∂q ∂p ∂q ∂p
ys
√
r
2P
q= sin Q; p = 2P mω cos Q
mω
See that
1
p2 + m2 ω 2 q 2 = ωP
K=H=
2m
[email protected] 56 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
E ∂K
P = const = ; Q̇ = = ω; Q = ωt + α
ω ∂P
The phase space representation for one period of the har-
monic oscillator in both the set of coordinates are represented
ide
in the following figure.
gu
ics
The area remains invariant. One cycle draws the same area
2πE
in both spaces.
ω
Liouville’s Theorem says that The phase volume occu-
ys
[email protected] 57 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
9.1 Hamilton Jacobi equation
Let’s search for new canonical variables that are all cyclic,
such that:
Q̇i = Ṗi = 0 ⇒ (Q, P ) (9.1)
gu
As the new variables are constants then the new Hamiltonian
K can be independent of (Q, P ) then:
∂K ∂K
ics
Q̇i = =0 and Ṗi = − =0 (9.2)
∂Pi ∂Qi
We could look for a constant K, but it it is simplest to simply
look for K = 0. Using a generating function F = F2 (q, P, t),
ys
then we need
∂F2
K = H(q, p, t) + =0 (9.3)
∂t
Because pi = ∂F
∂qi , then we can rewrite this condition as
2
Ph
∂F2 ∂F2 ∂F2
H q1 , . . . , q n , ,..., ,t + =0 (9.4)
∂q1 ∂qn ∂t
[email protected] 58 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
F2 ≡ S = S (q1 , . . . , qn , α1 , . . . αn , t) (9.5)
gu
to be the constants of integration Pi = αi for i ∈ {1, . . . , n}
(so that Ṗi = 0), thus specifying F2 = F2 (q, P, t) as desired.
Then, using again the property of an F2 generating function
ics
( and K = 0), we have that the new constant variables are:
∂S(q, α, t)
Pi ≡ α i and Qi ≡ βi = (9.6)
∂αi
ys
tions we have:
∂S
βi (q, α, t) = ⇒ qi = qi (α, β, t)
∂αi
∂S (9.7)
pi (q, α, t) = ⇒ pi = pi (q, α, t)
∂qi
= pi (q(α, β, t), α, t) = pi (α, β, t)
[email protected] 59 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
we also know that:
∂S ∂S
= pi , Ṗi = 0 and = −H (9.8)
∂qi ∂t
The above two equations say
Z
Ṡ = pi q̇i − H = L ⇒
gu S= Ldt
ide
2
∂S i~ ∂ 2 S 1 ∂S
− =− + + V (q) (9.11)
∂t 2m ∂q 2 2m ∂q
This equation is just another way of writing the Schrödinger
∂S
gu
equation, to solve for a complex S instead of ψ. If we now
take ~ → 0 then we find that the imaginary term goes away
and what is left is
1 ∂S
2
∂S
∂S
ics
0= + + V (q) = + H q, (9.12)
∂t 2m ∂q ∂t ∂q
which is the Hamilton-Jacobi equation for S with a standard
p2 /2m kinetic term in H
ys
1
p2 + (mωq)2 = E
H=
2m
[email protected] 61 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
so we get
2 !
1 ∂W ∂g
+ (mωq)2 =− =α
2m ∂q ∂t
gu
since the left side is independent of t and the right hand
side is independent of q, then the result must be equal to a
separation constant α that is independent of q and t. We will
choose our new P = α . Now we have
ics
∂g
= −α ⇒ g = −αt
∂t
where we have avoided the addition of a further additive con-
stant (since our convention was to always drop an additive
ys
∂t ∂t
which corresponds to the constant energy,
α=E
[email protected] 62 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
which we will leave unintegrated until we must do so. The
full solution is then given by:
Z p
S = −αt ± 2mα − (mωq)2 dq
gu
With this result for Hamilton’s Principal function in hand we
can now solve for the equations of motion. The equations of
motion come from (we now do the integral, after taking the
ics
partial derivative):
Z
∂S dq
β= = −t ± m p ⇒t+β
∂α 2mα − (mωq)2
r !
2
ys
1 mω
= ± arcsin q
ω 2α
integrating we get
Ph
r
2α
q=± sin(ω(t + β))
mω 2
so β is related to the phase. Next we consider p and use this
result to obtain:
∂S p √
p= = ± 2mα − (mωq)2 = ± 2mα cos(ω(t + β))
∂q
[email protected] 63 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
2mα = p20 + m2 ω 2 q02
gu tan β = mω
q0
p0
The choice q0 = 0 and hence β = 0 corresponds to starting the
motion with the oscillator at its equilibrium position q = 0 .
ics
9.2 Separation of variable and H-J method
Separation of variables is the main technique to solve the H-J
ys
∂t
we can always separate time by taking:
[email protected] 64 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
This result is referred to as the time independent Hamilton-
Jacobi equation. since Ḣ = 0 , H is conserved, and equal to a
constant α1 . If H = E then this constant is energy, α1 = E.
The function W is called Hamilton’s characteristic function.
method. gu
Now let’s try to solve the central force Kepler problem by H-J
1 1 1 1
L = mṙ2 − V (r) where ≡ +
2 m m1 m2
and here m is the reduced mass.
Ph
[email protected] 65 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ψ is a cyclic coordinate
pψ = mr2 ψ̇ is a constant
ide
Now check that we can write the hamiltonian as
!
2
1 p ψ
H= p2r + 2 + V (r) = α1 = E (9.15)
2m r
gu W = W1 (r) + αψ ψ
After simplification
ys
s
∂W1 αψ2
= 2m (α1 − V (r)) −
∂r r2
Integration gives
Ph
Z r
α2
W = αψ ψ + 2m (α1 − V (r)) − 2v dr
r
Transformation equations are
Z
∂W dr
t + β1 = =m q
∂α1 αψ2
2m (α1 − V (r)) − r 2
[email protected] 66 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
and
Z
∂W dr
β2 = = ψ − αψ q
∂αψ 2
αw
r2 2m (α1 − V (r)) − r2
ide
9.3 Action-Angle Variables
For many problems, we may not be able to solve analyti-
cally for the exact motion or for orbital equations, but we can
gu
still characterize the motion. For periodic systems we can
find the frequency and time period by exploiting action-angle
variables.
ics
For periodic motion, we replace P = α1 by the action vari-
able I
J = pdq
∂W
ω=
∂J
Ph
[email protected] 67 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
p2
H= + α|x|ν
2m
ide
Find the time period of a particle in this Hamiltonian
using action angle variable.
gu
tudes of the turning points are same
xturning = ±
1/ν
E
α
ics
√ Z x2 √
Z x2 p
J= 2m E− αν dx =2 2m (E − αxν )dx
x1 0
√ x2
r Z
α
ys
= 2 2mE 1 − xν dx
0 E
Now we have E = αxν2 . Substituite
α ν
Ph
z≡ x
E
so 1/ν 1/ν
zE E 1 1 −1
x= ; dx = z ν dz
α α ν
Then 1/ν Z 1
√ E 1 1 √
J = 2 2mE z ν −1 1 − zdz
α ν 0
[email protected] 68 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
1/ν
√ E 1 Γ(1/ν)Γ(3/2)
= 2 2mE
ν Γ ν1 + 23
α
1/ν √
√ E Γ ν1 + 1 12 π
= 2 2mE
ide
Γ ν1 + 23
α
1/ν
√ Γ ν1 + 1
E
= 2πmE
Γ ν1 + 23
α
1 3
1 1 J Γ +
E ν +2 = √ α1/ν ν1 2
gu k=√
1
2πm
Γ +
Γ ν +1
Put the constants inside another constant
1
α1/ν ν1 2
3
ics
2πm Γ ν +1
and write
1 1
E ν + 2 = kJ
ys
ide
Example 9.30: Let us consider the Harmonic oscillator
problem again
1
p2 + m2 ω 2 q 2 = E = α = constant
H=
2m
Now J is
gu J=
I
pdq =
I p
2mα − m2 ω 2 q 2 dq
ics
where α is the constant total energy and ω 2 = k/m.
r
2α
If we substitute q = sin θ Then the integral reduces
mω 2
to
ys
2α 2π
Z
J= cos2 θdθ
ω 0
Limits should be over one complete cycle of q.
Ph
[email protected] 70 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
Example 9.31: A particle of mass m moves in one di-
mension subject to the potential
k
U (x) =
sin2 (x/a)
gu
(a) Obtain an integral expression for Hamilton’s charac-
teristic function.
(b) Under what conditions may action-angle variables
ics
be used?
(c) Assuming that action-angle variables are permis-
sible, determine the frequency of oscillation by the
ys
action-angle method.
(d) Check your result for the oscillation frequency in
the limit of small oscillations.
Ph
Solution:
(a) As the total energy is conserved.
p2 k
H= + =E= constant
2m sin2 (x/a)
The motion is therefore between the turning points. Turn-
[email protected] 71 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ing points are those where total energy becomes equal with
potential energy
p
x− (E) = nπa + a sin−1 k/E
ide
p
x+ (E) = (n + 1)πa − a sin−1 k/E
where n is any integer. The Hamilton Jacobi equation is then
2
1 dW k
gu 2m dx
Which We may then write
√
+
sin2 (x/a)
Z x
=Q
s
k
ics
W (x, E) = 2m dx0 E−
x− (E) sin2 (x0 /a)
s
√ I
k
J = 2m dx0 E −
sin2 (x0 /a)
Then J becomes
√ Z 2π
1 − cos u
J = a 2mE du E+k
0 E−k − cos u
ide
This integral can be solved by method of contour integration
by using techniques of complex analysis. However the stan-
dard integral table may be used
Z 2π
du 1 1
gu I=
0 2π b − cos u
=√
b2 − 1
Using this integral we got, with b = (E + k)/(E − k),
ics
2
√ √ √ √
J
J= 2ma( E − k) , E= √ + k
2ma
Note that the minimum energy is Emin = k. The oscillation
frequency is given by
ys
r r
∂E J 2k 2E
ν(J) = = 2
+ 2
=
∂J ma ma ma2
Ph
2k cos(x/a)
U 0 (x) = − ·
a sin3 (x/a)
2k sin4 (x/a) + 3 sin2 (x/a) cos2 (x/a)
U 00 (x) = 2 ·
a sin6 (x/a)
[email protected] 73 Physicsguide
©Sk Jahiruddin, 2020 Hamiltonian Mechanics
ide
r r
U 00 (x∗ ) 2k
ωs.o. = =
m ma2
which agrees the result of (c)
gu
ics
ys
Ph
[email protected] 74 Physicsguide