Reaction-Diffusion: How Chemistry Paints Animal Patterns

simulator intermediate ~12 min
Loading simulation...
Spots — Gray-Scott F=0.037, k=0.06

With F=0.037 and k=0.06, the Gray-Scott model produces a stable spot pattern reminiscent of animal skin markings. Chemical B forms isolated concentrations surrounded by chemical A, exactly as Alan Turing predicted in 1952.

Formula

∂A/∂t = Da·∇²A − AB² + F(1 − A)
∂B/∂t = Db·∇²B + AB² − (F + k)B

Turing's Last Great Idea

In 1952, two years before his tragic death, Alan Turing published a paper that would eventually explain one of biology's most visible mysteries: how do animals get their patterns? His insight was that two diffusing chemicals — an activator that promotes its own production and an inhibitor that suppresses it — can spontaneously form stable patterns if the inhibitor diffuses faster than the activator.

The Gray-Scott Model

The Gray-Scott model is one of the simplest reaction-diffusion systems that produces rich pattern behavior. Two chemicals, A and B, undergo the reaction A + 2B → 3B (autocatalysis). Chemical A is continuously fed into the system at rate F, and chemical B is continuously removed at rate k. Both chemicals diffuse through space, with A diffusing faster than B. These simple rules produce an astonishing variety of patterns.

The Pattern Parameter Space

The feed rate F and kill rate k together determine which pattern forms. Low F and k produce stable spots. Moderate values create stripes and labyrinthine patterns. High values lead to waves, spirals, and chaos. There is a precise boundary in parameter space between each regime, and the transitions between them exhibit the hallmarks of phase transitions in physics.

From Mathematics to Biology

Turing's prediction was confirmed experimentally in the 1990s when researchers identified the actual morphogens responsible for pattern formation in zebrafish, mouse hair follicles, and other organisms. The same mathematics explains fingerprint patterns, coral structures, and even the distribution of vegetation in semi-arid landscapes. Reaction-diffusion is nature's universal pattern generator.

FAQ

What is reaction-diffusion?

Reaction-diffusion is a mathematical model where two or more chemicals react with each other and diffuse through space at different rates. When one chemical activates and the other inhibits, and the inhibitor diffuses faster, spontaneous patterns emerge from uniform initial conditions.

What is the Gray-Scott model?

The Gray-Scott model simulates two chemicals (A and B) where A is continuously fed and B is continuously removed. The reaction A + 2B → 3B converts A into B autocatalytically. Different feed and kill rates produce spots, stripes, spirals, or chaos.

How does reaction-diffusion explain animal patterns?

Alan Turing proposed in 1952 that animal coat patterns arise from reaction-diffusion of morphogens (chemical signals) during embryonic development. The activator-inhibitor mechanism explains zebra stripes, leopard spots, giraffe patches, and fish coloration.

Why do different parameter values produce different patterns?

The feed rate controls how quickly chemical A is replenished, and the kill rate controls how quickly B is removed. Their balance determines whether B can sustain stable spots, grow into stripes, or dissolve entirely. The parameter space maps to distinct pattern regimes.

Sources

Embed

<iframe src="https://homo-deus.com/lab/art-mathematics/reaction-diffusion/embed" width="100%" height="400" frameborder="0"></iframe>
View source on GitHub