1. Harmonic oscillator — canonical Poisson system
Drag the sliders to change $\omega$, initial condition, and visual speed. The yellow ellipse is the Hamiltonian level set selected by the initial energy.
Controls
Poisson structure
J = [[0,1],[-1,0]]H = 1/2(p² + ω²q²)q̇ = p, ṗ = −ω²q(0,0); orbits are closed ellipses.Live interpretation
Read the phase portrait as follows: the yellow ellipse is fixed by the initial energy, the purple curve is the simulated orbit from the current run, and the orange point moves along the same level set.