Mathwords logoMathwords

Lévy C Curve — Definition, Formula & Example

The Lévy C curve is a fractal you build by replacing a line segment with two shorter segments that meet at a right angle. You then repeat that on every new segment, always bending to the same side. After a few rounds the path curls into a shape like the letter C. In the limit it becomes an intricate, self-similar figure.

The Lévy C curve is the attractor of the iterated function system {f1,f2}\{f_1, f_2\} on C\mathbb{C} given below. Each map is an orientation-preserving similarity with ratio 1/21/\sqrt{2}. As a subset of the plane it has Hausdorff dimension 2 and positive area. Its boundary has a non-integer dimension of about 1.934. Ernesto Cesàro (1906) and Georg Faber (1910) described it first, and it is named for Paul Lévy, who studied its self-similarity in 1938.

Key Formula

f1(z)=1+i2 z,f2(z)=1+i2+1−i2 zf_1(z) = \frac{1+i}{2}\,z, \qquad f_2(z) = \frac{1+i}{2} + \frac{1-i}{2}\,z
Where:
  • zz = A point in the complex plane. The starting segment runs from 0 to 1.
  • ii = The imaginary unit, with i squared equal to −1.
  • f1f_1 = Rotates 45° counterclockwise and shrinks by 1/√2. It sends the segment from 0 to 1 onto the left leg of the bend.
  • f2f_2 = Rotates 45° clockwise, shrinks by 1/√2, and shifts. It sends the segment from 0 to 1 onto the right leg of the bend.

Worked Example

Problem: Draw a 4-inch segment from (0, 0) to (4, 0), with coordinates in inches. Apply the Lévy C rule twice, bending to the left of the direction of travel each time. List the vertices of the resulting path and find its total length. Then find the similarity dimension of the limiting curve.
Step 1: Replace the segment with the two legs of an isosceles right triangle whose hypotenuse is the original segment. The apex sits above the midpoint at a height of half the base. Each leg has length 4 divided by √2.
(0,0)→(2,2)→(4,0),ℓ1=42=22 in(0,0) \to (2,2) \to (4,0), \qquad \ell_1 = \frac{4}{\sqrt{2}} = 2\sqrt{2} \text{ in}
Step 2: Bend each leg to its left. The leg from (0, 0) to (2, 2) gains the apex (0, 2). The leg from (2, 2) to (4, 0) gains the apex (4, 2). The result is four segments, each of length 2, forming an upside-down C.
(0,0)→(0,2)→(2,2)→(4,2)→(4,0),L2=4×2=8 in(0,0) \to (0,2) \to (2,2) \to (4,2) \to (4,0), \qquad L_2 = 4 \times 2 = 8 \text{ in}
Step 3: Each stage uses N = 2 copies, each scaled by r = 1/√2. Substitute these values into the similarity dimension formula.
D=log⁡2log⁡2=log⁡212log⁡2=2D = \frac{\log 2}{\log \sqrt{2}} = \frac{\log 2}{\tfrac{1}{2}\log 2} = 2
Answer: After two iterations the path visits (0, 0), (0, 2), (2, 2), (4, 2), and (4, 0). It is made of 4 segments, each 2 inches long, for a total of 8 inches. The limiting curve has similarity dimension 2.

Why It Matters

The Lévy C curve is a standard first example of an iterated function system in a college course on fractal geometry or dynamical systems. It shows that a curve can have dimension 2. Its folding rule is also a common recursion exercise in computer graphics programming, using L-systems or turtle graphics.

Common Mistakes

Mistake: Drawing a dragon curve when asked for a Lévy C curve, or treating the two as the same shape.
Correction: Both curves replace each segment with a right-angled bend of two legs, each scaled by 1/√2. The Lévy C curve bends every segment to the same side relative to its direction of travel. The dragon curve alternates sides along the path. That one change gives two very different limiting shapes.

Related Terms

  • Curve — The general kind of shape this fractal is
  • Dragon Curve — Same right-angle bend, but alternating sides instead
  • Koch Snowflake — Segment-replacement fractal with dimension about 1.26, not 2
  • Chaos Game — Applying the two maps at random plots this curve
  • Fractal — The general class of shapes this curve belongs to
  • Self-Similarity — Property that each half is a scaled copy