About this explorer

What you're looking at

Strange attractors

Take a point (x, y), push it through a fixed rule to get a new point, and repeat. Each family here is one such rule, a map of the plane to itself with four knobs a, b, c, d. After a short transient, the orbit forgets where it started and settles onto an attractor: the set of places it keeps returning to.

For many settings the attractor is dull: a single fixed point, or a cycle hopping between a few points, or a smooth closed loop. For others the orbit never repeats and never settles, yet stays confined to an intricate, filamentary shape. That is a strange attractor. It has fractal structure (zoom in and the filaments split into finer filaments) and the motion on it is chaotic.

The picture is a long-exposure photograph of one orbit. Each pixel counts how many of tens of millions of iterates landed in it. Bright regions are where the orbit spends most of its time, and faint veils are places it visits only rarely. The colour shows the attractor's invariant measure, not just its shape.

Lyapunov exponents: measuring chaos

Chaos means sensitive dependence on initial conditions. Start two orbits a hair's breadth apart and the gap between them grows exponentially, roughly as δn ≈ δ0 eλn. The rate λ is the largest Lyapunov exponent:

It is computed by carrying a small displacement along with the orbit. Each step multiplies it by the map's Jacobian matrix J(x, y) of partial derivatives. The average of log |Jv| over many steps is λ. The vector is renormalised to unit length every step so it never overflows. It soon lines up with the most-stretched direction, whatever it started as.

The map: a Mandelbrot set for chaos

The Lyapunov map plays the role the Mandelbrot set plays for Julia sets. Two of the four parameters become the axes, the other two are held fixed, and every pixel is a complete system. Its colour is that system's λ: bright where it is chaotic, dim and dark where it settles to order, and muted red where the orbit escapes to infinity. The gap between the two colour ramps traces the edge of chaos, where λ crosses zero.

The chaotic regions are riddled with small dark islands, called periodic windows, where order briefly returns. Like minibrots, they keep appearing as you zoom. Hover to preview the attractor at any point, and right-click or press J to open it. On an open attractor the sliders change all four parameters, so you can watch it morph, tear and collapse into a cycle as you cross a window.

The families

Familyx′y′
Clifford (Clifford Pickover)sin(a y) + c cos(a x)sin(b x) + d cos(b y)
Peter de Jongsin(a y) − cos(b x)sin(c x) − cos(d y)
Svensson (Johnny Svensson)d sin(a x) − sin(b y)c cos(a x) + cos(b y)
Fractal Dreamsin(b y) + c sin(b x)sin(a x) + d sin(a y)
Tinkerbellx² − y² + a x + b y2 x y + c x + d y

The trigonometric families can never escape, because sines and cosines are bounded, so every pixel of their maps is either orderly or chaotic. Tinkerbell is a polynomial, and most of its parameter plane sends the orbit to infinity. Its attractors live on small islands in a sea of red.

Lyapunov fractals

The last family is a different kind of picture, discovered by Mario Markus in the late 1980s. Take the logistic map x ← r x (1 − x), the textbook route to chaos, but let the growth rate r alternate between two values a and b according to a fixed sequence such as AB or BBBBBBAAAAAA. Each pixel is one (a, b) pair, coloured by the exponent of the resulting orbit.

Here the convention is reversed: the stable (λ < 0) regions get the bright ramp, and chaos is dark. The bright, smooth "swallowtails" are pockets of order, and the brightest lines inside them are superstable orbits, where λ dives towards −∞. Values of r above 4 throw the orbit out of [0, 1] and off to infinity (red).

Drawing a density

Visit counts span a huge range: a few pixels in the dense core collect millions of hits while the outer veils get one or two. A linear scale would show only the core. Each pixel is coloured by

t = ( log(1 + count) / log(1 + max count) )γ

which shows both the core and the veils. Faint detail sets γ (shown as 1/γ): raising it lifts the rarely visited regions. The palettes are sequential and run from the background to the brightest colour, so empty space stays empty.

Rendering is progressive. A coarse pass with a few hundred thousand points appears almost at once, then passes with more points sharpen the image from grain to silk. While you drag a slider only the coarse pass runs, so the attractor morphs at interactive speed. Zooming in automatically spends more points (up to 10×), because most of the orbit then falls outside the view.

How it's computed

Can we trust a picture of chaos?

A fair worry: if rounding errors grow like eλn, then after a few dozen steps the computed orbit has nothing to do with the true orbit from that starting point. Every image here is built from orbits that are "wrong" in that sense.

The rescue is the shadowing lemma. For a large class of chaotic systems, a computed orbit with small errors at every step stays close to some true orbit, just one that started from a slightly different point. The picture is the attractor's real shape and density, sampled along a genuine orbit that we didn't choose. What can't be trusted is the claim that a particular dot came from a particular starting point after 108 steps.

Two more caveats. Some parameters have more than one attractor. Which one you see depends on where the orbits start, and the threads may split between them. Near the edge of chaos the transient can be extremely long, so an orbit that is classed as periodic may be "transiently chaotic", or the reverse. The map's estimate of λ uses a few hundred steps per pixel, which is why it looks speckled where λ is close to zero. Raising map iterations cleans it up.