Let’s use what we have learned about fractals to study a real-world phenomenon: foam. By definition a **foam** is any material made up of bubbles packed closely together. If the bubbles tend to be very large, you might call it a **froth**.

We know that bubbles like to form spheres, because the sphere is the most efficient shape for minimizing surface area around a fixed volume. When you blow a soap bubble on a warm spring day, for example, that bubble will be approximately spherical until it pops.

However, spheres do not pack together very nicely. There’s always gaps between the adjacent spheres. So when a foam forms, there may be some number of large bubbles, interspersed with smaller bubbles in the gaps, which in turn have even smaller bubbles in their gaps and so on. The foam is approximately self-similar on smaller and smaller scales; in other words, foam is fractal.

Let’s take a look at a two-dimensional idealized version of foam called the **Apollonian gasket**. This figure is created by the following procedure. It helps to have a compass handy.

- Draw a large circle.
- Within the circle, draw three smaller circles that all touch one another. In technical terms, we say that the circles are
**mutually tangent**to one another. - In the gaps between these circles, draw smaller circles that are as large as possible without overlapping any existing circles. If you do this correctly, the new circle will be tangent to two of the circles from step 2 as well as the original big circle.
- Continue in this way, filling each new gap with as large a circle that will fit without overlap. Notice that with each new circle, there will be multiple new gaps to fill.

The process should continue indefinitely, however you will eventually reach a stage in which the gaps are smaller than the width of your pencil or pen. At that point, you can step back and admire your work. A computer-generated Apollonian gasket is shown in the figure below.

Because the Apollonian gasket is only approximately self-similar, there is not a well-defined scaling-dimension. However, if you look at any “triangular” section within three circles, it looks like a curved version of the Sierpinski gasket. Recall, it requires 3 copies of the Sierpinski gasket in order to scale it by a factor of 2. So we would expect the fractal dimension of the Apollonian gasket to be close to:

[latex]D={\large\frac{\log(3)}{\log(2)}}\approx1.585[/latex]

In fact, using a more general definition of fractal dimension, it can be shown that the dimension of the Apollonian gasket is about 1.3057. This implies that the gasket is somehow closer to being one-dimensional than two-dimensional. In turn, a foam made of large bubbles, like the froth on top of your latte is more two-dimensional than three-dimensional. Remember this next time you get an extremely frothy drink; there’s very little substance to it!

If you would like a more detailed instructions on how to make your own Apollonian gasket, they are provided at the following website: http://www.wikihow.com/Create-an-Apollonian-Gasket