Many-body acceleration
Every step recomputes all pairwise forces using the new positions.
Gravity · chaos
Three bodies are integrated under mutual gravity. Unlike the two-body case, there is no universal closed-form solution. Start from the famous figure-eight choreography, or nudge it and watch the motion fall into chaos.
Physics tutorial
BackgroundEach of three bodies continuously changes the motion of the other two. The two-body problem reduces to one relative coordinate; a general three-body system does not fully decouple.
Why it mattersIt explains why long-term solar-system stability, stellar systems, and space missions rely on numerical integration rather than one closed formula.
Start with the essentials
Every step recomputes all pairwise forces using the new positions.
Internal gravity cancels in pairs, so an isolated center of mass moves uniformly.
Typical misconceptionWithout a formula, three-body motion cannot be predicted.
Better mental modelNumerical integration predicts finite intervals accurately; what is missing is one simple expression for arbitrary initial states.
Typical misconceptionIrregular paths imply energy or momentum is not conserved.
Better mental modelChaotic paths remain constrained by invariants; conservation does not imply periodicity.
Choose Figure-eight and enable trails.
What to observe: Three equal masses follow one closed curve in sequence.Increase perturbation from a very small value.
What to observe: Paths agree briefly, then encounter order and shape separate.Show the center of mass and inspect energy and momentum.
What to observe: Motion is complex while global invariants stay nearly stable.