Iris
← back to lab
Bodies: 0
KE: 0.00
PE: 0.00
Total: 0.00
Placement mass: 50
Click to place a body · Drag to set velocity · Scroll to adjust mass
Preset:
Simulation Speed 1.0x
Gravitational Constant 500
Softening 20
Trail Length 200

The N-body problem

Newton solved the two-body problem completely: two masses orbiting their common center of mass trace eternal ellipses. But add a third body and the system becomes chaotic — no general closed-form solution exists. Henri Poincaré proved this in 1889, launching the modern study of dynamical systems.

This simulation uses Velocity Verlet integration with softened gravity (F = Gm₁m₂ / (r² + ε²)) to prevent singularities when bodies pass close together. The energy tracker shows how well conservation holds — numerical integration always drifts, but symplectic integrators like Verlet keep the drift bounded.