Mathematics
Mandelbrot set: detail at every scale
The outline of the Mandelbrot set is easy to recognise. Look closer and its edge breaks into spirals, branching filaments and smaller versions of the whole shape, all drawn by repeating one short calculation. Follow them here, change the rule and see what happens.
Explore the fractals
Each explorer opens its own fractal, with presets and a guide to the rule behind it.
How a calculation becomes a picture
Start with the Mandelbrot view. Each point in the picture represents a complex number : its horizontal position gives x, and its vertical position gives y. For each point, begin with , square it, add c, and repeat:
The sequence of values is called an orbit. Some orbits stay within a fixed distance of zero; others grow without limit. The Mandelbrot set contains exactly the values of c whose orbits stay bounded forever. Its shape is a map of which choices of c have that property.
The colours around the set show how quickly orbits escape. Nearby points often escape at similar times, producing the ribbons of colour that trace the boundary. A new palette changes those colours and leaves the shape as it is.
What to look for at the edge
From a distance the boundary looks smooth. Move towards it and its curves separate into filaments. Follow a filament and you may find a spiral, a branching junction or a miniature Mandelbrot set. The same shapes recur, each in different surroundings.
Try Seahorse valley for tightly curled filaments, or Mini Mandelbrot to find a small version of the whole set. Aim near an edge: the middle of a solid region usually gives you much less to see.
Julia sets: keep the rule, change the question
In the Mandelbrot picture, each pixel supplies a different c and every orbit starts at zero. A Julia picture fixes c for the whole image and uses each pixel as the starting value instead:
Now the picture shows which starting points stay bounded under that one rule. Changing c can turn a connected shape into a scattering of separate pieces. The Mandelbrot set works as a guide to this family. For values of c inside it, the filled Julia set is connected (all one piece); for values outside it, the filled Julia set is disconnected.
Choose Julia in Controls and try the Rabbit and Dendrite presets. Then adjust the real or imaginary part of c a little at a time and watch how the shape changes.
Three variations on the rule
Multibrot replaces the square with a higher power. Raising z to the power d produces a shape with d − 1 matching lobes around its centre. Try powers 3 and 4, then follow an edge to see how their smaller structures differ.
Burning Ship takes the absolute value of both components of z before squaring. That fold turns the rounded Mandelbrot shapes into angular ones. Its explorer opens on the ship that gives the set its name, drawn upright with the imaginary axis pointing down.
Tricorn changes the sign of the imaginary component before squaring, using the complex conjugate of z. The result has three large lobes and its own folds and filaments.
Newton fractals: which root will you reach?
Newton’s method solves , finding the roots of a polynomial p. Start from a guess and use the polynomial and its derivative p′ (the rate at which p changes) to make a better one:
The Newton view runs this calculation from every pixel. Each root gets a colour, and the starting points that converge to it form its basin of attraction. Shading within each basin shows how many steps the calculation took.
Close to a root, nearby guesses usually reach the same answer. Near a basin boundary, a tiny change in the starting point can send the calculation towards a different root. Zoom into these boundaries and the colours keep interleaving at smaller and smaller scales.
Drag the root handles to reshape the basins, or enter a polynomial of degree 2 to 8, such as z^5 − 1. In the Cycle preset, some starting points never reach a root: they fall into a loop of values that repeats, and stay dark.
Getting the detail to show
A computer can only follow an orbit for a finite number of steps. In the escape-time views, a dark pixel means the orbit has not escaped within that limit. Some of those points belong to the set; others need more steps to escape. Increase Iterations near a boundary and watch whether dark patches turn into coloured detail.
Four settings decide how much detail you see and how soon:
- Iterations gives each orbit more time. Automatic iterations adjusts the limit as you explore; a manual increase can reveal points that escape unusually slowly.
- Display detail sets how many pixels the CPU renderer calculates for the preview. Native gives the finest display; lower settings finish sooner.
- Method chooses how each pixel is calculated: Direct iterates every pixel’s own orbit and reaches about 10¹²×; Perturbation follows one precise reference orbit and goes much further. Leave it on Automatic to switch as you zoom.
- Hardware chooses where the calculation runs. Automatic uses the graphics card (GPU) where it tested faster than the processor (CPU) on your device; CPU only never uses the GPU.
Deep views can take time to finish. After a move, a rough preview comes first and finer samples follow; the view details panel shows the progress.
How deep zoom works
At a deep enough zoom, two neighbouring pixels have coordinates that differ only after many decimal places. Ordinary computer arithmetic rounds them to the same value. Adding pixels does not help: the calculation needs numbers with more digits.
For every fractal here except Newton, the explorer uses perturbation rendering. It calculates one reference orbit to many digits, then follows how far each nearby orbit differs from it. For Mandelbrot, those differences obey:
Here Z is the reference orbit, δz is a pixel’s difference from it, and δc is the difference between the two positions. Tracking these differences means the slow high-precision calculation runs once, for the reference orbit, instead of at every pixel. Try it with the Deep tip and Deep spiral presets.
Exploring the picture
Scroll over a detail to zoom towards it, pinch on a touchscreen, or drag to move around. Double-click a point to centre it and zoom in. To follow a detail continuously, bring it to the centre and press Auto zoom.
With the picture focused, use the arrow keys to pan, plus and minus to zoom, Space to pause or resume Auto zoom, and R to reset. Close the coordinates and zoom panel with its × button; the Info button in the bottom bar brings it back.
Keep a view you like
Press Share view to copy a link that records the fractal, position, zoom and rendering settings, including the exact coordinates of deep views. The link opens paused so someone else can explore from the same place. Your address also updates as you move, and this browser remembers your settings for the next visit.
Choose Export image to render a picture without the controls. Screen, HD, 4K, 8K and 16K keep the current framing; the resolution sets the longest edge, with 16K giving 15,360 pixels. Export resolution is independent of Display detail.
PNG preserves the rendered pixel values. JPEG and WebP offer adjustable compression for smaller files. Large images take longer to render, with a progress indicator and a Cancel button. The download uses the view captured when you press Download.
A saved image contains a fixed amount of detail. To explore beyond it, return to the explorer, zoom into the area you want and render a new picture.
