
A dragon curve is any member of a family of
self-similar
__NOTOC__
In mathematics, a self-similar object is exactly or approximately similar to a part of itself (i.e., the whole has the same shape as one or more of the parts). Many objects in the real world, such as coastlines, are statistically s ...
fractal curves
A fractal curve is, loosely, a mathematical curve whose shape retains the same general pattern of irregularity, regardless of how high it is magnified, that is, its graph takes the form of a fractal. In general, fractal curves are nowhere rectif ...
, which can be approximated by
recursive
Recursion (adjective: ''recursive'') occurs when a thing is defined in terms of itself or of its type. Recursion is used in a variety of disciplines ranging from linguistics to logic. The most common application of recursion is in mathemati ...
methods such as
Lindenmayer system
An L-system or Lindenmayer system is a parallel rewriting system and a type of formal grammar. An L-system consists of an alphabet of symbols that can be used to make strings, a collection of production rules that expand each symbol into some ...
s. The dragon curve is probably most commonly thought of as the shape that is generated from repeatedly folding a strip of paper in half, although there are other curves that are called dragon curves that are generated differently.
Heighway dragon
The Heighway dragon (also known as the Harter–Heighway dragon or the Jurassic Park dragon) was first investigated by
NASA
The National Aeronautics and Space Administration (NASA ) is an independent agency of the US federal government responsible for the civil space program, aeronautics research, and space research.
NASA was established in 1958, succeedi ...
physicists John Heighway, Bruce Banks, and William Harter. It was described by
Martin Gardner
Martin Gardner (October 21, 1914May 22, 2010) was an American popular mathematics and popular science writer with interests also encompassing scientific skepticism, micromagic, philosophy, religion, and literatureespecially the writings of L ...
in his
Scientific American
''Scientific American'', informally abbreviated ''SciAm'' or sometimes ''SA'', is an American popular science magazine. Many famous scientists, including Albert Einstein and Nikola Tesla, have contributed articles to it. In print since 1845, it i ...
column ''Mathematical Games'' in 1967. Many of its properties were first published by
Chandler Davis
Horace Chandler Davis (August 12, 1926 – September 24, 2022) was an American-Canadian mathematician, writer, educator, and political activist: "an internationally esteemed mathematician, a minor science fiction writer of note, and among the mos ...
and
Donald Knuth
Donald Ervin Knuth ( ; born January 10, 1938) is an American computer scientist, mathematician, and professor emeritus at Stanford University. He is the 1974 recipient of the ACM Turing Award, informally considered the Nobel Prize of computer ...
. It appeared on the section title pages of the
Michael Crichton
John Michael Crichton (; October 23, 1942 – November 4, 2008) was an American author and filmmaker. His books have sold over 200 million copies worldwide, and over a dozen have been adapted into films. His literary works heavily feature tech ...
novel ''
Jurassic Park
''Jurassic Park'', later also referred to as ''Jurassic World'', is an American science fiction media franchise created by Michael Crichton and centered on a disastrous attempt to create a theme park of cloned dinosaurs. It began in 1990 whe ...
''.
Construction

The Heighway dragon can be constructed from a base
line segment
In geometry, a line segment is a part of a straight line that is bounded by two distinct end points, and contains every point on the line that is between its endpoints. The length of a line segment is given by the Euclidean distance between ...
by repeatedly replacing each segment by two segments with a right angle and with a rotation of 45° alternatively to the right and to the left:

The Heighway dragon is also the limit set of the following
iterated function system
In mathematics, iterated function systems (IFSs) are a method of constructing fractals; the resulting fractals are often self-similar. IFS fractals are more related to set theory than fractal geometry. They were introduced in 1981.
IFS fractals ...
in the complex plane:
:
:
with the initial set of points
.
Using pairs of real numbers instead, this is the same as the two functions consisting of
:
:
nolding the dragon
The Heighway dragon curve can be constructed by
folding a strip of paper, which is how it was originally discovered.
[ Take a strip of paper and fold it in half to the right. Fold it in half again to the right. If the strip was opened out now, unbending each fold to become a 90-degree turn, the turn sequence would be RRL, i.e. the second iteration of the Heighway dragon. Fold the strip in half again to the right, and the turn sequence of the unfolded strip is now RRLRRLL – the third iteration of the Heighway dragon. Continuing folding the strip in half to the right to create further iterations of the Heighway dragon (in practice, the strip becomes too thick to fold sharply after four or five iterations).
]
The folding patterns of this sequence of paper strips, as sequences of right (R) and left (L) folds, are:
* 1st iteration: R
* 2nd iteration: R R L
* 3rd iteration: R R L R R L L
* 4th iteration: R R L R R L L R R R L L R L L.
Each iteration can be found by copying the previous iteration, then an R, then a second copy of the previous iteration in reverse order with the L and R letters swapped.[
]
Properties
* Many self-similarities can be seen in the Heighway dragon curve. The most obvious is the repetition of the same pattern tilted by 45° and with a reduction ratio of . Based on these self-similarities, many of its lengths are simple rational numbers.
* The dragon curve can tile the plane. One possible tiling replaces each edge of a square tiling
In geometry, the square tiling, square tessellation or square grid is a regular tiling of the Euclidean plane. It has Schläfli symbol of meaning it has 4 squares around every vertex.
Conway called it a quadrille.
The internal angle of th ...
with a dragon curve, using the recursive definition of the dragon starting from a line segment. The initial direction to expand each segment can be determined from a checkerboard coloring of a square tiling, expanding vertical segments into black tiles and out of white tiles, and expanding horizontal segments into white tiles and out of black ones.
* As a non-self-crossing space-filling curve
In mathematical analysis, a space-filling curve is a curve whose range contains the entire 2-dimensional unit square (or more generally an ''n''-dimensional unit hypercube). Because Giuseppe Peano (1858–1932) was the first to discover one, spa ...
, the dragon curve has fractal dimension
In mathematics, more specifically in fractal geometry, a fractal dimension is a ratio providing a statistical index of complexity comparing how detail in a pattern (strictly speaking, a fractal pattern) changes with the scale at which it is meas ...
exactly 2. For a dragon curve with initial segment length 1, its area is 1/2, as can be seen from its tilings of the plane.[
* The boundary of the set covered by the dragon curve has infinite length, with fractal dimension where is the real solution of the equation
]
Twindragon
The twindragon (also known as the Davis–Knuth dragon) can be constructed by placing two Heighway dragon curves back to back. It is also the limit set of the following iterated function system:
:
:
where the initial shape is defined by the following set .
It can be also written as a Lindenmayer system
An L-system or Lindenmayer system is a parallel rewriting system and a type of formal grammar. An L-system consists of an alphabet of symbols that can be used to make strings, a collection of production rules that expand each symbol into some ...
– it only needs adding another section in initial string:
* angle 90°
* initial string ''FX+FX+''
* string rewriting rules
** ''X'' ''X''+''YF''
** ''Y'' ''FX''−''Y''.
It is also the locus of points in the complex of plane with the same integer part when written in base .
Terdragon
The terdragon can be written as a Lindenmayer system
An L-system or Lindenmayer system is a parallel rewriting system and a type of formal grammar. An L-system consists of an alphabet of symbols that can be used to make strings, a collection of production rules that expand each symbol into some ...
:
* angle 120°
* initial string ''F''
* string rewriting rules
** ''F'' ''F+F−F''.
It is the limit set of the following iterated function system:
:
:
:
:
Lévy dragon
The Lévy C curve
In mathematics, the Lévy C curve is a self-similar fractal curve that was first described and whose differentiability properties were analysed by Ernesto Cesàro in 1906 and Georg Faber in 1910, but now bears the name of French mathematician P ...
is sometimes known as the Lévy dragon.
Variants
The dragon curve belongs to a basic set of iteration functions consisting of two lines with four possible orientations at perpendicular angles:
It is possible to change the turn angle from 90° to other angles. Changing to 120° yields a structure of triangles, while 60° gives the following curve:
A discrete dragon curve can be converted to a dragon polyomino
A polyomino is a plane geometric figure formed by joining one or more equal squares edge to edge. It is a polyform whose cells are squares. It may be regarded as a finite subset of the regular square tiling.
Polyominoes have been used in po ...
as shown.
Like discrete dragon curves, dragon polyominoes approach the fractal dragon curve as a limit.
Occurrences of the dragon curve in solution sets
Having obtained the set of solutions to a linear differential equation, any linear combination of the solutions will, because of the superposition principle
The superposition principle, also known as superposition property, states that, for all linear systems, the net response caused by two or more stimuli is the sum of the responses that would have been caused by each stimulus individually. So th ...
, also obey the original equation. In other words, new solutions are obtained by applying a function to the set of existing solutions. This is similar to how an iterated function system produces new points in a set, though not all IFS are linear functions.
In a conceptually similar vein, a set of Littlewood polynomial
In mathematics, a Littlewood polynomial is a polynomial all of whose coefficients are +1 or −1.
Littlewood's problem asks how large the values of such a polynomial must be on the unit circle in the complex plane. The answer to this would yi ...
s can be arrived at by such iterated applications of a set of functions.
A Littlewood polynomial is a polynomial: where all .
For some we define the following functions:
:
:
Starting at z=0 we can generate all Littlewood polynomials of degree d using these functions iteratively d+1 times. For instance:
It can be seen that for , the above pair of functions is equivalent to the IFS formulation of the Heighway dragon. That is, the Heighway dragon, iterated to a certain iteration, describe the set of all Littlewood polynomials up to a certain degree, evaluated at the point .
Indeed, when plotting a sufficiently high number of roots of the Littlewood polynomials, structures similar to the dragon curve appear at points close to these coordinates.
See also
* List of fractals by Hausdorff dimension
According to Benoit Mandelbrot, "A fractal is by definition a set for which the Hausdorff-Besicovitch dimension strictly exceeds the topological dimension."
Presented here is a list of fractals, ordered by increasing Hausdorff dimension, to illust ...
* Complex-base system
In arithmetic, a complex-base system is a positional numeral system whose radix is an imaginary (proposed by Donald Knuth in 1955) or complex number (proposed by S. Khmelnik in 1964 and Walter F. Penney in 1965W. Penney, A "binary" system for c ...
References
External links
*
Knuth on the Dragon Curve
{{Mathematics of paper folding
Fractal curves
Paper folding
L-systems
Articles with example Python (programming language) code