555
Views
2
CrossRef citations to date
0
Altmetric
Classroom Notes

Four variations on a fractal theme

Received 29 Jul 2022, Published online: 04 Nov 2022

Abstract

Four variations of the Koch curve are presented. In each case, the similarity dimension, area bounded by the fractal and its initiator, and volume of revolution about the initiator are calculated. A range of classroom exercises are proved to allow students to investigate the fractals further.

1. Introduction

The Koch curve is a standard introductory example of a fractal given in textbooks (see for example Addison, Citation1997; Frame & Urry, Citation2016; Goodson, Citation2017; Kautz, Citation2011; Peitgen et al., Citation1992; Strogatz, Citation2014; Tél & Gruiz, Citation2006). Typically, as von Koch did when he introduced the curve (von Koch, Citation1904), introductions emphasize that the curve possesses no tangents and also note that it has divergent length, and evaluate its similarity dimension. But they then tend to move on to other examples of fractals (e.g. the Cantor dust, or Sierpinski triangle or carpet). Exceptions to this are Tél and Gruiz (Citation2006, pp. 30–31), Mandelbrot (Citation1983, pp. 56–57) and Frame and Urry (Citation2016, p. 167) who each give illustrations of some variants of the Koch curve but do not investigate them in any detail.

In this note, we consider four variations on the Koch curve which can be investigated by students in the classroom and in each case we evaluate their similarity dimension, the area bounded by the curve and the initiator and the volume of revolution.

2. Cesàro curves

The Koch curve is based on a generating curve where the central third of an initiating line of unit length is replaced with the upper two lines of an equilateral triangle. An obvious generalization of this is to instead use the equal sides of an isosceles triangle such that all four lines of the generator are of equal length (Figure ). It is straightforward to show that, in the initiator is of unit length, the generating curve is made up of segments of length, (1) L=12(1+cosθ).(1) If four such Cesàro curves are placed in a square formation with the curves pointing inwards the result is called a torn square fractal (Figure ).

Figure 1. Constructing a Cesàro curve with θ=45. The initiator (k = 0 iteration) is a straight line of unit length. The generator is constructed by replacing the centre of the initiator with the upper part of an isosceles triangle such that each line of the generator is of length L=12(1+cosθ) and thus the distance from end to end of the generator is also unity. The k = 2 pre-fractal is constructed by replacing each straight line of the with a scaled version of the generator. Replacing each straight line in the k = 2 pre-fractal with a scaled version of the generator results in k = 3. Repeating this process an infinite number of times produces the fractal.

Figure 1. Constructing a Cesàro curve with θ=45∘. The initiator (k = 0 iteration) is a straight line of unit length. The generator is constructed by replacing the centre of the initiator with the upper part of an isosceles triangle such that each line of the generator is of length L=12(1+cos⁡θ) and thus the distance from end to end of the generator is also unity. The k = 2 pre-fractal is constructed by replacing each straight line of the with a scaled version of the generator. Replacing each straight line in the k = 2 pre-fractal with a scaled version of the generator results in k = 3. Repeating this process an infinite number of times produces the fractal.

Figure 2. An example of a torn square fractal made up of four a Cesàro curves with θ=80.

Figure 2. An example of a torn square fractal made up of four a Cesàro curves with θ=80∘.

Cesàro curves are frequently defined in terms of segment lengths, L of their generator (see for example Frame & Urry, Citation2016, p. 167; Tél & Gruiz, Citation2006, pp. 30–31), but we shall instead use the angle θ.

The similarity dimension of a fractal is defined as (2) Ds=log(N)log(1/ε)(2) where if we scaled the fractal by a factor ε we would require N copies of it to reconstruct the original fractal. Thus if we scale a Cesàro curve by a factor of L we will need N = 4 copies of it to reconstruct the original fractal and so, (3) DS=log(4)log(2(1+cosθ)).(3)

To evaluate the area and volume of revolution about the initiator of a Cesàro curve we use the method outlined in McCartney (Citation2021).

Figure  shows a Cesàro curve divided into its component self-similar areas. If we define the area bounded by the curve and its initiator is A then clearly (4) A=4AS+AT.(4)

Figure 3. A Cesàro curve divided into its component self-similar areas.

Figure 3. A Cesàro curve divided into its component self-similar areas.

But, by definition, each of the four areas AS is a scaled version of the entire bounded area. The length is scaled by a factor L and therefore the area is scaled by L2, giving (5) As=L2A.(5)

Since the area of the isosceles triangle is (6) AT=L2cosθsinθ(6) (4) becomes (7) A=4L2A+L2cosθsinθ(7) which, using (1) simplifies to (8) A=sinθ4(cosθ+2).(8)

To evaluate the volume of revolution we first evaluate the centre of area of the curve bounded by its initiator. If the centre of area is a distance hy above the initiating line along the axis of symmetry, then (from Figure ) we can consider again the fact that the total area is made up of the triangle of area AT (with centre of area (Lsinθ)/3 above its base) and the four areas AS, each having centres od area a distance Lhy above their corresponding initiating lines. We can thus write the moment of area as (9) Ahy=ATL3sinθ+2hyLAs+2As(hyLcosθ+L2sinθ).(9) Using (1), (5), (6) and (8) this simplifies to give (10) hy=16tan(θ2).(10)

Figure 4. The centre of area of a Cesàro curve lies a distance hy above the initiating line along the axis of symmetry.

Figure 4. The centre of area of a Cesàro curve lies a distance hy above the initiating line along the axis of symmetry.

Given the second theorem of Pappus, which states that the volume of revolution of a lamina about an axis is the area of the lamina multiplied by the distance travelled by the lamina’s centroid we can immediately write that the volume of revolution of the Cesàro curve about the initiating axis is (11) VC=π121cosθ2+cosθ.(11)

3. An n-Koch curve

In the Koch curve, we divide the initiator into three equal segments and replace the middle third with the upper two lines of an equilateral triangle. A variation on this is to divide the initiator into n equal segments and to replace one of these with the upper lines of an equilateral triangle (Figure ).

Figure 5. The construction of an n-Koch curve with n = 5, and the penultimate segment of the initiator being chosen for replacement.

Figure 5. The construction of an n-Koch curve with n = 5, and the penultimate segment of the initiator being chosen for replacement.

Given we need n + 1 copies of the original fractal scaled by a factor of 1/n to reproduce the fractal the similarity dimension is, (12) DS=log(n+1)log(n).(12)

To evaluate the area enclosed by the fractal and its initiating line, A, we follow the same procedure as before. Namely that this area must be equal to the area of the generating triangle, (13) AT=34n2(13) plus the area of n + 1 scaled copies of the fractal each of which are of area, (14) AS=1n2A(14) giving (15) A=AT+(n+1)AS(15) which leads directly to (16) A=34(n2n1).(16)

To evaluate the volume of revolution we first evaluate the centre of area of the curve bounded by its initiator. If the centre of area is at (hx,hy) then (from Figure ) we can consider again the fact that the total area is made up of the triangle of area AT (with centre of area 123n above its base) and the n + 1 areas AS, each having centres of area scaled by a factor of 1/n. We can thus write the moment of area as (17) Ahy=(n1)AShyn+AS(hxn32+hyn12)+AS(1hxn32+hyn12)+AT123n(17) which results in (18) hy=123n2n+2n(n21)(18) and hence a volume of revolution about the initiator is (19) VnK=π(n2n+2)4n(n21)(n2n1).(19)

Figure 6. The centre of area of an n-Koch curve with n = 5. Considering the leftmost point of the fractal to be the origin and the initiating line to be the x axis, the centre of area of the lamina bounded by the curve and the initiator is defined as (hx,hy). The centre of area of each segment is scaled by a factor of n, so in the case where n = 5 the co-ordinates of the centre of area of the first segment is (hx5,hy5).

Figure 6. The centre of area of an n-Koch curve with n = 5. Considering the leftmost point of the fractal to be the origin and the initiating line to be the x axis, the centre of area of the lamina bounded by the curve and the initiator is defined as (hx,hy). The centre of area of each segment is scaled by a factor of n, so in the case where n = 5 the co-ordinates of the centre of area of the first segment is (hx5,hy5).

4. A Koch curve with non-uniform scaling

So far we have considered fractal curves made up of line segments of equal length, but it is straightforward to generalize this. As an example, consider an initiator of unit length where we replace a middle length b with the upper two lines of an equilateral triangle to produce a generator (Figure ). Each line is then replaced with a suitable scaled version (b or 1b/2) of the generator to produce the k = 2 pre-fractal. Figure  shows a range of fractals generated using b = 0.1, b = 0.25, b = 0.5.

Figure 7. The construction of a Koch curve with nonuniform scaling. The initiator is of length unity. The central upper sides of the equilateral triangle in the generator are of length b, with the other two lines being of length (1b2).

Figure 7. The construction of a Koch curve with nonuniform scaling. The initiator is of length unity. The central upper sides of the equilateral triangle in the generator are of length b, with the other two lines being of length (1−b2).

Figure 8. A range of nonuniform scalings. From top to bottom, b = 0.1, b = 0.25, b = 0.5. For values of b greater than approximately 0.5 the curve begins to self-intersect.

Figure 8. A range of nonuniform scalings. From top to bottom, b = 0.1, b = 0.25, b = 0.5. For values of b greater than approximately 0.5 the curve begins to self-intersect.

To evaluate the similarity of the fractal we use Moran’s equation (see Frame & Urry, Citation2016, p. 163) which states that if we have a fractal which is created by N copies of itself, each scaled by a different factor ε1,ε2,εN then the similarity dimension DS is given by the solution of (20) i=1NεiDs=1.(20) Thus, for the fractal described here Moran’s equation becomes, (21) 2bDS+2(1b2)DS=1.(21)

A plot of a numerical solution of this is shown in Figure  (see Classroom exercises for an exact solution when b=1/2).

Figure 9. Variation of similarity dimension DS with scaling factor b as given by (21) for the non-uniform scaling Koch curve shown in Figure .

Figure 9. Variation of similarity dimension DS with scaling factor b as given by (21) for the non-uniform scaling Koch curve shown in Figure 7.

To evaluate A, the area bounded by the non-uniform scaling Koch curve and its initiator, we apply the same procedure as before. Namely, the area must be made up of two copies scaled at b, two at 1b/2, and the triangle in the generator, which is of area, (22) AT=34b2(22)

Thus, (23) A=2b2A+2(1b2)2A+AT(23) which results in, (24) A=3b22(1+2b5b2).(24)

Finally, to evaluate the volume of revolution we first evaluate the centre of area above the initiating line, h, as being constructed from the centres of area of the two pairs of scaled copies of the fractal plus the centre of area of the triangle in the generator, giving (25) Ah=2h(1b2)3A+2b2A(hb2+3b4)+ATb332(25) which, using (22) and (24), results in (26) h=3b9(1b)(26) giving a volume of revolution about the initiator of (27) VS=πb33(1b)(1+2b5b2).(27)

5. A Himalayan Koch curve

Finally, we consider a fractal where the generator is made up of an infinite array of Koch curve generators scaled geometrically; each a factor α smaller than the last (Figures and ).

Figure 10. The Construction of a Himalayan Koch curve with scale factor α=12. The generating line is made up of an infinite array of generators for the standard Koch curve, each a scaled version (by a factor of α) of the generator to its right. Each line of each of these scaled Koch generators is then replaced by a suitably scaled version of the total generating line to form the k = 2 pre-fractal.

Figure 10. The Construction of a Himalayan Koch curve with scale factor α=12. The generating line is made up of an infinite array of generators for the standard Koch curve, each a scaled version (by a factor of α) of the generator to its right. Each line of each of these scaled Koch generators is then replaced by a suitably scaled version of the total generating line to form the k = 2 pre-fractal.

Given the length of the initiator is unity and assuming the rightmost generating Koch curve in Figure  is of length L, clearly 1=Li=0αi and so (28) L=1α.(28)

To evaluate the similarity dimension, we once again turn to Moran’s equation. Each of the generating Koch curves is made up of four lines of length L3αi and so using (20) (29) 4i=0[Lαi3]DS=1(29) and summing the series gives (30) 43DS(1α)DS1αDS=1.(30)

A plot of a numerical solution of this equation is shown in Figure .

Figure 11. Himalayan k = 3 pre-fractals with scale factors (from top to bottom) α=23,13,15.

Figure 11. Himalayan k = 3 pre-fractals with scale factors (from top to bottom) α=23,13,15.

The area bounded by the generator and the initiator is the geometric sum of the areas of the triangles, giving (31) AT=3361α1+α.(31) The area of the fractal bounded by its initiator is made up of sets of four copies each scaled by in length by L3αi, and hence by area (L3)2α2i, plus the area AT i.e. (32) A=4Ai=0(L3)2α2i+AT(32) which using (28) and (31) results in, (33) A=341α5+13α(33)

To evaluate the centre of area of the fractal, located at (hx,hy) we first evaluate the moment of area of each section of the fractal constructed on each of the Koch curve generators. Counting from the right of the fractal shown in Figure , the total length of the ith Koch curve generator be (34) Li=(1α)αi1(34)

Thus the moment of area of the ith section Mi is constructed from four components each made up of versions of the original fractal scaled in size by Li3 plus the moment of area of the equilateral triangle of side Li3: (35) Mi=2hy(Li3)3A+(Li3)3(hx32+hy12)A+(Li3)3((1hx)32+hy12)A+18(Li3)3(35)

Since the total moment of area obeys (36) Ahy=i=1Mi(36) and noting that (37) i=1Li3=(1α)31α3(37) Equations (35) and (36) give (38) hy=(1α)(5α+4)33(8α2+11α+4)(38) which results in a volume of revolution about the initiator of (39) VH=π(1α)3(5α+4)6(13α+5)(8α2+11α+8).(39)

6. Concluding remarks

The results presented here are all well within the reach of an undergraduate. Indeed, although the algebraic manipulation can in parts require care, the concepts behind the evaluation of the bounded area are also within reach of a good U.K. ‘A’ level student.

Further, given the Koch curve is almost certainly the most common fractal curve to be found in undergraduate curricula, hopefully these variations, combined with the classroom exercises below, will provide useful extensions to teaching, either as extra problems or as short independent study projects.

Figure 12. Variation of similarity dimension DS with scaling factor α as given by (30) for the non-uniform scaling Koch curve shown in Figure .

Figure 12. Variation of similarity dimension DS with scaling factor α as given by (30) for the non-uniform scaling Koch curve shown in Figure 10.

7. Classroom exercises

  1. For a Koch curve with initiator of unit length, the area of the curve bounded by the initiator, and the distance of the centre of area above the initiator are A=320 and hy=318. Show that for appropriate parameter choices each of the areas and centres of areas presented in the paper reduce to these results.

  2. Assuming the initiator is of length unity, what is the area bounded by a torn square fractal of the form shown in Figure  for a Cesàro curve of angle θ?

  3. Assuming that the initiator is of length unity, show that the distance of the centre of area of the right half of a Cesàro curve (ie the area bounded by the curve, its initiator, and the vertical axis of symmetry) is a distance 16(1cosθ(1+cosθ)2) from the axis of symmetry. Hence evaluate the volume of revolution of the curve about its vertical axis of symmetry.

  4. If three Koch curves are placed together around an equilateral triangle of unit side the Koch island, or Koch snowflake, is obtained (Figure ). An obvious way to generalize this is to place three Cesàro curves around an isosceles triangle generating a Cesàro island (Figure ). The two equal sides of the triangle are of unit length, and the equal angles are the same as those of the angle used to generate the Cesaro curves. Show that the area of such a Cesàro island is (40) AI=sinθ(2cosθ+1)22(cosθ+2).(40) By plotting the above function (or otherwise) show that that maximum bounded area occurs at approximately π4.

  5. Show that the x co-ordinate hx of the centre of area of the n Koch curve (see Figure ) is n1n+1 and hence find the volume of revolution about the vertical axis.

  6. When b=12 Equation (21) can be written as, (41) 2(12)DS+2(14)DS=1.(41)

  1. Show that the solution of this equation is (42) DS=1ln(31)ln2.(42)

  2. Hint: re-write (41) as a quadratic equation.

  3. A simple piece of python code, which uses a recursive function call to generate the kth pre-fractal of a Koch curve is:

  4. import turtle as t

  5. #this code generates a pre-fractal Koch curve with initiator length Size

  6. #to level k

  7. #set size and level of prefractal

  8. k=5

  9. size=600

  10. #set position and speed of turtle and penwidth

  11. t.hideturtle()

  12. t.penup()

  13. t.goto(-300,-50)

  14. t.pendown()

  15. t.pensize(1)

  16. t.speed(0)

  17. def koch(prefractal, size):

  18.    if prefractal== 0:

  19.       t.forward(size)

  20.    else:

  21.         for angle in [60, -120, 60, 0]:

  22.            koch(prefractal-1, size/3)

  23.            t.left(angle)

  24. koch(k,size)

  25. Modify this code to generate a Cesàro curve for a user provided θ. Modify the code further to produce a torn square fractal.

  26. In the construction of the Himalayan Koch curve in the paper a generator with an infinite geometric series of Koch curve generators was used as the generator. If a finite series of n Koch curve generators in geometric progression is used instead, what is the area bounded by the generator and the initiator? What is the area bounded by the fractal and the initiator?

Figure 13. The Koch island is obtained by taking three Koch curves and placing them around an equilateral triangle of unit side.

Figure 13. The Koch island is obtained by taking three Koch curves and placing them around an equilateral triangle of unit side.

Figure 14. Two Cesàro islands. The equal length sides of the isosceles triangles on which the snowflakes are based are of length unity, the equal angle θ is the same as that use to generate the Cesàro curves. (a) θ=30, (b) θ=80.

Figure 14. Two Cesàro islands. The equal length sides of the isosceles triangles on which the snowflakes are based are of length unity, the equal angle θ is the same as that use to generate the Cesàro curves. (a) θ=30∘, (b) θ=80∘.

Disclosure statement

No potential conflict of interest was reported by the author.

References

  • Addison, P. S. (1997). Fractals and chaos: An illustrated course. IOP.
  • Frame, M., & Urry, A. (2016). Fractal worlds: Grown, built and imagined. Yale University Press.
  • Goodson, G. R. (2017). Chaotic dynamics: Fractals, tilings, and substitutions. Cambridge University Press.
  • Kautz, R. (2011). Chaos: The science of unpredictable random motion. Oxford University Press.
  • Mandelbrot, B. B. (1983). The fractal geometry of nature. W.H. Freeman & Co.
  • McCartney, M. (2021). The area, centroid and volume of revolution of the Koch curve. International Journal of Mathematical Education in Science and Technology, 52(5), 782–786. https://doi.org/10.1080/0020739X.2020.1747649
  • Peitgen, H., Jurgens, H., & Saupe, D. (1992). Chaos and fractals: New frontiers of science. Springer-Verlag.
  • Strogatz, S. H. (2014). Nonlinear dynamics and chaos (2nd ed.). Westview Press.
  • Tél, T., & Gruiz, M. (2006). Chaotic dynamics: An introduction based on classical mechanics. Cambridge University Press.
  • von Koch, H. (1904). Sur une courbe continue sans tangente, obtenue par une construction géométrique élémentaire. Arkiv för Mathematik Astronomi och Fysik, 1, 681–704.