Mandelbrot Set Explorer
Zoom infinitely into the most famous fractal in mathematics
What is the Mandelbrot Set?
The Mandelbrot set is defined by iterating the equation zn+1 = zn² + c in the complex plane, starting from z0 = 0. Points where the iteration stays bounded (|z| ≤ 2) are in the set and coloured black. Points that escape to infinity are coloured by how many iterations it takes before |z| exceeds 2 — the escape-time algorithm that generates the stunning gradient patterns you see at the boundary.
The set was discovered by Benoit Mandelbrot at IBM in 1980, when he first visualised it using the company's computers. Despite being generated by one of the simplest possible equations, the Mandelbrot set contains infinitely complex structure. No matter how deep you zoom, you will discover new spirals, tendrils, and miniature copies of the whole set.
The Mathematics of Complex Numbers
Every pixel on the canvas maps to a complex number c = a + bi, where a is the real part (horizontal axis) and b is the imaginary part (vertical axis). The iteration produces a sequence of complex numbers:
z0 = 0, z1 = c, z2 = c² + c, z3 = (c² + c)² + c …
If this sequence grows without bound, c is outside the set. If it stays bounded forever, c is inside. The boundary between bounded and unbounded is infinitely complex — a fractal curve of extraordinary intricacy that never simplifies no matter how closely you examine it.
Self-Similarity and Fractal Geometry
Zoom into the boundary and mini-Mandelbrots appear at every scale — the set is self-similar but not exactly repeating. Each miniature copy is surrounded by its own unique filigree of spirals and dendrites, subtly different from every other.
The boundary of the Mandelbrot set has a Hausdorff dimension of exactly 2 — despite being a curve, it is so infinitely convoluted that it effectively fills a two-dimensional area. The set is connected — a single unbroken piece — a fact proven by Adrien Douady and John Hubbard in 1982.
Fractals in Nature
Fractal geometry appears throughout the natural world. Benoit Mandelbrot coined the word “fractal” from the Latin fractus (broken), describing shapes where parts resemble the whole:
- Coastlines — Britain’s coastline has a fractal dimension of ≈ 1.25; the more precisely you measure, the longer it gets.
- Fern leaves — each frond is a miniature copy of the entire leaf, a near-perfect natural fractal.
- River networks — tributaries branch in self-similar patterns across every continent.
- Blood vessels & lungs — the bronchial tree branches 23 levels deep to maximise surface area.
- Lightning bolts — electrical discharge follows fractal branching paths through the atmosphere.
- Romanesco broccoli — a near-perfect natural fractal with logarithmic spirals visible to the naked eye.
Experiments to Try
- Seahorse Valley — zoom into the region near Re ≈ −0.75, Im ≈ 0.1 to discover intricate seahorse-shaped spirals and double spirals.
- Elephant Valley — explore Re ≈ 0.28, Im ≈ 0.01 for stunning elephant-trunk patterns extending from mini-Mandelbrots.
- Increase max iterations — higher iteration counts reveal finer detail at deep zoom levels, resolving structures invisible at lower settings.
- Try different colour maps — different colouring algorithms expose different structures at the boundary; experiment to find hidden patterns.
Key Equations
| Concept | Formula | Description |
|---|---|---|
| Mandelbrot iteration | zn+1 = zn² + c, z0 = 0 | Core iteration; c = pixel coordinate in complex plane |
| Escape condition | |z| > 2 | Any point outside radius 2 diverges to infinity |
| Boundary dimension | DH = 2 | Hausdorff dimension of the Mandelbrot boundary |
| Box-counting dimension | D = log N / log(1/r) | Self-similarity dimension for fractal shapes |
| Julia set | zn+1 = zn² + c (fixed c) | Each c value gives a different Julia set |
| Smooth colouring | n + 1 − log2(log2|z|) | Removes banding from escape-time colouring |
Curriculum Links
| Level | Topics |
|---|---|
| GCSE Maths | Sequences and iteration, coordinate geometry, number patterns |
| A-Level Further Maths | Complex numbers, iterative methods, convergence tests |
| A-Level Physics | Nonlinear dynamics, chaos theory, sensitive dependence |
| University (Pure Maths) | Complex dynamics, topology, measure and Hausdorff dimension |
| University (Computing) | Numerical iteration, GPU rendering, escape-time algorithms |
| Postgraduate | Dynamical systems, bifurcation theory, Douady-Hubbard theorem |
Share this simulation
Send this page to students or colleagues.
Related simulations
Continue with similar experiments.
Recommended Reading
Deepen your understanding with our in-depth articles.
🔒 Unlock All 32 Simulations
Unlock HD PNG export, deeper zoom levels, extended colour palettes, and all 32 interactive simulations with MySimulator Premium.