Advanced maths

Reaction diffusion Turing instability calculator for two species

Analyze diffusion-driven linear instability from a stable reaction Jacobian and a no-flux mode spectrum.

Your numbers

Two rows of two real derivatives, evaluated at the supplied model’s homogeneous equilibrium.
Use a finite value within the stated calculator limits.
Use a finite value within the stated calculator limits.
Use a finite value within the stated calculator limits.
Use a finite value within the stated calculator limits.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Analyze diffusion-driven linear instability from a stable reaction Jacobian and a no-flux mode spectrum.

THE FORMULAMode matrix=J−k²diag(d1,d2);k=nπ/L.

A worked example

For J=[[1,1],[−3,−2]],d1=.01,d2=1,the continuous k² band is≈[1.03126,96.96874].

Good to know

Strictly stable real2×2 reaction Jacobian,positive diagonal diffusion,no-flux1D length,up to100 modes. Continuous band separate from sampled-domain modes;linear analysis only,no nonlinear pattern prediction.

Diffusion can destabilize a stable reaction system

A two-species reaction model can be stable against spatially uniform perturbations yet unstable to some spatial patterns once the species diffuse at different rates. This is the linear Turing-instability question. It is not the same as measuring temporal divergence along a nonlinear trajectory.

The page begins with an entered reaction Jacobian at a homogeneous equilibrium. It requires that the reaction system alone be strictly stable before discussing diffusion-driven instability. If that prerequisite fails,the page rejects the input rather than calling an already unstable reaction system a Turing mechanism.

Reaction diffusion Turing instability worked example for two speciesStable at k=0Positive growth bandDiscrete k=nπ/L
Scroll across to see the full diagram.
For J=[[1,1],[−3,−2]],d1=.01,d2=1,the continuous k² band is≈[1.03126,96.96874].

Compare this with the Finite time Lyapunov exponent calculator for a nonlinear system. Analyze whether diffusion destabilizes a locally stable two-species equilibrium through a spatial dispersion relation,not temporal trajectory divergence.

Supply derivatives at the actual equilibrium

The two-by-two Jacobian contains derivatives of the reaction functions with respect to the two species. Both diffusivities must be positive. The domain is a one-dimensional interval with no-flux ends,and its length determines which spatial wave numbers are available in the finite-domain calculation.

The page does not find the equilibrium or differentiate arbitrary reaction expressions automatically. Those derivatives and their units must be calculated consistently beforehand. Entering a Jacobian from another point can produce a mathematically correct dispersion calculation for a model that does not describe the intended equilibrium.

Reaction stability comes first

For a real two-by-two system,the reaction equilibrium is strictly stable when the trace is negative and determinant positive. These conditions are checked directly. They permit either two negative real eigenvalues or a complex conjugate pair with negative real part.

Adding diagonal diffusion changes the mode matrix to J−k²D. Its trace decreases with k² when both diffusivities are positive,so loss of stability in this setting is controlled by the determinant becoming negative. This gives a scalar quadratic in the squared wave number and a transparent continuous instability interval.

Derive the continuous wave-number interval

Writing q=k²,the determinant is d1 d2 q²−(d2 J11+d1 J22)q+det(J). A positive middle combination and a positive discriminant are needed for a negative interval at positive q. The two positive roots bound the candidate band of diffusion-destabilized continuous modes.

That band is not automatically an unstable mode of a finite domain. No-flux boundaries allow k=nπ/L for nonnegative integer n. A narrow band can fall between those values,so the page reports the continuous interval separately from the selected discrete modes that were actually inspected.

The worked two-species example

For J=[[1,1],[−3,−2]],the reaction trace is−1 and determinant one. With diffusivities0.01 and one,the continuous unstable q interval is approximately1.03126 to96.96874. The equal reaction state is therefore stable without diffusion but admits a diffusion-driven band.

On a length-ten no-flux interval,the discrete wave numbers are nπ/10. The default checks modes zero through thirty and finds positive growth among them. Mode zero remains reaction-stable,which is a useful consistency check that the reported instability requires spatial variation rather than merely repeating the original temporal eigenvalues.

Read growth rates and search bounds together

Each inspected mode has a wave number and the largest real part of its two eigenvalues. A positive value means linear exponential growth for that mode;zero is a boundary case,not strict decay. The largest sampled growth is restricted to the displayed finite mode range.

A finite-mode false result does not override a nonempty continuous band if the user stopped the mode list too early. Inspect the band endpoints and extend the inspected modes within the allowed limit when appropriate. The output does not silently claim a global maximum over every possible continuous wave number.

Linear instability is not a pattern prediction

A Turing condition identifies the onset of amplification of small perturbations under the stated model. It does not determine the eventual nonlinear pattern,wavelength selection after saturation,amplitudes or biological interpretation. Those require nonlinear equations,initial perturbations and a spatial evolution analysis.

The calculation also excludes cross diffusion,nonlocal coupling,advection and multidimensional boundary spectra. Keep the Jacobian,diffusivities,domain length,no-flux convention and inspected mode range together. Changing any of them can alter which finite-domain modes are allowed and whether one lies inside the continuous instability band.

A few questions, answered

Must the reaction equilibrium already be stable?

Yes. Otherwise the instability is not diffusion-driven under this test.

Does a continuous band guarantee an allowed domain mode?

No. The no-flux mode spacing depends on the domain length.

Does the result predict final pattern amplitude?

No. It only analyzes linear growth near a homogeneous equilibrium.

Are cross-diffusion terms supported?

No. Diffusion is positive and diagonal.

Find your calculator

Start typing to explore the library.