SimuVeda/ Mathematics

Mathematics · Simulator 055

Fractals

Fractals repeat their shape at every scale. Zoom into the Mandelbrot set, morph a Julia set by moving its parameter, grow a Koch snowflake whose perimeter keeps lengthening, and branch a fractal tree. Change the depth and watch the detail emerge.

Class 11–12CollegeBuilds on Class 11 Maths: Complex Numbers

Experiments 0 of 0 Challenge not tried

How the model works

Mandelbrot set: for each complex number c, iterate z ← z² + c from z = 0. If |z| stays bounded, c is in the set (black). Colours show how quickly points escape past |z| = 2. Julia sets use the same rule, but fix c and vary the starting z; each c gives a different shape. Connected Julia sets correspond to c inside the Mandelbrot set.

Koch snowflake: replace the middle third of every edge with two sides of a triangle. Each step multiplies the perimeter by 4/3, so it grows without limit, while the area converges to 8/5 of the original triangle. Its fractal dimension is log 4 / log 3 ≈ 1.26: more than a line, less than an area.

Fractal tree: each branch splits into two shorter branches at a set angle and length ratio, the same recursion that shapes real trees, lungs and rivers.

Escape-time rendering with a maximum iteration count; deeper zooms need more iterations and eventually run into floating-point limits (about 10¹³×).

Guided experiments

  1. Mandelbrot zoom. Tap to zoom into the boundary. Prediction: endless new detail, including tiny copies of the whole set.
  2. Koch perimeter. Raise the depth from 0 to 6. Prediction: perimeter × (4/3)ⁿ, so 5.6 times longer at depth 6, while the area barely changes after depth 3.
  3. Julia morph. c = −0.8 + 0.156i, then move c outside the set. Prediction: an intricate connected shape breaks into scattered “dust” once c leaves the Mandelbrot set.

Challenge

A Koch snowflake starts from a triangle with sides of 1 m. How long is its perimeter after 10 steps? Could you paint its inside with a finite amount of paint?

Reveal the explanation

Perimeter = 3 × (4/3)¹⁰ ≈ 53.3 m, and it grows without limit. The area converges to (8/5) × (√3/4) ≈ 0.69 m², so finite paint covers it: an infinitely long boundary around a finite area.

References

  • Mandelbrot, B. B., The Fractal Geometry of Nature (1982).
  • Peitgen, Jürgens & Saupe, Chaos and Fractals, ch. 2 and 13.

Related simulators

Worked example

Is c = −1 in the Mandelbrot set? Iterate z ← z² + c from z = 0: 0 → −1 → 0 → −1 → … The values repeat and never pass |z| = 2, so c = −1 is in the set (black).

Is c = 1 in the set? 0 → 1 → 2 → 5 → 26 → … After three steps |z| = 5 is past 2, so the point escapes and is coloured by that escape time.

Koch snowflake, depth 3: start with a triangle of side 1 (perimeter 3). Each step multiplies the number of edges by 4 and divides their length by 3, so at depth 3 there are 3 × 4³ = 192 edges of length 1/27 and the perimeter is 3 × (4/3)³ ≈ 7.11. Set depth 3 in the Koch mode and compare.

Common questions

What is a fractal?

A shape that shows detail at every scale, often with smaller copies of itself inside. Zoom into the Mandelbrot boundary or a Koch edge and new structure keeps appearing.

Why does the Koch snowflake have infinite perimeter but finite area?

Each step multiplies the perimeter by 4/3, which grows without limit, while the new triangles added each step get smaller fast enough that the total area converges to 8/5 of the starting triangle.

What is the difference between the Mandelbrot set and a Julia set?

Both iterate z ← z² + c. The Mandelbrot set fixes the start z = 0 and colours each c; a Julia set fixes one c and colours each starting z. A Julia set is connected exactly when its c lies inside the Mandelbrot set.

Keyboard shortcuts

Space
Play or pause
S
Step
R
Reset
F
Full screen
?
Show this list