Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

8.1: Introduction

The three major formulations of classical mechanics are

  1. Newtonian mechanics which is the most intuitive vector formulation used in classical mechanics.

  2. Lagrangian mechanics is a powerful algebraic formulation of classical mechanics derived using either d’Alembert’s Principle, or Hamilton’s Principle. The latter states ”A dynamical system follows a path that minimizes the time integral of the difference between the kinetic and potential energies”.

  3. Hamiltonian mechanics has a beautiful superstructure that, like Lagrangian mechanics, is built upon variational calculus, Hamilton’s principle, and Lagrangian mechanics.

Hamiltonian mechanics is introduced at this juncture since it is closely interwoven with Lagrange mechanics. Hamiltonian mechanics plays a fundamental role in modern physics, but the discussion of the important role it plays in modern physics will be deferred until chapters 15 and 18 where applications to modern physics are addressed.

The following important concepts were introduced in chapter 7:

The generalized momentum was defined to be given by

piL(q,q˙,t)q˙ip_{i}\equiv \frac{\partial L(\mathbf{q,\dot{q},}t\mathbf{)}}{\partial \dot{q} _{i}}

Note that, as discussed in chapter 7.2, if the potential is velocity dependent, such as the Lorentz force, then the generalized momentum includes terms in addition to the usual mechanical momentum.

Jacobi’s generalized energy function h(q,q˙,t)h(\mathbf{q,\dot{q}},t) was introduced where

h(q,q˙,t)=in(q˙iLq˙i)L(q,q˙,t)(8.2)h(\mathbf{q,\dot{q}},t)=\sum_{i}^{n}\left( \dot{q}_{i}\frac{\partial L}{ \partial \dot{q}_{i}}\right) -L(\mathbf{q,\dot{q}},t) \tag{8.2}

The Hamiltonian function was defined to be given by expressing the generalized energy function, Equation 8.2, in terms of the generalized momentum. That is, the Hamiltonian H(q,p,t)H(\mathbf{q,p},t) is expressed as

H(q,p,t)=inpiq˙iL(q,q˙,t)(8.3)H\left( \mathbf{q},\mathbf{p},t\right) =\sum_{i}^{n}p_{i}\dot{q}_{i}-L( \mathbf{q},\mathbf{\dot{q}},t) \tag{8.3}

The symbols q\mathbf{q}, p\mathbf{p}, designate vectors of nn generalized coordinates, q(q1,q2,..qn),\mathbf{q}\equiv (q_{1},q_{2},..q_{n}), p(p1,p2,..pn)\mathbf{p}\equiv (p_{1},p_{2},..p_{n}). Equation 8.3 can be written compactly in a symmetric form using the scalar product pq˙=ipiq˙i\mathbf{p\cdot \dot{q}=} \sum_{i}p_{i}\dot{q}_{i}.

H(q,p,t)+L(q,q˙,t)=pq˙H\left( \mathbf{q},\mathbf{p},t\right) +L(\mathbf{q},\mathbf{\dot{q}},t)= \mathbf{p\cdot \dot{q}}

A crucial feature of Hamiltonian mechanics is that the Hamiltonian is expressed as H(q,p,t),H\left( \mathbf{q},\mathbf{p},t\right) , that is,it is a function of the nngeneralized coordinates and their conjugate momenta, which are taken to be independent, plus the independent variable, time. This contrasts with the Lagrangian L(q,q˙,t)L(\mathbf{q},\mathbf{ \dot{q}},t) which is a function of the nn generalized coordinates qjq_{j}, and the corresponding velocities q˙j\dot{q}_{j}, that is the time derivatives of the coordinates qiq_{i}, plus the independent variable, time.

8.2: Legendre Transformation between Lagrangian and Hamiltonian mechanics

Hamiltonian mechanics can be derived directly from Lagrange mechanics by considering the Legendre transformation between the conjugate variables (q,q˙,t)\left( \mathbf{q},\mathbf{ \dot{q}},t\right) and (q,p,t)\left( \mathbf{q},\mathbf{p},t\right). Such a derivation is of considerable importance in that it shows that Hamiltonian mechanics is based on the same variational principles as those used to derive Lagrangian mechanics; that is d’Alembert’s Principle and Hamilton’s Principle. The general problem of converting Lagrange’s equations into the Hamiltonian form hinges on the inversion of Equation (8.1.1)(8.1.1) that defines the generalized momentum p.\mathbf{ p.} This inversion is simplified by the fact that (8.1.1)(8.1.1) is the first partial derivative of the Lagrangian scalar function L(q,q˙,t)L(\mathbf{q, \dot{q},t}).

As described in appendix 19.6.4, consider transformations between two functions F(u,w)F(\mathbf{u,w}) and G(v,w),G(\mathbf{v,w),} where u\mathbf{u} and v\mathbf{v} are the active variables related by the functional form

v=uF(u,w)(8.5)\mathbf{v=\nabla }_{\mathbf{u}}F(\mathbf{u,w}) \tag{8.5}

and where w\mathbf{w} designates passive variables. The function uF(u,w)\mathbf{ \nabla }_{\mathbf{u}}F(\mathbf{u,w}) is the first-order derivative, (gradient) of F(u,w)F(\mathbf{u,w}) with respect to the components of the vector u\mathbf{u}. The Legendre transform states that the inverse formula can always be written as a first-order derivative

u=vG(v,w)(8.6)\mathbf{u=\nabla }_{\mathbf{v}}G(\mathbf{v,w})\tag{8.6}

The function G(v,w)G(\mathbf{v,w}) is related to F(u,w)F(\mathbf{u,w}) by the symmetric relation

G(v,w)+F(u,w)=uv(8.7)G(\mathbf{v,w)+}F\mathbf{(\mathbf{u,w})=u\cdot v}\tag{8.7}

where the scalar product uv=i=1Nuivi\mathbf{u\cdot v}=\sum_{i=1}^{N}u_{i}v_{i}.

Furthermore the first-order derivatives with respect to all the passive variables wiw_{i} are related by

wF(u,w)=wG(v,w)(8.8)\mathbf{\nabla }_{\mathbf{w}}F(\mathbf{u,w)=-\nabla }_{\mathbf{w}}G(\mathbf{ v,w)}\tag{8.8}

The relationship between the functions F(u,w)F(\mathbf{u,w}) and G(v,w)G(\mathbf{v,w}) is symmetrical and each is said to be the Legendre transform of the other.

The general Legendre transform can be used to relate the Lagrangian and Hamiltonian by identifying the active variables v\mathbf{v}****with p,\mathbf{p,} and u\mathbf{u} with q˙,\mathbf{\dot{q},} the passive variable w\mathbf{w} with q,t\mathbf{q,}t, and the corresponding functions F(u,w)=L(q,q˙,t)F(\mathbf{ u,w)=}L(\mathbf{q,\dot{q},}t) and G(v,w)=H(q,p,t)G(\mathbf{v,w)=}H(\mathbf{q,p,}t ). Thus the generalized momentum (8.1.1)(8.1.1) corresponds to

p=q˙L(q,q˙,t)(8.9)\mathbf{p=\nabla }_{\mathbf{\dot{q}}}L(\mathbf{q,\dot{q},}t)\tag{8.9}

where (q,t)(\mathbf{q,}t) are the passive variables. Then the Legendre transform states that the transformed variable q˙\mathbf{\dot{q}} is given by the relation

q˙=pH(q,p,t)(8.10)\mathbf{\dot{q}=\nabla }_{\mathbf{p}}H(\mathbf{q,p,}t)\tag{8.10}

Since the functions L(q,q˙,t)L(\mathbf{q,\dot{q},}t) and H(q,p,t)H(\mathbf{q,p,}t ) are the Legendre transforms of each other, they satisfy the relation

H(q,p,t)+L(q,q˙,t)=pq˙(8.11)H\left( \mathbf{q},\mathbf{p},t\right) \mathbf{+}L(\mathbf{q},\mathbf{\dot{q} },t)=\mathbf{p\cdot \dot{q}}\tag{8.11}

The function H(q,p,t)H\left( \mathbf{q},\mathbf{p},t\right), which is the Legendre transform of the Lagrangian L(q,q˙,t),L(\mathbf{q},\mathbf{\dot{q}},t), is called the Hamiltonian function and Equation 8.11 is identical to our original definition of the Hamiltonian given by equation (8.1.3)(8.1.3). The variables q\mathbf{q} and tt are passive variables thus Equation 8.8 gives that

qL(q˙,q,t)=qH(p,q,t)(8.12)\mathbf{\nabla }_{\mathbf{q}}L(\mathbf{\dot{q},q,}t\mathbf{)=-\nabla }_{ \mathbf{q}}H(\mathbf{p,q},t)\tag{8.12}

Written in component form Equation 8.12 gives the partial derivative relations $$

L(q˙,q,t)qi=H(p,q,t)qiL(q˙,q,t)t=H(p,q,t)t\begin{align} \tag{8.13} \frac{\partial L(\mathbf{\dot{q},q,}t)}{\partial q_{i}} &=&-\frac{ \partial H(\mathbf{p,q},t)}{\partial q_{i}} \\ \frac{\partial L(\mathbf{\dot{q},q,}t)}{\partial t} &=&-\frac{ \partial H(\mathbf{p,q},t)}{\partial t}\tag{8.14}\end{align}

$$

Note that equations 8.13 and 8.14 are strictly a result of the Legendre transformation. To complete the transformation from Lagrangian to Hamiltonian mechanics it is necessary to invoke the calculus of variations via the Lagrange-Euler equations. The symmetry of the Legendre transform is illustrated by Equation 8.11.

Equation 7.6.16 gives that the scalar product pq˙=2T2.\mathbf{p\cdot \dot{q}=} 2T_{2}. For scleronomic systems, with velocity independent potentials U,U, the standard Lagrangian L=TU\,L=T-U and H=2TT+U=T+UH=2T-T+U=T+U. Thus, for this simple case, Equation 8.11 reduces to an identity H+L=2TH+L=2T.

8.3: Hamilton’s Equations of Motion

The explicit form of the Legendre transform (8.2.6)(8.2.6) gives that the time derivative of the generalized coordinate qjq_{j} is

q˙j=H(q,p,t)pj(8.15)\dot{q}_{j}\mathbf{=}\frac{\partial H(\mathbf{q,p,}t)}{\partial p_{j}}\tag{8.15}

The Euler-Lagrange equation (6.6.1)(6.6.1) is

ddtLq˙jLqj=k=1mλkgkqj+QjEXC(8.16)\frac{d}{dt}\frac{\partial L}{\partial \dot{q}_{j}}-\frac{\partial L}{ \partial q_{j}}=\sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}+Q_{j}^{EXC}\tag{8.16}

This gives the corresponding Hamilton equation for the time derivative of pip_{i} to be

ddtLq˙j=p˙j=Lqj+k=1mλkgkqj+QjEXC(8.17)\frac{d}{dt}\frac{\partial L}{\partial \dot{q}_{j}}=\dot{p}_{j}=\frac{ \partial L}{\partial q_{j}}+\sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{ \partial q_{j}}+Q_{j}^{EXC}\tag{8.17}

Substitute equation (8.2.9)(8.2.9) into Equation 8.17 leads to the second Hamilton equation of motion

p˙j=H(q,p,t)qj+k=1mλkgkqj+QjEXC(8.18)\dot{p}_{j}=-\frac{\partial H(\mathbf{q,p,}t)}{\partial q_{j}} +\sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}+Q_{j}^{EXC}\tag{8.18}

One can explore further the implications of Hamiltonian mechanics by taking the time differential of (8.1.3)(8.1.3) giving.

dH(q,p,t)dt=j(q˙jdpjdt+pjdq˙jdtLqjdqjdtLq˙jdq˙jdt)Lt(8.19)\frac{dH(\mathbf{q,p,}t)}{dt}=\sum_{j}\left( \dot{q}_{j}\frac{dp_{j} }{dt}+p_{j}\frac{d\dot{q}_{j}}{dt}-\frac{\partial L}{\partial q_{j}}\frac{ dq_{j}}{dt}-\frac{\partial L}{\partial \dot{q}_{j}}\frac{d\dot{q}_{j}}{dt} \right) -\frac{\partial L}{\partial t}\tag{8.19}

Inserting the conjugate momenta piLq˙ip_{i}\equiv \frac{\partial L}{\partial \dot{ q}_{i}} and Equation 8.17 into Equation 8.19 results in

dH(q,p,t)dt=j(q˙jp˙j+pjdq˙jdt[p˙jk=1mλkgkqjQjEXC]q˙jpjdq˙jdt)Lt(8.20)\frac{dH(\mathbf{q,p,}t)}{dt}=\sum_{j}\left( \dot{q}_{j}\dot{p} _{j}+p_{j}\frac{d\dot{q}_{j}}{dt}-\left[ \dot{p}_{j}-\sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}-Q_{j}^{EXC}\right] \dot{q} _{j}-p_{j}\frac{d\dot{q}_{j}}{dt}\right) -\frac{\partial L}{\partial t}\tag{8.20}

The second and fourth terms cancel as well as the q˙jp˙j\dot{q}_{j}\dot{p}_{j} terms, leaving

dH(q,p,t)dt=j([k=1mλkgkqj+QjEXC]q˙j)Lt(8.21)\frac{dH(\mathbf{q,p,}t)}{dt}=\sum_{j}\left( \left[ \sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}+Q_{j}^{EXC} \right] \dot{q}_{j}\right) -\frac{\partial L}{\partial t}\tag{8.21}

This is the generalized energy theorem given by equation (7.8.1)(7.8.1).

The total differential of the Hamiltonian also can be written as

dH(q,p,t)dt=j(Hpjp˙j+Hqjq˙j)+Ht(8.22)\frac{dH(\mathbf{q,p,}t)}{dt}=\sum_{j}\left( \frac{\partial H}{ \partial p_{j}}\dot{p}_{j}+\frac{\partial H}{\partial q_{j}}\dot{q} _{j}\right) +\frac{\partial H}{\partial t}\tag{8.22}

Use equations 8.15 and 8.18 to substitute for Hpj\frac{\partial H}{ \partial p_{j}} and Hqj\frac{\partial H}{\partial q_{j}} in Equation 8.22 gives

dH(q,p,t)dt=j([k=1mλkgkqj+QjEXC]q˙j)+H(q,p,t)t(8.23)\frac{dH(\mathbf{q,p,}t)}{dt}=\sum_{j}\left( \left[ \sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}+Q_{j}^{EXC} \right] \dot{q}_{j}\right) +\frac{\partial H(\mathbf{q,p,}t)}{ \partial t}\tag{8.23}

Note that Equation 8.23 must equal the generalized energy theorem, i.e. Equation 8.21. Therefore,

Ht=Lt(8.24)\frac{\partial H}{\partial t}=-\frac{\partial L}{\partial t}\tag{8.24}

In summary, Hamilton’s equations of motion are given by

q˙j=H(q,p,t)pjp˙j=H(q,p,t)qj+[k=1mλkgkqj+QjEXC]dH(q,p,t)dt=j([k=1mλkgkqj+QjEXC]q˙j)L(q,q˙,t)t\begin{align} \dot{q}_{j} &= \frac{\partial H(\mathbf{q,p,}t)}{\partial p_{j}} \tag{8.25} \\[4pt] \dot{p}_{j} &=-\frac{\partial H(\mathbf{q,p,}t)}{\partial q_{j}}+ \left[ \sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}} +Q_{j}^{EXC}\right] \tag{8.26}\\[4pt] \frac{dH(\mathbf{q,p,}t)}{dt} &= \sum_{j}\left( \left[ \sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}+Q_{j}^{EXC} \right] \dot{q}_{j}\right) -\frac{\partial L(\mathbf{q,\dot{q},}t)}{ \partial t}\tag{8.27}\end{align}

The symmetry of Hamilton’s equations of motion is illustrated when the Lagrange multiplier and generalized forces are zero. Then

q˙j=H(q,p,t)pjp˙j=H(p,q,t)qjdH(p,q,t)dt=H(p,q,t)t=L(q˙,q,t)t(8.30)\begin{align} \dot{q}_{j} &= \frac{\partial H(\mathbf{q,p,}t)}{\partial p_{j}} \tag{8.28} \\[4pt] \dot{p}_{j} &= -\frac{\partial H(\mathbf{p,q},t)}{\partial q_{j}} \tag{8.29}\\[4pt] \frac{dH(\mathbf{p,q},t)}{dt} &= \frac{\partial H(\mathbf{p,q},t )}{\partial t}=-\frac{\partial L(\mathbf{\dot{q},q,}t)}{ \partial t}\end{align}\tag{8.30}

This simplified form illustrates the symmetry of Hamilton’s equations of motion. Many books present the Hamiltonian only for this special simplified case where it is holonomic, conservative, and generalized coordinates are used.

Canonical Equations of Motion

Hamilton’s equations of motion, summarized in equations 8.25-8.27 use either a minimal set of generalized coordinates, or the Lagrange multiplier terms, to account for holonomic constraints, or generalized forces QjEXCQ_{j}^{EXC} to account for non-holonomic or other forces. Hamilton’s equations of motion usually are called the canonical equations of motion. Note that the term “canonical” has nothing to do with religion or canon law; the reason for this name has bewildered many generations of students of classical mechanics. The term was introduced by Jacobi in 1837 to designate a simple and fundamental set of conjugate variables and equations. Note the symmetry of Hamilton’s two canonical equations, plus the fact that the canonical variables pk,qkp_{k},q_{k} are treated as independent canonical variables. The Lagrange mechanics coordinates (q,q˙,t)(\mathbf{q, \dot{q},}t) are replaced by the Hamiltonian mechanics coordinates (q,p,t),(\mathbf{ q,p,}t), where the conjugate momenta p\mathbf{p}are taken to be independent of the coordinate q\mathbf{q}.

Lagrange was the first to derive the canonical equations but he did not recognize them as a basic set of equations of motion. Hamilton derived the canonical equations of motion from his fundamental variational principle, chapter 9.2, and made them the basis for a far-reaching theory of dynamics. Hamilton’s equations give 2s2s first-order differential equations for pk,qkp_{k},q_{k} for each of the s=nms=n-m degrees of freedom. Lagrange’s equations give ss second-order differential equations for the ss independent generalized coordinates qk,q˙k.q_{k},\dot{q}_{k}.

It has been shown that H(p,q,t)H(\mathbf{p,q},t) and L(q˙,q,t)L(\mathbf{\dot{q},q, }t) are the Legendre transforms of each other. Although the Lagrangian formulation is ideal for solving numerical problems in classical mechanics, the Hamiltonian formulation provides a better framework for conceptual extensions to other fields of physics since it is written in terms of the fundamental conjugate coordinates, q,p\mathbf{q,p}. The Hamiltonian is used extensively in modern physics, including quantum physics, as discussed in chapters 15 and 18. For example, in quantum mechanics there is a straightforward relation between the classical and quantal representations of momenta; this does not exist for the velocities.

The concept of state space, introduced in chapter 3.3.2, applies naturally to Lagrangian mechanics since (q˙,q)(\dot{q},q) are the generalized coordinates used in Lagrangian mechanics. The concept of Phase Space, introduced in chapter 3.3.3, naturally applies to Hamiltonian phase space since (p,q)(p,q) are the generalized coordinates used in Hamiltonian mechanics.

8.4: Hamiltonian in Different Coordinate Systems

Prior to solving problems using Hamiltonian mechanics, it is useful to express the Hamiltonian in cylindrical and spherical coordinates for the special case of conservative forces since these are encountered frequently in physics.

Cylindrical Coordinates ρ,z,ϕ\rho ,z, \phi

Consider cylindrical coordinates ρ,z,ϕ\rho ,z,\phi. Expressed in Cartesian coordinate

x=ρcosϕy=ρsinϕz=z\begin{align*} x &= \rho \cos \phi \\ y &= \rho \sin \phi \notag \\ z &= z \end{align*}

Using appendix table 19.3.3,19.3.3, the Lagrangian can be written in cylindrical coordinates as

L=TU=m2(ρ˙2+ρ2ϕ˙2+z˙2)U(ρ,z,ϕ)\begin{align} L &=T-U \\[4pt] &= \frac{m}{2}\left( \dot{\rho}^{2}+\rho ^{2}\dot{\phi}^{2}+\dot{z}^{2}\right) -U(\rho ,z,\phi ) \tag{8.32} \end{align}

The conjugate momenta are

pρ=Lρ˙=mρ˙pϕ=Lϕ˙=mρ2ϕ˙pz=Lz˙=mz˙\begin{align} p_{\rho } &= \frac{\partial L}{\partial \dot{\rho}}=m\dot{\rho} \\ p_{\phi } &= \frac{\partial L}{\partial \dot{\phi}}=m\rho ^{2}\dot{\phi} \\ p_{z} &= \frac{\partial L}{\partial \dot{z}}=m\dot{z} \tag{8.35} \end{align}

Assume a conservative force, then HH is conserved. Since the transformation from Cartesian to non-rotating generalized cylindrical coordinates is time independent, then H=E.H=E. Then using Equations 8.32-8.35 gives the Hamiltonian in cylindrical coordinates to be

H(q,p,t)=ipiq˙iL(q,q˙,t)=(pρρ˙+pϕϕ˙+pzz˙)m2(ρ.2+ρ2ϕ.2+z.2)+U(ρ,z,ϕ)=12m(pρ2+pϕ2ρ2+pz2)+U(ρ,z,ϕ)\begin{align} H\left( \mathbf{q},\mathbf{p},t\right) &= \sum_{i}p_{i}\dot{q}_{i}-L(\mathbf{ q},\mathbf{\dot{q}},t) \\ &= \left( p_{\rho }\dot{\rho}+p_{\phi }\dot{\phi}+p_{z}\dot{z}\right) -\frac{ m}{2}\left( \overset{.}{\rho }^{2}+\rho ^{2}\overset{.}{\phi }^{2}+\overset{. }{z}^{2}\right) +U(\rho ,z,\phi ) \notag \\ &= \frac{1}{2m}\left( p_{\rho }^{2}+\frac{p_{\phi }^{2}}{\rho ^{2}} +p_{z}^{2}\right) +U(\rho ,z,\phi )\end{align}

The canonical equations of motion in cylindrical coordinates can be written as $$

p˙ρ=Hρ=pϕ2mρ3Uρp˙ϕ=Hϕ=Uϕp˙z=Hz=Uzρ˙=Hpρ=pρmϕ˙=Hpϕ=pϕmρ2z˙=Hpz=pzm\begin{align} \dot{p}_{\rho } &= -\frac{\partial H}{\partial \rho }=\frac{p_{\phi }^{2}}{ m\rho ^{3}}-\frac{\partial U}{\partial \rho } \\ \dot{p}_{\phi } &= -\frac{\partial H}{\partial \phi }=-\frac{\partial U}{ \partial \phi } \\ \dot{p}_{z} &= -\frac{\partial H}{\partial z}=-\frac{\partial U}{\partial z} \\ \dot{\rho} &= \frac{\partial H}{\partial p_{\rho }}=\frac{p_{\rho }}{m} \\ \dot{\phi} &= \frac{\partial H}{\partial p_{\phi }}=\frac{p_{\phi }}{m\rho ^{2}} \\ \dot{z} &= \frac{\partial H}{\partial p_{z}}=\frac{p_{z}}{m}\end{align}

$$

Note that if ϕ\phi is cyclic, that is Uϕ=0,\frac{\partial U}{\partial \phi } =0, then the angular momentum about the zz axis, pϕp_{\phi }, is a constant of motion. Similarly, if zz is cyclic, then pzp_{z} is a constant of motion.

Spherical coordinates, r,θ,ϕr, \theta , \phi

Appendix table 19.3.4 shows that the spherical coordinates are related to the cartesian coordinates by

x=rsinθcosϕy=rsinθsinϕz=rcosθ\begin{align} x &= r\sin \theta \cos \phi \\ y &= r\sin \theta \sin \phi \notag \\ z &= r\cos \theta \notag\end{align}

The Lagrangian is

L=TiU=m2(r˙2+r2θ˙2+r2sin2θϕ˙2)U(rθϕ)L=T_{i}-U= \frac{m}{2}\left( \dot{r}^{2}+r^{2}\dot{\theta}^{2}+r^{2}\sin ^{2}\theta \dot{\phi}^{2}\right) -U(r\theta \phi )

The conjugate momenta are $$

pr=Lr.=mr˙pθ=Lθ.=mr2θ˙pϕ=Lϕ.=mr2sin2θϕ˙\begin{align} \tag{8.46} p_{r} &= \frac{\partial L}{\partial \overset{.}{r}}=m\dot{r} \\ p_{\theta } &= \frac{\partial L}{\partial \overset{.}{\theta }}=mr^{2}\dot{ \theta} \\ p_{\phi } &= \frac{\partial L}{\partial \overset{.}{\phi }}=mr^{2}\sin ^{2}\theta \dot{\phi} \tag{8.48} \end{align}

$$

Assuming a conservative force then HH is conserved. Since the transformation from cartesian to generalized spherical coordinates is time independent, then H=E.H=E. Thus using 8.46-8.48 the Hamiltonian is given in spherical coordinates by $$

H(q,p,t)=ipiq˙iL(q,q˙,t)=(prr˙+pθθ˙+pϕϕ˙)m2(r˙2+r2θ˙2+r2sin2θϕ˙2)+U(r,θ,ϕ)=12m(pr2+pθ2r2+pϕ2r2sin2θ)+U(r,θ,ϕ)\begin{align} H\left( \mathbf{q},\mathbf{p},t\right) &= \sum_{i}p_{i}\dot{q}_{i}-L(\mathbf{ q},\mathbf{\dot{q}},t) \\ &= \left( p_{r}\dot{r}+p_{\theta }\dot{\theta}+p_{\phi }\dot{\phi}\right) - \frac{m}{2}\left( \dot{r}^{2}+r^{2}\dot{\theta}^{2}+r^{2}\sin ^{2}\theta \dot{\phi}^{2}\right) +U(r,\theta ,\phi ) \\ &= \frac{1}{2m}\left( p_{r}^{2}+\frac{p_{\theta }^{2}}{r^{2}}+\frac{p_{\phi }^{2}}{r^{2}\sin ^{2}\theta }\right) +U(r,\theta ,\phi )\end{align}

$$

Then the canonical equations of motion in spherical coordinates are $$

p˙r=Hr=1mr3(pθ2+pϕ2sin2θ)Urp˙θ=Hθ=1mr2(pϕ2cosθsin3θ)Uθp˙ϕ=Hϕ=Uϕr˙=Hpr=prmθ˙=Hpθ=pθmr2ϕ˙=Hpϕ=pϕmr2sin2θ\begin{align} \dot{p}_{r} &= -\frac{\partial H}{\partial r}=\frac{1}{mr^{3}}\left( p_{\theta }^{2}+\frac{p_{\phi }^{2}}{\sin ^{2}\theta }\right) -\frac{ \partial U}{\partial r} \\ \dot{p}_{\theta } &= -\frac{\partial H}{\partial \theta }=\frac{1}{mr^{2}} \left( \frac{p_{\phi }^{2}\cos \theta }{\sin ^{3}\theta }\right) -\frac{ \partial U}{\partial \theta } \\ \dot{p}_{\phi } &= -\frac{\partial H}{\partial \phi }=-\frac{\partial U}{ \partial \phi } \\ \dot{r} &= \frac{\partial H}{\partial p_{r}}=\frac{p_{r}}{m} \\ \dot{\theta} &= \frac{\partial H}{\partial p_{\theta }}=\frac{p_{\theta }}{ mr^{2}} \\ \dot{\phi} &= \frac{\partial H}{\partial p_{\phi }}=\frac{p_{\phi }}{ mr^{2}\sin ^{2}\theta }\end{align}

$$

Note that if the coordinate ϕ\phi is cyclic, that is Uϕ=0\frac{\partial U}{ \partial \phi }=0 then the angular momentum pϕp_{\phi } is conserved. Also if the θ\theta coordinate is cyclic, and pϕ=0,p_{\phi }=0, that is, there is no change in the angular momentum perpendicular to the zz axis, then pθp_{\theta } is conserved.

An especially important spherically-symmetric Hamiltonian is that for a central field. Central fields, such as the gravitational or Coulomb fields of a uniform spherical mass, or charge, distributions, are spherically symmetric and then both θ\theta and ϕ\phi are cyclic. Thus the projection of the angular momentum pϕp_{\phi } about the zz axis is conserved for these spherically symmetric potentials. In addition, since both pθp_{\theta } and pϕ,p_{\phi }, are conserved, then the total angular momentum also must be conserved as is predicted by Noether’s theorem.

8.5: Applications of Hamiltonian Dynamics

The equations of motion of a system can be derived using the Hamiltonian coupled with Hamilton’s equations of motion, that is, equations (8.3.118.3.13)(8.3.11-8.3.13).

Formally the Hamiltonian is constructed from the Lagrangian. That is

  1. Select a set of independent generalized coordinates qiq_{i}

  2. Partition the active forces.

  3. Construct the Lagrangian L(qi,q˙i,t)L(q_{i}, \dot{q}_{i},t)

  4. Derive the conjugate generalized momenta via pi=Lq˙ip_{i}=\frac{\partial L}{ \partial \dot{q}_{i}}

  5. Knowing L,q˙i,piL,\dot{q}_{i},p_{i} derive H=ipiq˙iLH=\sum_{i}p_{i}\dot{q}_{i}-L

  6. Derive q˙k=Hpk\dot{q}_{k}=\frac{\partial H}{\partial p_{k}} and p˙j=H(q,p,t)qj+k=1mλkgkqj+QjEXC.\dot{p}_{j}=- \frac{\partial H(\mathbf{q,p,}t\mathbf{)}}{\partial q_{j}} +\sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}} +Q_{j}^{EXC}.

This procedure appears to be unnecessarily complicated compared to just using the Lagrangian plus Lagrangian mechanics to derive the equations of motion. Fortunately the above lengthy procedure often can be bypassed for conservative systems. That is, if the following conditions are satisfied;

  1. L=T(q.)U(q)L=T(\overset{.}{q})-U(q), that is, U(q)U\left( q\right) is independent of the velocity q˙\dot{q}.

  2. the generalized coordinates are time independent.

then it is possible to use the fact that

H=T+U=E.H=T+U=E.\nonumber

The following five examples illustrate the use of Hamiltonian mechanics to derive the equations of motion.

8.6: Routhian Reduction

Noether’s theorem states that if the coordinate qjq_{j} is cyclic, and if the Lagrange multiplier plus generalized force contributions for the jthj^{th} coordinates are zero, then the canonical momentum of the cyclic variable, pj,p_{j}, is a constant of motion as is discussed in chapter 7.3. Therefore, both (qj,pj)(q_{j}, p_{j}) are constants of motion for cyclic variables, and these constant (qj,pj)(q_{j}, p_{j}) coordinates can be factored out of the Hamiltonian H(p,q,t)H(\mathbf{p, q}, t\mathbf{)}. This reduces the number of degrees of freedom included in the Hamiltonian. For this reason, cyclic variables are called ignorable variables in Hamiltonian mechanics. This advantage does not apply to the (qj,q˙j)(q_{j}, \dot{q}_{j}) variables used in Lagrangian mechanics since q˙\dot{q} is not a constant of motion for a cyclic coordinate. The ability to eliminate the cyclic variables as unknowns in the Hamiltonian is a valuable advantage of Hamiltonian mechanics that is exploited extensively for solving problems, as is described in chapter 15.

It is advantageous to have the ability to exploit both the Lagrangian and Hamiltonian formulations simultaneously when handling systems that involve a mixture of cyclic and non-cyclic coordinates. The equations of motion for each independent generalized coordinate can be derived independently of the remaining generalized coordinates. Thus it is possible to select either the Hamiltonian or the Lagrangian formulations for each generalized coordinate, independent of what is used for the other generalized coordinates. Routh devised an elegant, and useful, hybrid technique that separates the cyclic and non-cyclic generalized coordinates in order to simultaneously exploit the differing advantages of both the Hamiltonian and Lagrangian formulations of classical mechanics. The Routhian reduction approach partitions the i=1npiq˙i\sum_{i=1}^{n}p_{i} \dot{q}_{i} kinetic energy term in the Hamiltonian into a cyclic group, plus a non-cyclic group, i.e.

H(q1,...,qn;p1,....,pn;t)=i=1npiq˙iL=cyclicspiq˙i+noncyclicnspiq˙iLH(q_{1}, ..., q_{n};p_{1}, ...., p_{n};t)=\sum_{i=1}^{n}p_{i}\dot{q} _{i}-L=\sum_{cyclic}^{s}p_{i}\dot{q}_{i}+\sum_{noncyclic}^{n-s}p_{i}\dot{q} _{i}-L

Routh’s clever idea was to define a new function, called the Routhian , that include only one of the two partitions of the kinetic energy terms. This makes the Routhian a Hamiltonian for the coordinates for which the kinetic energy terms are included, while the Routhian acts like a negative Lagrangian for the coordinates where the kinetic energy term is omitted. This book defines two Routhians.

Rcyclic(q1,...,qn;q˙1,...,q˙s;ps+1,....,pn;t)cyclicmpiq˙iLRnoncyclic(q1,...,qn;p1,...,ps;q˙s+1,....,q˙n;t)noncyclicspiq˙iL\begin{align} R_{cyclic}(q_{1}, ..., q_{n};\dot{q}_{1}, ..., \dot{q}_{s};p_{s+1}, ...., p_{n};t) &\equiv &\sum_{cyclic}^{m}p_{i}\dot{q}_{i}-L \\ R_{noncyclic}(q_{1}, ..., q_{n};p_{1}, ..., p_{s};\dot{q}_{s+1}, ...., \dot{q} _{n};t) &\equiv &\sum_{noncyclic}^{s}p_{i}\dot{q}_{i}-L\end{align}

The first, Routhian, called Rcyclic,R_{cyclic}, includes the kinetic energy terms only for the cyclic variables, and behaves like a Hamiltonian for the cyclic variables, and behaves like a Lagrangian for the non-cyclic variables. The second Routhian, called Rnoncyclic,R_{non-cyclic}, includes the kinetic energy terms for only the non-cyclic variables, and behaves like a Hamiltonian for the non-cyclic variables, and behaves like a negative Lagrangian for the cyclic variables. These two Routhians complement each other in that they make the Routhian either a Hamiltonian for the cyclic variables, or the converse where the Routhian is a Hamiltonian for the non-cyclic variables. The Routhians use (qi,q˙i)(q_{i}, \dot{q}_{i}) to denote those coordinates for which the Routhian behaves like a Lagrangian, and (qi,pi)(q_{i}, p_{i}) for those coordinates where the Routhian behaves like a Hamiltonian. For uniformity, it is assumed that the degrees of freedom between 1is1\leq i\leq s are non-cyclic, while those between s+1ins+1\leq i\leq n are ignorable cyclic coordinates.

The Routhian is a hybrid of Lagrangian and Hamiltonian mechanics. Some textbooks minimize discussion of the Routhian on the grounds that this hybrid approach is not fundamental. However, the Routhian is used extensively in engineering in order to derive the equations of motion for rotating systems. In addition it is used when dealing with rotating nuclei in nuclear physics, rotating molecules in molecular physics, and rotating galaxies in astrophysics. The Routhian reduction technique provides a powerful way to calculate the intrinsic properties for a rotating system in the rotating frame of reference. The Routhian approach is included in this textbook because it plays an important role in practical applications of rotating systems, plus it nicely illustrates the relative advantages of the Lagrangian and Hamiltonian formulations in mechanics.

Rcyclic_{cyclic} - Routhian is a Hamiltonian for the cyclic variables

The cyclic Routhian RcyclicR_{cyclic} is defined assuming that the variables between 1is1\leq i\leq s are non-cyclic, where s=nms=n-m, while the mm variables between s+1ins+1\leq i\leq n are ignorable cyclic coordinates. The cyclic Routhian RcyclicR_{cyclic} expresses the cyclic coordinates in terms of (q,p)(q, p) which are required for use by Hamilton’s equations, while the non-cyclic variables are expressed in terms of (q,q˙)(q, \dot{q}) for use by the Lagrange equations. That is, the cyclic Routhian RcyclicR_{cyclic} is defined to be

Rcyclic(q1,...,qn;q˙1,...,q˙s;ps+1,....,pn;t)cyclicmpiq˙iLR_{cyclic}(q_{1}, ..., q_{n};\dot{q}_{1}, ..., \dot{q}_{s};p_{s+1}, ...., p_{n};t) \equiv \sum_{cyclic}^{m}p_{i}\dot{q}_{i}-L

where the summation cyclicpiq˙i\sum_{cyclic}p_{i}\dot{q}_{i} is over only the mm cyclic variables s+1ins+1\leq i\leq n. Note that the Lagrangian can be split into the cyclic and the non-cyclic parts

Rcyclic(q1,...,qn;q˙1,...,q˙s;ps+1,....,pn;t)=cyclicmpiq˙iLcyclicLnoncyclicR_{cyclic}(q_{1}, ..., q_{n};\dot{q}_{1}, ..., \dot{q} _{s};p_{s+1}, ...., p_{n};t)=\sum_{cyclic}^{m}p_{i}\dot{q} _{i}-L_{cyclic}-L_{noncyclic}

The first two terms on the right can be combined to give the Hamiltonian HcyclicH_{cyclic} for only the mm cyclic variables, i=s+1,s+2,..,ni=s+1, s+2, .., n, that is

Rcyclic(q1,...,qn;q˙1,...,q˙s;ps+1,....,pn;t)=HcyclicLnoncyclicR_{cyclic}(q_{1}, ..., q_{n};\dot{q}_{1}, ..., \dot{q} _{s};p_{s+1}, ...., p_{n};t)=H_{cyclic}-L_{noncyclic}

The Routhian Rcyclic(q1,...,qn;q˙1,...,q˙s;ps+1,....,pn;t)R_{cyclic}(q_{1}, ..., q_{n};\dot{q}_{1}, ..., \dot{q} _{s};p_{s+1}, ...., p_{n};t) also can be written in an alternate form

Rcyclic(q1,...,qn;q˙1,...,q˙s;ps+1,....,pn;t)cyclicmpiq˙iL=i=1npiq˙iLnoncyclicspiq˙=Hnoncyclicspiq˙i\begin{align} R_{cyclic}(q_{1}, ..., q_{n};\dot{q}_{1}, ..., \dot{q}_{s};p_{s+1}, ...., p_{n};t) &\equiv &\sum_{cyclic}^{m}p_{i}\dot{q}_{i}-L=\sum_{i=1}^{n}p_{i}\dot{q} _{i}-L-\sum_{noncyclic}^{s}p_{i}\dot{q} \\ &=&H-\sum_{noncyclic}^{s}p_{i}\dot{q}_{i}\end{align}

which is expressed as the complete Hamiltonian minus the kinetic energy term for the noncyclic coordinates. The Routhian RcyclicR_{cyclic} behaves like a Hamiltonian for the mm cyclic coordinates and behaves like a negative Lagrangian Lnoncyclic L_{noncyclic\text{ }}for all the s=nms=n-m noncyclic coordinates i=1,2,...,s.\ i=1, 2, ..., s. Thus the equations of motion for the ss non-cyclic variables are given using Lagrange’s equations of motion, while the Routhian behaves like a Hamiltonian HcyclicH_{cyclic} for the mm ignorable cyclic variables i=s+1,...,n.i=s+1, ..., n.

Ignoring both the Lagrange multiplier and generalized forces, then the partitioned equations of motion for the non-cyclic and cyclic generalized coordinates are given in Table 8.6.1.

Lagrange equationsHamilton equations
CoordinatesNoncyclic:  1is\ 1\leq i\leq sCyclic:  (s+1)in\ \left( s+1\right) \leq i\leq n
Rcyclicqi=Lnoncyclicqi\frac{\partial R_{cyclic}}{\partial q_{i}}{\large =-}\frac{\partial L_{noncyclic}}{\partial q_{i}}Rcyclicqi=p˙i\frac{\partial R_{cyclic}}{\partial q_{i}} =-\dot{p}_{i}
Equations of motion
Rcyclicq˙i=Lnoncyclicq˙i\frac{\partial R_{cyclic}}{\partial \dot{q}_{i}}=-\frac{\partial L_{noncyclic}}{\partial \dot{q}_{i}}Rcyclicpi=q˙i\frac{\partial R_{cyclic}}{\partial p_{i}}=\dot{q}_{i}

Thus there are mm cyclic (ignorable) coordinates (q,p)s+1,....,(q,p)n(q, p)_{s+1}, ...., \left( q, p\right) _{n} which obey Hamilton’s equations of motion, while the first s=nms=n-m non-cyclic (non-ignorable) coordinates (q,q˙)1,....,(q,q˙)s\left( q, \dot{q} \right) _{1}, ...., \left( q, \dot{q}\right) _{s} for  i=1,2,...,s\ i=1, 2, ..., s obey Lagrange equations. The solution for the cyclic variables is trivial since they are constants of motion and thus the Routhian RcyclicR_{cyclic} has reduced the number of equations of motion that must be solved from nn to the s=nms=n-m non-cyclic variables. This Routhian provides an especially useful way to reduce the number of equations of motion for rotating systems.

Note that there are several definitions used to define the Routhian, for example some books define this Routhian as being the negative of the definition used here so that it corresponds to a positive Lagrangian. However, this sign usually cancels when deriving the equations of motion, thus the sign convention is unimportant if a consistent sign convention is used.

Rnoncyclic_{noncyclic} - Routhian is a Hamiltonian for the non-cyclic variables

The non-cyclic Routhian RnoncyclicR_{noncyclic} complements RcyclicR_{cyclic}. Again the generalized coordinates between 1is1\leq i\leq s are assumed to be non-cyclic, while those between s+1ins+1\leq i\leq n are ignorable cyclic coordinates. However, the expression in terms of (q,p)(q, p) and (q,q˙)(q, \dot{q}) are interchanged, that is, the cyclic variables are expressed in terms of (q,q˙)(q, \dot{q}) and the non-cyclic variables are expressed in terms of (q,p)(q, p) which is opposite of what was used for RcyclicR_{cyclic}.

Rnoncyclic(q1,...,qn;p1,...,ps;q˙s+1,....,q˙n;t)=noncyclicspiq˙iLnoncyclicLcyclic=HnoncyclicLcyclic\begin{align} R_{noncyclic}(q_{1}, ..., q_{n};p_{1}, ..., p_{s};\dot{q}_{s+1}, ...., \dot{q} _{n};t) &=&\sum_{noncyclic}^{s}p_{i}\dot{q}_{i}-L_{noncyclic}-L_{cyclic} \\ &=&H_{noncyclic}-L_{cyclic}\end{align}

It can be written in a frequently used form

Rnoncyclic(q1,...,qn;p1,...,ps;q˙s+1,....,q˙n;t)noncyclicspiq˙iL=i=1npiq˙iLcyclicmpiq˙i=Hcyclicmpiq˙i\begin{align} R_{noncyclic}(q_{1}, ..., q_{n};p_{1}, ..., p_{s};\dot{q}_{s+1}, ...., \dot{q} _{n};t) &\equiv &\sum_{noncyclic}^{s}p_{i}\dot{q}_{i}-L=\sum_{i=1}^{n}p_{i} \dot{q}_{i}-L-\sum_{cyclic}^{m}p_{i}\dot{q}_{i} \notag \\ &=&H-\sum_{cyclic}^{m}p_{i}\dot{q}_{i} \tag{8.68} \end{align}

This Routhian behaves like a Hamiltonian for the ss non-cyclic variables which are expressed in terms of qq and pp appropriate for a Hamiltonian. This Routhian writes the mm cyclic coordinates in terms of qq, and q˙,\dot{q} , appropriate for a Lagrangian, which are treated assuming the Routhian RcyclicR_{cyclic} is a negative Lagrangian for these cyclic variables as summarized in table 8.6.2.

Hamilton equationsLagrange equations
CoordinatesNoncyclic:  1is\ 1\leq i\leq sCyclic:  (s+1)in\ \left( s+1\right) \leq i\leq n
Rnoncyclicqi=p˙i\frac{\partial R_{noncyclic}}{\partial q_{i}}=-\dot{p}_{i}Rnoncyclicqi=Lcyclicqi\frac{ \partial R_{noncyclic}}{\partial q_{i}}{\large =-}\frac{\partial L_{cyclic}}{ \partial q_{i}}
Equations of motion
Rnoncyclicpi=q˙i\frac{\partial R_{noncyclic}}{\partial p_{i}}=\dot{q}_{i}Rnoncyclicq˙i=Lcyclicq˙i\frac{ \partial R_{noncyclic}}{\partial \dot{q}_{i}}=-\frac{\partial L_{cyclic}}{ \partial \dot{q}_{i}}

This non-cyclic Routhian RnoncyclicR_{noncyclic} is especially useful since it equals the Hamiltonian for the non-cyclic variables, that is, the kinetic energy for motion of the cyclic variables has been removed. Note that since the cyclic variables are constants of motion, then RnoncyclicR_{noncyclic} is a constant of motion if HH is a constant of motion. However, RnoncyclicR_{noncyclic} does not equal the total energy since the coordinate transformation is time dependent, that is, RnoncyclicR_{noncyclic} corresponds to the energy of the non-cyclic parts of the motion. For example, when used to describe rotational motion, RnoncyclicR_{noncyclic} corresponds to the energy in the non-inertial rotating body-fixed frame of reference. This is especially useful in treating rotating systems such as rotating galaxies, rotating machinery, molecules, or rotating strongly-deformed nuclei as discussed in chapter 12.9.

The Lagrangian and Hamiltonian are the fundamental algebraic approaches to classical mechanics. The Routhian reduction method is a valuable hybrid technique that exploits a trick to reduce the number of variables that have to be solved for complicated problems encountered in science and engineering. The Routhian RnoncyclicR_{noncyclic} provides the most useful approach for solving the equations of motion for rotating molecules, deformed nuclei, or astrophysical objects in that it gives the Hamiltonian in the non-inertial body-fixed rotating frame of reference ignoring the rotational energy of the frame. By contrast, the cyclic Routhian RcyclicR_{cyclic} is especially useful to exploit Lagrangian mechanics for solving problems in rigid-body rotation such as the Tippe Top described in example 14.23.2.

Note that the Lagrangian, Hamiltonian, plus both the RnoncyclicR_{noncyclic} and RnoncyclicR_{noncyclic} Routhian’s, all are scalars under rotation, that is, they are rotationally invariant. However, they may be expressed in terms of the coordinates in either the stationary or a rotating frame. The major difference is that the Routhian includes only subsets of the kinetic energy term jpjq˙j\sum_{j}p_{j}\dot{q}_{j}. The relative merits of using Lagrangian, Hamiltonian, and both the RnoncyclicR_{noncyclic} and RnoncyclicR_{noncyclic} Routhian reduction methods, are illustrated by the following examples.

8.7: Variable-mass systems

Lagrangian and Hamiltonian mechanics assume that the total mass and energy of the system are conserved. Variable-mass systems involve transferring mass and energy between donor and receptor bodies. However, such systems still can be conservative if the Lagrangian or Hamiltonian include all the active degrees of freedom for the combined donor-receptor system. The following examples of variable mass systems illustrate subtle complications that occur handling such problems using algebraic mechanics.

Rocket propulsion:

Newtonian mechanics was used to solve the rocket problem in chapter 2.12. The equation of motion (2.12.23) relating the rocket thrust FexF_{ex} to the rate of change of the momentum separated into two terms,

Fex=p˙y=my¨+m˙y˙F_{ex}=\dot{p}_{y}=m\ddot{y}+\dot{m}\dot{y}

The first term is the usual mass times acceleration, while the second term arises from the rate of change of mass times the velocity. The equation of motion for rocket motion is easily derived using either Lagrangian or Hamiltonian mechanics by relating the rocket thrust to the generalized force QjEXC.Q_{j}^{EXC}.

Moving chains:

The motion of a flexible, frictionless, heavy chain that is falling in a gravitational field, often can be split into two coupled variable-mass partitions that have different chain-link velocities. These partitions are coupled at the moving intersection between the chain partitions. That is, these partitions share time-dependent fractions of the total chain mass. Moving chains were discussed first by Caley in 1857 and since then the moving chain problem has had a controversial history due to the frequent erroneous assumption that, in the gravitational field, the chain partitions fall with acceleration gg rather than applying the correct energy conservation assumption for this conservative system. The following two examples of conservative falling-chain systems illustrate solutions obtained using variational principles applied to a single chain that is partitioned into two variable length sections.[1]

Consider the following two possible scenarios for motion of a flexible, heavy, frictionless, chain located in a uniform gravitational field gg. The first scenario is the “folded chain” system which assumes that one end of the chain is held fixed, while the adjacent free end is released at the same altitude as the top of the fixed arm, and this free end is allowed to fall in the constant gravitational field gg. The second “falling chain”, scenario assumes that one end of the chain is hanging down through a hole in a frictionless, smooth, rigid, horizontal table, with the stationary partition of the chain sitting on the table surrounding the hole. The falling section of this chain is being pulled out of the stationary pile by the hanging partition. Both of these systems are conservative since it is assumed that the total mass of the chain is fixed, and no dissipative forces are acting. The chains are assumed to be inextensible, flexible, and frictionless, and subject to a uniform gravitational field gg in the vertical yy direction. In both examples, the chain, with mass MM and length L,L, is partitioned into a stationary segment, plus a moving segment, where the mass per unit length of the chain is μ=ML\mu =\frac{M}{L}. These partitions are strongly coupled at their intersection which propagates downward with time for the “folded chain” and propagates upward, relative to the lower end of the falling chain, for the “falling chain”. For the “folded chain”, the chain links are transferred from the moving segment to the stationary segment as the moving section falls. By contrast, for the “falling system”, the chain links are transferred from the stationary upper section to the moving lower segment of the chain.

8.E: Hamiltonian Mechanics (Exercises)

  1. A block of mass mm rests on an inclined plane making an angle θ\theta with the horizontal. The inclined plane (a triangular block of mass MM) is free to slide horizontally without friction. The block of mass mm is also free to slide on the larger block of mass MM without friction.

(a) Construct the Lagrangian function.

(b) Derive the equations of motion for this system.

(c) Calculate the canonical momenta.

(d) Construct the Hamiltonian function.

(e) Find which of the two momenta found in part (c) is a constant of motion and discuss why it is so. If the two blocks start from rest, what is the value of this constant of motion?

  1. Discuss among yourselves the following four conditions that can exist for the Hamiltonian and give several examples of systems exhibiting each of the four conditions.

(a) The Hamiltonian is conserved and equals the total mechanical energy

(b) The Hamiltonian is conserved but does not equal the total mechanical energy

(c) The Hamiltonian is not conserved but does equal the total mechanical energy

(d) The Hamiltonian is not conserved and does not equal the mechanical total energy.

  1. A block of mass mm rests on an inclined plane making an angle θ\theta with the horizontal. The inclined plane (a triangular block of mass MM) is free to slide horizontally without friction. The block of mass mm is also free to slide on the larger block of mass MM without friction.

(a) Construct the Lagrangian function.

(b) Derive the equations of motion for this system.

(c) Calculate the canonical momenta.

(d) Construct the Hamiltonian function.

(e) Find which of the two momenta found in part (c) is a constant of motion and discuss why it is so. If the two blocks start from rest, what is the value of this constant of motion?

  1. Discuss among yourselves the following four conditions that can exist for the Hamiltonian and give several examples of systems exhibiting each of the four conditions.

a) The Hamiltonian is conserved and equals the total mechanical energy

b) The Hamiltonian is conserved but does not equal the total mechanical energy

c) The Hamiltonian is not conserved but does equal the total mechanical energy

d) The Hamiltonian is not conserved and does not equal the mechanical total energy

  1. Compare the Lagrangian formalism and the Hamiltonian formalism by creating a two-column chart. Label one side “ Lagrangian” and the other side “ Hamiltonian” and discuss the similarities and differences. Here are some ideas to get you started:

  1. It can be shown that if L(q,q˙,t)L(q,\dot{q},t) is the Lagrangian of a particle moving in one dimension, then L=LL=L^{\prime } where L(q,q˙,t)=L(q,q˙,t)+dfdtL^{\prime }(q,\dot{q},t)=L(q,\dot{q},t)+\frac{df}{dt} and f(q,t)f(q,t) is an arbitrary function. This problem explores the consequences of this on the Hamiltonian formalism.

(a) Relate the new canonical momentum pp^{\prime }, for LL^{\prime }, to the old canonical momentum pp, for LL .

(b) Express the new Hamiltonian H(q,p,t)H^{\prime }(q^{\prime },p^{\prime },t) for LL^{\prime } in terms of the old Hamiltonian H(q,p,t)H(q,p,t) and ff.

(c) Explicitly show that the new Hamilton’s equations for HH^{\prime } are equivalent to the old Hamilton’s equations for HH .

  1. A massless hoop of radius RR is rotating about an axis perpendicular to its central axis at constant angular velocity ω\omega. A mass mm can freely slide around the hoop.

(a) Determine the Lagrangian of the system.

(b) Determine the Hamiltonian of the system. Does it equal the total mechanical energy?

(c) Determine the Lagrangian of the system with respect to a coordinate frame in which H=T+VeffH=T+V_{\text{eff}}. What is V effV_{\text{ eff}}? What force generates the additional term in VeffV_{\text{eff}} ?

  1. Consider a pendulum of length LL attached to the end of rod of length RR. The rod is rotating at constant angular velocity ω\omega in the plane. Assume the pendulum is always taut.

(a) Determine equations of motion.

(b) For what value of ω2R\omega ^{2}R is this system the same as a plane pendulum in a constant gravitational field?

(c) Show HEH \neq E. What is the reason?

  1. A particle of mass mm in a gravitational field slides on the inside of a smooth parabola of revolution whose axis is vertical. Using the distance from the axis r,r, and the azimuthal angle φ\varphi as generalized coordinates, find the following.

(a) The Lagrangian of the system.

(b) The generalized momenta and the corresponding Hamiltonian

(c) The equation of motion for the coordinate rr as a function of time.

(d) If dφdt=0,\frac{d\varphi }{dt}=0, show that the particle can execute small oscillations about the lowest point of the paraboloid and find the frequency of these oscillations.

  1. Consider a particle of mass mm which is constrained to move on the surface of a sphere of radius RR. There are no external forces of any kind acting on the particle.

(a) What is the number of generalized coordinates necessary to describe the problem?

(b) Choose a set of generalized coordinates and write the Lagrangian of the system.

(c) What is the Hamiltonian of the system? Is it conserved?

(d) Prove that the motion of the particle is along a great circle of the sphere.

  1. A block of mass mm is attached to a wedge of mass MM by a spring with spring constant kk. The inclined frictionless surface of the wedge makes an angle α\alpha to the horizontal. The wedge is free to slide on a horizontal frictionless surface as shown in the figure.

(a) Given that the relaxed length of the spring is dd, find the values s0s_{0} when both book and wedge are stationary.

(b) Find the Lagrangian for the system as a function of the xx coordinate of the wedge and the length of spring ss. Write down the equations of motion.

(c) What is the natural frequency of vibration?

Figure
  1. . A fly-ball governor comprises two masses mm connected by 4 hinged arms of length ll to a vertical shaft and to a mass MM which can slide up or down the shaft without friction in a uniform vertical gravitational field as shown in the figure The assembly is constrained to rotate around the axis of the vertical shaft with same angular velocity as that of the vertical shaft. Neglect the mass of the arms, air friction, and assume that the mass MM has a negligible moment of inertia. Assume that the whole system is constrained to rotate with a constant angular velocity ω0\omega _{0}.

(a) Choose suitable coordinates and use the Lagrangian to derive equations of motion of the system around the equilibrium position.

(b) Determine the height zz of the mass MM above its lowest position as a function of ω0\omega _{0}.

(c) Find the frequency of small oscillations about this steady motion.

(d) Derive a Routhian that provides the Hamiltonian in the rotating system.

(e) Is the total energy of the fly-ball governor in the rotating frame of reference constant in time?

(f) Suppose that the shaft and assembly are not constrained to rotate at a constant angular velocity ω0\omega _{0}, that is, it is allowed to rotate freely at angular velocity φ˙\dot{\varphi}. What is the difference in the overall motion?

Figure
  1. A rigid straight, frictionless, massless, rod rotates about the zz axis at an angular velocity θ˙\dot{\theta}. A mass mm slides along the frictionless rod and is attached to the rod by a massless spring of spring constant κ\kappa.

(a) Derive the Lagrangian and the Hamiltonian

(b) Derive the equations of motion in the stationary frame using Hamiltonian mechanics.

(c) What are the constants of motion?

(d) If the rotation is constrained to have a constant angular velocity θ˙=ω\dot{\theta}=\omega then is the non-cyclic Routhian Rnoncyclic=Hpθθ˙R_{noncyclic}=H-p_{\theta }\dot{\theta} a constant of motion, and does it equal the total energy?

(e) Use the non-cyclic Routhian RnoncyclicR_{noncyclic} to derive the radial equation of motion in the rotating frame of reference for the cranked system with θ˙=ω\dot{\theta}=\omega.

Figure
  1. A thin uniform rod of length 2L2L and mass MM is suspended from a massless string of length ll tied to a nail. Initially the rod hangs vertically. A weak horizontal force FF is applied to the rod’s free end.

(a) Write the Lagrangian for this system.

(b) For very short times such that all angles are small, determine the angles that string and the rod make with the vertical. Start from rest at t=0.t=0.

(c) Draw a diagram to illustrate the initial motion of the rod.

Figure
  1. A uniform ladder of mass MM and length 2L2L is leaning against a frictionless vertical wall with its feet on a frictionless horizontal floor. Initially the stationary ladder is released at an angle θ0=60\theta _{0}=60^{\circ } to the floor. Assume that gravitation field g=9.81m/s2g=9.81m/s^{2} acts vertically downward and that the moment of inertia of the ladder about its midpoint is I=13ML2I=\frac{1}{3}ML^{2}.

(a) Derive the Lagrangian

(b) Derive the Hamiltonian

(c) Explain if the Hamiltonian is conserved and/or if it equals the total energy

(d) Use the Lagrangian to derive the equations of motion

(e) Derive the angle θ\theta at which the ladder loses contact with the vertical wall?

Figure
  1. The classical mechanics exam induces Jacob to try his hand at bungee jumping. Assume Jacob’s mass mm is suspended in a gravitational field by the bungee of unstretched length bb and spring constant kk. Besides the longitudinal oscillations due to the bungee jump, Jacob also swings with plane pendulum motion in a vertical plane. Use polar coordinates r,ϕr,\phi, neglect air drag, and assume that the bungee always is under tension.

(a) Derive the Lagrangian

(b) Determine Lagrange’s equation of motion for angular motion and identify by name the forces contributing to the angular motion.

(c) Determine Lagrange’s equation of motion for radial oscillation and identify by name the forces contributing to the tension in the spring.

(d) Derive the generalized momenta

(e) Determine the Hamiltonian and give all of Hamilton’s equations of motion.


2Recommended****reading: “Classical Mechanics” H. Goldstein, Addison-Wesley, Reading (1950). The present chapter closely follows the notation used by Goldstein to facilitate cross-referencing and reading the many other textbooks that have adopted this notation.

8.S: Hamiltonian Mechanics (Summary)

Hamilton’s equations of motion

Inserting the generalized momentum into Jacobi’s generalized energy relation was used to define the Hamiltonian function to be

H(q,p,t)=pq˙L(q,q˙,t)(8.3)H\left( \mathbf{q},\mathbf{p},t\right) =\mathbf{p\cdot \dot{q}-}L(\mathbf{q}, \mathbf{\dot{q}},t) \tag{8.3}

The Legendre transform of the Lagrange-Euler equations, led to Hamilton’s equations of motion.

q˙j=Hpj(8.25)\dot{q}_{j} = \frac{\partial H}{\partial p_{j}} \tag{8.25}
p˙j=Hqj+[k=1mλkgkqj+QjEXC](8.26)\dot{p}_{j} = -\frac{\partial H}{\partial q_{j}}+\left[ \sum_{k=1}^{m} \lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}+Q_{j}^{EXC}\right] \tag{8.26}

The generalized energy equation (8.8.1)(8.8.1) gives the time dependence

dH(q,p,t)dt=j([k=1mλkgkqj+QjEXC]q˙j)L(q,q˙,t)t(8.27)\frac{dH(\mathbf{q,p,}t\mathbf{)}}{dt}=\sum_{j}\left( \left[ \sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}+Q_{j}^{EXC} \right] \dot{q}_{j}\right) -\frac{\partial L(\mathbf{q,\dot{q},}t\mathbf{)}}{ \partial t} \tag{8.27}

where

Ht=Lt(8.24)\frac{\partial H}{\partial t}=-\frac{\partial L}{\partial t} \tag{8.24}

The pk,qkp_{k},q_{k} are treated as independent canonical variables. Lagrange was the first to derive the canonical equations but he did not recognize them as a basic set of equations of motion. Hamilton derived the canonical equations of motion from his fundamental variational principle and made them the basis for a far-reaching theory of dynamics. Hamilton’s equations give 2s2s first-order differential equations for pk,qkp_{k},q_{k} for each of the ss degrees of freedom. Lagrange’s equations give ss second-order differential equations for the variables qk,q˙k.q_{k},\dot{q}_{k}.

Routhian reduction technique

The Routhian reduction technique is a hybrid of Lagrangian and Hamiltonian mechanics that exploits the advantages of both approaches for solving problems involving cyclic variables. It is especially useful for solving motion in rotating systems in science and engineering. Two Routhians are used frequently for solving the equations of motion of rotating systems. Assuming that the variables between 1is1\leq i\leq s are non-cyclic, while the mm variables between s+1ins+1\leq i\leq n are ignorable cyclic coordinates, then the two Routhians are:

Rcyclic(q1,,qn;q˙1,,q˙s;ps+1,.,pn;t)=cyclicmpiq˙iL=Hnoncyclicspiq˙i(8.65)R_{cyclic}(q_{1},\dots ,q_{n};\dot{q}_{1},\dots ,\dot{q}_{s};p_{s+1},\dots .,p_{n};t) = \sum_{cyclic}^{m}p_{i}\dot{q}_{i}-L=H-\sum_{noncyclic}^{s}p_{i}\dot{q}_{i} \tag{8.65}
Rnoncyclic(q1,,qn;p1,,ps;q˙s+1,.,q˙n;t)=noncyclicspiq˙iL=Hcyclicmpiq˙i(8.68)R_{noncyclic}(q_{1},\dots ,q_{n};p_{1},\dots ,p_{s};\dot{q}_{s+1},\dots .,\dot{q} _{n};t) = \sum_{noncyclic}^{s}p_{i}\dot{q}_{i}-L=H-\sum_{cyclic}^{m}p_{i} \dot{q}_{i} \tag{8.68}

The Routhian RcyclicR_{cyclic} is a negative Lagrangian for the non-cyclic variables between 1is1\leq i\leq s, where s=nm,s=n-m, and is a Hamiltonian for the mm cyclic variables between s+1ins+1\leq i\leq n. Since the cyclic variables are constants of the Hamiltonian, their solution is trivial, and the number of variables included in the Lagrangian is reduced from nn to s=nms=n-m. The Routhian RcyclicR_{cyclic} is useful for solving some problems in classical mechanics. The Routhian RnoncyclicR_{noncyclic} is a Hamiltonian for the non-cyclic variables between 1is1\leq i\leq s, and is a negative Lagrangian for the mm cyclic variables between s+1ins+1\leq i\leq n. Since the cyclic variables are constants of motion, the Routhian RnoncyclicR_{noncyclic} also is a constant of motion but it does not equal the total energy since the coordinate transformation is time dependent. The Routhian RnoncyclicR_{noncyclic} is especially valuable for solving rotating many-body systems such as galaxies, molecules, or nuclei, since the Routhian RnoncyclicR_{noncyclic} is the Hamiltonian in the rotating body-fixed coordinate frame.

Variable mass systems:

Two examples of heavy flexible chains falling in a uniform gravitational field were used to illustrate how variable mass systems can be handled using Lagrangian and Hamiltonian mechanics. The falling-mass system is conservative assuming that both the donor plus the receptor body systems are included.

Comparison of Lagrangian and Hamiltonian mechanics

Lagrangian and the Hamiltonian dynamics are two powerful and related variational algebraic formulations of mechanics that are based on Hamilton’s action principle. They can be applied to any conservative degrees of freedom as discussed in chapters 7, 9, and 16. Lagrangian and Hamiltonian mechanics both concentrate solely on active forces and can ignore internal forces. They can handle many-body systems and allow convenient generalized coordinates of choice. This ability is impractical or impossible using Newtonian mechanics. Thus it is natural to compare the relative advantages of these two algebraic formalisms in order to decide which should be used for a specific problem.

For a system with nn generalized coordinates, plus mm constraint forces that are not required to be known, then the Lagrangian approach, using a minimal set of generalized coordinates, reduces to only s=nms=n-m second-order differential equations and unknowns compared to the Newtonian approach where there are n+mn+m unknowns. Alternatively, use of Lagrange multipliers allows determination of the constraint forces resulting in n+mn+m second order equations and unknowns. The Lagrangian potential function is limited to conservative forces, Lagrange multipliers can be used to handle holonomic forces of constraint, while generalized forces can be used to handle non-conservative and non-holonomic forces. The advantage of the Lagrange equations of motion is that they can deal with any type of force, conservative or non-conservative, and they directly determine qq, q˙\dot{q} rather than q,pq,p which then requires relating pp to q˙\dot{q}.

For a system with nn generalized coordinates, the Hamiltonian approach determines 2n2n first-order differential equations which are easier to solve than second-order equations. However, the 2n2n solutions must be combined to determine the equations of motion. The Hamiltonian approach is superior to the Lagrange approach in its ability to obtain an analytical solution of the integrals of the motion. Hamiltonian dynamics also has a means of determining the unknown variables for which the solution assumes a soluble form. Important applications of Hamiltonian mechanics are to quantum mechanics and statistical mechanics, where quantum analogs of qiq_{i} and pi,p_{i}, can be used to relate to the fundamental variables of Hamiltonian mechanics. This does not apply for the variables qiq_{i} and q˙i\dot{q}_{i} of Lagrangian mechanics. The Hamiltonian approach is especially powerful when the system has mm cyclic variables, then the mm conjugate momenta pip_{i} are constants. Thus the mm conjugate variables (qi,pi)\left( q_{i},p_{i}\right) can be factored out of the Hamiltonian, which reduces the number of conjugate variables required to nmn-m. This is not possible using the Lagrangian approach since, even though the mm coordinates qiq_{i} can be factored out, the velocities q˙i\dot{q}_{i} still must be included, thus the nn conjugate variables must be included. The Lagrange approach is advantageous for obtaining a numerical solution of systems in classical mechanics. However, Hamiltonian mechanics expresses the variables in terms of the fundamental canonical variables (q,p)(\mathbf{q,p}) which provides a more fundamental insight into the underlying physics.2

Footnotes
  1. Discussions with Professor Frank Wolfs stimulated inclusion of these two examples of moving chains.