Skip to content
0 of 5 missions completed.

Chaos Theory Lab

Simulation Mode
Pendulum Parameters
Blue = primary pendulum | Red = copy with 0.1° difference

Chaos Theory Simulator — Lorenz & Double Pendulum

This chaos simulator demonstrates sensitive dependence on initial conditions across four classic systems. The double pendulum mode runs two RK4-integrated pendulums starting just 0.1° apart and shows their trajectories diverging exponentially — the butterfly effect made visible. Switch to the Lorenz Attractor for a 3D-projected trajectory, or explore the logistic map's bifurcation diagram for r ∈ [2.5, 4.0]. A phase-space portrait mode adds a θ₁ vs ω₁ inset alongside the pendulum.

What you can do in this simulation

  • Switch between Double Pendulum, Lorenz Attractor, Logistic Map, and Phase Space modes
  • Adjust the Lorenz ρ parameter (1–50) or gravity and damping for the pendulum
  • Watch two pendulums started 0.1° apart diverge exponentially in real time
  • Explore the full bifurcation diagram of the logistic map
  • Pause and resume the animation at any point

Concepts covered

butterfly effect · Lorenz attractor · logistic map · bifurcation · phase space · deterministic chaos

How chaos theory works

Chaos theory studies systems that are completely deterministic — governed by exact rules with no randomness — yet impossible to predict in the long run. The reason is sensitive dependence on initial conditions: two starting states that differ by a vanishingly small amount diverge exponentially fast, until their futures share nothing in common. This is the 'butterfly effect,' the idea that a tiny cause can grow into a wildly different outcome.

Crucially, chaotic does not mean random. Every run of a chaotic system follows its rules precisely, and identical starting conditions always give identical results. The catch is that you can never specify those starting conditions with infinite precision, and chaos amplifies whatever error remains. That is why the double pendulum in this simulator, run as two copies started just 0.1° apart, tracks together for a moment and then peels apart completely.

Experiments to try in this simulation

1. The butterfly effect: run double-pendulum mode and watch the two near-identical pendulums. For a few seconds they move as one; then a microscopic difference explodes into totally different motion.

2. Onset of chaos: open the logistic map and sweep the growth parameter r upward. Below about 3.0 the population settles to one value; then it splits to two, then four, and past r ≈ 3.57 it dissolves into chaos. This period-doubling road to chaos is one of the most famous pictures in mathematics.

3. The Lorenz attractor: switch to Lorenz mode and adjust ρ. The trajectory never repeats and never settles, yet it stays trapped forever on a butterfly-shaped surface — a 'strange attractor,' order and disorder at once.

4. Phase space: turn on the phase-space portrait to see the pendulum's motion as a path in θ–ω space rather than as position over time.

Why chaos matters

Chaos was discovered by accident in 1961, when meteorologist Edward Lorenz re-ran a weather model from rounded-off numbers and got a completely different forecast. That accident revealed why weather is unpredictable beyond about two weeks: the atmosphere is a chaotic system, and no measurement is precise enough to tame it.

A key idea is that chaos lives on the boundary between order and randomness. A chaotic system is bounded and structured — the Lorenz attractor always keeps its shape — yet never repeats. That blend of structure and unpredictability is what makes chaos both beautiful and genuinely useful to study.

Real-world applications

Chaotic dynamics appear across science and engineering: weather and climate, turbulent fluid flow, population booms and crashes in ecology, cardiac arrhythmias, and the long-term motion of the planets. Understanding chaos tells us where prediction is possible and where it is not — a forecast, a market model, or an orbit each has a horizon beyond which tiny uncertainties take over. The same sensitivity is even harnessed deliberately, in chaos-based secure communication and in high-quality random-number generation.

Related simulations

Browse all Physics simulations →

Related reading

Free to use in your browser — no signup required. Found a bug or have an idea to make it better? Tell us.

Finished experimenting?

Save one completion to this browser's signed guest ledger, or directly to your account when signed in.