3-Body Problem Simulator

Chaos and gravitational dance of celestial bodies

MM POP SCIENCE
Simulator
SYSTEM TELEMETRY
Kinetic: 0.00 J
Potential: 0.00 J
Total Energy: 0.00 J
Barycenter: 0.0, 0.0

Simulation

Time Warp
1x

Physics

Gravity ($G$)
1.00
Time Step ($dt$)
0.020
Softening ($\epsilon$)
0.15

Presets

Visuals

Trail Length
800

Selected Object

Click a body to edit its mass and velocity.

Actions

URL copied!

The Science of Chaos: The 3-Body Problem

1. From Order to Chaos

When you have two objects in space (like the Earth and the Moon), gravity is predictable. We can calculate their positions perfectly for millions of years. However, as soon as you add a third body, the math becomes "insolvable" in a general sense. There is no simple formula that can predict the motion of three objects over long periods of time. This is one of the most famous problems in physics.

2. The Butterfly Effect

The 3-Body Problem is a classic example of Deterministic Chaos. If you change the starting position of just one planet by even a single millimeter, the entire system might look completely different a few orbits later. This is why we use "numerical integration" (calculating the motion in tiny steps, like frames in a movie) to simulate it, rather than using one big equation.

3. Is it Always Chaotic?

Not always! Mathematicians have found special "periodic" solutions where three bodies can orbit each other in stable, beautiful patterns. The most famous is the Figure-8 solution, where three equal masses follow each other around a single loop. In this simulation, you can try the Figure-8 preset to see this rare instance of perfect cosmic choreography.

4. Real-World Applications

While most star systems are binaries (two stars), we do find triple star systems in our galaxy. Understanding these orbits is crucial for finding out if planets in those systems could stay in a "habitable zone" long enough for life to evolve, or if they would be flung out into the cold darkness of interstellar space by gravitational chaos.