Skip to main content
Sandbox Physics

Gravity · initial conditions

Three-Body Gravity

Explore the figure-eight choreography, a rotating Lagrange triangle, or a visitor passing a binary. Nudge one body, replay both trajectories together, and check the numerical record against conserved quantities.

Interactive modelThree-Body Gravity
Total energy00
Total momentum magnitude00
Angular momentum00
Closest pair00
RMS distance from reference00
Energy error / initial potential scale00

THE TRAJECTORY IS THE DATA

How far do the two beginnings separate?

The solid record includes the chosen velocity nudge. The dashed reference uses zero nudge and identical masses. Both start in their own stationary barycentric frame. The separation compares matching body identities at the same recorded time.

D(t)=13∑i=13∣ri(t)−ri,0(t)∣2D(t)=\sqrt{\frac{1}{3}\sum_{i=1}^{3}\left|\mathbf r_i(t)-\mathbf r_{i,0}(t)\right|^2}

Time, distance and mass use normalized units. The plane and rings are coordinate guides. Display size does not represent a physical radius. Energy errors are divided by the magnitude of the initial potential energy; they remain meaningful at zero total energy. Replay never recomputes the trajectory.

Physics tutorial

Three bodies: why simple laws do not produce simple orbits

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

Focus question
Newtonian gravity is simple, so why is there no general analytic formula for three-body paths?
One-sentence intuition
The hard part is feedback: every body continually changes where the others will feel future forces.

Core mathematical model

Many-body acceleration

r¨i=G∑j≠imjrj−ri∣rj−ri∣3\ddot{\mathbf r}_i=G\sum_{j\ne i}m_j\frac{\mathbf r_j-\mathbf r_i}{|\mathbf r_j-\mathbf r_i|^3}

Every step recomputes all pairwise forces using the new positions.

Conserved total momentum

P=∑imivi=constant\mathbf P=\sum_i m_i\mathbf v_i=\text{constant}

Internal gravity cancels in pairs, so an isolated center of mass moves uniformly.

Common difficulties

No general closed form does not mean uncomputable

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.

Chaos does not break conservation

Typical misconceptionIrregular paths imply energy or momentum is not conserved.

Better mental modelChaotic paths remain constrained by invariants; conservation does not imply periodicity.

Run the experiment

  1. 01

    Observe a special periodic solution

    Choose Figure-eight and enable trails.

    What to observe: Three equal masses follow one closed curve in sequence.
  2. 02

    Add a perturbation

    Choose Nudge the triangle, change the velocity nudge and launch again; compare solid and dashed paths.

    What to observe: Separation varies with time. Finite-time growth alone does not prove chaos; perturbations near a stable orbit can stay bounded.
  3. 03

    Check global constraints

    Inspect the white barycentre cross and the energy, momentum and angular-momentum records.

    What to observe: Motion is complex while global invariants stay nearly stable.
FeedbackSomething broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy