The Hamiltonian formulation replaces Newton's second-order equations with a symmetric pair of first-order equations in phase space — the natural language of statistical mechanics, quantum mechanics, and chaos theory.
Perform the Legendre transform from the Lagrangian to the Hamiltonian and write Hamilton's equations.
Describe the harmonic oscillator phase portrait as closed ellipses at constant energy.
State Liouville's theorem and explain its consequence for statistical mechanics ensembles.
Evaluate Poisson brackets to identify conserved quantities and derive equations of motion.
Construct action-angle variables for integrable systems and apply semiclassical quantization.
H.1 From Lagrangian to Hamiltonian
Given the Lagrangian L(q, q̇, t), the generalized momentum conjugate to qᵢ is defined as:
pi=∂q˙i∂L(H.1)
The Hamiltonian is obtained by a Legendre transform that eliminates q̇ in favor of p:
H(q,p,t)=i∑piq˙i−L(q,q˙,t)(H.2)
For a natural mechanical system (kinetic energy quadratic in velocities, no explicit time dependence), H equals the total mechanical energy: H = T + V.
Definition H.1 — Hamilton's Equations
The equations of motion in Hamiltonian mechanics are:q˙i=\partialH/\partialpip˙i=−\partialH/\partialqiThese replace one second-order ODE per degree of freedom with two first-order ODEs — at the cost of doubling the number of variables but gaining perfect symmetry between q and p.
Phase portrait:H=E=constdefinesanellipsein(x,p)space:x2/(2E/k)+p2/(2mE)=1.Everyorbitis a closed ellipse — the system is periodic for all energies.
H.2 Phase Space and Liouville's Theorem
The phase spaceof an n-degree-of-freedom system is the 2n-dimensional space with coordinates (q₁,...,qₙ, p₁,...,pₙ). Each point represents a complete instantaneous state. Hamilton's equations define a flow in this space — every state has a unique future and past.
Theorem H.1 — Liouville's Theorem
The phase space flow generated by Hamilton's equations preserves volume. If you take a region of phase space containing many initial conditions and let the system evolve, the volume occupied is constant — even though the shape may distort arbitrarily:dΓ/dt=0whereΓ=∫dnqdnpThis is the foundation of statistical mechanics: a microcanonical ensemble occupies a constant volume in phase space. It also implies that phase space trajectories never cross.
Figure H.1. Phase portraits for three Hamiltonian systems. Harmonic oscillator: perfect ellipses (all periodic). Pendulum: libration (closed curves below the separatrix), rotation (open curves above), andtheseparatrixitself(infinite−periodorbit).Doublewell:twostablefixedpointsat±
H.3 Poisson Brackets
For any two functions f(q, p) and g(q, p), the Poisson bracket is:
{f,g}=i∑(∂qi∂f∂pi∂g−∂pi∂f∂qi∂g)(H.3)
Poisson brackets encode the algebraic structure of classical mechanics. Key properties:
{qi,pj}=δij{qi,qj}=0{pi,pj}=0(H.4)
The time evolution of any observable A is:
dtdA={A,H}+∂t∂A(H.5)
A quantity A is conserved if and only if {A, H} = 0 (and A has no explicit time dependence). The Poisson bracket structure is preserved by canonical transformations — the symplectomorphisms that are the symmetries of Hamiltonian mechanics. In quantum mechanics, Poisson brackets become commutators:{f, g} → [f̂, ĝ]/(iℏ).
Example H.2 — Angular Momentum Conservation via Poisson Brackets
H.4 Canonical Transformations and Action-Angle Variables
A canonical transformation(Q, P) = (Q(q,p), P(q,p)) preserves the form of Hamilton's equations. The condition is that the transformation preserves the Poisson bracket structure: {Qᵢ, Pⱼ} = δᵢⱼ.
For an integrable system (as many conserved quantities as degrees of freedom), one can always find action-angle variables (J, θ) where:
Ji=2π1∮pidqiθ˙i=ωi=∂Ji∂H=constant(H.6)
In action-angle variables, the Hamiltonian depends only on J, not θ — every θ is cyclic, every Jᵢ is conserved, and the motion is uniform rotation on a torus in phase space. This formulation is the starting point for perturbation theory (KAM theorem) and the semi-classical quantization rule: Jᵢ = nᵢ ℏ.
Definition H.2 — Common Traps
Hamiltonian is not always total energy: it equals energy only under standard natural-system assumptions.
Phase space doubles variables: q and p are independent coordinates, not position and velocity written twice.
Canonical transformations preserve structure: not every coordinate change preserves Poisson brackets.
Liouville preserves volume, not shape: a phase-space blob can stretch and fold while keeping the same volume.
Action-angle variables require integrability: chaotic systems generally do not admit global action-angle coordinates.