Fun contents
Fractals
Imagine a drawing machine that knows only one instruction. It follows that instruction, then follows it again on every new piece it just made. A surprisingly detailed shape can grow from that one repeated rule.
That kind of shape is called a fractal. When you zoom in on a fractal, smaller parts often look like the larger shape. This is called self-similarity.
The three short films on this page show a rule being repeated one round at a time. A round is also called an iteration. The formulas help us count what changes: the number of pieces, their sizes, the total length, and the area.
One rule, repeated
The basic recipe is simple:
- Start with one shape.
- Replace it with smaller copies.
- Make each copy times the original size.
- Repeat the same steps on every new copy.
Here, means the number of copies, and means the scale of each copy. Because the copies are smaller, is less than 1.
For example, split a line segment into two equal halves. You now have copies, each at scale . Split a square into four equal smaller squares. You have copies, each with side length of the original.
Fractals have a number called the similarity dimension:
The logarithms in this formula help compare how fast the number of copies grows with how fast their size shrinks. The same rule can also be written as
This says that when size is measured using the right dimension , all the small copies add up to one whole shape.
For an ordinary line, and , so . A line is one-dimensional. For a square, and , so . A square is two-dimensional.
But a fractal’s dimension can sit between 1 and 2. It can be more detailed than a smooth line without completely filling a flat area.
After rounds, the repeating rule gives us two useful counts:
The small raised means “multiply by the same number times.” For example, .
As the number of pieces grows, each piece shrinks. That tug-of-war can make total length and total area behave in very different ways.
Koch snowflake
Each side becomes four. The animation draws the triangle, then six rounds of the rule.
Watch it on YouTube.
The Koch snowflake begins with an equilateral triangle—a triangle whose three sides have equal length. Helge von Koch described its repeating curve in 1904.
Apply this rule to every side:
- Divide the side into three equal pieces.
- Replace the middle piece with two sides of a tiny equilateral triangle.
One straight segment becomes four smaller segments. Each new segment is one third as long as the old one. So for this rule,
Then we apply the same rule to every new segment. The film shows six rounds.
Suppose each side of the starting triangle has length . After rounds,
Let us check the first round. The original triangle has 3 sides. Each side becomes 4, giving
Each new side has length , so the new perimeter is
The old perimeter was . The new one is , so each round multiplies the perimeter by . Because is greater than 1, the perimeter keeps growing forever.
That sounds impossible at first. The snowflake fits inside a limited part of the page, yet its edge becomes infinitely long. Each added bump is tiny, but there are more and more bumps.
What happens to the area?
The starting triangle has area
Here, means “the area at round zero,” before we add any bumps. The symbol means the square root of 3.
At round , the snowflake adds tiny triangles. Each new triangle has area . The sides become one third as long, and area depends on length squared, so the area becomes as large.
The total added area is
The sign means “add all these pieces.” The symbol means we imagine continuing forever. Each round adds only as much area as the round before it, so the added amounts shrink quickly enough to have a finite total.
The finished snowflake therefore has area
Its area stops growing at , or 1.6 times, the starting area. So the snowflake has an infinite perimeter but a finite area. You could fill it with a limited amount of paint, but you could never finish tracing its perfect edge.
Its similarity dimension is
That is a little more than the dimension of a line, which is 1, but much less than the dimension of a filled area, which is 2. The number matches what we see: the edge is extremely crinkly, but it does not fill the page.
Sierpinski triangle
The Sierpinski triangle begins with a filled equilateral triangle. Wacław Sierpiński described this fractal in 1915.
Its repeating rule is:
- Mark the middle of each side.
- Join those three middle points.
- Remove the upside-down triangle in the centre.
- Repeat inside each of the three triangles that remain.
After the first round, three corner triangles remain. Each has sides half as long as the original. Therefore,
After rounds, small triangles remain. Their total painted area is
Why ? Dividing the original triangle creates four equal small triangles, but we keep only three of them. Every round keeps three quarters of the area that was there before.
The first round leaves of the paint. The second leaves
of the original paint. Continue forever and the painted area gets closer and closer to zero.
The boundary does the opposite. Every new hole adds more edges. Its total length after rounds is
Here, is the total boundary length and is the side length of the starting triangle. Because is greater than 1, the boundary grows without limit.
The finished fractal has almost no painted area, yet its boundary is infinitely long. This is the reverse of what we might expect from an ordinary triangle.
Its similarity dimension is
This is larger than the Koch snowflake’s dimension of about 1.262. Three half-size copies pack together more densely than four one-third-size copies, so the Sierpinski triangle comes closer to filling a flat area.
A surprising way to draw it
There is another way to make the Sierpinski triangle, sometimes called the chaos game:
- Choose any starting point.
- Randomly choose one corner of the triangle.
- Move halfway from your current point toward that corner.
- Mark the new point and repeat.
The choices are random, but after many jumps the marked points form the Sierpinski triangle.
Call the three corner points , , and . Call the current point . One jump toward corner is written as
The bold letters stand for positions on the page. Adding the current point to a corner and dividing by 2 finds the point exactly halfway between them.
Random steps create an orderly picture because every move follows the same “jump halfway” rule. The centre never fills in: each jump keeps the point inside one of the three smaller corner triangles.
Recursive tree
This fractal starts with one trunk. At its tip, the trunk splits into two shorter branches. Each new branch turns by an angle and then splits in exactly the same way.
The film uses
The Greek letter , pronounced “theta,” is the turning angle. The number is the scale of each child branch. So every child is 68% as long as its parent. The film draws the trunk and then nine rounds of splitting.
Let stand for the trunk’s length. At level there are
branches, because every branch splits into two. Each branch has length
For example, level 2 has branches, and each one is times the trunk’s length.
The total length through level is
This is a geometric series: each level’s total length is the previous level’s total multiplied by the same number. That number is , because there are twice as many branches and each is times as long.
For the tree in the film,
So every level contains 1.36 times as much branch length as the level before it. Each individual branch gets shorter, but the number of branches grows even faster. If the tree kept splitting forever, its total branch length would become infinite.
If were less than , then would be less than 1. Each level would add less total length than the previous one, and the infinite tree would have a finite total length.
Treating the leafy top as two smaller copies of itself gives the similarity dimension
This is close to 2, the dimension of a filled area. That helps explain why the later rounds look thick and leafy even though the tree is made only from thin line segments.
How to draw one branch
Suppose a branch starts at point , points in direction , and has length . The direction is a unit vector, meaning an arrow with length 1. The branch’s tip is
From that tip, create two new directions: rotate by for one child and by for the other. Give each child length , then repeat the instructions at both new tips.
A computer only needs those few steps to grow the whole tree.
Side by side
All three fractals are controlled by the same two choices: how many copies to make and how much to shrink them.
| Fractal | Copies | Scale | Dimension | Surprising result |
|---|---|---|---|---|
| Koch snowflake | 4 | infinite perimeter, finite area | ||
| Sierpinski triangle | 3 | infinite boundary, area approaching zero | ||
| Recursive tree | 2 | infinite total branch length |
The films stop after a few rounds because the pieces quickly become too small for a screen to show. The mathematical rules do not have to stop. We can imagine them repeating forever.
That is what makes fractals so surprising: a rule small enough to say in one sentence can create detail that never ends.
The same search for simple rules continues in Hidden order, where digits, escaping numbers, noise, and language all reveal patterns of their own.