Chaos Theory Lab

An interactive, animated chaos playground: the logistic map and its cobweb, the period-doubling bifurcation diagram, the Lorenz attractor, a gallery of strange attractors (Rössler, Aizawa, Halvorsen, Thomas, Hénon, Clifford, De Jong), the butterfly effect (sensitive dependence + Lyapunov exponent), and the Mandelbrot & Julia sets — all rendered live in your browser.

Visualizer Numbers & Math Updated Jun 22, 2026
How to Use
  1. Pick a mode along the top — <strong>Logistic map</strong>, <strong>Bifurcation</strong>, <strong>Lorenz</strong>, <strong>Strange attractors</strong>, <strong>Butterfly effect</strong>, <strong>Mandelbrot</strong> or <strong>Julia</strong>.
  2. Drag the <strong>sliders</strong> that appear below the canvas to change the parameters (the growth rate r, the Lorenz σ/ρ/β, the Julia constant c, iteration depth…) and watch the picture respond instantly.
  3. The animated modes (Lorenz and the strange attractors) draw themselves live — use <strong>Pause</strong> / <strong>Reset</strong> to freeze or restart them.
  4. In <strong>Mandelbrot</strong>, click anywhere to send that point to <strong>Julia</strong> — the two are deeply linked. Slide r past 3.57 in the logistic map to watch order tip into chaos.
  5. Everything runs on your device with the HTML canvas — nothing is uploaded, and you can right-click any view to save the image.

The maths behind it

Logistic map
xn+1 = r·xn·(1 − xn)
Onset of chaos
period-doubling → chaos at r ≈ 3.5699
Feigenbaum constant
δ ≈ 4.6692 — ratio of successive splits
Lorenz system
ẋ=σ(y−x), ẏ=x(ρ−z)−y, ż=xy−βz
Lyapunov exponent
λ = ⟨ln|f′(x)|⟩ > 0 ⟺ chaos (=ln2 at r=4)
Mandelbrot / Julia
z → z² + c, escape when |z| > 2
Rössler attractor
ẋ=−y−z, ẏ=x+ay, ż=b+z(x−c)
Hénon map
x′=1−ax²+y, y′=bx

About the Chaos Theory Lab

The Chaos Theory Lab is a free tool for everyday maths and number work. It runs right in your web browser, so there is nothing to download. An interactive, animated chaos playground: the logistic map and its cobweb, the period-doubling bifurcation diagram, the Lorenz attractor, a gallery of strange attractors (Rössler, Aizawa, Halvorsen, Thomas, Hénon, Clifford, De Jong), the butterfly effect (sensitive dependence + Lyapunov exponent), and the Mandelbrot & Julia sets — all rendered live in your browser.

How it works

Enter what you have and read the result as it updates live. It all runs on your own device, so it is quick and private, with nothing to install.

Want the deeper story? The Knowledge Base explains the ideas behind the tools in more detail.

Frequently Asked Questions

What is chaos, mathematically?

A system is <strong>chaotic</strong> when it's deterministic (no randomness — the same input always gives the same output) yet shows <strong>sensitive dependence on initial conditions</strong>: two starts that differ by a billionth eventually diverge completely. That's the butterfly effect. Chaos also tends to be bounded and to settle onto a <strong>strange attractor</strong> — an intricate fractal shape the trajectory never exactly repeats.

What is the logistic map and the bifurcation diagram?

The logistic map is the deceptively simple equation <strong>x<sub>n+1</sub> = r·x<sub>n</sub>·(1 − x<sub>n</sub>)</strong>, a toy model of population growth. As you raise <strong>r</strong>, the long-term behaviour doubles from a steady value to a 2-cycle, 4-cycle, 8-cycle… and at r ≈ 3.5699 it becomes chaotic. The <strong>bifurcation diagram</strong> plots those final values against r, revealing the famous period-doubling tree and the Feigenbaum constant (≈ 4.669).

What is the Lorenz attractor?

It's the butterfly-shaped solution of Edward Lorenz's 1963 weather model — three coupled equations (dx/dt = σ(y−x), dy/dt = x(ρ−z)−y, dz/dt = xy−βz). With σ=10, ρ=28, β=8/3 the trajectory loops forever around two wings without ever crossing itself or repeating. It was the discovery that launched chaos theory, and it's why long-range weather forecasting is fundamentally limited.

What is a Lyapunov exponent?

It measures how fast nearby trajectories pull apart. A <strong>positive</strong> Lyapunov exponent is the signature of chaos. For the logistic map at r = 4 it equals exactly ln 2 ≈ 0.693, meaning the distance between two nearby points roughly doubles each step — so even tiny measurement error makes long-term prediction impossible. The Butterfly-effect mode estimates it live.

How are the Mandelbrot and Julia sets related to chaos?

Both come from iterating <strong>z → z² + c</strong> in the complex plane. The <strong>Mandelbrot set</strong> is the map of which c values stay bounded; each point of it corresponds to a whole <strong>Julia set</strong>. Their fractal boundaries are where order meets chaos — and the real axis of the Mandelbrot set is literally the logistic map's bifurcation diagram in disguise. For deep zooming there's also the dedicated <a href="https://utilitiesbunker.com/tools/fractal-explorer">Fractal Explorer</a>.

Does any of this run on a server?

No. Every iteration, integration and pixel is computed in your browser with plain JavaScript and the canvas API. It works offline and nothing you do is uploaded.

How do I use the Chaos Theory Lab?

Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.

Is it free? Does it work without internet?

Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.

Where does my data go?

Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.

Common Use Cases

Learn chaos & dynamics

See period-doubling, attractors and the butterfly effect, not just read about them.

Teaching & demos

A live, projector-friendly visual for a maths or physics class.

Generative art

Strange attractors and Julia sets make striking images to save.

Intuition for sensitivity

Watch two near-identical starts diverge — why forecasts have horizons.

Explore the logistic map

Dial r through the route to chaos and read the Lyapunov exponent.

Fractal exploration

Map the Mandelbrot set and spin off Julia sets from any point.

Last updated: