Celestial Mechanics

The Three-Body Problem

Three masses, mutual gravity, and no formula that can predict where they go

The three-body problem is the question of predicting the motion of three point masses interacting only through Newtonian gravity. Newton solved the two-body problem exactly in 1687 — two masses trace closed Kepler ellipses about their shared barycenter — but adding a third body destroys that tidiness: the general three-body problem has no closed-form solution and is deterministically chaotic. Its trajectories obey exact laws yet show sensitive dependence on initial conditions, so tiny differences in the starting state grow exponentially. Poincaré proved in 1890 that no complete set of analytic conserved quantities exists. A handful of special exact solutions survive — Euler's collinear and Lagrange's equilateral configurations (the five Lagrange points) and Moore's figure-eight periodic orbit — and the restricted version, with one massless body, is the mathematical backbone of spacecraft trajectory design.

  • Degrees of freedom (3D)18 (9 positions + 9 velocities)
  • Classical integrals10 (energy, momentum, ang. momentum, barycenter) — too few
  • No-general-solution proofPoincaré 1890; Bruns 1887
  • Convergent seriesSundman 1912 (converges uselessly slowly)
  • Lagrange points5 (L1–L3 collinear, unstable; L4–L5 triangular, stable if M/m > 24.96)
  • Figure-eight orbitMoore 1993; proved Chenciner & Montgomery 2000

Interactive visualization

Press play, or step through manually. The visualization is yours to drive — try it before reading on.

Open visualization fullscreen ↗

Watch the 60-second explainer

A condensed visual walkthrough — narrated, captioned, under a minute.

Why the three-body problem matters

For two bodies, gravity is a solved subject. Given the masses and a snapshot of positions and velocities, Newton's inverse-square law lets you write down the entire past and future in one formula: an ellipse, parabola, or hyperbola fixed by the conserved energy and angular momentum. Add a third gravitating mass and that certainty evaporates. There is no equivalent formula for where the bodies will be a thousand orbits from now — you must integrate the equations of motion numerically, step by step, and even then rounding and measurement error eventually swamp the answer. The three-body problem is where deterministic physics first collided with genuine unpredictability, three-quarters of a century before "chaos theory" had a name.

  • Birthplace of chaos theory. Poincaré's 1890 study of the restricted problem revealed homoclinic tangles — the geometric fingerprint of chaos — long before Lorenz's weather model.
  • Solar System stability. The Sun–Earth–Moon and Sun–Jupiter–asteroid systems are three-body problems; their long-term fate is a live research question.
  • Spacecraft navigation. Lagrange points and low-energy "interplanetary superhighway" transfers come straight from the restricted three-body problem.
  • Exoplanets and star clusters. Circumbinary planets, hierarchical triple stars, and gravitational encounters in dense clusters are all governed by three-body dynamics.
  • Limits of prediction. It is the cleanest demonstration that "deterministic" and "predictable" are not the same thing.

How it works, step by step

The setup is disarmingly simple. Three masses m1, m2, m3 sit at positions r1, r2, r3. Each pulls on the others through gravity, so the acceleration of body i is the vector sum of the pulls from the other two:

ai = Σj≠i G mj (rjri) / |rjri

Here G = 6.674 × 10⁻¹¹ m³ kg⁻¹ s⁻² is Newton's gravitational constant, mj the mass of the other body in kilograms, and (rjri) the separation vector in metres. That is three coupled second-order vector equations — eighteen scalar variables in three dimensions.

  1. Count the conserved quantities. The system conserves total energy (1), total linear momentum (3), total angular momentum (3), and the uniform drift of the barycenter (3) — ten classical integrals. To solve by "quadrature" (reduction to integrals) you would need enough independent integrals to pin down all eighteen variables; ten is not enough, and the missing ones do not exist as analytic functions.
  2. Reduce what you can. Fixing the barycenter and using conservation removes several dimensions, but you are still left with an irreducible chaotic core.
  3. Integrate numerically. With no formula, you advance the state in tiny time steps using a scheme like Runge–Kutta or a symplectic integrator (which conserves energy over long runs). Modern regularized, high-order integrators can follow a triple system for thousands of orbits.
  4. Watch errors explode. Two integrations started a nanometre apart stay close for a while, then peel away exponentially. Past a few Lyapunov times the two futures share nothing but their conserved totals.
  5. Expect ejections. The generic long-term outcome of an equal-mass triple is disruption: two bodies pair into a tight binary and the third is flung away, often at high speed, carrying off energy and angular momentum.

The special solutions that do exist

The general problem has no formula, but specific highly symmetric configurations do. These are the "central configurations," where the gravitational forces produce accelerations proportional to positions, so the whole pattern can rotate or scale rigidly.

SolutionDiscoverer & yearGeometryStability
Collinear (L1, L2, L3)Euler, 1767Three bodies in a rotating straight lineUnstable (saddle)
Equilateral (L4, L5)Lagrange, 1772Three bodies at corners of a rotating equilateral triangleStable if M/m > 24.96
Figure-eightMoore 1993; Chenciner & Montgomery 2000Three equal masses on one ∞-shaped pathStable to small perturbations
Sundman seriesSundman, 1912Convergent power series (any non-collinear start)Correct but converges impossibly slowly

The Lagrange points are the most consequential. In the restricted three-body problem — two massive bodies on a circular orbit plus one massless test body — five points let the test body co-rotate in a fixed relationship with the pair. The three collinear points L1, L2, L3 are saddle-unstable, so a spacecraft parked there needs regular station-keeping burns. The two triangular points L4 and L5, leading and trailing the smaller mass by 60°, are genuinely stable provided the mass ratio of the primaries exceeds 24.96 to 1. The Sun–Jupiter ratio is roughly 1047, so Jupiter's L4 and L5 trap thousands of Trojan asteroids; the Sun–Earth L2 point, 1.5 million km beyond Earth, hosts the James Webb Space Telescope.

Deterministic chaos and sensitive dependence

The heart of the problem is that determinism does not imply predictability. Formally, if two nearby trajectories start a distance δ₀ apart in phase space, their separation grows as

δ(t) ≈ δ₀ · eλt

where λ is the largest Lyapunov exponent. When λ > 0 the system is chaotic; its reciprocal 1/λ is the Lyapunov time, the horizon beyond which prediction fails. For a typical bound triple this can be a few orbital periods; for our own Solar System, Laskar's simulations give a Lyapunov time of about 5–10 million years. Poincaré discovered this while competing for a prize honouring King Oscar II of Sweden in 1889: correcting an error in his own submission, he found that the stable and unstable manifolds of a periodic orbit could intersect in an infinitely folded "homoclinic tangle" so intricate he declined to even draw it. That tangle is the mechanism of three-body chaos.

A worked example: the Earth–Moon Lagrange criterion

The stability boundary for the triangular points is one of the few clean numbers in the whole subject. The equilateral solutions L4 and L5 are linearly stable exactly when

(m1 + m2)² ≥ 27 · m1 m2

Solving for the mass ratio gives the critical value M/m ≈ 24.9599, often rounded to 24.96. Check the real systems: the Sun–Jupiter ratio (≈ 1047) and the Sun–Earth ratio (≈ 333,000) both clear it comfortably, which is why Trojan populations survive for billions of years. The Earth–Moon ratio is about 81.3 — also above 24.96 — so the Earth–Moon L4 and L5 points are stable too, and faint concentrations of dust (the disputed Kordylewski clouds) may linger there. A hypothetical binary with a mass ratio below 24.96, however, would have unstable triangular points and could not hold Trojans at all.

Common misconceptions

  • "The three-body problem has no solution." It has no general closed-form solution; Sundman gave a convergent series in 1912, and numerical integration solves any specific case to any desired accuracy for a finite time.
  • "Chaos means randomness." The dynamics are perfectly deterministic. Chaos is exponential sensitivity to initial conditions, not the absence of rules.
  • "Newton solved it." Newton solved the two-body problem and only approximated the Sun–Earth–Moon system; he never claimed a general three-body solution.
  • "Lagrange points are just gravity balance points." They balance gravity plus the centrifugal term in the rotating frame; L1–L3 sit where those combine to zero and are unstable, not points of stable equilibrium.
  • "More bodies are always harder." Statistically true, but the many-body problem of a smooth galaxy or star cluster is often easier to model with statistical mechanics than a lone chaotic triple.
  • "The figure-eight is common in nature." It is a razor-thin set of initial conditions; no confirmed astronomical system follows it.

Frequently asked questions

Why is the three-body problem unsolvable?

It is not literally "unsolvable" — it has no general closed-form solution in elementary functions or elliptic integrals the way the two-body problem does. Poincaré showed in 1890 that the general three-body problem lacks enough independent analytic constants of motion (integrals) to be reduced by quadrature. Karl Sundman did find a convergent power-series solution in 1912, but it converges so slowly (billions of terms for any useful accuracy) that it is useless for prediction. So the practical answer is numerical integration, not a formula.

What is deterministic chaos in the three-body problem?

The equations are fully deterministic — Newton's law of gravity fixes the future exactly from the present. Yet the system shows sensitive dependence on initial conditions: two starting states differing by a microscopic amount diverge exponentially, with the separation growing like e^(λt) where λ is a positive Lyapunov exponent. Because we never know initial conditions perfectly, long-term prediction becomes impossible in practice even though the physics is exact. This is chaos, the same phenomenon Poincaré glimpsed and Lorenz rediscovered in 1963.

What is the restricted three-body problem?

It is a simplified version where one body has negligible mass (a test particle, like a spacecraft or asteroid) and does not perturb the two massive bodies, which orbit their common barycenter in fixed circular paths. This reduces the unknowns dramatically. In the rotating frame it has one conserved quantity, the Jacobi constant, which bounds the accessible region via zero-velocity curves. The circular restricted three-body problem is the workhorse of mission design — it gives the five Lagrange points and low-energy transfer orbits.

What are Lagrange points?

Lagrange points are the five equilibrium solutions of the restricted three-body problem — places where a small body can co-orbit with the two large ones, staying in a fixed configuration in the rotating frame. L1, L2, L3 are collinear (Euler's 1767 solutions) and are saddle-unstable. L4 and L5 sit at the vertices of equilateral triangles with the two masses (Lagrange's 1772 solutions) and are stable when the mass ratio exceeds about 24.96 to 1. The James Webb Space Telescope orbits Sun–Earth L2; Jupiter's Trojan asteroids cluster at Sun–Jupiter L4 and L5.

What is the figure-eight orbit?

The figure-eight is a remarkable periodic solution in which three equal masses chase each other around a single figure-eight-shaped path, taking turns at each position. It was found numerically by Cristopher Moore in 1993 and proved to exist rigorously by Alain Chenciner and Richard Montgomery in 2000. Unlike most three-body configurations it is stable to small perturbations, making it a rare island of order. Real astronomical examples are essentially nonexistent because the required initial conditions are extraordinarily precise.

Did Newton solve the three-body problem?

No. Newton solved the two-body problem exactly in the Principia (1687), reproducing Kepler's elliptical orbits from his inverse-square law. He recognized the three-body case — chiefly the Sun–Earth–Moon system — was far harder and reportedly said it "made his head ache." He treated it only with approximation (perturbation) methods. Euler, Lagrange, Laplace, Jacobi, Poincaré and others advanced it over the next two centuries, but a general exact solution was proven not to exist in the usual sense by Poincaré and Bruns.

Is the Solar System stable?

The Solar System is a many-body (N-body) system and is technically chaotic, with a Lyapunov time of roughly 5 to 10 million years — meaning positions become unpredictable on that timescale. Jacques Laskar's numerical simulations show a small (about 1 percent) probability that Mercury's orbit could become highly eccentric within 5 billion years, potentially destabilizing the inner planets. So the system is marginally stable over its lifetime but not guaranteed stable forever; exact long-term prediction is impossible for the same reason the three-body problem resists a closed-form answer.