Complex dynamics

One formula, infinitely many shapes

zn+1 = zn2 + cz and c are complex numbers

Fix a complex number c. For each starting point z₀, apply the rule again and again. If the values stay bounded, the point belongs to the filled Julia set of c. Once |z| exceeds 2 the orbit is guaranteed to escape, which is what makes the computation practical. Colours outside the set show how fast each point escapes.

Gaston Julia and Pierre Fatou studied these sets around 1918, with no way to draw them. The Mandelbrot set is the catalogue of all of them: c is in it exactly when the orbit of z₀ = 0 stays bounded. A theorem of Julia and Fatou then says the Julia set is one connected piece when c is inside the Mandelbrot set, and scattered dust when it is outside.

Drag across the small map to choose c, and watch the Julia set change.

…