The Mandelbrot Set
The Mandelbrot set is arguably the most famous object in fractal geometry. It lives in the complex plane and is defined by an astonishingly simple rule, yet it produces a boundary of infinite complexity that reveals new structure at every scale.
Definition
Pick any complex number . Starting from , repeatedly apply the map:
If the sequence remains bounded (never diverges to infinity), then belongs to the Mandelbrot set. If it escapes to infinity, is outside the set.
That is the entire definition. The striking images come from colouring each point according to how quickly its orbit escapes.
The Escape-Time Algorithm
In practice we cannot iterate forever, so we choose a maximum iteration count and a bailout radius. A standard result shows that once the orbit is guaranteed to escape. The algorithm for each pixel is:
- Map the pixel to a complex number .
- Iterate starting from .
- If before the maximum iteration count, record the iteration number and stop.
- If we reach the maximum count without escaping, colour the pixel black -- it is (likely) in the set.
The iteration count at escape determines the colour. A smooth colouring technique interpolates between integer counts to remove the banding artefacts that appear with a raw count.
Self-Similarity and Fractal Dimension
Zooming into the boundary of the Mandelbrot set reveals miniature copies of the full set attached by thin filaments, surrounded by spirals, seahorse tails, and other elaborate structures. This self-similarity is not exact (unlike a Sierpinski triangle) but is present at every magnification. The boundary has a Hausdorff dimension of 2 -- it is so convoluted that it is as complex as an area, despite being a curve.
Connection to Julia Sets
Each point in the complex plane has an associated Julia set, defined by iterating the same map but varying the starting point instead of . The Mandelbrot set acts as an index: if is inside the Mandelbrot set, the corresponding Julia set is a connected fractal; if is outside, the Julia set shatters into a Cantor-like dust.
Click anywhere to zoom in (2x). Shift+click or right-click to zoom out.
Things to Try
- The Seahorse Valley -- Zoom into the region near , . You will find spiralling arms resembling seahorse tails, with miniature copies of the full set nested within.
- The Elephant Valley -- Look at , . The structures here fan out like elephant trunks.
- The Antenna -- Zoom into the thin spike extending leftward from the main cardioid, near . This region contains delicate branching filaments with tiny Mandelbrot copies at their junctions.
- Increase max iterations -- As you zoom deeper, structures that appeared to be in the set will reveal escape behaviour at higher iteration counts. Push the slider up to resolve fine detail.
- The main cardioid boundary -- Slowly zoom along the edge of the large heart-shaped region. Every point on this boundary is a gateway to a different spiral motif.
Performance note -- The computation runs on the main thread, so deep zooms at high iteration counts may briefly freeze the interface. Lowering max iterations will keep things responsive while exploring.