Hamilton's Equations of Motion & Least Action
Rigorous transition from configuration space to 2n-dimensional phase space, Legendre transformation from Lagrangian to Hamiltonian, derivation of Hamilton's 2n first-order canonical equations, physical meaning of H as total energy, modified Hamilton's principle, Maupertuis' principle of least action, and Hamiltonian dynamics of electromagnetic charged particles.
§5.1 Transition from Configuration Space to Phase Space
1. Limitations of the Lagrangian Framework
In the Lagrangian formulation, a dynamical system of $n$ degrees of freedom is described in an $n$-dimensional configuration space spanned by generalized coordinates $(q_1, \dots, q_n)$. The equations of motion:2. The 2n-Dimensional Phase Space
In 1835, Sir William Rowan Hamilton developed a symmetric reformulation by replacing the $n$ generalized velocities $\dot{q}_j$ with $n$ canonical conjugate momenta $p_j$:§5.2 The Legendre Transformation & Derivation of Hamilton's Equations
1. The Mathematical Legendre Transformation
Consider the total differential of the Lagrangian $L(q, \dot{q}, t)$:2. Definition of the Hamiltonian Function $H$
We define the Hamiltonian function $H(q, p, t)$ by the Legendre transform:3. Hamilton's Canonical Equations of Motion
Equating coefficients of the independent differentials $dq_j, dp_j, dt$:These $2n$ coupled equations are known as Hamilton's Canonical Equations of Motion.
§5.3 Physical Meaning of the Hamiltonian & Energy Conservation
1. Total Time Derivative of the Hamiltonian
Differentiating $H(q(t), p(t), t)$ along a physical dynamical trajectory:Conservation Theorem: If the Hamiltonian does not depend explicitly on time ($\frac{\partial H}{\partial t} = 0$), then the Hamiltonian is a strict constant of motion: $H(q, p) = E = \text{constant}$.
2. Condition Under Which $H$ Equals Total Mechanical Energy ($H = T + V$)
Recall Euler's theorem for homogeneous functions. The kinetic energy $T$ is generally expressed as:- The transformation equations $\vec{r}_i = \vec{r}_i(q)$ are scleronomic (no explicit time dependence $\frac{\partial \vec{r}_i}{\partial t} = 0$), which makes $T_1 = 0$ and $T_0 = 0$.
- The potential energy $V = V(q)$ is independent of velocities $\dot{q}$.
§5.4 Variational Principles: Modified Hamilton's Principle & Least Action
1. Modified Hamilton's Principle in Phase Space
In configuration space, Hamilton's principle varies coordinates $q_j(t)$ with $\delta q_j(t_1) = \delta q_j(t_2) = 0$. In phase space, both $q_j(t)$ and $p_j(t)$ are treated as $2n$ independent path variables. Substituting $L = \sum p_j \dot{q}_j - H(q, p, t)$:2. Maupertuis' Principle of Least Action
For conservative systems ($H = E = \text{const}$), Pierre Louis Maupertuis (1744) formulated an abbreviated variational principle where time is not held fixed at endpoints ($\Delta t \neq 0$). The abbreviated action $S_0$ is defined as:Maupertuis' Principle: For physical paths with constant total energy $E$, the varied path renders the abbreviated action stationary:
§5.5 Hamiltonian of a Charged Particle in an Electromagnetic Field
1. Construction of the Electromagnetic Hamiltonian
Recall the velocity-dependent Lagrangian of a particle with charge $q$ and mass $m$ in potentials $(\Phi, \vec{A})$:2. Hamilton's Equations for the Charged Particle
Standard University Exam Solved Problems
A particle of rest mass $m$ and potential energy $V(x) = \frac{1}{2}k x^2$ moves relativistically in one dimension where relativistic Hamiltonian is $H(x, p) = \sqrt{p^2 c^2 + m^2 c^4} - m c^2 + \frac{1}{2}k x^2$. Derive Hamilton's canonical equations and find the shape of the phase space orbit for total energy $E$.
Differentiating $H$ with respect to $p$ gives the relativistic velocity $v = \frac{p c^2}{E_{\text{kin}} + mc^2} = \frac{p}{\gamma m}$. The rate of change of momentum is the linear restoring force $-kx$.
Since $\frac{\partial H}{\partial t} = 0$, $H(x, p) = E = \text{constant}$. Rearranging isolates the momentum $p(x)$.
In the non-relativistic limit ($E \ll mc^2$), this reduces to the familiar ellipse $p^2/(2m) + kx^2/2 = E$. In the ultra-relativistic limit ($p c \gg mc^2$), the phase portrait deforms from an ellipse into diamond-like rounded contours.
Equations of motion: ẋ = p c² / √(p² c² + m² c⁴), ṗ = -k x. Phase orbit: p(x) = ± (1/c) √[(E + mc² - kx²/2)² - m²c⁴].
A spherical pendulum consists of a mass $m$ suspended by a rigid rod of length $l$ free to swing in any direction under gravity. Formulate the Hamiltonian $H(\theta, \phi, p_\theta, p_\phi)$ and determine the constants of motion.
Here $\theta$ is the polar angle from the downward vertical and $\phi$ is the azimuthal angle. Potential energy is $V = -mgl\cos\theta$.
Notice that $\phi$ does not appear in $L$; hence $p_\phi$ is a strict constant of motion (conserved vertical angular momentum $L_z$).
Since the coordinates are scleronomic, $H = T + V = E = \text{constant}$. The effective potential for $\theta$-motion is $V_{\text{eff}}(\theta) = \frac{p_\phi^2}{2 m l^2 \sin^2 \theta} - m g l \cos \theta$.
Hamiltonian: H = p_θ²/(2ml²) + p_φ²/(2ml² sin²θ) - mgl cos θ. Conserved quantities: H = E (total energy) and p_φ = L_z (azimuthal momentum).
For a 1D simple harmonic oscillator with mass $m$, spring constant $k = m\omega^2$, and energy $E$, calculate the enclosed phase space area $J = \oint p dq$ and show that it equals $2\pi E / \omega$.
The trajectory in $(q, p)$ phase space is an ellipse with semi-axes $q_0 = \sqrt{\frac{2E}{m\omega^2}}$ and $p_0 = \sqrt{2m E}$.
Evaluating the line integral $\oint p dq$ around the closed periodic orbit yields the action variable $J = 2\pi E / \omega$.
The derivative of energy with respect to the action variable gives the orbital oscillation frequency $\nu$, laying the foundation for action-angle variables and Bohr-Sommerfeld quantization $J = n h$.
Phase space area: J = ∮ p dq = 2π E / ω. The quantity J is an adiabatic invariant under slow parameter variations.