Physics · Mechanics · Year 2
Hamiltonian mechanics
How can the whole future of a swing fit on a single map?
The situation
A swing is flying in a children's playground. At every moment its state is completely described by two numbers: the deflection angle and the momentum . If we take these two numbers as a point on a map, the whole future of the swing becomes a single line on the map. On the big board next to the swing is exactly this map: oscillations, full rotations and the boundary that separates them. Why does the “fluid” on this map never get compressed — and which quantities stay completely unchanged?
Topic
Hamiltonian mechanics and phase space. Phase portrait of a pendulum: conservation laws from symmetry
Key ideas
- Phase space and Hamilton's equations
- Liouville's theorem
- Symmetry and conservation laws
Formulas
The Hamiltonian of the swing is the total energy; is the canonical momentum (angular momentum).
Hamilton's equations: the velocity of a point on the map (the blue and red arrows on the board).
Poisson brackets: if and , then is a constant of motion.
The period depends on the amplitude: is the complete elliptic integral; at the separatrix () .
The action variable is the area enclosed by the orbit. If a parameter changes slowly, it is conserved (adiabatic invariant).
Theory
Phase space and Hamilton's equations
In Hamiltonian mechanics the state is given by a generalised coordinate and the canonical momentum . The Hamiltonian (here the total energy) gives two first-order Hamilton's equations and attaches a velocity vector to every point of the phase plane. Trajectories do not cross: from one state only one future emerges. On the board, closed lines are oscillations and wavy lines are full rotations; they are separated by the separatrix : this motion approaches the inverted upper position in an infinitely long time. does not depend explicitly on time (homogeneity of time), so energy is conserved and the point always stays on one line. Model: a swing with a rigid rod (like the 360° swing ride at an amusement park), a point mass kg, no friction.
Principle of least action
The action assigns a single number to each path. Hamilton's principle: among paths with fixed end points, the true motion makes stationary, and over a short interval a minimum. In the “Hamilton's principle” section, is added to the true path ( — shorter than half a period): on the graph , with the minimum exactly at . If we regard the action taken along the true path as a function of the end point, then and . For a given energy, the Maupertuis principle applies: the abbreviated action is stationary on the true trajectory.
Liouville's theorem
Phase flow is incompressible: . So even if a blob of initial states is stretched into a thin spiral, its area (in many dimensions — phase volume) does not change. Friction () makes the divergence : the area decreases as . The numerical method also matters: the symplectic Störmer–Verlet (leapfrog) scheme preserves the area exactly, whereas the explicit Euler method changes it at every step by a factor of . In statistical physics an ensemble flows in phase space like an incompressible fluid: — the basis of equilibrium distributions.
Poisson brackets and canonical transformations
For any quantity, ; the basic brackets are , . A change of variables that preserves them is called canonical: in the new variables Hamilton's equations have the same form. It is convenient to write it with a generating function: for a harmonic oscillator, the transformation gives , (), and . The view in “Adiabatic” mode is the exact version of this transformation for the pendulum; the simulation calculates the in the HUD numerically, and it comes out equal to 1.
Action–angle variables and the adiabatic invariant
In periodic motion the action is the area enclosed by the orbit, and the angle grows uniformly: , . If a parameter (the rope length) changes slowly compared with the period, both the energy and the frequency change, but stays almost constant — the adiabatic invariant. For small oscillations : if the rope is shortened 2 times, both and the energy increase times (the work is done by the hand pulling the rope). If it is pulled quickly, the invariant is broken. The same idea works in magnetic traps: for a charged particle, is an adiabatic invariant, so a particle flying towards a strong field is reflected by a magnetic mirror — this is how the Earth's radiation belts are held (in detail — in the “Aurora and the Lorentz force” experiment).
Symmetry and conservation laws
To every continuous symmetry of the Lagrangian there corresponds a conserved quantity (Noether's theorem): homogeneity of time → energy, homogeneity of space → momentum, isotropy → angular momentum. If a coordinate does not enter , it is cyclic: . In a circular bowl, is cyclic, is constant, and the Routhian reduces the problem to a single radial coordinate: — that is what the graph shows. In a closed system, homogeneity means the centre of mass moves uniformly. The Hamilton–Jacobi equation separates in cyclic coordinates: ; the Kepler problem is also solved this way in polar and spherical coordinates (in detail — in the “Kepler's laws” experiment). Model: the surface of the bowl is the graph of the potential ; the puck moves on a horizontal plane without friction (slopes are taken to be small).
Did you know?
- In 1911, at the first Solvay Congress, Hendrik Lorentz asked about a pendulum whose string is slowly shortened. Albert Einstein answered: if the length changes infinitely slowly, the ratio of the energy to the frequency, , stays constant. This is one of the earliest precise examples of an adiabatic invariant.
- Emmy Noether published her theorem linking symmetries and conservation laws in 1918, in the paper “Invariante Variationsprobleme”.
Inside the experiment
The experiment starts from a real-life situation: you predict the result, change the controls, run the experiment and draw a conclusion. Inside are missions, theory, a quiz and a guided tour in which the camera moves and explains the key points.
More experiments in this section
- Free fall and air — Grade 10
- Jet propulsion and the rocket — Grade 10
- Viscosity and flow — Grade 10
- Gyroscope and precession — Year 1
- Lagrangian mechanics and chaos — Year 2