Physic Labs

Analytical mechanics

Hamilton's equations, phase space

Follow a harmonic oscillator in phase space and verify Hamilton's equations q˙=∂H/∂p\dot q=\partial H/\partial p, p˙=−∂H/∂q\dot p=-\partial H/\partial q, including how a canonical shear Q=qQ=q, P=p+αqP=p+\alpha q preserves phase-space area.

Undergraduate

Equipment

  • Phase-plane canvas $(q,p)$ showing the oscillator orbit
  • Solid (q,p) and dashed transformed (Q,P) curves drawn together
  • Slider “Năng lượng E” (energy) and “Tạm dừng” button

Procedure

  1. Read a phase orbit

    Let the oscillator run and watch the point trace a closed loop in (q,p)(q,p). Each point is a state, not a physical position; for H=p2/2m+12mω2q2H=p^2/2m+\tfrac12m\omega^2q^2 the loop is an ellipse enclosing area 2πE/ω2\pi E/\omega.

  2. Check the flow direction

    Pause at the top of the loop where q˙=∂H/∂p=p/m\dot q=\partial H/\partial p=p/m vanishes and p˙=−∂H/∂q=−mω2q\dot p=-\partial H/\partial q=-m\omega^2q is at its extreme — the orbit turns there. Check the motion is clockwise and consistent with q˙\dot q and p˙\dot p signs at each quadrant.

  3. Compare the transformed coordinates

    Look at the dashed curve Q=qQ=q, P=p+αqP=p+\alpha q (α=0.7\alpha=0.7): the ellipse is sheared and tilted, yet the enclosed area is unchanged since dQ∧dP=dq∧dp\mathrm dQ\wedge\mathrm dP=\mathrm dq\wedge\mathrm dp. This is a canonical transformation — same dynamics, new coordinates.

  4. Scale the energy

    Move the energy slider E and watch the ellipse grow: its semi-axes scale as E\sqrt{E} while the area grows linearly. Predict the orbit's shape at double E, then verify — and explain why phase-space area conservation is called Liouville's theorem.

Simulation

Experiment history

William Rowan Hamilton reformulated mechanics in 1834–35 around a single function H(q,p)H(q,p), trading Lagrange's second-order equations for symmetric first-order pairs q˙i=∂H/∂pi\dot q_i=\partial H/\partial p_i, p˙i=−∂H/∂qi\dot p_i=-\partial H/\partial q_i. Developed first for optics, the scheme only entered mainstream mechanics decades later. Phase space then gave statistical mechanics its language: Liouville's theorem (1838) says Hamiltonian flow conserves volume, the foundation of Gibbs's ensembles. Hamiltonian structure also underlies quantum theory — the commutator of q and p mirrors their classical Poisson bracket, {q,p}=1\{q,p\}=1.

Related physicists

Related library topics