CRACKL’N BROOK · EXPERIMENT 07 · THREE BODY

Then a third body arrived.

Two bodies trace a dependable dance. Invite a third, and every turn changes the next conversation. Change a mass, move a starting point, and watch one simple law become a much harder prediction.

Two-body clockwork

2 bodies · G = 1

Start the binary, then invite the third body. Every body responds to gravity.

Reference worldt = 0.00
The body positions and diagnostic values are available in the controls and readouts.

A common center-of-mass frame. Bodies are drawn larger for visibility; their displayed size is not a collision radius.

Time & traces

On by default for the distant companion. Playback and trail memory remain bounded; the actual equations keep evolving until you pause or a numerical close-encounter safeguard stops the run. A long run is not proof of permanent stability.

Playback speed changes how fast you watch. The integrator chooses its own small steps.

Look closer

Compared worlds always share one scale and orientation. Click a body to select it.

A controlled difference

The nearby world gets this one change at launch. Changing it restarts both worlds.

Shared simulation time0.00of 12.57 units
Closest pair now2.000Reference world · length units
Scaled energy drift0(E − E₀) / (K₀ + |U₀|)
Nearby-world separation—RMS position difference / initial size

One law. Add the arrows.

Every pair obeys the same inverse-square law. Select a body and turn on the arrows: each colored arrow is one neighbor’s contribution to its acceleration. White is their vector sum.

aᵢ = G ∑j ≠ i mⱼ (rⱼ − rᵢ) / |rⱼ − rᵢ|³

The numerator is a vector whose length supplies one power of distance. Each contribution’s magnitude is therefore Gm/r².

Arrows share a scale within each diagram; that scale adjusts as the accelerations change. Their lengths are not velocities.

What the third body changes

C pulls both A and B. The part that changes their separation is the difference between those pulls. Compare the close encounter with the distant-companion preset.

η = |aB ← C − aA ← C|
÷ [G(mA + mB) / dAB²]

η is an instantaneous tidal perturbation ratio. It is not a boundary between stable and chaotic motion.

A question to carry into the experiment

Make a prediction, then revise it whenever you like.

Why the third body makes it harder

For an isolated pair, separate the motion of its center of mass from the separation vector r = rB − rA. The internal motion becomes one central-force problem:

r̈ = −G(mA + mB) r / |r|³

Its conserved energy and angular momentum constrain the orbit. For a circular binary of separation d, ω² = G(mA + mB)/d³. In the default binary, each mass is 1, d = 2, each speed is 0.5, and the period is 4π time units.

Add C and subtract A’s acceleration from B’s again:

r̈ = −G(mA + mB) r / |r|³ + ΔaC
ΔaC = GmC [(rC − rB)/rBC³ − (rC − rA)/rAC³]

That extra term depends on two changing separations, and C’s own path responds to A and B. A general triple no longer reduces to one fixed Kepler orbit. The program advances the coupled equations numerically.

If C gave A and B exactly the same acceleration, that shared part would cancel from their relative-motion equation. The pair’s center of mass could still accelerate. Measurement engineers use a related subtraction idea to reject a signal shared by two measurements; here the subtraction exposes the internal gravitational disturbance.

A challenge: place C far from a compact binary, then double that distance at the same orientation. Its bulk pull falls approximately by a factor of four, while its differential pull falls approximately by a factor of eight. The inverse-cube approximation applies when C is much farther away than the binary’s size. The app always evaluates the full expression.

Sensitivity, determinism & the figure-eight surprise

In comparison mode, the nearby world begins with one body’s x position shifted slightly. Both worlds then follow the same deterministic equations. The two cameras share their scale and orientation. The separation graph removes each system’s whole-body translation, compares matching body labels, and normalizes by the reference system’s initial mass-weighted RMS radius.

d(t) = √[∑ mᵢ |(rᵢ − Rcm) − (r′ᵢ − R′cm)|² / M] / R₀

The nudge setting is a coordinate change in length units; it is not the graph’s initial normalized separation. A logarithmic vertical axis lets small and large differences fit on the same graph. Labels use scientific notation: 1e-3 means 10⁻³, or 0.001. Exact zeros lie below the plotted floor. Displayed numerical values are rounded.

Growing separation can include orbital phase drift and sensitive scattering. This short experiment does not measure a Lyapunov exponent or prove that every displayed trajectory is chaotic. Set the nudge to zero: identical starts and numerical settings should remain identical.

Three bodies can also make a remarkably orderly dance. The figure-eight preset approximates the published equal-mass choreography, in which all three bodies follow the same curve, separated by one-third of a period. It uses rounded initial conditions from Chenciner and Montgomery’s paper, with period about 6.325914 in these units. This order belongs to a special solution; arbitrary edits need not preserve it.

The distant-companion preset starts from approximate nested circular orbits. Its continuous viewing option has no preset endpoint, but does not certify long-term or indefinite stability. Its integrator and close-encounter safeguards remain active throughout.

Check the calculation

For isolated Newtonian point masses, total energy, total linear momentum and total angular momentum are conserved. Individual bodies and pairs can exchange them. The display monitors the reference calculation:

E = ½ ∑ mᵢ |vᵢ|² − G ∑i < j mᵢmⱼ/rᵢⱼ
Lz = ∑ mᵢ(xᵢvy,i − yᵢvx,i)
P = ∑ mᵢvᵢ
Total energy EChange in angular momentum ΔLzChange in total momentum |ΔP|Center-of-mass trajectory errorSmallest resolved separation so farAccepted integration steps

Energy drift is divided by K₀ + |U₀| rather than E₀, so an initial energy near zero does not make the normalization misleading. Small energy drift alone cannot establish accurate positions.

Comparison mode therefore runs a third calculation in the background with the reference world’s identical starting state and a tighter numerical tolerance. Its positional disagreement is the violet curve. This checks sensitivity to numerical settings over the displayed interval; it is not a rigorous error bound or an unlimited prediction guarantee.

The integrator uses adaptive Dormand–Prince 5(4) steps. It reduces the step around close encounters, checks intermediate stages, and compares all runs at common output times. The calculations are bounded per animation frame. If a separation approaches 0.005 length units, or the required step falls below the numerical limit, the experiment stops before the singularity and keeps the last shared comparison visible.

Units, assumptions & sources

This is ordinary Newtonian inverse-square gravity in three-dimensional space, with positions and velocities confined to one plane. Every included mass is positive and reacts to all the others. There is no fixed central mass, force softening, collision merger or random force. Drawn body sizes are for visibility.

Choose a length scale L₀ and mass scale M₀. The corresponding time unit is T₀ = √[L₀³/(G M₀)]; in the app’s dimensionless units G = 1. These examples are mathematical systems, not ephemerides for named stars or planets. Relativistic effects, tides within extended bodies and gravitational radiation are outside this model.

Inviting C starts a new trial with C present from the beginning. It does not insert mass into a running isolated system. Editing masses, launch conditions, the nudge or precision also starts a fresh trial. Changing playback speed, trail length or the camera changes only the presentation.

Reduced-motion preferences replace continuous Play with short inspectable steps. Playback holds its simulation time when the page or embed is hidden. All code runs inside this page; there are no runtime downloads or telemetry.

The binary–single arrival is a custom illustrative setup. The visual questions and acceleration microscope are teaching-design choices; their educational effectiveness has not been measured.