The Hamiltonian (Legendre Transform)
Also known as: Hamiltonian function · Legendre transform of L
Swap each velocity for its momentum; what's left is (usually) the total energy as a function of position and momentum.
Phase-space portrait: nested constant-H ellipses with a state point gliding along its own energy contour. T and V bars trade while H stays pinned. Sliders set m, k, and the energy.
Equivalent forms
The Legendre transform turns second-order equations into first-order flow on phase space — dynamics becomes geometry.
Unit systems
Where it holds
Dimensional analysis
Hamilton, who had reformulated optics with a single 'characteristic function', did the same for mechanics in 1833. His H seemed like elegant bookkeeping for a century — until Schrödinger and Heisenberg discovered that quantum mechanics speaks Hamiltonian natively: Ĥψ = iħ∂ψ/∂t.
Trade velocity for momentum and mechanics becomes geometry: every motion is a walk along an energy contour.
Build H = p²/2m + ½kx² for an oscillator and watch the state glide along an ellipse of constant H in phase space.
- Quantum mechanics: the Schrödinger equation is built on Ĥ
- Statistical mechanics: the Boltzmann factor
- Symplectic integrators for solar-system simulation
- Accelerator physics: beam dynamics designed in phase space
- H is always T + V — false in rotating frames or with time-dependent constraints
- H and E are synonyms — H is conserved , and equals E only for natural systems
- The Legendre transform is just substitution — it's a duality: convex functions of ẋ ↔ convex functions of p
Limiting cases
What if…
— energy conservation for free.
You get the phase-space orbit itself (in 1D) — motion IS the level curve.
You have constraints (e.g., gauge theories) — Dirac developed constrained Hamiltonian dynamics for exactly this.
Oscillator energy from (x, p)
- p:
- 1
- x:
- 0.5
- m:
- 1
- k:
- 10
- — constant along the motion
Legendre transform by hand
- m:
- 2
- p:
- 4
- ẋ ẋ → ẋ
- ẋ
- Same as — the transform checks out