Fun contents
Hidden order: The Mandelbrot set
The Mandelbrot set is an enormous, detailed picture made by repeating one small rule:
Watch the Mandelbrot set emerge from a simple repeated rule.
Watch it on YouTube.
The small number below , called a subscript, tells us which step we are on. The list of answers is called an orbit.
We choose a value for , begin with , and use each answer to calculate the next one.
Three choices for
Start with :
The orbit is
The answers grow and never return. We say that this orbit escapes, so is not in the Mandelbrot set.
If , every answer stays at 0:
If , the answers repeat:
These two orbits stay within a limited distance from 0. We call them bounded, so and are in the Mandelbrot set.
Turning the rule into a picture
So far, has been a point on an ordinary number line. To draw the Mandelbrot set, we allow to be a complex number.
A complex number has the form
The number gives a point’s left-right position. The number gives its up-down position. The symbol is a special number for which . Together, and let a complex number describe any point on a flat grid.
Every pixel in the Mandelbrot picture supplies a different value of . For each pixel, a computer performs the same test:
- Use the pixel’s position as .
- Begin with .
- Repeatedly calculate .
- Check whether the orbit escapes.
The notation means the distance of the current answer from the centre of the grid. For this rule, 2 is an escape boundary. Once becomes greater than 2, the orbit will keep running away.
Colouring escape time
If an orbit never escapes, its pixel belongs to the Mandelbrot set and is usually coloured black.
A computer cannot actually wait forever. Instead, it repeats the rule a large number of times. If the orbit still has not escaped, the computer treats that pixel as part of the set.
For a pixel that does escape, the computer records how many steps it took to pass 2. This is called the escape time. In the example, the distance first passes 2 at , so the escape time is 3.
The computer gives different colours to different escape times. A point that escapes quickly might receive one colour, while a point that takes hundreds of steps receives another. Repeating this test for every pixel creates the famous picture.
Points near the black boundary can behave very differently even when they are extremely close together. The coloured bands twist into detailed shapes, and smaller shapes resemble parts of the larger one. The boundary is a fractal: however far we zoom in, we continue to find new detail.
Mandelbrot sets and Julia sets
The Mandelbrot set and Julia sets use the same formula, but they change different parts of the experiment:
| Picture | What stays fixed? | What changes? |
|---|---|---|
| Mandelbrot set | The starting value is always | Each point supplies a different |
| Julia set | One value of is chosen and kept | Each point supplies a different starting value |
In both pictures, the interesting shape appears along the border between orbits that stay bounded and those that escape.
The fractals page creates shapes by repeatedly copying pieces. The Mandelbrot set creates its shape by testing escape, one point at a time.
What should you remember?
- Choose a point and begin with .
- Repeat .
- If the distance passes 2, the orbit escapes.
- Black pixels represent bounded orbits; other colours show escape times.
- Testing every point creates an endlessly detailed fractal boundary.