An interactive introduction to chaos theory

The hidden order in the unpredictable

Every cloud of dots you see here was born in a speck one thousandth of a unit wide. They all obey exactly the same equations and yet, within seconds, they have spread across the whole space. This is chaos: deterministic rules that produce behavior impossible to predict in the long run.

Click the background to release a new cloud

01 · Introduction

Deterministic does not mean predictable

For centuries it was believed that if we knew the laws of a system and its present state, we could calculate its future as precisely as we liked. Chaos theory showed that this is not always true.

A chaotic system is a deterministic one—there is no randomness in its rules, and the same starting point always gives the same result—whose behavior is nonetheless unpredictable in practice. The reason is sensitive dependence on initial conditions: two almost identical starting states move apart exponentially fast. Since we can never measure the initial state with infinite precision, any small error keeps growing until it swamps the prediction.

But chaos is not pure disorder. Chaotic trajectories do not wander just anywhere: they stay confined to geometric structures of great beauty, the strange attractors, which have a fractal shape. There is order in chaos; what there isn’t is repetition.

Sensitivity to initial conditions

The famous butterfly effect: a tiny difference—the flap of a butterfly’s wings in Brazil—can end up changing the outcome—a tornado in Texas. The error does not grow little by little, but exponentially.

Strange attractors

The state of a system can be pictured as a point in phase space. In chaotic systems, trajectories converge on a set with fractal structure that is never traced the same way twice.

Stretching and folding

Chaos works the way a baker kneads dough: the dynamics stretch regions (pulling nearby points apart) and then fold them back onto themselves (keeping them bounded). Repeated forever, this mixes everything.

Nonlinearity

In a linear system, small causes have small effects and everything can be broken down into parts. Chaos needs nonlinearity—feedback—and, in continuous flows, at least three dimensions.

02 · The prediction horizon

How far into the future can we see?

The rate at which two neighboring trajectories move apart is measured by the Lyapunov exponent λ. If they start out differing by δ₀, after a time t the difference is approximately

δ(t) ≈ δ₀ · eλt

If λ > 0, the system is chaotic. The consequence is counterintuitive: better measurements buy us very little extra time, because the horizon grows only with the logarithm of the precision. Try it with the simplified model alongside, inspired by weather forecasting.

03 · A little history

From the planets to the butterfly

  1. 1890

    Henri Poincaré and the three bodies

    While studying the stability of the solar system, he discovers that the motion of three mutually attracting bodies can be so intricate that “small differences in the initial conditions produce very great ones in the final phenomena.”

  2. 1961–63

    Edward Lorenz and the weather

    When he reruns a weather simulation typing in 0.506 instead of 0.506127, the forecast diverges completely. He publishes “Deterministic Nonperiodic Flow,” the founding paper of modern chaos.

  3. 1971

    Ruelle and Takens: the “strange attractor”

    They propose that turbulence in fluids arises from strange attractors, and give the concept its name.

  4. 1975–76

    Li, Yorke and Robert May

    “Period Three Implies Chaos”: Li and Yorke give the field its name. May shows that an equation as simple as the logistic map, used to model populations, contains the entire repertoire of chaos.

  5. 1978

    Mitchell Feigenbaum and universality

    He discovers that period-doubling cascades always follow the same ratio, δ ≈ 4.6692…, whatever the system: a new universal constant of nature.

  6. 1980s

    Fractals and computers

    Benoît Mandelbrot popularizes fractal geometry, and computers make it possible, for the first time, to see strange attractors. Chaos reaches physics, biology, chemistry and economics.

05 · Chaos all around you

Where does chaos show up?

Weather

This is why reliable forecasts don’t reach beyond a week or two, and why weather services run ensembles of dozens of simulations with slightly different initial conditions.

The solar system

Planetary orbits are chaotic on timescales of millions of years: we cannot know for certain where the Earth will be 100 million years from now.

Ecology

Populations of insects, plankton or rodents show cycles and irregular fluctuations that the logistic map and its relatives help to explain.

Heart and brain

Some arrhythmias have been studied as transitions to chaotic dynamics; neural activity blends order and chaos in subtle ways.

Fluids and turbulence

The smoke from a candle, a river, the air behind an airplane: turbulence is one of the great unsolved problems of physics.

Technology

Chaotic circuits (such as Chua’s), lasers, pseudorandom number generation, cryptography and the control of unstable systems.

One important caveat: being irregular does not make something chaotic. Deterministic chaos is a precise concept—a positive Lyapunov exponent, a bounded attractor—and in many real systems (such as financial markets) it is hard to tell apart from pure noise.