At a glance
Each point (x, p) in the phase plane is a complete state of a particle moving in one dimension: where it is, and how much momentum it has. This sim drops points, or a patch of them, into five potentials and follows them, the picture behind oscillators, pendulums and statistical mechanics.
What you'll learn
- How one point (x, p) describes a whole state, and how H = p²/2m + U(x) links the panels.
- How the shape of U(x) sets the pattern of motion in the phase plane.
- How the time for one circuit depends on the system and on the energy.
- How a patch of nearby states moves, and what that does to its area.
What's on screen
- Violet curve: the potential U(x), in the upper panel.
- Green line: the energy H of the point. The gap down to the violet curve is p²/2m.
- Cyan point and trace: the state in the phase plane (lower panel), and the path it has covered.
- Grey curves: curves of constant energy (Contours of H). Amber: the separatrix.
- Live state: x, p and H of the newest point. Clock and Patch follow.
The controls
Press ⌖ on a row to see where that control sits in the sim. Some controls appear only as you work through the Guided Inquiry.
| Control | What it changes | Range | |
|---|---|---|---|
| Click in the phase plane | Places a point at that (x, p). The newest four points are kept. In Cloud mode one click drops a ring of 60 points. | lower panel | |
| System | The potential U: Oscillator, Free particle, Double well, Pendulum (a bead on a vertical hoop, with θ in radians and pθ) or Inverted hill. | 5 choices opens on Oscillator | |
| Height of the hump | The height h of the barrier between the two wells. It appears only on the Double well. | 0.20–3.00 J opens at 1.00 J | |
| Contours of H | Draws every curve of constant energy behind the point. | on / off | |
| Arrow field | Draws an arrow at each point of the plane showing which way the flow runs. Arrows show direction only, not speed. | on / off | |
| Cloud mode | Each click drops a ring of 60 points on a circle of radius 0.08 instead of one point. | on / off | |
| Direction of time | Runs the same flow forward, or backwards. | Forward / Reversed | |
| Live state | x, p and H of the newest point. | panel | |
| Clock | The time for one circuit of each point's contour, or why it has none. | panel | |
| Patch | The area enclosed by the ring of 60 points, in J s. | panel | |
| ▶ Play / ⏸ Pause | Moves the points along the flow, or freezes them. | top bar | |
| Speed | Plays the motion faster or slower on screen. The physics and the periods stay the same. | 0.25×–4× opens at 1× | |
| ↻ Reset | Puts each point back where you placed it, sets the hump to 1.00 J and pauses. It keeps the system and the toggles. | top bar |
Fixed: m = 1 kg, ω = 1 rad/s, a = 1 m, R = 1 m, g = 9.80665 m/s², λ = 1 s⁻¹, and no friction.
A point is a whole state
Once U(x) is fixed, the pair (x, p) settles everything that happens next. Its energy is H = p²/2m + U(x).
- Both x and p change as the point moves, but H does not. Each point stays on its own contour of H.
- With m = 1 kg, a point at x = 0.6 m with p = 0.8 kg m/s on the Oscillator has H = ½(0.6)² + ½(0.8)² = 0.500 J.
The flow has one direction at every point
Hamilton's equations give the velocity of the point in the phase plane at every (x, p):
- Above the x axis (p > 0) the point moves right; below it (p < 0) it moves left. A closed contour is therefore run clockwise.
- At a turning point p = 0, so ẋ = 0, but ṗ = −dU/dx is generally not zero. The push turns the point round.
- Putting the two equations into dH/dt gives zero, so the arrow at each point lies along the contour of H through it.
- Each point has exactly one arrow, so two different orbits never cross.
How long one circuit takes
One circuit is a crossing of the well and the way back. The integral adds up the time spent at each x, where the speed is √(2(E − U)/m).
- Oscillator. The integral gives T = 2π/ω = 6.2832 s on every ellipse, because ω = 1 rad/s. That is special to the parabola.
- Other wells. T depends on the energy. In the Double well, a small orbit in one well runs at ω = √(8h/m), and larger orbits take longer.
This slider moves the sim's Height of the hump too.
Energy decides the kind of motion
Since p²/2m = E − U cannot be negative, a point stays where U(x) ≤ E, and turns round where U(x) = E.
- Double well. Below E = h the contour is two separate closed curves, and a point stays on its own. Above h it is one curve round both wells.
- Pendulum. Below 2mgR = 19.613 J the bead swings. Above it, pθ never reaches zero: the bead goes round the hoop and θ wraps from π to −π.
- Separatrix. The contour at E = h (or 2mgR) divides the two kinds of motion. Its period is infinite, since the point slows to a crawl near the top. The sim's finite time step cannot hold a point exactly on it, so after a few seconds the point slips off to one side.
- Points of rest. Where ∂H/∂x = ∂H/∂p = 0 the state never changes: a centre at a well bottom, a saddle at a hilltop.
Area in the plane is conserved
Liouville's theorem: the flow can stretch and bend a patch of states, but it never changes the patch's area.
- Cloud mode drops 60 points on a circle of radius 0.08 in the (x, p) plane. Its area is π(0.08)² = 0.0201 J s, shown as Patch area.
- On the Oscillator every point has the same period, so the patch simply turns round. In the Double well, points on different contours have different periods, so the patch shears into a long thin filament. The area stays 0.0201 J s.
- The flow is reversible. With Direction of time on Reversed, the filament folds back towards the disc it started as.
Where it matters
- Statistical mechanics. Counting the microstates of a gas means measuring volume in phase space. Liouville's theorem says the flow preserves that measure.
- Particle beams. The area a bunch fills in (x, p) is its emittance. Focusing magnets can squeeze the beam in x, but they spread its momenta; shrinking the area needs beam cooling, which is not Hamiltonian flow.
- Small oscillations. Near any well bottom U ≈ ½U″x², so ω = √(U″/m). It is how a molecular bond is modelled as a spring, with the reduced mass in place of m.
Go deeper: why the flow cannot change an area
- The flow velocity is (ẋ, ṗ) = (∂H/∂p, −∂H/∂x). Its divergence is ∂²H/∂x∂p − ∂²H/∂p∂x, which is zero for any smooth H.
- A flow with zero divergence neither compresses nor expands area. That holds for every H, not only the five here.
Summary
Key points
- A point (x, p) is a complete state, and its energy H is conserved.
- The flow is ẋ = p/m, ṗ = −dU/dx, clockwise on closed contours.
- The period depends on the energy, except for the parabola, where it is 2π/ω for every orbit.
- The energy decides the kind of motion, and the separatrix divides the kinds.
Common mix-ups
- "The phase plane draws the path of the particle in space." The particle moves only along x. The vertical axis is its momentum.
- "At a turning point the particle stops." Only p = 0 there; ṗ = −dU/dx is generally not.
- "Orbits of different energy can cross." Each point has one arrow, so orbits never cross.
Things to try on your own
- On the Pendulum, place points at θ = 0 with increasing pθ. Find where the trace stops closing, and compare H there with 19.613 J.
- On the Double well, set the hump to 3 J and place a point at x = 1 m with a very small p. Compare its Clock with 2π/√(8h) = 1.28 s.
- Turn on Cloud mode and compare a patch after 10 s on the Oscillator and on the Double well.