🌀

Chaos Theory

Chaos theory explains why some perfectly deterministic systems — a pendulum, the weather, three coupled equations — become practically unpredictable over time, because tiny differences in starting conditions grow exponentially. This hub pulls together the site's strange-attractor, bifurcation and fractal-dynamics simulations into one guided starting point, from the simplest possible chaotic map to the mechanics behind the "butterfly effect".

14+ simulations Canvas 2D · Three.js · RK4 Integration

Simulations in this Topic

14 simulations across Chaos & Dynamics, Physics and Generative Art

📉 ★★★☆ Advanced
Logistic Map
The famous route to chaos: x -> rx(1-x) goes stable point -> period-2 -> period-4 -> chaos. Zoom into the self-similar Feigenbaum structure.
Chaos & Dynamics
🌿 ★★☆☆ Moderate
Bifurcation Diagram
The bifurcation diagram of the logistic map reveals the period-doubling cascade and onset of chaos — drag to zoom into any region.
Chaos & Dynamics
🌀 ★★★☆ Advanced
Double Pendulum
Launch multiple pendulums with tiny differences and watch them diverge exponentially — the textbook demonstration of chaos.
Chaos & Dynamics
🌀 ★★★★ Expert
Double Pendulum (3D, 120 trajectories)
Up to 120 pendulums simulated simultaneously with an RK4 integrator — chaos emerging from microscopic differences in starting angle.
Chaos & Dynamics
🦋 ★★★☆ Advanced
Lorenz Attractor
Up to 80 trajectories forming the iconic "butterfly wings" in 3D — adjust the σ, ρ, β parameters and watch chaos unfold.
Chaos & Dynamics
🌀 ★★★☆ Advanced
Rössler Attractor
A 3D chaotic spiral attractor with adjustable a, b, c parameters — a simpler cousin of Lorenz built for studying screw-type chaos.
Chaos & Dynamics
🔌 ★★★★ Expert
Chua's Circuit
The simplest electronic circuit proven chaotic — watch the double-scroll strange attractor emerge from three coupled ODEs.
Chaos & Dynamics
🔮 ★★☆☆ Moderate
Thomas Attractor
A symmetric dissipative strange attractor with cubic symmetry — a single parameter b sweeps from fixed points to full chaos.
Chaos & Dynamics
🌀 ★★★★ Expert
Triple Pendulum
Three pendulums in series push chaos further — launch 5 variants 0.0001 radian apart and watch them diverge within seconds.
Chaos & Dynamics
🧲 ★★★★ Expert
Magnetic Pendulum
A pendulum over magnets settles onto one of them — tiny changes in starting point paint a fractal basin of attraction.
Chaos & Dynamics
〰️ ★★★☆ Advanced
Van der Pol Oscillator
A nonlinear oscillator with phase portrait and time series — adjust damping to see sinusoidal motion turn into relaxation oscillations.
Chaos & Dynamics
🎱 ★★☆☆ Moderate
Billiards Physics
A full billiards table with elastic collisions — the geometric ancestor of chaotic billiard systems studied in dynamical systems theory.
Physics
🌀 ★★☆☆ Moderate
Mandelbrot Set Explorer
The boundary of the Mandelbrot set is where iterating a simple complex equation stops being predictable — infinite fractal detail at every zoom.
Generative Art
🔮 ★☆☆☆ Easy
Julia Set Fractal Explorer
Click the Mandelbrot set to choose parameter c, then explore the corresponding Julia fractal — chaos and order side by side.
Generative Art

Suggested Learning Path

Six simulations, in the order we recommend exploring them

  1. 1
    1. Logistic Map

    Start with the simplest possible chaotic system: one equation, one parameter, and a route to chaos you can watch unfold step by step.

  2. 2
    2. Bifurcation Diagram

    Zoom out from single trajectories to see every possible long-term behaviour of the logistic map at once, across all parameter values.

  3. 3
    3. Double Pendulum

    Move from an abstract map to a real mechanical system — a toy you could build on a desk that is still fundamentally unpredictable.

  4. 4
    4. Lorenz Attractor

    See where the term "butterfly effect" comes from: three coupled differential equations from a 1963 weather model that never repeat.

  5. 5
    5. Rössler Attractor

    Compare a second strange attractor to Lorenz — simpler equations, a single spiral-and-fold mechanism, same underlying chaos.

  6. 6
    6. Mandelbrot Set Explorer

    Finish in the complex plane: the same sensitive dependence on initial conditions, rendered as an infinitely detailed fractal boundary.

Related Articles

The theory and maths behind the simulations above

Chaos Theory and the Butterfly Effect
Sensitive dependence, the Lorenz attractor, Lyapunov exponents, fractal dimension, and why long-range prediction is impossible.
Bifurcation Diagrams: Period-Doubling, Feigenbaum and the Route to Chaos
Period-doubling cascade, the Feigenbaum constant δ ≈ 4.669, self-similarity and the Lyapunov exponent overlay.
Double Pendulum and Deterministic Chaos
Two coupled pendulums — the simplest system with unpredictable behaviour — via Lagrange equations and the RK4 method.
The Lorenz Attractor: How a Butterfly Changes the Weather
Sensitive dependence on initial conditions, strange attractors, Lyapunov exponents, and why forecasts stop at about 10 days.
Rössler Attractor: Spiral Chaos and Bifurcation
The three-dimensional ODE system, spiral versus screw chaos, the period-doubling route, and comparison with Lorenz.
IFS: Iterated Function Systems and Fractal Attractors
How Iterated Function Systems generate fractal attractors like the Barnsley fern through the chaos game and affine contractions.

About the Chaos Theory Topic

From the logistic map to strange attractors and fractals — a complete map of the topic

Chaos theory studies deterministic systems whose long-term behaviour is nevertheless practically unpredictable, because tiny differences in starting conditions grow exponentially over time. Every simulation on this hub is governed by an equation with no randomness in it at all — the same starting position, run twice, produces exactly the same result — yet in practice two starting positions that differ by less than a rounding error diverge completely within a short time. This is the mathematical heart of the popularised "butterfly effect", and this hub gathers every chaos, strange-attractor and fractal-dynamics simulation on mysimulator.uk into one guided starting point.

The clearest entry point is the logistic map, a single equation x → rx(1−x) originally used to model bounded population growth. As the parameter r increases, the long-term behaviour goes from a stable fixed point, through a cascade of period-doubling bifurcations (period 2, then 4, then 8...), and finally into full chaos — all visible at once on the bifurcation diagram, which plots every long-term value against every value of r. The ratio between successive period-doubling thresholds converges to the Feigenbaum constant δ ≈ 4.669, a universal number that shows up in unrelated chaotic systems far beyond population models, from dripping taps to certain electronic circuits.

The double pendulum and triple pendulum simulations make the same sensitivity mechanical and visible: launch several pendulums with starting angles that differ by a fraction of a degree, and within a few seconds their trajectories look completely unrelated, even though the underlying physics (Lagrangian mechanics, solved with an RK4 integrator) is exactly deterministic. The Lorenz attractor is the most famous continuous-time example — three coupled differential equations, derived in 1963 from a simplified model of atmospheric convection, whose trajectories never repeat and trace out the iconic "butterfly wings" shape in three dimensions. The Rössler attractor and Chua's circuit demonstrate that the same qualitative behaviour — a strange attractor with a positive Lyapunov exponent — can arise from much simpler equations, including a real electronic circuit built from off-the-shelf components.

Chaos and fractal geometry are two sides of the same coin: the boundary of a chaotic system's basin of attraction, or the set of parameters that produce bounded orbits, is typically an infinitely detailed fractal. The Mandelbrot and Julia set explorers show this directly in the complex plane — the boundary between points that escape to infinity and points that stay bounded under repeated iteration of a simple quadratic formula is self-similar at every scale you zoom into, mirroring the same sensitive dependence found in the pendulum and Lorenz systems.

Follow the learning path below for a suggested route from the simplest possible chaotic system to real mechanical and fractal examples, or browse the full grid and dive into whichever attractor or oscillator interests you most.

Every simulation on this hub genuinely integrates the underlying differential equation frame by frame with a numerical method such as RK4, rather than replaying a fixed recording — which is exactly why sensitivity to initial conditions is visible at all. Launch two double pendulums a fraction of a degree apart and the integrator computes two genuinely different trajectories step by step; the moment they visibly diverge is the moment the accumulated numerical difference has grown past the point where the two motions look related. The Lorenz and Rössler attractor simulations let you change σ, ρ, β or a, b, c directly and watch the qualitative shape of the attractor change — a small parameter shift can turn a single-loop limit cycle into a full double-scroll chaotic attractor, exactly as the bifurcation theory predicts. That live responsiveness is what separates an interactive chaos simulation from a static picture of the Lorenz butterfly: you are watching the mathematics compute its own unpredictability in real time, not looking at someone else's screenshot of it.

Chaos theory is not a purely academic curiosity — it is the reason weather forecasts are only reliable for a week or two no matter how much computing power is thrown at them, and the same mathematics of sensitive dependence shows up in cardiac arrhythmia, turbulent fluid flow, population dynamics, and the orbits of asteroids in certain resonances with Jupiter. Edward Lorenz discovered the effect that bears his name by accident, in 1961, while re-running a weather model from rounded intermediate output and getting a wildly different long-term forecast from a difference of one part in a thousand. Understanding chaos theory means understanding a hard limit on prediction that applies across an enormous range of real systems, not a quirk of any one equation — which is exactly why the same handful of ideas (sensitive dependence, strange attractors, bifurcation, fractal boundaries) recur across the very different-looking simulations gathered on this page.

Frequently Asked Questions

Common questions about chaos theory

What is chaos theory, in simple terms?
Chaos theory studies systems that follow completely deterministic rules — no randomness anywhere — but whose outcomes are practically unpredictable in the long run because tiny differences in starting conditions grow exponentially. It is not the same as randomness; it is sensitivity to initial conditions.
What is the butterfly effect?
The butterfly effect is the popular name for sensitive dependence on initial conditions, illustrated by Edward Lorenz's observation that a rounding difference as small as a butterfly flapping its wings could, in principle, change the long-term outcome of a weather simulation. It is why weather forecasts become unreliable beyond roughly 10 days no matter how good the model is.
Are chaotic systems truly random?
No. Every simulation in this hub is fully deterministic — the same starting conditions always produce the same trajectory. What looks like randomness is exponential sensitivity to tiny differences in starting conditions combined with the practical impossibility of specifying those conditions with infinite precision.
What is a strange attractor?
A strange attractor is the set of points a chaotic system's trajectory approaches and stays near forever, without ever repeating exactly or leaving the set. The Lorenz and Rössler attractors are the classic examples — bounded, infinitely detailed (fractal) structures that trajectories wind around without settling into any periodic cycle.

Other Topic Hubs

Every simulation in this hub runs entirely in your browser, with no installation required. Use each interactive model to experiment with parameters and initial conditions, then learn chaos theory online at your own pace by watching sensitive dependence unfold in real time.