Hamiltonian Phase-Space Flow
What you are seeing: the orbits of Hamilton's equations in the plane. Click anywhere to release a tracer at ; the integrator steps in time and traces an orbit at constant energy . For the pendulum, you can see librations (closed loops) below the separatrix and rotations (open curves) above.
system
show flow
tracers:0
WHAT TO TRY
- Click anywhere to release a tracer: it rides the Hamiltonian flow, looping on a closed orbit. For the pendulum, orbits inside the separatrix librate (swing) and orbits outside rotate (go over the top).
- Switch the system between pendulum, harmonic oscillator and double well: the phase portrait reshapes, but every orbit stays on a constant-energy contour, since energy is conserved.
- Seed tracers near the separatrix: they crawl, because the period diverges at the unstable fixed point. That slowing is the fingerprint of the saddle that divides the flow.