Search topics and sections

A pattern is a predictable order in natural, designed, or abstract things.[1] Some patterns repeat a chunk again and again, like the tiles on a floor, while others grow by a rule, like the numbers 2, 4, 6, 8.[2][1] Because a pattern follows a rule, seeing part of it lets you predict the rest.

Patterns show up across science and design. Mathematics has been called "the science of patterns".[3] Biologists study how living things grow spots, stripes, and spirals, and design uses repeated shapes in fabrics, buildings, and software.

Core ideas

A repeating pattern can be described by three things.

  • The motif is the basic unit that gets copied, such as a single flower in a fabric print.
  • The rule says how the copies are placed: slid along, turned, or flipped.
  • The extent is how far the copies go: around one point, along a strip, or across a whole surface.

Applying the rule to the motif again and again builds a repeating pattern.[4]

  • If the copies slide in one direction, the result is a band.
  • If the copies slide in two different directions, the result covers the whole plane.
From motif to frieze and wallpaper pattern Motif Frieze slides in one direction Wallpaper slides in two directions translation translation 2 translation 1
A single asymmetric leaf motif is repeated by translation alone. A frieze slides it in one direction, and a wallpaper pattern slides it in two independent directions.

Symmetry

A figure has symmetry when it looks the same after a motion such as sliding, turning, or flipping.[5]

Motions that keep every distance the same are called isometries. In a flat plane, every such motion is one of exactly four types.[5]

Motion What it does
Translation Slides every point the same distance in the same direction
Rotation Turns the plane around a fixed point, the center of rotation
Reflection Flips the plane across a mirror line
Glide reflection Combines a reflection with a slide along the mirror line

A rotation that brings a figure back to itself after a turn of 360∘/n360^\circ/n is called an nn-fold rotation.[6] For example, a 4-fold rotation is a quarter turn.

The four plane motionsTranslationRotationReflectionGlide reflectioncentermirror line
The four plane motions, each applied to an asymmetric F shape. The blue original moves to the orange image by a translation, a 90° rotation about a center point, a reflection across a mirror line, and a glide reflection.

Kinds of pattern

Patterns can be sorted by how they repeat and how much space they fill.

Kind How it repeats Space it fills
Rosette Turns, and sometimes flips, around one point[5] The area around one point
Frieze Slides in one direction[7] An endless strip
Wallpaper Slides in more than one direction[4] The whole plane
Aperiodic Follows fixed rules but never repeats by sliding[8] The whole plane
Self-similar Similar shapes appear at smaller and smaller scales[9] Varies

Rosettes correspond to the point groups in two dimensions, which come in two families.[5][6]

Family Motions
Cyclic Rotations only
Dihedral Rotations and mirror lines

A frieze takes its name from architecture, where a frieze is a decorative band that runs just below a roofline or ceiling.[7]

Mathematics of patterns

The science of patterns

The mathematician Lynn Arthur Steen argued in 1988 that mathematics is no longer just the study of number and space but "the science of patterns".[3] In his view, mathematicians look for patterns in number, in space, in science, in computers, and in imagination.[3]

Number patterns are the simplest example. In the Fibonacci sequence 1, 1, 2, 3, 5, 8, 13, and so on, each term is the sum of the two before it:[10]

Fn+1=Fn+Fn−1F_{n+1} = F_n + F_{n-1}

Here FnF_n is the nnth term, and the sequence starts with F0=F1=1F_0 = F_1 = 1.[10]

Symmetry groups

A mathematical group is a collection of objects together with an operation that combines any two of them into another object in the collection, following a few fixed rules.[5] The symmetries of a pattern form such a group, its symmetry group. Here the operation is composition, which means doing one motion after the other.[5]

Symmetry groups let mathematicians treat two patterns that look different as the same kind if they share the same set of motions.[5]

The study of groups in general is called group theory. Symmetry groups are one special case of it.[5]

Every repeating pattern in the plane falls into a small, fixed number of types.[4]

  • A pattern that slides in one direction has one of the seven frieze groups.
  • A pattern that slides in more than one direction has one of the 17 wallpaper groups.

The 17 wallpaper groups split by which motions they allow.[4]

  1. One group (p1) has translations only.
  2. Four groups (p2, p3, p4, p6) add rotations but no reflections or glide reflections.
  3. Three groups (pm, pg, cm) add reflections or glide reflections but no rotations.
  4. Nine groups combine rotations with reflections or glide reflections.

The Russian mathematician Evgraf Fedorov first published the classification of the 17 groups in 1891, but it was not widely known.[4] George Pólya rediscovered it in 1924, and the artist M. C. Escher copied Pólya's 17 diagrams by hand into his notes.[4]

The crystallographic restriction

A repeating pattern cannot have every kind of rotation. The crystallographic restriction states that if a plane pattern has more than one center of rotation, its rotations can only be 2-fold, 3-fold, 4-fold, or 6-fold.[11] The table of the 17 wallpaper groups shows only these four.[4]

Regular polygons, whose sides are all equal and whose angles are all equal, show why. Copies of one polygon fit around a point with no gap only if its corner angle divides 360∘360^\circ evenly.[11]

Polygon Corner angle Copies around a point Gap left
Equal-sided triangle 60∘60^\circ 6 None
Square 90∘90^\circ 4 None
Regular pentagon 108∘108^\circ 3 36∘36^\circ
Regular hexagon 120∘120^\circ 3 None
Regular polygons meeting at a point 6 × 60° = 360° 4 × 90° = 360° 3 × 120° = 360° Pentagons leave a gap gap of 36° 3 × 108° = 324°
Regular polygons fit around a point with no gap only when their angles at that point add up to 360∘360^\circ, as with six triangles (6×60∘6 \times 60^\circ), four squares (4×90∘4 \times 90^\circ) and three hexagons (3×120∘3 \times 120^\circ). Three pentagons give only 3×108∘=324∘3 \times 108^\circ = 324^\circ, so they leave a 36∘36^\circ gap.

The same rule applies to crystals. Because a fivefold arrangement of atoms cannot repeat itself, fivefold symmetry in crystals was long thought impossible, and the same holds for sevenfold and higher.[12]

Aperiodic order

An aperiodic pattern follows mathematical rules but never repeats itself by sliding.[8]

In the 1960s, mathematicians asked whether a small set of tile shapes could cover the plane only in such a non-repeating way.[12] The first set, reported in 1966, needed more than 20,000 different tiles.[12]

Penrose tilings

In the mid-1970s, Roger Penrose found aperiodic tilings that use just two tiles, for example a fat and a thin rhombus.[12] In a Penrose tiling of this kind, the ratio of the number of fat rhombi to thin rhombi is the golden ratio.[12]

Quasicrystals

The same kind of order turned up in matter. On 8 April 1982, Dan Shechtman saw a tenfold pattern of spots when studying an alloy (a mixture of metals) of aluminium and manganese under an electron microscope.[12] Further tests showed the crystal itself had fivefold symmetry.[12]

These materials, called quasicrystals, have regular atomic patterns that never repeat.[8] Shechtman received the 2011 Nobel Prize in Chemistry for discovering them.[8]

Self-similarity and fractals

A self-similar pattern repeats across scales instead of across space. Zoom in or out, and similar shapes appear again.[9] In a 1975 book, Benoit Mandelbrot named such shapes fractals, from the Latin fractus, meaning "broken".[9]

Fractals are measured by a fractal dimension, which describes how rough a shape is.[9] For a shape made of nn copies of itself, each scaled to pp times the original size, where 0<p<10 < p < 1, the self-similarity dimension is:[13]

D=log⁡nlog⁡(1/p)D = \frac{\log n}{\log (1/p)}

Here nn is the number of pieces and pp is the scale of each piece (for the Koch curve, p=1/3p = 1/3).[13] The symbol log means the logarithm, the power a fixed base must be raised to in order to give a number. Any base works as long as both logarithms use the same one.

The Koch curve is made of 4 copies of itself, each one third the size. So n=4n = 4, p=1/3p = 1/3, and D=log⁡4/log⁡3≈1.2619D = \log 4 / \log 3 \approx 1.2619.[13]

First steps of the Koch curve Step 0 Step 1 Step 2 Step 3 4 pieces, each 1/3 as long D = log 4 / log 3 ≈ 1.26
The Koch curve is built by replacing the middle third of every segment with two sides of an equilateral triangle, so each step has 4 times as many segments, each 1/31/3 as long. Repeating the rule without end gives a curve with fractal dimension D=log⁡4/log⁡3≈1.26D = \log 4 / \log 3 \approx 1.26.

Natural objects such as snowflakes and Romanesco broccoli are only fractal-like. Their self-similarity stops at the scale of molecules and atoms.[9]

Patterns in nature

Patterns appear throughout nature, from the arrangement of molecules in crystals and snowflakes to the shapes of galaxies.[14] Many look alike across very different sizes, and scientists are still working out whether similar patterns come from similar causes.[14] The page patterns in nature covers the full range.

Reaction and diffusion

In 1952, Alan Turing proposed that chemicals he called morphogens could explain how embryos form their shapes.[15] Morphogens are signal chemicals that guide how tissue develops, and in his model they react with each other and spread through the tissue.[15]

His paper, The Chemical Basis of Morphogenesis, showed that such a system can turn an even mix into a fixed pattern of evenly spaced peaks and dips (stationary waves).[15][14] It also showed that one such system in two dimensions gives patterns of patchy spots.[15]

Patterns made this way are now called Turing patterns, and the models are called reaction-diffusion systems.[14]

The best-known version is the activator-inhibitor system, proposed by Alfred Gierer and Hans Meinhardt in 1972.[14] It works in four steps.[14]

  1. The activator boosts its own production, so a small random bump in its level grows into a peak.
  2. The activator also makes the inhibitor.
  3. The inhibitor spreads faster and farther, so it holds down the activator around the peak.
  4. Beyond the inhibitor's reach, another activator peak can form, giving evenly spaced peaks.
Activator and inhibitor pattern formationActivatorInhibitorboosts itselfmakesblocksspreads slowlyspreads fastlevelpositionactivatorinhibitor
In an activator-inhibitor system, the activator boosts itself and makes an inhibitor that blocks it. Because the inhibitor spreads faster, activator peaks stay tall and narrow, each one inside a broader inhibitor hump, and this gives evenly spaced spots or stripes.

A general two-chemical model has this form:[14]

∂X∂t=DX∇2X+f(X,Y),∂Y∂t=DY∇2Y+g(X,Y)\frac{\partial X}{\partial t} = D_X \nabla^2 X + f(X, Y), \qquad \frac{\partial Y}{\partial t} = D_Y \nabla^2 Y + g(X, Y)

Here XX and YY are the levels of activator and inhibitor, DXD_X and DYD_Y are how fast each spreads, ∇2\nabla^2 measures how a level differs from its surroundings, and ff and gg are the reaction rates. The classic condition for a pattern is that the inhibitor spreads much faster than the activator, DY≫DXD_Y \gg D_X.[14] Changing the parameters, the values that set how the model behaves, switches the result between spots and stripes.[14]

The model's relevance to real animals was long debated, but a number of strong examples have since eased much of that doubt.[16]

Newer studies of systems with more than two chemicals show that the faster-spreading condition can be partly or fully dropped.[14]

Spirals in plants

The arrangement of leaves or seeds on a plant is called phyllotaxis. Many plants arrange them in spirals, the most common kind.[17]

In spiral patterns, the number of visible spirals in each direction is most often two neighboring Fibonacci numbers, such as 3 and 5.[10] When this happens, the angle between one leaf or seed and the next is close to the golden angle, about 137.5∘137.5^\circ.[10]

golden angle=360∘ (2−φ)≈137.5∘\text{golden angle} = 360^\circ \, (2 - \varphi) \approx 137.5^\circ

Here φ≈1.618\varphi \approx 1.618 is the golden ratio, which is the limit of the ratio of each Fibonacci number to the one before it.[10]

In multijugate phyllotaxis, two or more leaves or seeds grow at the same point on the stem. Each group is turned by a constant angle from the last.[17]

A 1994 review of studies by R. Jean, covering 650 species and 12,500 samples, estimated that about 92% of plants with spiral or multijugate phyllotaxis show Fibonacci numbers.[10]

Golden angle seed spiral137.5°123
Seeds in a flower head placed by the golden angle. Each new seed turns 137.5∘137.5^\circ from the one before and sits slightly farther from the center, so the seeds form interlocking spirals that run both ways.

Patterns in design

Repeats in fabric and wallpaper

Printed wallpaper must repeat in two directions. It repeats left to right so strips line up on the wall, and top to bottom so many strips can be cut from one roll.[4] Surface designers set up the repeat in one of a few standard layouts.[18]

  • In a full-drop repeat, the motif repeats along straight horizontal and vertical lines, forming a square or rectangular grid.
  • In a half-drop repeat, each neighboring column is shifted down by exactly half the vertical repeat.
Full drop and half drop repeat layouts Full drop Half drop 1/2 tile
In a full drop repeat, the tiles line up in straight rows and columns. In a half drop repeat, every other column moves down by half a tile height, so motifs in neighboring columns are staggered.

Artists choose symmetry for practical as well as visual reasons. Most of Escher's drawings that tile the plane use one of the seven wallpaper groups with no mirror lines, since figures meeting on a mirror line must have a straight edge, which living shapes rarely have.[4]

The Nobel committee pointed to medieval Islamic mosaics, such as those of the Darb-i Imam Shrine in Iran, as examples of aperiodic Islamic geometric patterns.[8]

Pattern languages

In architecture, a pattern can also mean a proven solution to a design problem that keeps coming back. In the 1977 book A Pattern Language, Christopher Alexander and his co-authors described 253 such patterns, ranging from regional planning to interior design, which together form a pattern language.[19] In their words, each pattern "describes a problem which occurs over and over again in our environment, and then describes the core of the solution to that problem".[19]

Software engineers adopted the idea. In 1994, Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides published Design Patterns, a catalog of 23 software design patterns for object-oriented programs.[20] Such programs are organized around objects that combine data with the actions on that data.

Patterns in data and code

Computers search for patterns in many kinds of data.

  • Pattern recognition is the automatic discovery of regularities in data by computer algorithms (step-by-step procedures a computer follows), and the use of those regularities to act, for example by sorting data into categories.[21] It overlaps heavily with machine learning.
  • A sequence motif is a short pattern in DNA or protein sequences that has a biological role. DNA motifs are usually 5 to 20 base pairs (pairs of DNA building blocks) long and recur in different genes or several times in one gene, often as binding sites for a transcription factor.[22]
  • A regular expression is a text pattern that specifies a set of strings, used to check whether a piece of text matches.[23]

References

  1. Developing concepts of pattern, Cambridge Mathematics Espresso 47, Cambridge Mathematics.
  2. Repeating patterns, Top Drawer, Australian Association of Mathematics Teachers.
  3. The Science of Patterns, Lynn Arthur Steen, Science 240, 1988.
  4. Wallpaper Patterns, EscherMath, Saint Louis University.
  5. Isometry Groups, EscherMath, Saint Louis University.
  6. Wallpaper patterns: the mathematics, SingSurf.
  7. Frieze Patterns, EscherMath, Saint Louis University.
  8. Press release: The Nobel Prize in Chemistry 2011, NobelPrize.org, 2011.
  9. See how fractals forever changed math and science, Science News, 2025.
  10. Fibonacci Numbers - Golden Angle, Smith College Phyllotaxis.
  11. Crystallography Restriction, Eric W. Weisstein, Wolfram MathWorld.
  12. The Nobel Prize in Chemistry 2011: Popular information, NobelPrize.org, 2011.
  13. Fractal Dimension and Measure, Cornell University Department of Mathematics.
  14. Pattern formation mechanisms of self-organizing reaction-diffusion systems, Developmental Biology, 2020.
  15. The chemical basis of morphogenesis, Alan M. Turing, Philosophical Transactions of the Royal Society B 237, 1952.
  16. Reaction-Diffusion Model as a Framework for Understanding Biological Pattern Formation, Shigeru Kondo and Takashi Miura, Science, 2010.
  17. Classification, Smith College Phyllotaxis.
  18. Pattern Repeats: Half Drop Repeats vs Full Drop Repeats, Pattern Observer, 2019.
  19. Christopher Alexander's A Pattern Language: analysing, mapping and classifying the critical response, City, Territory and Architecture, 2017.
  20. History of patterns, Refactoring.Guru.
  21. Pattern Recognition and Machine Learning, Christopher M. Bishop, Springer, 2006.
  22. A survey of DNA motif finding algorithms, BMC Bioinformatics, 2007.
  23. re: Regular expression operations, Python documentation.

Figure