A little piece of the whole
Imagine continuing the triangle pattern forever. Double the size of its top piece and you get the whole pattern again. That’s self-similarity. The screen draws only a few levels, but the mathematical pattern has detail at every scale, while the patterns in the photos repeat over a limited range of sizes.
In-class check · 1–2
Sierpiński triangle
Cut out the middle
The chaos game
Join the midpoints of an equilateral triangle’s sides, cut out the middle triangle, and repeat on each triangle left. Each round, or iteration, triples the number of small triangles and halves their side length. In the chaos game, start at a corner and choose one of the three corners at random, with an equal chance for each. Move halfway toward it, plot the new point, and repeat from there.
Koch snowflake
Perimeter and area
| Step | P (cm) | A / A0 |
|---|
Build a tiny equilateral triangle outward on the middle third of each edge and erase its base. One edge becomes four edges a third as long, so the perimeter multiplies by 4/3 each round and grows without bound. After the first round, each round adds 4/9 as much area as the previous round added, and the total area approaches 1.6 times the starting area.
Worked example · How do the numbers grow?
Given an equilateral triangle with sides of 3 cm, find the perimeter after two iterations.
Solution — Multiply the perimeter by 4/3 each round.
- Starting perimeter 3 × 3 cm = 9 cm
- After one iteration 9 cm × 4/3 = 12 cm
- After two iterations 12 cm × 4/3 = 16 cm
The perimeter is 16 cm. Set the slider to step 2 to check the table.
The dimension of the Koch curve
Move the snowflake slider. Each round gives one original side four times as many segments, each a third as long. Continuing forever gives a Koch curve made of four copies at one-third scale. At that scale a line segment needs three copies and a square needs nine, so the Koch curve’s dimension is between 1 and 2.
Fractal dimension 3ᴰ = 4 → D ≈ 1.26
In-class check · 3–4
Grow a fractal
Barnsley fern
See the four maps
In-class check · 5–6
Into the Mandelbrot set
Each point is a complex number c, which has two coordinates. Start at 0 and keep squaring the result and adding the same c. The values of c whose results stay within some fixed distance of 0 forever make up the Mandelbrot set. Colors show how quickly points escape, and dark pixels show points that haven’t escaped within the drawing’s step limit.
In-class check · 7–8
Make your own tree
Pick a tree you know. Use the three sliders to match its silhouette. Record the angle, ratio and depth, then change one setting to see which makes the biggest difference.
Back to the tree ↑Need a starting point?
Try 18°, 0.70 and depth 8 for a tall, narrow tree. Change the angle from 18° to 27° and watch the crown spread.
Stretch problem · How much area does the snowflake gain?
If the starting triangle has area 9 cm², how much area does each of the first two rounds add?
Show the steps
Round 1 adds three triangles. Each has one-third of the starting side length, so it has one-ninth of the starting area.
3 × (9 cm² ÷ 9) = 3 cm²
Round 2 adds 12 triangles, each with one-ninth the area of a triangle from round 1.
12 × (1 cm² ÷ 9) = 4/3 cm²
Stretch problem · What is the total length of the last layer?
Suppose a tree with three levels has a 40 cm trunk and a length ratio of 0.50. Find the total length of all the branches in level 3.
Show the steps
The trunk is level 1. Two rounds of splitting give four branches at level 3. Set the depth slider to 3 to check the tip count.
Length of each branch 40 cm × 0.50² = 10 cm
Total length of this level 4 × 10 cm = 40 cm
Match the rules
Practice quiz · 10 questions
Learning notes and sources
Compare the two ways of making the Sierpiński triangle as examples of repeated rules. The Mandelbrot image estimates the boundary with a finite number of steps. Some dark pixels may still escape if the calculation continues.