Three Bodies

Three masses, one closed curve — a solution nobody expected to exist. Two bodies under gravity have a closed-form answer: Kepler's ellipse. Three do not, and Poincaré proved in 1890 that none can. So the only way to know what they do is to step them forward and watch.

Eight systems, and what they are for

Figure eight three equal masses chasing each other along ONE closed curve — found numerically in 1993, proved to exist in 2000
Lagrange triangle an equilateral triangle rotating rigidly forever — one of only two exact solutions the problem has
Binary and a moon the hierarchical case: the only reliably stable arrangement three bodies have
Sun and planets the control — what the n-body problem looks like when it is not a problem
Chaotic trio the generic case. The choreographies above are the freaks
Light body ×3 one experiment in three frames: stable inside, chaotic between, stable outside

Integrated with velocity Verlet rather than the more accurate Runge–Kutta, because Verlet is symplectic: its energy error oscillates instead of accumulating, so orbits stay closed for as long as you care to watch instead of slowly spiralling.

Try it


Rebuilt from the Systemorph Cloud many-body notebooks as a MeshWeaver node type. The orbits are integrated on every render and animated in the browser as SVG keyframes — no script, no timer, nothing stored that could disagree with the numbers.

Reconnecting…
The server was updated. Reloading the page to pick up the latest version.