THREE BODIES · INTERACTIVE

Three bodies, by hand

Five small experiments to go with the teaching clips. Three stars of equal mass pull on one another by gravity; you choose the start and watch what happens.

This simulation is an illustration; the proof is the certificate and its written recipe.

How it is computed: the page integrates Newton's equations in your browser with an adaptive Dormand–Prince 5(4) Runge–Kutta method (tolerance 1e-12, double precision). Starting values are the midpoints of the certified boxes. This page is not rigorous: it rounds at every step, like any ordinary simulation.

1 · PERIODIC ORBIT

What a periodic orbit is

From these starting points, after a time T all three stars are back where they began, moving as they began. The faint rings mark the start. Watch the clip.

Try a nudge: press on a star and drag, then let go (a longer drag is a bigger nudge, up to a small cap). The star's velocity changes a little and the page integrates Newton's equations from there (centre of mass and spin held fixed), drawing the new path over the faint loop. From the keyboard: focus the picture, press 1, 2 or 3 to pick a star, use an arrow key to nudge it, R to reset.

2 · CERTIFICATE

What a certificate is

Every orbit in the table starts with three stars in a line, the outer two moving with the same velocity (vx, vy), the middle one with −2 (vx, vy). A certificate gives each number as a bracket, a lower and an upper bound, and a standard test (Krawczyk's) proves that a true periodic orbit starts inside the box, the only solution of the test equations in a larger box around it. Watch the clip.

White: digits on which both bounds agree. Green: where the lower and upper bounds differ.

Try a start

Type a start and run it for one period. A small return gap means the start is near a periodic orbit; it does not prove that one is there. The certificate does that.

3 · LINEAR STABILITY

Stable and unstable

Run an orbit beside a copy nudged a little (same energy, no spin, centre of mass fixed). After each trip, compare the shapes of the two triangles. The verdict shown is the certificate's, not this page's. Watch the clip.

gap between the copy and the orbitthe computer's own drift (orbit against its start)dashed: size of the nudge

When the grey line reaches the nudge, rounding in the computer is as large as the nudge itself, and the picture no longer tells the two apart. Yin-yang II has very close passes, so this happens for nudges below about 1e-5.

4 · KAM TORI

KAM tori around moth I

Start near moth I and follow the motion once around; where it comes back to a fixed slice (three stars in a line, the middle one crossing), mark a dot. The slice is four-dimensional, so there are two views, one for each way of turning. Dots of one start line up on closed curves, which is what slices of invariant tori look like. Under the KAM theorem, with its four premises (listed in the check guide), such tori exist arbitrarily close to moth I. In four dimensions they do not wall anything in: between them, motion can still slowly wander. The distances you choose here are for the picture; the theorem gives no size. Watch the clip.

The two views are the normal-mode coordinates of the return map's linear part, found numerically for this slice (each trip turns view 1 by about 57° and view 2 by about 177°; the certificate's eigenvalues give the same angles). Larger sizes leave the region where the dots stay on clean curves.

5 · SENSITIVE DEPENDENCE

Sensitive dependence

Two starts that differ only far down in vx. For many trips they move as one; then they part. Poincaré met this in his corrected prize memoir of 1890; it is where the study of chaos took root. Watch the clip.

Rounding in the computer is a tiny nudge too: past about the 13th place it is as large as the change you made. That is why each certificate brackets every number instead.