13
Part Zero · Foundations

Hamiltonian mechanics and Poisson brackets

In the autumn of 1925 a young Paul Dirac was reading a paper by Werner Heisenberg in which quantities no longer multiplied in either order to give the same answer. On a Sunday walk he recalled an old piece of classical mechanics, the Poisson bracket, and saw that quantum mechanics could be written by changing that one bracket and almost nothing else. Established

This chapter builds the Hamiltonian form of mechanics, in which a system’s state is a point in phase space and its motion is a flow. It is the form quantum mechanics grew out of.

From velocity to momentum

Lagrange describes a system by positions and velocities. Hamilton swaps velocity for momentum, defined from the Lagrangian as p=∂L/∂q˙p = \partial L/\partial\dot q. The swap is a Legendre transform, and it produces a new function, the Hamiltonian:

H(q,p)=p q˙−LH(q,p) = p\,\dot q - L

For ordinary systems this is simply the total energy, H=T+VH = T + V. Written in terms of momentum, a mass on a spring has H=p2/2m+12kq2H = p^2/2m + \tfrac12 kq^2.

Hamilton’s equations

Motion now comes from two first-order equations with a striking symmetry:

q˙=∂H∂p,p˙=−∂H∂q\dot q = \frac{\partial H}{\partial p}, \qquad \dot p = -\frac{\partial H}{\partial q}

Because energy is conserved, the state moves along a contour of HH in the plane of position and momentum, the phase plane. The plate shows a pendulum, H=p2/2−cos⁡qH = p^2/2 - \cos q. Give it an energy of 0.00. Below 1 it swings back and forth on a closed loop; above 1 it goes right over the top and keeps rotating. The curve at exactly 1, the separatrix, divides the two.

A flow that never compresses

Take not one starting state but a small blob of them, and let every point follow Hamilton’s equations. . It stretches and twists, and near the separatrix it smears out into a long thin streak, yet its area never changes. That is Liouville’s theorem: Hamiltonian flow behaves like an incompressible fluid in phase space.

It is the foundation of statistical mechanics, because a probability spread over phase space can move but never pile up. Its quantum twin says that time evolution preserves probability.

DeeperThe phase-space velocity is (q˙,p˙)=(∂H/∂p,−∂H/∂q)(\dot q,\dot p) = (\partial H/\partial p, -\partial H/\partial q). Its divergence is ∂2H/∂q∂p−∂2H/∂p∂q=0\partial^2 H/\partial q\partial p - \partial^2 H/\partial p\partial q = 0. A flow with zero divergence preserves volume (Chapter 3).

Integrators that respect the flow

Simulate the pendulum with Euler’s method and the blob slowly inflates: Euler does not preserve phase-space area, so it invents energy. After 500 time units with a step of 0.1, the energy has drifted by 24, more than ten times the pendulum’s whole range. The leapfrog method updates momentum by half a step, position by a full step, then momentum again. It preserves area exactly, and its energy error stays below a thousandth forever. Methods built this way are called symplectic, and they are how planetary orbits and molecules are simulated for long times.

The Poisson bracket

For any two quantities ff and gg defined on phase space, define

{f,g}=∂f∂q∂g∂p−∂f∂p∂g∂q\{f, g\} = \frac{\partial f}{\partial q}\frac{\partial g}{\partial p} - \frac{\partial f}{\partial p}\frac{\partial g}{\partial q}

Then the rate of change of any quantity is its bracket with the Hamiltonian: f˙={f,H}\dot f = \{f, H\}. A quantity whose bracket with HH is zero is conserved. The most basic bracket of all is {q,p}=1\{q, p\} = 1. For angular momentum, {Lx,Ly}=Lz\{L_x, L_y\} = L_z and its cyclic partners: the components do not “commute”, a hint of the quantum spin that cannot point along two axes at once.

Changing coordinates without breaking anything

A change of variables (q,p)→(Q,P)(q,p)\to(Q,P) is canonical if it keeps {Q,P}=1\{Q, P\} = 1; then Hamilton’s equations keep their form in the new variables. Some are surprising: Q=pQ = p, P=−qP = -q swaps the roles of position and momentum entirely and is perfectly canonical. In quantum mechanics this swap becomes the Fourier transform of Chapter 6.

Dirac’s step

Dirac’s proposal was to keep every equation of Hamiltonian mechanics but replace the Poisson bracket of two quantities with the commutator of two operators, divided by iℏi\hbar:

{f,g}  ⟶  1iℏ [f^,g^],[x^,p^]=iℏ\{f, g\}\;\longrightarrow\;\frac{1}{i\hbar}\,[\hat f, \hat g], \qquad [\hat x, \hat p] = i\hbar

The equation of motion f˙={f,H}\dot f = \{f,H\} becomes Heisenberg’s df^/dt=1iℏ[f^,H^]d\hat f/dt = \tfrac{1}{i\hbar}[\hat f, \hat H]. The single fact [x^,p^]=iℏ[\hat x,\hat p] = i\hbar will give the uncertainty principle, the spacing of atomic energy levels and the stability of matter. That is the bracket quantum mechanics changed.

What you now have

Momentum as a coordinate, Hamilton’s equations, phase space as an incompressible flow, symplectic simulation, Poisson brackets and the bridge to quantum commutators.

· · ·

Three questions to carry with you.

What does Liouville’s theorem say?tap
Hamiltonian flow preserves area (volume) in phase space: a blob of states can deform but not compress.
How do you test whether a quantity is conserved, using brackets?tap
Compute its Poisson bracket with H. If it is zero, the quantity is constant in time.
What did Dirac replace the Poisson bracket with?tap
The commutator divided by iħ, so that {q, p} = 1 becomes [x, p] = iħ.

And one to work out. For H=p2/2m+12kq2H = p^2/2m + \tfrac12 kq^2 with k=4k = 4, what is p˙\dot p when q=0.5q = 0.5?

ṗ =

Sources: H. Goldstein, C. Poole and J. Safko, Classical Mechanics. P. A. M. Dirac, Proc. R. Soc. A 109, 642 (1925). Checked by code: leapfrog preserves blob area to 5×10⁻⁵; Euler energy drift 24.3 vs leapfrog 6×10⁻⁴ over 500 time units.

Next · Chapter 14
Classical waves and optics

Three polarizers let through light that two crossed polarizers block. This sets up Stern–Gerlach later.

Turn the page