Mathwords logoMathwords

Mandelbrot Set — Definition, Formula & Examples

The Mandelbrot set is the collection of all complex numbers cc for which the iteration zn+1=zn2+cz_{n+1} = z_n^2 + c, starting from z0=0z_0 = 0, does not escape to infinity. When plotted on the complex plane, it produces one of the most famous fractal shapes in mathematics.

The Mandelbrot set MM is defined as the set of complex numbers cCc \in \mathbb{C} such that the sequence z0=0,  zn+1=zn2+cz_0 = 0,\; z_{n+1} = z_n^2 + c remains bounded, meaning zn|z_n| does not tend to infinity as nn \to \infty. A practical test: if zn>2|z_n| > 2 for any nn, the sequence will diverge and cMc \notin M.

Key Formula

zn+1=zn2+c,z0=0z_{n+1} = z_n^2 + c, \quad z_0 = 0
Where:
  • znz_n = The current value in the iteration sequence
  • cc = The complex number being tested for membership in the set
  • z0z_0 = The starting value, always 0

How It Works

Pick any complex number cc. Start with z0=0z_0 = 0 and repeatedly compute zn+1=zn2+cz_{n+1} = z_n^2 + c. If the values stay small (bounded) no matter how many times you iterate, then cc belongs to the Mandelbrot set. If zn|z_n| ever exceeds 2, the sequence will spiral off to infinity, and cc is not in the set. To generate the iconic image, you test millions of points cc across the complex plane and color each one based on whether it stays bounded or how quickly it escapes.

Worked Example

Problem: Determine whether c = 1 belongs to the Mandelbrot set.
Step 1: Start with z0=0z_0 = 0 and compute the first few iterations using zn+1=zn2+cz_{n+1} = z_n^2 + c with c=1c = 1.
z1=02+1=1z_1 = 0^2 + 1 = 1
Step 2: Continue iterating.
z2=12+1=2,z3=22+1=5,z4=52+1=26z_2 = 1^2 + 1 = 2, \quad z_3 = 2^2 + 1 = 5, \quad z_4 = 5^2 + 1 = 26
Step 3: Since z2=2|z_2| = 2 already reaches the escape threshold and subsequent values grow rapidly, the sequence diverges.
Answer: c=1c = 1 is NOT in the Mandelbrot set because the iteration escapes to infinity.

Why It Matters

The Mandelbrot set demonstrates how strikingly complex patterns can emerge from a simple quadratic formula, making it a gateway to understanding chaos theory and dynamical systems. It appears in courses on complex analysis and computer science, and generating Mandelbrot images is a classic programming exercise that teaches iteration, complex arithmetic, and visualization.

Common Mistakes

Mistake: Assuming all points inside the main cardioid shape behave the same way.
Correction: Points in the Mandelbrot set can have very different orbit behaviors — some converge to a fixed point, others cycle between values. The set contains infinitely many smaller copies of itself at different scales.