Analytical mechanics
Hamilton's equations, phase space
Follow a harmonic oscillator in phase space and verify Hamilton's equations , , including how a canonical shear , preserves phase-space area.
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
Read a phase orbit
Let the oscillator run and watch the point trace a closed loop in . Each point is a state, not a physical position; for the loop is an ellipse enclosing area .
Check the flow direction
Pause at the top of the loop where vanishes and is at its extreme — the orbit turns there. Check the motion is clockwise and consistent with and signs at each quadrant.
Compare the transformed coordinates
Look at the dashed curve , (): the ellipse is sheared and tilted, yet the enclosed area is unchanged since . This is a canonical transformation — same dynamics, new coordinates.
Scale the energy
Move the energy slider E and watch the ellipse grow: its semi-axes scale as 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.