The Hamiltonian, Phase Space and the Canonical Equations
Trading velocities for momenta turns one second-order equation per coordinate into two first-order ones, and makes phase space the natural arena. An autonomous Hamiltonian is conserved along the motion, and it equals the physical energy T + V for ordinary time-independent coordinates with a natural Lagrangian.
What a learner can do afterwards
- Constructs a Hamiltonian from a Lagrangian and identifies the conjugate momenta
- Writes and solves the canonical equations for a simple system
- Sketches a phase-space trajectory and reads the motion off it
1 · Read
You start from a Lagrangian L(x, v, t). Define the conjugate momentum p = ∂L/∂v. Assume the map from v to p is invertible, so v can be solved in terms of x, p, and t; this holds for the regular Lagrangians met here, where ∂²L/∂v² is nonzero. The Hamiltonian is the Legendre transform H(x, p, t) = p v − L, with v replaced by its solved form. That one trade turns a single second-order equation into two first-order ones: ẋ = ∂H/∂p and ṗ = −∂H/∂x.
For m ẍ = −k x, the Lagrangian is L = ½mv² − ½kx². The momentum is p = ∂L/∂v = mv, which inverts to v = p/m. Substitute into H = p v − L: H = p(p/m) − (½m(p/m)² − ½kx²) = p²/(2m) + ½kx². The canonical pair is ẋ = ∂H/∂p = p/m and ṗ = −∂H/∂x = −kx.
With m, k > 0 and ω = √(k/m), solutions are x(t) = x₀ cos(ωt) + (p₀/(mω)) sin(ωt) and p(t) = p₀ cos(ωt) − mω x₀ sin(ωt), with x₀, p₀ initial. H carries no explicit t, so along the motion it stays fixed at the energy E. Check: ẋ = p/m and ṗ = −mω²x = −kx, and at t = 0 the formulas give x₀ and p₀.
With x horizontal and p vertical, for m, k > 0 the Hamiltonian is H = p²/(2m) + ½kx². The level set p²/(2m) + ½kx² = E is an ellipse whenever E > 0, and the single point (0,0) when E = 0. A bigger loop means a larger E, provided both systems share the same m, k, and axes. Where p is positive, ẋ = p/m is positive, so the state point drifts rightward across the upper half; with x > 0 there, ṗ = −kx is negative and the motion is down and to the right, while with x < 0 it is up and to the right.
Whenever H carries no explicit time dependence, Hamilton's equations keep its value constant along the motion, so H is conserved. It equals the physical energy T + V for ordinary time-independent coordinates with a natural Lagrangian, where T is homogeneous quadratic in the rates and V is rate-independent; with velocity-dependent potentials or time-dependent coordinate maps, H and T + V can differ. Build p first, then form H from x and p, and check that no stray t sits inside H. If H itself depends on t, the value is free to drift.
Trade velocity for momentum, form H = p v − L, step two first-order equations, and read the energy off the phase loop.
Six extra questions were written for this Hamiltonian topic. No third-party text is adapted.
2 · Watch
En anglaisTake it off screen
Where it sits
Learn first
Optional connections
This opens up
Where this leads
Jobs that lean on this skill. Follow one to see everything it is built on.
14 questions wait behind this lesson, each with its answer explained. Every answer feeds the sky: stars light as they are learned, and dim when it is time to come back.