← Back to KerryTech

The Mandelbrot Set

One of mathematics' most beautiful examples of how an incredibly simple rule can produce seemingly infinite complexity.

Click to zoom in • Shift + click to zoom out • Drag to explore • Double-click to zoom
Centre — real -0.500000
Centre — imaginary 0.000000
Zoom level 1.00x

What is the Mandelbrot Set?

The Mandelbrot Set is a collection of points in the complex plane. Each point is tested by repeatedly applying a very simple mathematical rule.

zn+1 = zn2 + c

Start with z = 0. Pick a value of c. Then repeatedly calculate the next value of z. If the sequence remains bounded, that value of c belongs to the Mandelbrot Set. If the sequence escapes towards infinity, it does not.

z The current complex value in the iteration.
c The point being tested on the complex plane.
Iteration Repeatedly applying the same mathematical rule.

The Complex Plane

The Mandelbrot Set lives in the complex plane. Every point has two coordinates: a real component and an imaginary component.

c = a + bi

The horizontal axis represents the real number a, while the vertical axis represents the imaginary number b.

So every pixel in the image represents a different complex number being tested.

Why the Colours?

The familiar black region is the Mandelbrot Set itself. Points outside it eventually escape.

The colours indicate approximately how quickly each point escapes. A point that escapes very quickly receives a different colour from one that remains bounded for hundreds of iterations.

The boundary is where things become particularly interesting. Tiny changes in the starting value can produce dramatically different behaviour.

A Simple Rule. Extraordinary Complexity.

There is no complicated formula hidden behind the image. The core calculation is simply:

z → z2 + c

Yet repeatedly applying this rule creates an enormously intricate boundary. Zoom in and new structures appear: spirals, bulbs, tendrils and miniature copies of the overall structure.

This is one of the great themes of mathematics: complicated behaviour does not necessarily require complicated rules.

1 rule generates the entire structure
∞ detail near the boundary
2D complex plane
1965 Benoit Mandelbrot popularised the name

Escape Velocity

How do we decide whether a point escapes?

During the iteration we examine the magnitude of z. Once its magnitude becomes greater than 2, the sequence is guaranteed to escape.

|z| > 2

Computers can therefore test enormous numbers of points extremely quickly.

What Happens When We Zoom?

The most remarkable feature of the Mandelbrot Set is its boundary.

At normal scale it looks like a strange collection of bulbs and filaments. Zoom closer and increasingly elaborate structures appear.

The process can continue to extraordinary depths. The mathematics is deterministic, but the visual complexity can feel almost organic.

From Mandelbrot to Julia

The Mandelbrot Set is closely connected to another family of fractals known as Julia Sets.

Both use essentially the same iterative equation:

zn+1 = zn2 + c

The difference is subtle but important. In the Mandelbrot Set, we vary c and start the iteration at z = 0. For a Julia Set, c is fixed and we vary the starting value of z.

Every point in the Mandelbrot Set corresponds to a particular Julia Set. The Mandelbrot Set can therefore be thought of as a kind of map of the behaviour of the entire Julia Set family.

Fractals in the Real World

Fractals are mathematical structures in which patterns can repeat across different scales. Nature contains many structures with fractal-like characteristics.

Trees Branching structures repeat at different scales.
Coastlines Their apparent length changes with the scale at which they are measured.
Clouds Their irregular structures contain patterns across multiple scales.

Why This Matters

The Mandelbrot Set isn't merely a beautiful computer image. It is an illustration of several important mathematical ideas at once:

Complex numbers give us the mathematical space in which the system operates.

Iteration shows how repeatedly applying a simple rule can generate complicated behaviour.

Dynamical systems allow us to study how systems evolve over time.

Chaos and sensitivity show how small changes in initial conditions can have profound consequences.

And perhaps most importantly, it demonstrates something that appears repeatedly throughout mathematics: simple rules can create extraordinary complexity.