Mathwords logoMathwords

Dragon Curve — Definition, Formula & Example

The dragon curve is a fractal path that you can make by folding a strip of paper in half many times in the same direction. When you unfold it so every crease forms a right angle, the strip traces a twisting, dragon-shaped outline.

The Heighway dragon is the limit of a sequence of polygonal paths. Start with one segment. At each iteration, replace every segment by two segments of length 1/21/\sqrt{2} times the original that meet at a right angle. The elbows of these replacements alternate between the left and right sides of the segments taken in order along the path. Equivalently, it is the attractor of the iterated function system f1(z)=1+i2zf_1(z) = \tfrac{1+i}{2}z, f2(z)=1−1−i2zf_2(z) = 1 - \tfrac{1-i}{2}z on the complex plane. Each map scales by 1/21/\sqrt{2}, so the similarity dimension is exactly 2.

Key Formula

D=log⁡Nlog⁡(1/r)=log⁡2log⁡2=2D = \frac{\log N}{\log(1/r)} = \frac{\log 2}{\log \sqrt{2}} = 2
Where:
  • DD = Similarity dimension of the dragon curve
  • NN = Number of self-similar copies (2 for the dragon)
  • rr = Scale factor of each copy, here 1/√2 (about 0.707)

Worked Example

Problem: You draw a dragon curve starting from one segment 8 inches long. After 6 iterations, how many segments are there, how long is each one, and what is the total length of the path?
Step 1: Each iteration replaces every segment with two, so the count doubles each time.
N6=26=64 segmentsN_6 = 2^6 = 64 \text{ segments}
Step 2: Each iteration multiplies segment length by 1/21/\sqrt{2}. Six iterations give a factor of (2)6=8(\sqrt{2})^6 = 8.
ℓ6=8(2)6=88=1 inch\ell_6 = \frac{8}{(\sqrt{2})^6} = \frac{8}{8} = 1 \text{ inch}
Step 3: Multiply the number of segments by the length of each one.
L6=64×1=64 inchesL_6 = 64 \times 1 = 64 \text{ inches}
Answer: After 6 iterations the path has 64 segments, each 1 inch long, for a total length of 64 inches. The total length grows by a factor of √2 each step, so it has no finite limit. The curve still stays inside a bounded region.

Why It Matters

The dragon's turn sequence is the regular paper-folding sequence, a standard example of an automatic sequence in discrete math and theoretical computer science. Courses on recursion and L-systems often use the dragon as an early fractal to code. It also shows that a self-similar curve can have dimension exactly 2 while its boundary has a fractional dimension of about 1.5236.

Common Mistakes

Mistake: Assuming the dragon curve has a fractional dimension between 1 and 2, as the Koch snowflake's boundary does (about 1.26).
Correction: The dragon uses 2 copies scaled by 1/√2, so its dimension is log 2 / log √2 = 2 exactly. The curve fills a region of the plane. Only its boundary has a non-integer dimension, about 1.5236.

Related Terms

  • Curve — The general idea of a path that this traces
  • Hilbert Curve — Another fractal curve built by repeated steps
  • Chaos Game — Draws the dragon by randomly applying its two maps
  • Koch Snowflake — Contrasting fractal whose dimension is fractional, about 1.26
  • Fractal — General class of self-similar sets the dragon belongs to
  • Hausdorff Dimension — Rigorous dimension that equals 2 for the dragon
  • Sierpiński Triangle — Sibling self-similar fractal built from three scaled copies