Unit 2
Unit 2
UNIT         2
            HAMILTON’S EQUATIONS
                       OF MOTION
Structure
2.1 INTRODUCTION
In your first course on Classical Mechanics in Semester I you have studied the
Lagrangian formulation of mechanics and applied it to several problems
ranging from the simple pendulum to special relativity. As you know now, the
solution to mechanical problems with holonomic constraints in the Lagrangian
formalism hinges on the solution of the second order differential equations,
which are the Euler Lagrange (E-L) equations, for generalized coordinates
coupled with appropriate initial conditions. The central function in this
formalism is the Lagrangian, which is a function of the generalized coordinates
and their time derivatives, as well as time. Most practical problems can be
solved using this formalism.
 In the first half of the nineteenth century, Sir William Rowan Hamilton (in
1835) developed his own analytic version of mechanics, the third formulation,
after the Newtonian and Lagrangian formulation. The central quantity in
Hamiltonian dynamics is the Hamiltonian of the mechanical system which
unlike the Lagrangian, is a function of the generalized coordinates, the
conjugate momenta and time. When the formalism was first introduced, it
seemed that there was nothing more to be gained from this new formalism
which was not particularly superior to the Lagrangian formalism. It was only
later that it was realized that the importance of this formalism is that is serves
as a theoretical framework for several areas of physics, like field theories,
quantum mechanics, the path-integral formulation of quantum mechanics and
others.
In Sec. 2.2 we introduce an important mathematical technique called the
Legendre transformations which is used to establish the connection between
the Hamiltonian and the Lagrangian for a mechanical system. In the next
section, that is Sec. 2.3 we derive Hamilton’s equations of motion, which can                            31
Block 1                                                                     Hamiltonian Dynamics
          be used to study mechanical systems. In Sec. 2.4 we discuss the important
          properties of the Hamiltonian formulation and discuss how it leads to the
          important conservation laws of mechanics. After working out the problems in
          these sections you will see that the Hamiltonian formalism does not in general,
          give us any advantage over the Lagrangian formalism. The Hamiltonian
          formalism is however useful when one has cyclic coordinates. In that case one
          uses a method called Routh’s procedure to solve the dynamical problem, and
          you shall study about that in Sec. 2.5.
          You will work out a lot of problems in this unit to understand the formalism. We
          will use examples of dynamical systems for which you have already derived
          the Lagrangian and the E-L equations of motion in Blocks 1 and 2 of MPH-002
          and are familiar with the generalized coordinates of these systems. We will
          provide the references where required.
                    f
          Where          is the derivative of f with respect to x, holding y constant and
                    x y
           f                                                                            f
               is the derivative of f with respect to y, holding x constant. Writing u 
          y x                                                                           x
                    f
          and v       , we can also write this as:
                    y
  32               df  udx  vdy                                                               (2.3)
Unit 2                                                                                    Hamilton’s Equations of Motion
Now consider a new independent variable z and a function g  g ( x, y , z ) :
         g  yz  f ( x, y )                                                          (2.4)
Now, the differential of this function g  g ( x, y , z ) is:
         dg  ydz  zdy  df ( x, y )
                               f        f
               ydz  zdy          dx       dy
                               x y      y x
                          f       f
             ydz   z      dy 
                                        dx                                           (2.5)
                          y x     xy
Then
                  f
         dg          dx  ydz                                                       (2.7)
                  x y
                    g       f
                                                                                                              (2.12)
                   w i     w i
Then we can say that the variables u1, u2 ,....., un satisfy the relations:
                          g
                   ui              for i  1,2,....n                                                           (2.13)
                          v i
          And
                                                                   n
                   f (u1, u 2 ,....., u n , w1, w 2 ,....w m )   u i v i  g (v1, v 2 ,....., v n , w1, w 2 ,....w m )
                                                                i 1
                                                                                                                (2.14)
          Legendre transformations are used extensively in physics. In the next section
          we show how it is used in classical mechanics, but it is also used in
          thermodynamics to transform from the internal energy to different
          thermodynamic potentials like the enthalpy and the Gibb’s free energy. You
          may like to work out a few problems to understand Legendre transformations.
          SAQ 1
          Obtain the Legendre transforms for the functions:
          a) f ( x )  x 2 to g (z )
          b) f ( x )  ln x to g (z )
          c) f ( x )  e x to g (z )
          d) f ( x, y )  2 x 2  3 xy  y 2 to g (u, v )
          Now suppose that starting from the Lagrangian we wish to generate a function
  34      of the generalized coordinates, the generalized momenta (the conjugate or
Unit 2                                                                                       Hamilton’s Equations of Motion
canonical momenta) and time: q1, q 2 ....., qn , p1, p2 ....., pn and t . Let us pre-
emptively denote this new function by H  H (q1, q 2 ....., qn , p1, p2 ....., pn , t )
            L
where pi        , as you have studied in Unit 4 of MPH-002. Let us use the
           q i
method of Legendre transformations to do this:
For the purpose of carrying out the Legendre transformation the generalized
coordinates q1, q2 ....., qn and t are the passive variables (since both L and H
functions contain the generalized coordinates and time) and given the relation
connecting the active variables q i to pi are (relate to Eq. 2.10 with q i as ui
and pi as v i ):
                    L
            pi           for i  1,2,....n                                               (2.15)
                    q i
We can write the function H  H (q1, q2 ....., qn , p1, p2 ....., pn , t ) using Eq. (2.11)
as:
                    n
            H   q i pi  L                                                             (2.16)
                   i 1
The following relations hold for the passive variables (Eq. 2.12):
            L    H
                                                                                        (2.18)
            t    t
            L     H
                                                                                        (2.19)
            qi    qi
Assuming that the Euler-Lagrange (E-L) equations are valid we can write:
            L  d  L             
                                  p i                                              (2.20)
            qi dt  q i          
Notice that while in the Lagrangian formulation you had one second order
differential equation for each generalized coordinate, here you have two
coupled first order differential equations for each pair of generalized
coordinates and the corresponding conjugate(or canonical) momentum.                                                      35
Block 1                                                                       Hamiltonian Dynamics
          So we have shifted from the Lagrangian description of the mechanical system
          in terms of the generalized coordinates q1, q2 ....., qn and generalized velocities
           q1, q 2 ....., q n to a description of the system terms of q1, q2 ....., qn and momenta
           p1, p2 ....., pn using the Hamiltonian and the following set of relations 2n  1
          which are called the canonical equations of Hamilton or the canonical
          equations of motion:
                          H
                   q i                                                                   (2.22a)
                          pi
                             H
                    p i                                                                 (2.22b)
                             qi
                        L H
                                                                                         (2.22c)
                        t   t
          Eqs. (2.22a) and (2.22b) give us q i and p i in terms of qi , pi and t .
          Description of a mechanical system using these equations of motion is called
          Hamiltonian dynamics.
          Note further, that while the Hamiltonian H defined in Eq. (2.16) and the Jacobi
          integral h defined in Unit 1, have the same value, they are different functions
          because h is a function of qi , q i and t , H is a function of qi , pi and t .
                                           L
          iii) Using the equations pi          , obtain the relation between the conjugate
                                          q i
               momenta pi and q i . Invert these relations to write the q i as a function of
               qi , pi and t .
Example 2.1
Obtain the Hamiltonian of the system and the corresponding Hamilton’s
equations for the following:
a) A particle of mass m with a single generalized coordinate x with the
   following Lagrangian:
                 1 2 1 2
         L        mx  kx  ax 4  bx 2 x 2
                 2     2
b) An Atwood’s machine consisting of two blocks of masses m1 and m2 ,
   connected by an inextensible string of length l (Fig. 2.15, Unit 2, MPH-002)
   with the following Lagrangian
                 1
         L        ( m1  m2 ) y12  ( m1  m2 ) gy 1  m2 gl
                 2
Solution : a) Using Eq. (2.15) we can write the canonical momentum as:
                              L
         p x  p(say )           m x  2 bx 2 x
                              x
         H  px  L                                                                   y1
                                                                                                         m2
                       1       1
              px   mx 2  kx 2  ax 4  bx 2 x 2                                            y
                      2       2                         
                                                                                            m1
                    1                      1
              px  x mx  2bx 2 x   kx 2  ax 4
                    2                      2
                                                                                      Fig. 2.1: Atwood’s
                 1      1                                                             machine
           px  x p  kx 2  ax 4
                 2      2
             1  1 2
              px  kx  ax 4                                         (ii)
             2     2
                 1      p2     1
         H                    kx 2  ax 4                           (iii)
                            2
                 2 ( m  2bx ) 2
   Using Eqs. (2.22a) and (2.22b) we get the Hamilton’s equation of motion.
              H      p
         x     
              p (m  2bx 2 )
                H         p2
         p                        ( 4bx )  2kx  4ax 3
                x   2( m  2bx 2 ) 2
                    2bxp 2
                                 kx  4ax 3
                           2 2
                 (m  2bx )                                                                                    37
Block 1                                                                                           Hamiltonian Dynamics
                                       1
                            b) With L  ( m1  m 2 ) y 12  ( m1  m 2 ) gy 1  m 2 gl
                                       2
                                The conjugate momentum for the coordinate y 1 is
                                                     L                                   p1
                                    p y1  p1             ( m1  m 2 ) y 1  y 1                         (i)
                                                     y 1
                                                                                      m1  m 2
                                                 1                                                
                                       p1y 1   ( m1  m 2 ) y 12  ( m1  m 2 ) gy 1  m 2 gl 
                                                 2                                                
                                               p12           1     p1 2
                                                                           (m1  m 2 ) gy 1  m 2 gl
                                          ( m1  m 2 )       2 ( m1  m 2 )
                                               p12
                                                             ( m1  m 2 ) gy 1  m 2 gl
                                          2( m1  m 2 )
                            SAQ 2
                    m
                            a) A simple pendulum (Fig. 2.2 )with a bob of mass m tied to a support by
                               string of constant length L0 has the Lagrangian
           y
                                       1
                               L()  m L0 2  2  mg L0 cos  where  is the generalized coordinate
     Fig. 2.2: Simple                  2
     pendulum.                 (Example 3.3a, Unit 3, MPH-002). Obtain the Hamiltonian and derive
                               Hamilton’s equation of motion.
                                                                                     1
                            b) The Lagrangian of a system in two dimensions is L  mx 2  mx y .
                                                                                     2
                               Determine the Hamiltonian
                            c) Consider a spherical pendulum of mass m and length L0 . The Lagrangian
                               is written in terms of the generalized coordinates  and  (TQ 3, Unit 3,
                                MPH-002) as:
                                    L
                                          1
                                          2
                                                                      
                                            mL20  2   2 sin 2   mg L0 sin 
         L
               1
               2
                                     
                 m x 2  y 2  z 2  q  q Ax x  Ay y  Az z 
             p  q Ax  py  q Ay  pz  q Az
         x  x      ;y         ;z 
                m          m           m
         H  px x  py y  pz z  L
and
                 H       q             A
         p x        q    p x  qA x  x
                 x       x m              x
                                                                                                                 39
Block 1                                                                              Hamiltonian Dynamics
                               H       q                           Ay
                       p y        q    py  qAy 
                               y       y m            y
                               H       q           A
                       p z        q    pz  qAz  z
                               z       z m            z
          Since H has an explicit time-dependence (, A) , it is not conserved in general. It
          is conserved only for static fields.
          You can also study the dynamics of a charged particle moving in a magnetic
          field. Work out the following SAQ.
          SAQ 3
          Determine the equations of motion for a particle of mass m and charge q
          moving in a uniform magnetic field B0 along the z-direction which has the
          Lagrangian:
                             1                              qB
                       L      m ( x 2  y 2  z 2 )   0     x y  y x 
                                                                  
                             2                              2c   
          You have worked out the central force problem in Units 5 and 6 of MPH-002.
          Let us now derive Hamilton’s equations for the central force problem.
          Example 2.3
          A particle moves in a central force field for which the potential function is
                     k
          V ( r )   . Obtain the Hamiltonian, identify the cyclic coordinates and write
                     r
          down the equations of motion. Identify the conserved momenta.
                       L  T V 
                                       1 2
                                       2
                                            
                                         m r  r 2  2  r 2 sin 2  2 
                                                                            k
                                                                            r
                                                                                                (i)
                                                            1  p r2   p2  p 2      k
                       H  p r r  p    p    L                                   (iii)
                                                            2  m mr 2 mr 2 sin 2   r
                                                                                   
          The cyclic coordinate is  and hence the canonical momentum p is conserved.
          The canonical equations of motion for the generalized momenta are obtained
          using Eqs. (2.22b):
                                     p2          p 2
                       p r   H                   
                                                          k
                                                                                                 (iv)
                                r   mr 3   mr sin  r 2
                                                3     2
                                H    p2 cos 
                       p                                                                    (v)
                                 mr 2 sin3 
  40
                       p   0  p   constant  a (say)                                       (vi)
Unit 2                                                                      Hamilton’s Equations of Motion
You can check for yourself that the canonical equations for the generalized
coordinates using Eq. (2.22a) are the same as those derived in Eq. (ii):
               H    p         H    p        H       p            a
          r        r ;         ;                   
               p r   m        p  mr 2      p  mr 2 sin 2  mr 2 sin 2 
                                                                        (vii)
Using Eq. (vi) we can write the Hamiltonian for the problem as:
               1  p r2   p2   a2         k
         H                                                       (viii)
               2  m mr 2 mr 2 sin 2   r
Hamilton’s equations can be solved to obtain the dynamics of the system. You
may like to work on another SAQ.
SAQ 4
a) A particle of mass m and coordinate q has the Lagrangian
       1         a
   L  mq 2  qq 2 . Determine the Hamiltonian for the system and the
       2         2
   canonical equations.
b) Obtain the solutions for Hamilton’s equations for the following two systems
   for which the Hamiltonian functions are:
               p2
   i)    H        xp
               2
               e   t p 2 e t  2 x 2
    ii) H                
                   2            2
SAQ 5
a) Determine the Hamiltonian and the canonical equations of motion for a a
   bead of mass m sliding due to gravity on an elliptical wire (SAQ 3a, Unit 3,
   MPH -002) for which the Lagrangian is:
                      1
         L  T V      m(a 2 sin 2  b 2 cos2 ) 2  mgb sin 
                      2
b) Determine the conserved quantities in the Hamiltonian of Example 2.1.
          The first term in the RHS of Eq. (2.29) is only for the cyclic coordinates,
          whereas the second term is the Lagrangian which is only a function of the
  44      non-cyclic generalized coordinates, all the generalized velocities and time.
Unit 2                                                                                                     Hamilton’s Equations of Motion
Now, from the LHS of Eq. (2.29) we can write the differential of the Routhian
function as:
                    n R         n  r R               n       R        R
         dR              dq i           dq i                 dpi     dt                         (2.30)
                  i 1q i        i 1 q i        i  n  r 1 pi       t
                                        
We can also write the differential using the RHS of Eq. (2.29) which is:
                          n                                   n r L            n
                                                                                     L   L
         dR                    p i dq i  q i dp i             dq i           dq i 
                                                                                               t
                                                                                                   dt
                                                              i 1 q i              i
                                                                                       q
                   i n r 1                                                   i 1          
                                                                                                    (2.31)
                L             L
Using pi           and p i      we can write Eq. (2.31) as:
                qi
                              qi
                          n                                   n r            n               L
         dR                    p i dq i  q i dp i     p i dq i   p i dq i  
                                                                                                t
                                                                                                   dt   (2.32)
                   i n r 1                                 i 1            i 1      
                                                                                                        (2.35)
Comparing Eqs. (2.34) and (2.31), we therefore find that for the r cyclic
coordinates (from n  r  1 to n) we get Hamilton’s equation of motion:
                  R         R
         p i        ; qi                            i  n  r  1,....,n                            (2.36)
                  q i        pi
Using Eq. (2.27) we get back the Euler-Lagrange equations of motion for the
non-cyclic coordinates:
         d     R        R
                           0                     i  1,...., n  r                                (2.38)
         dt     q i     qi
          To summarize:
             The r cyclic generalized coordinates satisfy Hamilton’s equations of motion
              with H replaced by R. The canonical momenta corresponding to the cyclic
              coordinates are constants of motion
             The n – r non-cyclic generalized coordinates satisfy the Euler Lagrange
              equations of motion with L replaced by R.
          Example 2.4
          Write down the expression for the Routhian for the central force problem of
          Example 2.3 and derive the equations of motion.
The cyclic coordinate for the problem is  and the conjugate momentum p is
                                           1                                         k
                  R  p    L  p    m r 2  r 2  2  r 2 sin 2  2                             (i)
                                           2                                         r
          For the cyclic coordinate  we have Hamilton’s equation (Eq. 2.36):
                           R
                  p        0  p  constant  a(say) ;                                                   (ii)
                           
                          R
                  p          mr 2 sin 2                                                                  (iii)
                          
Using the E-L equations for the non-cyclic coordinates r ,  (Eq. 2.38) is
                  d     R  R                  2        2 2   k
                            
                        r   r  0  mr  mr  mr sin    2  0
                                                                                                             (v)
                  dt                                            r
                                        a2                    k
                  r  r 2                                       0                                       (vi)
                                    2 3         2
                                  m r sin                  mr 2
          And
                  d     R   R  0  mr 2   mr 2 sin  cos   2  0                                 (vii)
                         
                  dt      
  46
Unit 2                                                                                                   Hamilton’s Equations of Motion
which is
         d  R  R                       a2
                   0  mr 2                cos   0                                       (viii)
         dt                      mr 2 sin 3 
SAQ 6
Identify the cyclic coordinates and obtain the Routhian for the spherical
pendulum which has the Lagrangian (SAQ 2c):
         L
              1
              2
                                           
                mL20  2   2 sin 2   mg L0 sin 
2.6 SUMMARY
    Legendre Transformation
                      f
              vi              for i  1,2,....n
                     ui
                g       f
                           for i  1,2,....m
               w i     w i
                     g
              ui              for i  1,2,....n
                     v i
         And also
                                                               n
              f (u1, u 2 ,....., u n , w1, w 2 ,....w m )   u i v i  g (v1, v 2 ,....., v n , w1, w 2 ,....w m )
                                                           i 1
    Hamilton’s Function
         For a dynamical system described by n generalized coordinates
         q1, q2 ....., qn , the Lagrangian, as you know is a function of the
         generalized coordinates, generalized velocities and time:
         L  L(q1, q2 ....., qn , q1, q 2 ....., q n , t ) . The Hamilton’s function
         H  H (q1, q2 ....., qn , p1, p2 ....., pn , t ) is a function of the generalized
         coordinates, the conjugate momenta and time where:                                                                          47
Block 1                                                                                                   Hamiltonian Dynamics
                                        L
                                   pi        for i  1,2,....n
                                        q i
                                                                                       n
                              And is defined by the relation: H   q i pi  L
                                                                                      i 1
                                   L    H L      H
                              With        ;    
                                   t    t q i    q i
                                            s
                               .
                                        
                                   a
                               X
                                                                                         O                                       x
                                                                     x
                                                b
                                                                                     A
                                                                                                     LA
                     z                                                                                        yA
                                                                                                                            yB
                         Fig. 2.4: Block sliding down a moving incline.
                                                                                                    xA
                                                                                                                   A
     Determine the canonical momenta and show that the Hamiltonian is the
                                                                                                    B                 LB
     sum of the kinetic and potential energies. Is the Hamiltonian conserved?
4.   A double pendulum (Fig. 2.5) is made up of two simple pendulums of
     mass m and length L has the Lagrangian (TQ2, Unit 3, MPH-002 with                                   xB
     m A  mB  m and LA  LB  L ):
              1  2 2                                                                      y
         L    m 2L  A  L2  B 2  2L2  A  B cos(  B   A )
              2                                                                         Fig. 2.5: Double
                                                                                          pendulum.
                          2 mg L cos  A  mg L cos B
     Determine the Hamiltonian for the system. Is the Hamiltonian the total
     energy of the system?
5. Derive Hamilton’s equations of motion for a particle of mass m constrained
   to move on the surface of a right circular cylinder of radius A defined by the
               2      2   2
   equation x  y  A and subjected to a force derived from the potential
                        1
   function: V (r )   kr 2 .
                        2
                                                                                                          z
6. A particle of mass m moves under the influence of gravity down a helical
   wire x  a cos , y  a sin  ; z  k . Obtain Hamilton’s equations of motion.                                
7. Derive Hamilton’s equations of motion for a system with the following
                                              2                                                                       L0
                           1  2     22  r
     Lagrangian L            r   r        .
                           2              2
                                                                                                              
8. A particle of mass m is attached to a fixed point O by a weightless                                                      m
   inextensible string of length L0 and is rotating under the gravity (Fig. 2.6).
                                                                                                x
     as shown in the figure. The Lagrangian of the particle is:
                                                                                          Fig. 2.6: TQ 9.
                     1
         L(, )      mL2  2  sin 2  2   mgL0 cos 
                     2
     Determine the Hamiltonian and the equations of motion.
                                                   p2
9. The Hamiltonian for a particle of mass m is H      kqt where q and p
                                                   2m
     are the generalized coordinate and momentum, respectively. For the initial
     condition, q  0 and p  0 at t  0, q(t )  t  . Determine the value of  .                                               49
Block 1                                                                              Hamiltonian Dynamics
          10. Consider a particle moving under the action of a central force derivable
                                                    k
              from a potential function V (r )      which has the Lagrangian:
                                                   rn
                        1 2                   k
                 L       m r  r 2  2  
                        2                     rn
             Determine the Routhian and the equations of motion.
                 We can solve Eqs. (i) and (ii) to get x and y in terms of u and v:
                    x  2u  3v                                                                 (iii)
                    y  3u  4v                                                                  (iv)
                 So :
                    g (u, v )  xu  yv  f  u 2  3uv  2v 2
                            1
          2. a) For L        mL0 2  2  mgL 0 cos  the canonical momentum conjugate to
                            2
                  is
  50
Unit 2                                                                                               Hamilton’s Equations of Motion
                           L                    p
                p            mL0 2    
                            
                                              mL 0 2
So:
                                     1   p2                 
            H  p   L           mL0 2 2  mgL0 cos  
                                     2         2             
                            mL0
                    p2    p2                    
                                 mgL0 cos  
                        2       2                
                   mL0     2mL0                  
                        p2
                                mgL0 cos 
                      2mL0 2
                                     p2
            H  T V                                mgL0 cos 
                                   2mL0 2
So:
                      py            py                              px  py
               x      ; p x  m                     my  y 
                      m             m                                  m
H  x p x  y p y  L
                                                                       2
                      py               px  py               1  py       (p  py )  py
                                                                            m x               
                            p x                   p y  m                          
                      m                   m                  2  m 2   
                                                                                 m        m    
                      p x py       p y2
                              
                        m          2m
                       L                             p
               p          mL20 sin 2                                               (ii)
                                               mL20 sin 2 
                                                                                                                                 51
Block 1                                                                                        Hamiltonian Dynamics
                  The Hamiltonian is:
H  p    p    L
                               p                          p        1
                          p                    p                mL2  2   2 sin 2    mg L0 sin 
                               mL2                     mL2 sin 2   2   0
                                 0                       0         
                                  p2                  p2
                                                                   mg L0 sin                             (iii)
                                 2mL20          2mL20 sin 2 
(Note that these equations are the same as Eqs. (i) and (ii))
                    1        qB0          1        qB0          p
               x   p x     y  ; y   p y      x  ; z  z
                    m         2c          m         2c          m
              The Hamiltonian is
                 H  px x  py y  pz z  L
                                qB 0     qB 0  
                       mx      y  x   my     x  y  mz 2
                                2c              2c 
                                 1                          qB
                                  m x 2  y 2  z 2   0  xy  yx 
                                 2                           2c
  52
Unit 2                                                                            Hamilton’s Equations of Motion
           
                1
                2
                     
                  m x 2  y 2  z 2   
                                         2               2
                1       qB0     1       qB0      1 2
                  px     y      py      x     pz .
               2m        2c    2m        2c     2m
                        H qB0       qB0 
               p x           py      x
                        x 2mc         2c 
                        H    qB0       qB0 
               p y            px     y
                        y    2mc        2c 
                         H
               pz          0  p z  constant
                         z
                                             1       a
4. a)         H      qp  L where L  2 mq 2  2 qq 2
               L                                                p
                   p  mq  aq q  p  q ( m  aq )  q 
               q
                                                              m  aq
So:
                                 p2     1   ( p2 )   a     p2      
              H  qp  L              m           q            
                               (m  ap) 2 (m  aq )2 2  (m  aq )2 
                                                                   
                        p2          p2
                                           (m  aq )
                     ( m  aq ) 2( m  aq )2
                       p2          p2              p2
                                         H 
                     (m  aq ) 2( m  aq )      2(m  aq )
                      H        ap 2     
               p                    
                      q     2(m  aq )2 
                                         
                                             p 2
                                                               m g b sin 
                                2m a 2 sin 2   b 2 cos 2 
                                  H    p 2 a 2  b 2  sin  cos 
                         p                                       m g b cos 
                                     m a 2 sin 2   b 2 cos 2  
                                                                     2
  54
Unit 2                                                                                           Hamilton’s Equations of Motion
              H   p                                 H      p
                                       ;        
              p mL20                               p mL20 sin2 
We get
                     p 2                1
         R                               mL20  2  mg L0 sin 
                2mL20    sin 2          2
Terminal Questions
1. From Fig. 2.3 we can write the Lagrangian as:
                1 2 1                1
         L       mx  m( x  z )2  kz 2
                2     2               2
                1 2 1 2 1 2           1
                 mx  mx  mz  mx z  kz 2
                2     2    2             2
   The conjugate momenta are
                 L
         px          2mx  mz                                                        (i)
                 x
                 L
         pz          mz  mx                                                         (ii)
                 z
   The Hamiltonian is:
         H  p x x  pz z  L
                                    1       1                1
               p x x  p z z   mx 2  m( x  z ) 2  kz 2                     (iii)
                                   2       2                2      
   From Eqs. (i) and (ii) we get
             p  pz
         x  x                                                                          (iv)
                m
              2p z  p x
         z                                                                             (v)
                  m
                    pz
   and x  z                                                                          (vi)
                    m
   Using Eqs. (iv) and (v) in Eq. (iii) we get
                                                                          2
                    p x  pz                  2pz  p x  1 p x  pz      1 mp z2 1 2
         H  px                       p z               m                       kz
                          m                       m       2      m2         2 m2      2
                                                                                      (vii)
                p x 2 p x p z 2 p z2 p x p z   1            p x2 1   p z2 p x p z 1    p z2 1 2
                                                                                    kz
                 m      m      m       m       2            m 2      m      m      2   m 2
                p x2 p z p x p z2 1 2
                               kz                                                    (viii)
                2m     m      m   2
   The equations of motion are:
                H    1
         x          ( p x  pz )
                p x  m
                H    1
         z          (2 p z  p x )
                p z  m
                                                                                                                             55
Block 1                                                                       Hamiltonian Dynamics
                          H
                 p x      0
                          x
                          H
                 p z        kz
                          z
          2. The canonical momentum is:
                        L                    p
                 p        m A 2    
                         
                                           mA 2
             The Hamiltonian is
                H  p   L
                            p       1           1
                    p      mA 2  2  mA 2 sin2 2  mgA cos 
                              2
                          mA   2             2                          
                        p 2          p 2       1
                                                mA 2 sin 2   2  mgA cos 
                      mA 2           2mA 2       2
                                                         
                    X M  m  X  ms cos   s ms  mX cos           
                            1               1
                          M  m  X 2  ms 2  mX s cos   mg s sin   mga 
                           2               2                                         
                  
                      1
                      2
                                   1
                                     
                        M  m X 2  ms 2  mX s cos   mg s sin   mga
                                    2
             From the solution of SAQ 3b, Unit 3, MPH-002 we know that
             So H  T  V                                                                 .
             For the Hamiltonian to be the total energy of the system (H  T  V )
  56
Unit 2                                                                                           Hamilton’s Equations of Motion
        The potential energy should be independent of the generalized
         velocity which is true in this case
        The kinetic energy should be a homogenous function of degree two of
         the generalized velocities. For this we must have
               T
          q i q i     2T . Here
          T  X   T  s
                   
          X        s 
                                              
          M  m  X  ms cos  X  ms  mX cos  s        
               1               1
          2  M  m  X 2  ms 2  mX s cos    2T
              2               2                      
          pA                                        pB
                   2 A   B cos(  B   A ) ;       A cos(  B   A )   B
         mL2                                        mL2
                p  pB cos(B   A )
          A  A                                                                        (i)
               mL2 1  sin2 (B   A )
                                      
                        2 pB  p A
          B                                                                           (ii)
                  mL2 1  sin 2 ( B   A 
H  p A  A  pB  B  L (iii)
   Using the results of Eqs. (i) and (ii) in Eq. (iii) we get
                               1           p 2 / 2  p 2  p p cos(   )
         H                                A          B     A B     B   A 
               mL 1  sin (  B   A ) 
                    2         2                                          
                                     
   Once again
        The potential energy is independent of the generalized velocity which
         is true in this case
        The kinetic energy is a homogenous function of degree two of the
         generalized velocities and for
                                                                                                                             57
Block 1                                                                          Hamiltonian Dynamics
                                    1
                     T  mL2  2A  mL2  B        A  B cos(  B   A )
                                            2  mL2 
                                    2
                      T
                           2m L2  A  m L2  B cos (  B   A )
                      A
                      T
                            m L2  B  mL2  A cos(  B   A )
                      B
                       T       T
             Hence         A         2T
                        
                       A       B
             Since both conditions are satisfied, H is the total energy of the system
             (H  T  V )
          5. Let us use cylindrical coordinates , , z  for this problem. The constraint
              x 2  y 2  A 2 can be written as  2  A 2    A . So
                                1                        1                1
                     V (r )      k ( x 2  y 2  z 2 )  k ( 2  z 2 )  k ( A 2  z 2 )   (i)
                                2                        2                2
             In cylindrical coordinates the square of the velocity is
                     v 2   2  2 2  z 2                                              (ii)
                              p 2p 2 1
                                 z  k( A 2  z 2 )                                        (vi)
                            2mA 2 2m 2
             As you can see, H is also the total energy expressed in terms of the
             variables , p , z and p z :
                              p 2    p 2     1
                  H  T V           z    k ( A 2  z 2 )                           (vii)
                              2mA 2   2m   2                 
  58                                       
Unit 2                                                                                Hamilton’s Equations of Motion
   The canonical equations are:
                  H
         p        0  p   constant                                     (viii)
                  
   This also follows from the fact that  is a cyclic coordinate.
                  H
         p z        kz                                                   (ix)
                  z
              H    p
                                                                          (x)
              p  mA 2
                H    p
         z          z                                                      (xi)
                p z   m
6. Once again, we use cylindrical coordinates , , z  for this problem. In
   cylindrical coordinates the kinetic energy and the potential energy of the
   particle are:
                1       1
         T       mv 2  m  2   2  2  z 2                           (i)
                2       2
         V  mgz                                                              (ii)
                          1
         L  T V          ma 2  2  k 2  2   mgk
                          2
                1           k 2  2
                 ma 2 1        mgk                                   (iv)
                2           a2 
   As you can see the Lagrangian has just one generalized coordinate which
   we have taken to be . The canonical momenta conjugate to  is
                 L              k 2                      p
         p          ma 2 1                                       (v)
                              a2                            k2 
                                                    ma 2 1        
                                                                 a2 
   The Hamiltonian is:
         H  p    L
                         k 2  2 1     2           k 2  2      
             ma 2  1         2 ma 1              mgk
                            2
                          a                             2
                                                       a 
                                                                  
              1               2
                            k  2
             ma 2 1            mgk
              2            a2 
                      p 2
                                       mgk                                 (vi)
                            k2   
                2ma 2 1 
                                 
                            a2                                                                                  59
Block 1                                                               Hamiltonian Dynamics
             Hamilton’s equations of motion are:
                          H
                 p        mgk                                               (vii)
                          
                     H               p
                                                                              (viii)
                     p                   k2 
                                ma 2 1 
                                              
                                           a2 
Alternative Solution
                        L    a2                             pz
                 pz        m     1 z  z                                  (ii)
                        z
                             k 2
                                                a2     
                                              m       1
                                                    2
                                                 k      
             And the Hamiltonian is now written in terms of z :
                                            p z2
                H  p z z  L                         mgz                      (iii)
                                       a2      
                                    2m       1
                                         k 2
                                               
                          H
                 p z       mg                                                (iv)
                          z
                      H             p z2
                 z                                                             (v)
                      p z         a2     
                                2m      1
                                      2
                                   k      
                        L                     L
                 pr        r           p         r 2 
                        r    ;                
                                     p
                r  pr     ;      
                                     r2
                                       1                     r2 
                H  p r r  p     r 2  r 2  2       
                                       2                      2 
                                    2
                        1  2 p  r 2
                            pr          .
                        2       r 2  2
  60
Unit 2                                                                                           Hamilton’s Equations of Motion
   The equations of motion are:
              H                      H   p
         r        pr      ;          
              p r                    p  r 2
                         2
                  H p                   H
         p r            r ; p        0.
                  r   r 3                
8. The Hamiltonian is
                                                     1
         H  p   p    L  p    p       mL0 2  2  sin 2  2   mgL0 cos 
                                                     2
                L          p          L                             p
         p                 ; p       mL0 2 sin 2    
                        mL0 2                                mL0 2 sin 2 
                                  2 
         H
                  1     p 2  p    mgL cos 
                                         0
               2mL0 2       sin 2  
              H   p
         q                                                                            (i)
              p m
                H
         p       bt                                                                 (ii)
                q
                bt 2
         p         C                                                                  (iii)
                 2
   here C is a constant. Using the initial conditions p(0)  0 in Eq. (iii) we get
   C  0 . Hence Eq. (iii) gives us:
                bt 2
         p                                                                             (iv)
                 2
Substituting for p from Eq. (iv) into Eq. (i) we can write:
                bt 2
         q                                                                            (v)
                2m
                bt 3
         q         D                                                                  (vi)
                6m
   where D is a constant.
                                                                                                                             61
Block 1                                                                Hamiltonian Dynamics
             Using the initial conditions q(0)  0 in Eq. (vi) we get D  0 , so
                          bt 3
                 q            q t3              and   3.
                          6m
          10. The cyclic coordinate for the problem is  and the conjugate momentum
              p  is conserved ( p   a ). The Routhian is:
                                          1                        k
                 R  p    L  p    m r 2  r 2  2                    (i)
                                          2                       rn
                          R
                 p        0  p   constant  a(say) ;                       (ii)
                          
                          L                   a
                 p          mr 2                                          (iii)
                           
                                            mr 2
                                      a2           1 2    k
                 R ( r , r, a )                   mr                           (iv)
                                     2mr 2         2      rn
                 d  R  R                a2      nk
                           0  mr               0                       (v)
                 dt  r  r               mr 3   r n 1
                           a2              nk
                 mr                                                           (vi)
                          mr 3            r n 1
62