Skip to main content
Sandbox Physics

Gravity · initial conditions

Three-Body Gravity

Why does one extra body remove the general orbit formula? Each body's motion keeps changing the forces on the other two, and those forces in turn change its own motion. Apart from a few special solutions, no general closed-form answer exists. The motion has to be integrated numerically and checked against the conserved quantities.

Watch three bodies chase each other around a figure eight, turn as a rotating Lagrange triangle, or meet a visitor passing a binary. Give one body a small push, replay the original and nudged runs together, and check the computed motion against the conserved quantities.

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

Data from the integrated trajectory

How far apart do the two runs drift?

The solid path includes the velocity nudge you chose. The dashed reference has no nudge and the same masses. Each run starts at rest in its own barycentric frame. The separation compares each body with its counterpart 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 the three bodies keeps changing the motion of the other two. The two-body problem reduces to a single relative coordinate, but a general three-body system cannot be fully separated that way.

Why it mattersThis is why studies of long-term solar-system stability, stellar systems and space missions rely on numerical integration instead of 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: each body keeps moving the others, which changes where they will feel their 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}

The internal gravitational forces cancel in pairs, so the center of mass of an isolated system moves at constant velocity.

Common difficulties

No general formula does not mean no prediction

Typical misconceptionWithout a formula, three-body motion cannot be predicted.

Better mental modelNumerical integration predicts the motion accurately over a finite time. What is missing is one simple expression that works for every starting state.

Chaos does not break conservation

Typical misconceptionIf the paths look irregular, energy or momentum must not be conserved.

Better mental modelChaotic paths are still limited by the conserved quantities, and conservation does not make the motion periodic.

Run the experiment

  1. 01

    Observe a special periodic solution

    Choose Figure-eight and enable trails.

    What to observe: Three equal masses chase one another around the same closed curve.
  2. 02

    Add a perturbation

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

    What to observe: The gap between the two paths changes with time. Growth over a finite time does not prove chaos on its own; near a stable orbit, a small perturbation can stay bounded.
  3. 03

    Check the conserved quantities

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

    What to observe: The motion is complicated, yet the conserved quantities of the whole system stay nearly constant.
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