Mandelbrot set

What you see here

The black area with the winding edge is the Mandelbrot set. It is the set of all complex numbers c for which the sequence z(0) = 0, z(n+1) = z(n)² + c does not diverge to infinity. The closer you get to the edge, the more curls appear that resemble the whole shape, but are never exactly the same.

How the image is built

Each pixel is one number c. For it, the program repeats the formula z → z² + c up to 150 times. If the value never leaves the radius of 4 during these steps, the pixel is black. If it does leave, the color depends on the step at which that happened: fast escapes get one set of shades, slow ones get another.

Who came up with it

The set is named after Benoit Mandelbrot. In the late 1970s and early 1980s he worked at IBM and drew it by computer, when such images were still new. In his book The Fractal Geometry of Nature (1982) he showed that simple rules can produce shapes resembling mountains, clouds and coastlines. Later, Adrien Douady and John Hubbard proved that the set is connected, meaning it consists of a single piece.

Why it is useful

This fractal is often studied in math classes and in courses on complex analysis. Designers and artists take patterns from it for backgrounds, covers and visual effects. The best way to see it is to explore it yourself: pick a spot near the edge, zoom in with the mouse wheel and compare how the patterns change in neighboring areas.