Fractals
Have you ever seen an object which seems to repeat itself when you zoom in? No? Well, today's is a great day for you. Today, you will learn about fractals.
So, you might be asking what exactly is a fractal? Well, a fractal, by definition, is a curve or geometric figure, each part of which has the same statistical character as the whole.
Fractals are useful in modeling structures (such as eroded coastlines or snowflakes) in which similar patterns recur at progressively smaller scales, and in describing partly random or chaotic phenomena such as crystal growth, fluid turbulence, and galaxy formation.
One example of a fractal is a Romanesco cauliflower: by zooming in, the smaller pieces look like the whole cauliflower on a smaller scale.
There are examples of this repeating pattern on every scale in nature, from seashells, crystals, leaves, and feathers to clouds, coastlines, mountains, and spiral galaxies. We will explore these fractal patterns and ways to describe, generate, and measure these shapes.
Contents
Self-Similarity and Fractals in Geometry
First, let's start with the property of fractals we observed in the Romanesco cauliflower.
Property: Self-Similarity is the property that zooming into an object produces a never-ending repeating pattern.
Another example of self-similarity in nature are the repeating patterns of crystallizing water and snowflakes.
How do we describe these self-similar patterns and how do we generate self-similar shapes mathematically that are reproducible at any magnification? We have seen fractal patterns in snowflakes, so let's start by generating a self-similar pattern resembling a snowflake.
Koch Snowflake
Starting with an equilateral triangle, create an equilateral triangle using the middle third of each side as a base, and then remove the base of the triangle. Now, repeat this process for each line segment in the resulting figure. Here are the first few iterations:
Continuing this process gives the Koch snowflake in the limit. Here is a close-up of the border after multiple iterations:
Since zooming into the Koch snowflake gives a curve that is a copy of itself at a smaller scale (called the Koch curve), the Koch snowflake displays self-similarity.
If the equilateral triangle we start with has side length 1, then notice that by replacing each line segment by \(4\) segments of one third the length, we multiply the length by \( \frac{4}{3} \) at each step. This shows that after \(n\) steps, the length of the perimeter is \( 3 \cdot \left( \frac{4}{3} \right)^n\), so the Koch star has infinite perimeter if measured as a 1-dimensional curve.
However, as we will see later, this arises because the Koch snowflake should be thought of as having more than 1 dimension and trying to measure a shape in the wrong dimension gives a meaningless answer. This is similar to trying to measure the amount of a very thin thread needed to cover a 2-dimensional square. We would need an infinitely long thread since we are trying to measure a 2-dimensional object with a one-dimensional curve.
The Koch snowflake shows that even though fractals are complex, they can be generated by repeatedly applying simple rules. We can think of the starting triangle of the Koch snowflake as the initiator and the step of replacing each line by a peak as the generator. If we instead start with a line segment as initiator and use the following generator, we obtain a different pattern.
These examples demonstrate the following properties of fractals.
Fractals have detail at arbitrarily small scales and display irregularity that cannot be described by traditional geometrical language.
In other words, fractals are objects which, at any magnification, will never “smooth out” to look like Euclidean space.
Sierpinski Gasket
The Sierpinski gasket is a triangle made up of smaller copies of itself. Starting with a filled-in triangle, connect the midpoints of each of the sides, remove the middle triangle, and iterate over the remaining three filled-in triangles.
If we start with a triangle with side length \(1\), what is the area of the Sierpinski gasket (the space colored by black) in the \(n\)th step? Observe that the number of black triangles in the \(n\)th step is \(3^n\) and the length of the side of a triangle in the \(n\)th step is \(\left( \frac{1}{2} \right)^n\). Then the area of the black space in the \(n\)th step is \( 3^n \cdot \left( \frac{1}{2} \right)^n \cdot \left( \frac{1}{2} \right)^n \) times the area of the original triangle, or
\[ 3^n \cdot \left( \frac{1}{2} \right)^{2n} \cdot \frac{\sqrt{3}}{4} = \left( \frac{3}{4} \right)^n \cdot \frac{\sqrt{3}}{4} = \frac{1}{\sqrt{3}} \left( \frac{3}{4} \right)^{n+1}. \]
This approaches 0 as \(n\) goes to infinity. As with the Koch snowflake, the Sierpinski gasket should be thought of as having a dimension less than 2, and measuring it in the wrong dimension gives a meaningless answer.
Fractals in Algebra
Fractals also arise by repeating a simple calculation many times, and feeding the output into the input. The first such fractal we consider is named after Benoit Mandelbrot, who coined the word fractal in the 1960s to capture the idea of fragmentation at all scales.
Mandelbrot set
Every complex number can be thought of as a point in a 2-dimensional complex plane. Starting with \(z_0 = 0,\) generate the sequence \(z_1, z_2, z_3, \ldots \) using the equation
\[ z_{n+1} = z^2_{n} + c. \]
Consider coloring the points \(c\) in the complex plane \(\mathbb{C}\) depending on whether or not the resulting sequence \(z_1, z_2, z_3, \ldots \) tends to infinity. All starting values of \(\mathbb{C}\) outside the Mandelbrot set give rise to a sequence that goes to infinity. The color of the pixels are determined by how quickly the sequence gets farther from the origin (and runs away to infinity). All points within the Mandelbrot set gives rise to a sequence whose values get smaller or alternate between a domain of fixed values.
The boundary of the Mandelbrot set is the set of points \(p\) for which every circle centered at \(p\) contains points both in the Mandelbrot set and not in the Mandelbrot set. By zooming into the Mandelbrot set boundary, we see that it contains infinitely many copies of the Mandelbrot set.
Julia Sets
Now, rather than varying \(c\), suppose we fix a value of \(c\) and for every point \(z_0\) in the complex plane, again consider the sequence \(z_1, z_2, z_3, \ldots \) generated by
\[ z_{n+1} = z^{2}_{n} + c. \]
Now, color in the starting points \(z_0\) in the complex plane whose sequences do not run away to infinity. This gives rise to one Julia set for each complex number \(c\). Here are a few examples of Julia set boundaries:
\[ \mbox{ Julia set boundary for } c \approx -0.75 +0.047i.\]
\[ \mbox{Julia set boundary for } c \approx -0.74543+0.113i.\]
Fractal Dimensions
The study of fractals includes measuring scaling properties in a number called the fractal dimension. There are several different notions of fractal dimension and here we focus on a notion of fractal dimension for self-similar fractals. To gain some intuition about measuring self-similar objects, let's start by considering what happens when we scale simple geometric objects. Start with a line segment of length \(1\). If we take this line segment and shrink it to have length \(\frac{1}{3}\), then the original line segment can be replaced by \(3 = 3^1\) smaller line segments. Similarly, suppose we have a square with side length \(1\). If we shrink the square to a smaller square with side length \(\frac{1}{3},\) then the original square can be replaced by \(9 = 3^2\) smaller squares. Continuing in this way, if we consider a cube with side length \(1\) and shrink the cube to a smaller cube with side length \(\frac{1}{3},\) then the original cube can be replaced by \(27 = 3^3\) smaller cubes. In each case, the exponent matches our intuition for the dimension of the object: the line has dimension \(1\), the square has dimension \(2\), and the cube has dimension \(3\).
In general, a set made of \(m\) copies of itself scaled down by a factor of \(r\) has similarity dimension \(\frac{\log m}{ \log r}. \)
Explanation: If a set is generated by \(m\) copies of itself scaled down by a factor of \(r\), then the dimension is the number \(d\) satisfying \(r^d = m\) and we have
\[ \begin{align} r^d &= m\\ \log r^d &= \log m\\ d \log r &= \log m\\ d &= \frac{\log m}{\log r}. \end{align}\]
What is the similarity dimension of the Koch snowflake? In the generation process, we start from a triangle and replace each line segment by \(4\) line segments of one third the length. Then the similarity dimension is
\[ d = \frac{\log 4}{\log 3} \approx 1.2619. \]
What is the similarity dimension of the Sierpinski triangle? In the generation process, we start from a triangle and replace each triangle by \(3\) triangles of one half the side length. Then the similarity dimension is
\[ d = \frac{\log 3}{\log 2} \approx 1.58496. \]
Fractal dimensions can be attached to clouds, trees, neuron and river branchings, and gives a way to measure or describe the irregularities that are not captured by standard geometric methods.
How long is the coast of Britain?
How would you go about measuring the coastline of Britain? One possible method is the following.
Method: Your friend has a measuring tape that can measure any length \(\alpha\), and the two of you walk along the coast, approximating the border by line segments of length \(\alpha\) and marking the points as you go. In the end, sum the number of line segments marked and this will give an approximate length \(L(\alpha)\) of the coast.
As \(\alpha\) gets smaller and smaller, we have been taught to expect the approximate length \(L(\alpha)\) to approach the true length of the coast \(L\). But in fact, this does not happen -- instead, we observe that for the coastline of Britain, \(L(\alpha)\) increases without limit! When a bay or peninsula is zoomed in, there are sub-bays and subpeninsulas. Zooming in further gives sub-subbays and sub-subpeninsulas. In a rough approximation, the small and large details of coastlines are similar except for scale.
Does this remind you of the Koch snowflake? Measuring with shorter tape measures gives a longer length, similar to using shorter segments to measure the length of the Koch snowflake. So what is the dimension of the coast of Britain? If the length is measured to be \(L,\) then this satisfies a power law distribution
\[ \begin{align} cx^d &= L\\ \log c + d \log x &= \log L\\ \end{align}\]
Plotting \(\log L\) against \(\log x\) then gives a straight line, and the slope \(d\) of this line is the fractal dimension of interest. By creating these plots for different coastlines, we can calculate the following dimensions of different countries:
\[\begin{align} \mbox{South Africa:} & d = 1.05\\ \mbox{Australia:} & d = 1.13\\ \mbox{Britain:} & d = 1.25\\ \mbox{Norway:} & d = 1.52 \end{align}\]
Fun Self-Repeating Patterns
If you have ever taken a long plane ride or road trip, you may have found yourself in the following self-repeating pattern!
Gallery of Fractals in Nature
Fractals are fundamental to understanding many chaotic systems, and have many applications in sciences. They are also beautiful and mesmerizing objects, as we have seen with the Mandelbrot and Julia sets. In this section, we collect examples of fractals in all scales in nature.
Neurons in the human cortex display fractal patterns in the branching of brain cells.
Lungs use the large surface area resulting from the branching patterns to exchange oxygen.
Trees display fractal branching patterns.
Coastlines are among the first fractals studied.
Clouds display repeated fractal patterns.
What are examples of fractal patterns you have observed?