Home▸Articles▸Chaos & Dynamics

The Pattern Lab: Exploring Reaction-Diffusion Systems

A fascinating glimpse into the mathematical beauty of pattern formation in chemistry and biology.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What is a Reaction-Diffusion System?

A reaction-diffusion system consists of two or more substances that react with each other and diffuse through space. The Gray-Scott model, used in the Pattern Lab simulation, involves just two chemicals: an activator (A) and an inhibitor (B).

The key to pattern formation lies in the interaction between these chemicals; when A is produced by a reaction and B inhibits both its production and its own decay, complex patterns can emerge.

How Patterns Form

Patterns form due to the interplay of diffusion rates and reaction kinetics. In the Gray-Scott model, if A diffuses more slowly than B, it can spread before being inhibited by B, leading to pattern formation.

The specific patterns—such as spots, stripes, or spirals—are determined by the parameters of the system, like the rate constants for production and inhibition.

live demo · related simulation● LIVE

Why It Matters

Understanding reaction-diffusion systems is crucial in various fields. In biology, it helps explain how patterns form during embryonic development or how diseases spread.

In chemistry, these models can predict the behavior of chemical reactions under different conditions, aiding in the design of new materials and pharmaceuticals.

Real-World Examples

The Gray-Scott model has been used to simulate patterns found in nature, such as the spots on a leopard or the stripes on a zebrafish. It also finds applications in modeling chemical reactions and even in computer graphics for generating realistic textures.

In ecology, similar models can predict how species distribute themselves across an environment based on competition and diffusion.

Frequently asked questions

How do the parameters affect pattern formation?

The rate constants of production and inhibition, as well as the diffusion rates of A and B, significantly influence the patterns formed. Adjusting these values can lead to entirely different outcomes.

What are some practical applications of reaction-diffusion systems?

They are used in developmental biology to understand pattern formation during embryogenesis, in ecology for modeling species distribution, and in chemistry for predicting reaction behavior.

Can the Gray-Scott model be applied beyond just two chemicals?

Yes, while the Gray-Scott model uses only two substances, more complex models can involve multiple chemicals to simulate even more intricate patterns and behaviors.

How does diffusion affect pattern formation in reaction-diffusion systems?

Diffusion allows the activator and inhibitor to spread out, leading to interactions that result in stable or oscillating patterns. The balance between production rates and diffusion speeds is crucial for pattern emergence.

Try it live

Everything above runs in your browser — open Pattern Lab and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Pattern Lab simulation

What did you find?

Add reproduction steps (optional)