Classical MechanicsBSc · Notes

1. The same system in three formulations

Hamilton's equations are most informative when the connection to the physical system remains visible. Start with the same coordinate choice and energies used in the Lagrangian calculation, then replace the velocities by conjugate momenta. This makes agreement between the formulations a check on the calculation.

Feature Newtonian Lagrangian Hamiltonian
Basic variables Positions and velocities, or positions and momenta Independent qi,q˙iq_i,\dot q_i Independent qi,piq_i,p_i
Main input Applied and constraint forces L=T−VL=T-V, with remaining QiQ_i Legendre transform HH, with remaining QiQ_i
Evolution Second-order force equations nn second-order equations 2n2n first-order equations
Initial data Positions and velocities qi(0),q˙i(0)q_i(0),\dot q_i(0) qi(0),pi(0)q_i(0),p_i(0)
Ideal constraints Explicit forces or projection Incorporated through coordinates Incorporated in the underlying Lagrangian
Conservation Force, torque, and work balances Cyclic coordinates and energy function Cyclic coordinates and Hamiltonian evolution
Natural picture Trajectories in physical space Geometry of configurations Trajectories in phase space

The comparison assumes regular coordinates and the same physical force and constraint model. None of the formulations is universally shortest. Hamiltonian mechanics becomes particularly useful when conserved momenta can reduce the problem, as in central-force motion.

2. Applications

Example 1 · Hamilton equations for the pendulum

Take θ\theta from the downward vertical. With T=ma2θ˙2/2T=ma^2\dot\theta^2/2 and V=mga(1−cos⁡θ)V=mga(1-\cos\theta), the Lagrangian gives pθ=ma2θ˙p_\theta=ma^2\dot\theta. Its Hamiltonian is

H=pθ22ma2+mga(1−cos⁡θ).H=\frac{p_\theta^2}{2ma^2}+mga(1-\cos\theta).(15.1)

Hamilton's equations are θ˙=pθ/(ma2)\dot\theta=p_\theta/(ma^2) and p˙θ=−mgasin⁡θ\dot p_\theta=-mga\sin\theta. Differentiating the first gives θ¨=p˙θ/(ma2)=−(g/a)sin⁡θ\ddot\theta=\dot p_\theta/(ma^2)=-(g/a)\sin\theta, reproducing the Lagrange and tangent-projected Newton equations.

At the bottom with angular speed ω0\omega_0, energy is ma2ω02/2ma^2\omega_0^2/2. A rod pendulum can reach the top only if this is at least 2mga2mga, giving ω02≥4g/a\omega_0^2\geq4g/a. Equality describes limiting asymptotic approach rather than passage in finite time. For a string, remaining taut imposes an additional condition; the energy threshold alone is insufficient.

Example 2 · Atwood motion in phase space

With qq downward for mass m1m_1, let M=m1+m2M=m_1+m_2 and Δm=m1−m2\Delta m=m_1-m_2. Then T=Mq˙2/2T=M\dot q^2/2, V=−Δm gqV=-\Delta m\,gq, and L=Mq˙2/2+Δm gqL=M\dot q^2/2+\Delta m\,gq. The conjugate momentum is p=Mq˙p=M\dot q, giving

H=p22M−Δm gq.H=\frac{p^2}{2M}-\Delta m\,gq.(15.2)

Hence q˙=p/M\dot q=p/M and p˙=Δm g\dot p=\Delta m\,g. Integrating,

p=p0+Δm gt,q=q0+p0Mt+Δm2Mgt2.p=p_0+\Delta m\,gt,\qquad q=q_0+\frac{p_0}{M}t+\frac{\Delta m}{2M}gt^2.(15.3)

The phase curve at energy EE satisfies p2=2M(E+Δm gq)p^2=2M(E+\Delta m\,gq). The momentum pp belongs to the motion of both masses; it is not the momentum of either mass alone. The model applies while the string is taut and neither mass reaches a stop.

Example 3 · A particle in polar coordinates

For L=m(r˙2+r2θ˙2)/2−V(r)L=m(\dot r^2+r^2\dot\theta^2)/2-V(r), use pr=mr˙p_r=m\dot r and pθ=mr2θ˙p_\theta=mr^2\dot\theta. Then

H=pr22m+pθ22mr2+V(r).H=\frac{p_r^2}{2m}+\frac{p_\theta^2}{2mr^2}+V(r).(15.4)

Take derivatives at fixed canonical variables:

r˙=prm,θ˙=pθmr2,p˙r=pθ2mr3−V′(r),p˙θ=0.\dot r=\frac{p_r}{m},\quad \dot\theta=\frac{p_\theta}{mr^2},\quad \dot p_r=\frac{p_\theta^2}{mr^3}-V'(r),\quad \dot p_\theta=0.(15.5)

Setting the conserved pθ=ℓp_\theta=\ell reduces the radial motion to p˙r=ℓ2/(mr3)−V′(r)\dot p_r=\ell^2/(mr^3)-V'(r). Substituting ℓ=mr2θ˙\ell=mr^2\dot\theta gives mr¨−mrθ˙2=−V′(r)m\ddot r-mr\dot\theta^2=-V'(r), the radial Newton equation. The term with ℓ2\ell^2 will become the centrifugal contribution to an effective potential.

Example 4 · The spherical pendulum in canonical variables

For T=ma2(θ˙2+sin⁡2θϕ˙2)/2T=ma^2(\dot\theta^2+\sin^2\theta\dot\phi^2)/2 and V=mga(1−cos⁡θ)V=mga(1-\cos\theta),

pθ=ma2θ˙,pϕ=ma2sin⁡2θϕ˙.p_\theta=ma^2\dot\theta,\qquad p_\phi=ma^2\sin^2\theta\dot\phi.(15.6)

Away from the polar coordinate singularities,

H=pθ22ma2+pϕ22ma2sin⁡2θ+mga(1−cos⁡θ).H=\frac{p_\theta^2}{2ma^2}+\frac{p_\phi^2}{2ma^2\sin^2\theta}+mga(1-\cos\theta).(15.7)

The azimuth is cyclic: pϕ=Jp_\phi=J is constant. Since d(sin⁡−2θ)/dθ=−2cos⁡θ/sin⁡3θd(\sin^{-2}\theta)/d\theta=-2\cos\theta/\sin^3\theta,

θ˙=pθma2,p˙θ=J2cos⁡θma2sin⁡3θ−mgasin⁡θ.\dot\theta=\frac{p_\theta}{ma^2},\qquad \dot p_\theta=\frac{J^2\cos\theta}{ma^2\sin^3\theta}-mga\sin\theta.(15.8)

A nonzero JJ produces a barrier as sin⁡θ→0\sin\theta\to0, so the bob cannot reach the vertical axis at finite energy. For J=0J=0 the barrier vanishes, though the azimuth coordinate itself is still singular at the poles. The reduced energy describes an effective one-dimensional motion in θ\theta.

3. Eliminating a cyclic coordinate carefully

Once a cyclic momentum is found, it is safe to substitute its constant value into the Hamiltonian and use the remaining canonical equations, then reconstruct the eliminated coordinate from its velocity equation. This is what we did for the polar particle and spherical pendulum.

Directly substituting a conserved velocity relation into LL before varying can give the wrong sign. For the central potential, substituting θ˙=ℓ/(mr2)\dot\theta=\ell/(mr^2) into LL gives a term +ℓ2/(2mr2)+\ell^2/(2mr^2), whose naive variation does not reproduce the correct radial equation. The correct reduced Lagrangian is L−ℓθ˙L-\ell\dot\theta after eliminating θ˙\dot\theta:

Lred=12mr˙2−V(r)−ℓ22mr2.L_{\rm red}=\frac12m\dot r^2-V(r)-\frac{\ell^2}{2mr^2}.(15.9)

This subtraction is called Routh reduction; the name and general theory are optional. The practical lesson is to derive the equations first or reduce the Hamiltonian at fixed conserved momentum.

4. Transition to central forces

Central-force motion will make the advantages of all three viewpoints visible. Newtonian torque proves planarity; the cyclic angle expresses angular-momentum conservation; the Hamiltonian gives radial energy contours. The orbit equation then removes time from the description and asks for the geometric path itself.

Exercises

Hints and solutions are collected separately.

  1. 15.1 Why do Hamilton’s 2n2n equations not add degrees of freedom?

  2. 15.2 Construct the Hamiltonian of the Atwood machine and find its acceleration.

  3. 15.3 Find all four Hamilton equations for a polar particle in V(r)V(r).

  4. 15.4 For the spherical pendulum, identify the cyclic coordinate and its momentum.

  5. 15.5 Why does nonzero JJ prevent the spherical pendulum reaching the vertical axis at finite energy?

  6. 15.6 Find the minimum bottom speed needed for a rod pendulum to approach the top.

  7. 15.7 For a string pendulum to complete a vertical circle while taut, find the bottom-speed threshold.

  8. 15.8 Why can substituting θ˙=ℓ/(mr2)\dot\theta=\ell/(mr^2) directly into LL before variation give a wrong radial equation?

  9. 15.9 Which formulation would you use to recover an unknown string tension after solving motion?

  10. 15.10 For H=p2/(2M)−FqH=p^2/(2M)-Fq, solve with initial data q0,p0q_0,p_0.

  11. 15.11 Explain the difference between a central-force orbit in physical space and its radial phase curve.

  12. 15.12 For a fixed-length pendulum, verify that Hamilton’s equations reproduce the exact angular equation.

Reading progress is saved on this device.

Search the notes

Search all four units and the course references.