How the Leopard Got Its Spots
Two chemicals that do nothing but react and spread can break a blank sheet into spots, stripes, and mazes. Turing's last great idea was that diffusion, the great smoother, is also where pattern comes from.
Here is a claim that should sound wrong. Take two chemicals. Let one of them catalyse its own production, let the other one feed it, and let both simply spread out the way ink spreads in water. Start them mixed almost evenly across a dish, with only a whisper of noise to break the symmetry. Wait. Spots appear. Not because anything tells them where to go, not because a mould stamps them in, but because the maths of "react and spread" has no stable flat answer. The blank sheet is the one thing the system cannot keep.
That is the idea Alan Turing published in 1952, in what turned out to be his last major paper, The Chemical Basis of Morphogenesis. He was asking how a ball of identical cells in an embryo decides to become a striped tail or a spotted flank when every cell starts with the same instructions. His answer was that diffusion, which we all learn is the great smoother, can be the very thing that creates structure. Let's watch it happen first, then take it apart.
The two-chemical recipe
The model in the lab is the Gray-Scott system, a particularly clean activator-substrate pair. Call the two concentrations and . The reaction is autocatalysis: one unit of recruits more by consuming , written as a chemical scheme it looks like this.
So is the activator: the more of it there is, the faster it makes more of itself (that term, cubic in the reactants). And is the substrate it burns through. Now add diffusion, write down the rate of change of each concentration at every point, and you get the two coupled partial differential equations the lab is actually integrating.
Read it left to right. The term is diffusion, the bit that spreads each chemical toward its neighbours. The term is the reaction that moves into . The term tops back up (the feed, replacing what gets used), and removes (the kill). Four moving parts, two of them just spreading and reacting. There is genuinely nothing else in here, no hidden template, which is what makes the result feel like a magic trick.
The one number that matters more than any other is the ratio of the two diffusion rates. In the lab, and : the substrate spreads twice as fast as the activator. Hold that thought, because it turns out to be the whole secret.
Why the great smoother makes structure
The intuition Turing gave is short-range activation with long-range inhibition. The activator is slow, so wherever it gets a local lead it builds a sharp peak right where it is. The substrate it depends on is fast, so a growing peak drains from a wide area around itself. Nearby, has been eaten and can't be replenished quickly, so no second peak can start there. Far away, the substrate is still plentiful and another peak can rise. The peaks therefore sit at a preferred distance from each other. That spacing is the pattern.
The smoother and the sharpener are the same operator
Diffusion on its own only ever flattens. Drop ink in still water and it fades to grey; it never spontaneously re-gathers into dots. So how does the same that flattens a single chemical sharpen a pattern in a pair of them? Because the two chemicals diffuse at different speeds. The fast one carries an inhibiting effect further than the slow one carries its activating effect, and that imbalance is what a single, uniform mixture cannot survive. Make the two diffusion rates equal and the magic stops: the flat state goes stable again and the dish stays blank. Pattern needs the difference in diffusion, not diffusion itself.
The phrase "long-range inhibition" is a useful lie worth flagging. The substrate does not actively suppress the way a true inhibitor would. It just gets eaten, and because it refills slowly and spreads quickly, a local feast of leaves a wide ring of starvation around it. The inhibition is effective, a consequence of depletion plus fast diffusion, rather than a chemical that hunts down. The behaviour is the same; the mechanism is gentler than the name suggests.
The maths of the instability
We can make "a uniform mixture cannot survive" precise, and this is where the post connects to every other dynamical-system story on this site. Freeze the diffusion for a second and treat the reaction terms as an ordinary two-variable system. It has a steady mixed state where production balances loss, and you check its stability with the Jacobian of the reaction kinetics, exactly the linearisation we use to classify fixed points in phase portraits. For Gray-Scott in the patterning regime, that mixed state is stable on its own: leave the chemicals to react with no spreading and they settle.
Now switch diffusion back on and ask what a small ripple of wavenumber does. A bumpy perturbation grows or shrinks at a rate , the larger of two eigenvalues, and its sign is controlled by a single function.
Here and are entries of that reaction Jacobian. When for some band of , ripples at those wavelengths grow, even though the no-diffusion state was stable. That is a diffusion-driven instability, and it is the engine of the whole thing. The fastest-growing wavelength wins and sets the spot spacing you measure on the screen.
Four conditions, not two
It is tempting to stop at "stable without diffusion, unstable with it", but the full Turing recipe is four inequalities. The kinetics must be stable on their own ( and ). Then the cross term must be positive (), and finally it must be large enough to push below zero, . That last one is where the diffusion ratio earns its keep: if the two chemicals spread at the same speed, the inequality fails and there is no pattern. A non-zero pattern wavelength exists only when the diffusion rates differ enough for to actually dip below the axis.
A footnote for the connoisseur: classical linear activator-inhibitor models often need the inhibitor to diffuse roughly ten times faster than the activator before patterns appear, which is awkward biologically, because real morphogens of similar size diffuse at similar rates. Gray-Scott gets away with a ratio of two because its cubic autocatalysis does extra work the linear models can't. It is one reason this particular toy is so beloved.
Reading the parameter map
Everything above sets the scale of the pattern. What kind of pattern you get, dots versus mazes versus something that splits and crawls, lives in the two dials and . Pearson's 1993 survey mapped this plane and found a small continent of wildly different behaviours packed into a narrow strip of parameter space.
The preset above is the strange one. The dots grow, and when a dot gets too fat for the wavelength the dispersion relation allows, it becomes unstable to splitting and pinches into two, which then push apart and repeat. It looks exactly like cells dividing. There are no cells. There is no instruction to divide. It is the same two equations, parked at a different .
Linear theory sets the scale, not the shape
Be careful what you credit to the dispersion relation. The band of unstable wavelengths predicts the spacing of the spots, and that is a genuinely linear result. But the dramatic stuff, a spot actually pinching in half, the labyrinth weaving itself, is nonlinear and only happens at finite amplitude. Linear analysis tells you the system can't stay flat and roughly how far apart the features will sit. It does not, by itself, tell you a dot will split. For that you have to let the full equations run, which is exactly what the lab does.
Two failure modes are worth a try while you have the controls. Push the kill rate too high and can't sustain itself; the whole field collapses to the dead, uniform "all substrate" state and stays there. Pull the diffusion rates together (you can't in this lab, but it's the thought experiment from the callout) and the pattern never starts. Both are reminders that the pattern lives in a window, and outside it the blank sheet wins after all.
From two chemicals to a leopard
Turing wrote about chemistry, but the title of this post is stolen, gently, from James Murray, who in 1988 used exactly this reasoning to argue about animal coats. The argument has a lovely, testable consequence about geometry. A reaction-diffusion pattern fitting into a narrow, tapering domain, like a tail, is forced toward stripes, because a single wavelength can only pack across the width one way. A broad domain, like a flank, has room for spots. So you can have a spotted body running out into a striped tail, but a striped body cannot end in a spotted tail. Look at the big cats and the rule holds: plenty of spotted cats with banded tails, no banded cats with spotted tails.
A spotted animal can have a striped tail, but a striped animal cannot have a spotted tail. The geometry of the canvas decides, and the chemistry just fills it in.
This is not only a story about ink in a dish. In 2020 a team led by Stephan Getzin showed that the "fairy circles" in the Australian outback near Newman, regular gaps in spinifex grass, fit a Turing model where the grass biomass is the slow activator and soil water is the fast-spreading inhibitor. The vegetation engineers its own water supply, the water redistributes faster than the plants do, and the landscape settles into a honeycomb you can see from a plane. Same maths, a different pair of "chemicals".
A note on who wrote this, and when
It is hard to read the 1952 paper without the biography pressing in. Turing had been convicted of gross indecency only months earlier, in March 1952, and was undergoing court-mandated hormone treatment, a chemical castration, while he worked on it. He died in June 1954, not yet 42. The man who had done as much as anyone to win a war and to invent the computer spent some of his last clear years asking why a tiger has stripes, and got the answer essentially right four decades before anyone could simulate it on a screen. Some food for thought about what we lost.
The same instability, elsewhere
The reason this clicks, if you've read around the site, is that it is the same move as everywhere else. A stable fixed point, a perturbation, a parameter that flips stability and lets the perturbation grow. In the Lorenz post a tiny difference in initial conditions blows up and you get chaos; here a tiny ripple blows up and you get order. Both are linear instabilities of an equilibrium, classified with the same Jacobian we use in phase portraits. The difference is only what the growing mode looks like: a trajectory peeling away from a point, or a wavelength peeling away from a flat field.
We tend to think of "smoothing" and "structure" as opposites. Turing's quiet, radical point was that with two ingredients spreading at different speeds, the smoothing is the structure. Drag the Feed and Kill sliders for a while and you'll start to feel where the window is. The blank sheet, it turns out, was never an option.
Reading further
- Turing, The Chemical Basis of Morphogenesis (1952). The original, Phil. Trans. R. Soc. B 237, 37-72. Surprisingly readable, and the source of the whole field; his "morphogen" instability is equation (3) in disguise.
- Pearson, Complex Patterns in a Simple System (1993). Science 261, 189-192. The map of the Gray-Scott plane, including the self-replicating-spot regime in the lab.
- Murray, How the Leopard Gets Its Spots (1988). Scientific American 258(3), 80-87. The animal-coat argument and the spotted-body-striped-tail rule, from the master of mathematical biology.
- Getzin et al., Fairy circle Turing patterns (2021). J. Ecology 109, 399-416. Reaction-diffusion confirmed in the field, in Australian spinifex grassland.
- Karl Sims, Reaction-Diffusion Tutorial. The clearest hands-on explanation of the Gray-Scott numerics, and the source of the exact Laplacian stencil this lab uses.
Try it in the lab
All effects →Reaction-Diffusion
mathsGray-Scott Turing patterns — spots, stripes, mazes, and mitosis from two PDEs.
pdeturingpattern formationConformal Grid
mathsComplex mappings deforming a Cartesian grid — Joukowski, power maps, inversion.
complex analysisdifferential geometryDouble Pendulum
mathsChaotic pendulums diverging from near-identical starting conditions.
chaosode
More from the blog
Repair is just solving in disguise
I gave a 160M-parameter Go model a reflect-and-fix loop so it could bootstrap past its own ceiling. It fixed zero bugs. The reason runs deeper than the code — and it taught me my model had been memorising all along.
Filters from Poles and Zeros
A filter is two polynomials, and the roots of those polynomials are the whole story. Place a few points in the complex plane and you can read the entire frequency response straight off the geometry — no calculus required at the point of use.
Learning by Rolling Downhill
Every neural network you've ever used was trained by the oldest trick in calculus: to minimise a function, walk downhill. The whole story of modern optimisers is a list of the specific ways plain downhill walking fails, and the patch for each.