Poincaré and the Three-Body Problem
In 1890 Henri Poincaré found that a simplified three-body system can amplify tiny differences in initial conditions into large differences later on. This toy planar model sends two nearly identical Sun–planet–moon starts and plots their separating trails while total energy stays bounded.
a = 1 AU · moon orbit 0.08 AU · two starts differ only by Δv = 0.0020 · moon separation now 0.898 AU
Drag the divergence slider and watch the two moon trails. At Δv = 0 they match; even a tiny change slowly pulls them apart, then dramatically. Total energy stays essentially constant on both runs, so the separation comes from the dynamics, not from numerical error. Drag the time slider back to see how long the two starts stay visually identical — the hallmark of sensitive dependence.
What you are seeing
Three bodies attract each other by gravity. One run starts with a tiny extra velocity on the moon; the other does not.
Both trails are integrated with the same equations and nearly the same starting state. Early on the paths look identical; later they separate dramatically.
Total energy is checked throughout. It stays essentially constant, so the divergence comes from the dynamics, not from the simulation blowing up.
Why it matters
Poincaré’s work founded the qualitative theory of dynamical systems and revealed deterministic chaos: systems governed by exact laws can still be unpredictable over long times. The same ideas now appear in weather forecasting, orbital mechanics, and climate modeling.
Complexity & details
Each step is O(1) for three bodies. The demo integrates a fixed number of steps with velocity Verlet, checking energy drift as it goes.
Frequently asked questions
Is this the butterfly effect?+
The underlying theme is the same, but the name is not. “Butterfly effect” was popularized by Edward Lorenz in the 1960s while studying weather. Poincaré’s 1890 result is an earlier, separate discovery of sensitive dependence on initial conditions.
Does chaos mean the system is random?+
No. The equations are fully deterministic and the model has no randomness. Chaos means that tiny uncertainties in the starting state grow, so long-term prediction becomes impractical even though each trajectory is fixed.