Newton described motion with forces: push on a body and it accelerates. That picture works, but it ties you to particular directions and particular coordinates. In a pair of papers published in 1834 and 1835, the Irish mathematician William Rowan Hamilton found another way to say the same thing. He built on the work of Joseph-Louis Lagrange, and in his hands mechanics became a question of geometry, with energy at its centre. The language he created turned out to be far more than a reformulation. It is the form in which almost all of modern physics, quantum theory included, is written.

Two equations for everything

Hamilton describes a system by two kinds of number: its positions q and its momenta p. Instead of forces he uses a single function, the Hamiltonian H, which is the total energy written in terms of q and p. Everything about how the system moves follows from two equations:

dqdt=∂H∂p,dpdt=−∂H∂q

Take a mass on a spring. Its energy is the energy of motion plus the energy stored in the spring:

H=p22m+12kq2

Feed this into Hamilton's equations and the first gives dq/dt=p/m, the definition of velocity, while the second gives dp/dt=−kq, the spring pulling back. Newton's laws are recovered exactly, but from a different starting point.

A map of every possibility

The power of Hamilton's view is that position and momentum stand on equal footing. Together they form a space, called phase space, in which a single point captures the complete state of the system at one instant. As time passes, the point moves, tracing a curve. For the spring, the curves are ellipses: the mass goes out, stops, comes back and overshoots, around and around. For a pendulum, small swings make closed loops, while a pendulum given enough energy to go over the top traces wavy lines that never close.

Seen this way, the whole of a system's possible behaviour becomes a single picture, a flow of points across phase space like water across a landscape. Energy is what drives that flow. In Hamilton's equations the energy function does more than keep score: it generates the motion in time. When the energy does not depend on time, it stays constant along each curve, which is why energy is conserved.

Liouville's theorem

Imagine starting not with one point in phase space but with a small blob of them, a cloud of slightly different starting conditions. As each point follows its own path, the blob stretches, twists and folds. Liouville's theorem, named after the French mathematician Joseph Liouville, says that however distorted it becomes, its volume never changes. Hamiltonian flow behaves like an incompressible fluid.

This quiet fact has large consequences. It underpins statistical mechanics, because it means an even spread of probability over phase space stays even. It also forbids Hamiltonian systems from settling onto a single resting point the way a ball comes to rest in a bowl with friction. Information about where the system started is never destroyed, only stirred.

The bridge to the quantum world

In the 1920s, physicists building quantum mechanics found that Hamilton had already laid the road. Schrödinger was guided partly by Hamilton's own analogy between the paths of particles and the rays of light. The Schrödinger equationSchrödinger equationThe basic equation of quantum mechanics, which says how a system's wavefunction changes smoothly over time. is Hamilton's idea in new clothes:

iℏ∂ψ∂t=H^ψ

Here ψ is the wavefunctionWavefunctionThe mathematical object that describes a quantum system's state, from which the probabilities of every possible measurement outcome can be calculated., the quantum description of the system, and H^ is the same energy function promoted to an operator, a rule that acts on ψ. The constant ℏ is the reduced Planck constant, which sets the scale of quantum effects, and i is the square root of minus one.

Paul Dirac noticed something deeper still. Classical mechanics has a way of combining two quantities called the Poisson bracket, and for position and momentum it equals one. Quantum mechanics replaces it with the commutator, qp−pq=iℏ. The structure Hamilton discovered survives the jump from classical to quantum almost unchanged. It is the shape of motion itself.