Fisher’s equation: how a front selects its speed

Finite differences, moving coordinates and the asymptotics of a nonlinear travelling wave

Mathematical Physics
Numerical Methods
Partial Differential Equations
I combined a finite-difference simulation with travelling-wave analysis to investigate why different initial profiles select different propagation speeds.
Published

October 18, 2026

A front can settle into a recognisable shape while its speed is still changing. That distinction was central to this investigation. I wanted to understand whether Fisher’s equation eventually forgets the shape of its initial transition, or whether that transition continues to influence how fast the front travels.

I built an explicit finite-difference simulation, tracked the front rather than judging its motion by eye, and moved the computational frame with the wave so that I could study its evolution for longer. The step and piecewise-linear profiles approached a speed of \(2\). Gradual sigmoid profiles behaved differently: the observed speeds approached approximately \(2.08\) and \(2.5\).

The numerical work led back to an analytical question: which speeds can support a nonnegative travelling front? Linearising the travelling-wave equation about zero gave the lower bound \(c_{\min}=2\), consistent with the simulations.

Two original front-speed plots. The lambda 0.75 curve rises to about 2.08; the lambda 2 curve rises towards 2 over time 0 to 100.
Figure 1: The original speed curves for sigmoid initial profiles: \(\lambda=0.75\) on the left approaches approximately \(2.08\), while \(\lambda=2\) on the right approaches \(2\) more slowly. The dashed reference is \(c=2\). Original report Figure 9.

The problem

I studied the nonlinear reaction-diffusion equation

\[ u_t=u_{xx}+u(1-u) \tag{1}\]

on the finite interval \(-L\leq x\leq L\), with homogeneous Neumann boundary conditions

\[ u_x(-L,t)=u_x(L,t)=0. \tag{2}\]

The initial profiles connect the two constant states:

\[ u(x,0)\longrightarrow 1\quad\text{as }x\to-\infty, \qquad u(x,0)\longrightarrow 0\quad\text{as }x\to+\infty. \]

The finite computational interval approximates this setting. I began with \(L=100\), a spatial step \(h=0.2\) and a time step \(\tau=0.01\). Stationary-frame simulations ran to \(T=50\); moving-frame simulations extended the observation window to \(T=100\). The shallowest sigmoid required a larger domain, discussed below.

Three ways to initialise a front

The first profile is a discontinuous step:

\[ u(x,0)= \begin{cases} 1,&x<0,\\ 0,&x>0. \end{cases} \]

In the MATLAB implementation, I initialise the array to zero and set entries with \(x<0\) to one, so the grid value at \(x=0\) is zero.

The second profile spreads the transition across a finite interval:

\[ u(x,0)= \begin{cases} 1,&x\leq-2,\\ \dfrac{2-x}{4},&-2<x<2,\\ 0,&x\geq2. \end{cases} \]

The third is a smooth sigmoid:

\[ u(x,0)=\frac{1}{1+e^{\lambda x}}, \qquad \lambda=2,\;0.75,\;0.5. \]

Unlike the first two profiles, the sigmoid approaches its limiting states asymptotically rather than becoming exactly constant outside a transition interval. Decreasing \(\lambda\) makes the transition more gradual. I also tested \(\lambda=5\) to examine a steeper sigmoid.

Building the numerical method

I discretised space and time as

\[ x_j=-L+jh,\qquad t_n=n\tau, \qquad u_j^n\approx u(x_j,t_n). \]

A forward difference in time and a central difference in space give

\[ u_t\approx\frac{u_j^{n+1}-u_j^n}{\tau}, \qquad u_{xx}\approx\frac{u_{j+1}^n-2u_j^n+u_{j-1}^n}{h^2}. \]

Substituting these into Equation 1 gives the explicit update

\[ u_j^{n+1}=u_j^n+\tau\left[ \frac{u_{j+1}^n-2u_j^n+u_{j-1}^n}{h^2} +u_j^n(1-u_j^n) \right]. \tag{3}\]

The scheme is first-order accurate in time and second-order accurate in space, with truncation error \(O(\tau+h^2)\). The heat-equation stability check used in my report is

\[ \frac{\tau}{h^2}<\frac12, \qquad \frac{0.01}{0.2^2}=0.25<\frac12. \]

Enforcing the boundary conditions

The zero-gradient conditions can be imposed using reflected ghost values. At the left boundary,

\[ \frac{u_1^n-u_{-1}^n}{2h}=0 \quad\Longrightarrow\quad u_{-1}^n=u_1^n. \]

At the right boundary,

\[ \frac{u_{N+1}^n-u_{N-1}^n}{2h}=0 \quad\Longrightarrow\quad u_{N+1}^n=u_{N-1}^n. \]

The resulting endpoint updates are

\[ u_0^{n+1}=u_0^n+\tau\left[ \frac{2(u_1^n-u_0^n)}{h^2}+u_0^n(1-u_0^n) \right], \]

\[ u_N^{n+1}=u_N^n+\tau\left[ \frac{2(u_{N-1}^n-u_N^n)}{h^2}+u_N^n(1-u_N^n) \right]. \]

Measuring the front rather than estimating it visually

I define the front position by the level set

\[ u(x_f(t),t)=\frac12. \]

The grid will not generally contain a point where the numerical solution is exactly \(0.5\). If the crossing lies between neighbouring points \(x_j\) and \(x_{j+1}\), linear interpolation gives

\[ x_f(t_n)\approx x_j+ \frac{0.5-u_j^n}{u_{j+1}^n-u_j^n}(x_{j+1}-x_j). \tag{4}\]

I then estimate the instantaneous speed with a centred difference:

\[ c(t_n)\approx\frac{x_f(t_{n+1})-x_f(t_{n-1})}{2\tau}. \tag{5}\]

This produces a time series of speeds, which exposes the gradual approach to a limiting value. In the plots, the red trajectory on each heatmap follows this same \(u=0.5\) level set.

Moving with the wave

Simply running a stationary-frame simulation for longer creates another problem: the front approaches the boundary before its speed has fully settled. I addressed this by first estimating a speed \(c_0\), then solving in a frame travelling at that speed.

Let

\[ \xi=x-c_0t,\qquad u(x,t)=v(\xi,t). \]

The chain rule gives

\[ u_t=v_t-c_0v_\xi,\qquad u_{xx}=v_{\xi\xi}, \]

so the transformed equation is

\[ v_t=v_{\xi\xi}+c_0v_\xi+v(1-v). \tag{6}\]

I discretised the new first derivative centrally:

\[ v_\xi\approx\frac{v_{j+1}^n-v_{j-1}^n}{2h}, \]

leading to

\[ \begin{aligned} v_j^{n+1}=v_j^n+\tau\Bigg[& \frac{v_{j+1}^n-2v_j^n+v_{j-1}^n}{h^2}\\ &+c_0\frac{v_{j+1}^n-v_{j-1}^n}{2h} +v_j^n(1-v_j^n)\Bigg]. \end{aligned} \tag{7}\]

The front can still drift within this frame. I therefore track \(v(\xi_f(t),t)=1/2\) and recover the physical speed by adding the measured relative speed to the frame velocity:

\[ c(t)=c_0+\frac{d\xi_f}{dt}. \tag{8}\]

Choosing \(c_0\) near the observed wave speed keeps the transition within a much smaller range of coordinates. It does not force the measured speed to equal \(c_0\).

What the simulations showed

A step smooths into a travelling front

The discontinuity in the step profile rapidly smooths. Later profiles retain approximately the same shape while advancing towards increasing \(x\).

Original step-profile simulation. Successive smooth fronts move right; a heatmap shows the half-height trajectory approaching a straight line.
Figure 2: Step-profile evolution in the stationary frame: selected solution profiles on the left and the space-time heatmap on the right. The red curve tracks the half-height front. Original report Figure 1.

The speed rises quickly at first, then more slowly. At \(t=50\) it is approximately \(1.95\), still below \(2\).

The measured step front speed increases towards approximately 1.95 by time 50.
Figure 3: The step-profile front speed in the stationary frame over \(0\leq t\leq50\). Original report Figure 2.

I used \(c_0=1.95\) for the moving-frame simulation. The front initially falls behind that frame, then its relative drift becomes small. The later profiles nearly coincide.

Selected step profiles and heatmap in a frame moving at 1.95. The front remains near the centre instead of traversing the full domain.
Figure 4: The same step profile in a frame moving at \(c_0=1.95\). Original report Figure 3.

By \(t=100\), the recovered physical speed is approximately \(1.98\). Extending the simulation makes the slow convergence towards \(2\) much clearer.

Step-profile physical front speed approaching 2 across the longer time interval 0 to 100.
Figure 5: Recovered physical speed for the step profile in the moving frame, reaching approximately \(1.98\) at \(t=100\). Original report Figure 4.

A finite-width linear transition selects a similar speed

The piecewise-linear initial condition also smooths quickly. It reaches approximately \(1.95\) at \(t=50\) and approximately \(1.98\) at \(t=100\) when followed in the \(c_0=1.95\) frame.

Piecewise-linear profile simulation, showing a nearly stationary moving-frame front and a stationary-frame speed rising towards 2.
Figure 6: Piecewise-linear initial data: moving-frame heatmap on the left and stationary-frame speed on the right. Original report Figure 5.
Piecewise-linear front speed gradually approaching 2 and reaching about 1.98 by time 100.
Figure 7: Recovered physical speed for the piecewise-linear profile over \(0\leq t\leq100\). Original report Figure 6.

Changing the steepness of this finite-width linear transition still gave speeds close to \(2\). Its initial shape differs from the step, but the late-time propagation speeds are similar.

A gradual sigmoid travels faster

The shallow sigmoid, \(u(x,0)=1/(1+e^{0.5x})\), behaves differently. Its stationary-frame speed approaches approximately \(2.5\), with little subsequent change after about \(t=10\).

For the shallow sigmoid I used a larger domain with \(L=300\). In the moving frame I used \(c_0=2.5\) and ran to \(T=100\).

Shallow sigmoid simulation. The front remains nearly stationary in the 2.5-speed frame; its stationary-frame speed rapidly approaches 2.5.
Figure 8: The \(\lambda=0.5\) sigmoid: moving-frame heatmap and stationary-frame speed. Original report Figure 7.
Physical speed for the lambda 0.5 sigmoid rises towards 2.5 by approximately time 10 and remains nearly constant.
Figure 9: Recovered speed of the \(\lambda=0.5\) sigmoid in the moving frame. Original report Figure 8.

Increasing \(\lambda\) to \(0.75\) reduced the observed late-time speed to approximately \(2.08\). With \(\lambda=2\), the speed approached \(2\) more gradually, as in the step and linear cases. A further test with \(\lambda=5\) also approached \(2\).

Comparing the outcomes

Initial profile Reported finite-time behaviour Observed limiting trend
Step \(c(50)\approx1.95\); \(c(100)\approx1.98\) Towards \(2\)
Piecewise-linear \(c(50)\approx1.95\); \(c(100)\approx1.98\) Towards \(2\)
Sigmoid, \(\lambda=0.5\) Nearly settled by \(t\approx10\) Approximately \(2.5\)
Sigmoid, \(\lambda=0.75\) Rapid approach, nearly constant later Approximately \(2.08\)
Sigmoid, \(\lambda=2\) More gradual approach Towards \(2\)
Sigmoid, \(\lambda=5\) Additional steep-profile test Towards \(2\)

The comparison showed that making the transition steeper does not continually change the selected speed. The gradual sigmoid tails can produce faster fronts, while several quite different profiles approach the same lower speed.

Why the minimum speed is two

To connect the numerical observations to the mathematics, I sought a travelling-wave solution

\[ u(x,t)=U(\xi),\qquad\xi=x-ct,\qquad c>0. \]

Using \(u_t=-cU'\) and \(u_{xx}=U''\) reduces the PDE to

\[ U''+cU'+U(1-U)=0. \tag{9}\]

There is a useful mechanical analogy. Comparing this with motion in a potential with friction,

\[ \ddot{x}+2\gamma\dot{x}=-\frac{dV}{dx}, \]

gives

\[ \frac{dV}{dU}=U(1-U), \qquad V(U)=\frac{U^2}{2}-\frac{U^3}{3}, \]

where I choose the arbitrary constant to be zero. The stationary points of this potential are \(U=0\) and \(U=1\).

Near \(U=0\), the nonlinear term satisfies \(U(1-U)\approx U\), so Equation 9 becomes

\[ U''+cU'+U=0. \]

Substituting \(U=e^{r\xi}\) gives

\[ r^2+cr+1=0, \qquad r=\frac{-c\pm\sqrt{c^2-4}}{2}. \tag{10}\]

For \(c\geq2\), the roots are real and negative, allowing a non-oscillatory exponential approach to zero. For \(0<c<2\), the roots are complex and the linearised approach oscillates through zero. That is incompatible with the nonnegative front sought here. The calculation therefore identifies the minimum admissible speed

\[ \boxed{c_{\min}=2.} \]

The analysis explains the lower bound shared by the numerical results. It does not determine the selected speed for every initial condition; the faster sigmoid cases remain an important part of the numerical comparison.

MATLAB implementation

The MATLAB listings show the stationary- and moving-frame solvers for the step profile.

Stationary-frame solver and front tracking
% params:
L = 100;
h = 0.2;
tau = 0.01;
T = 50;

x = -L:h:L;
t = 0:tau:T;

% initial condition:
u = zeros(size(x));
u(x < 0) = 1;

U = zeros(length(t),length(x));
U(1,:) = u;

% finite difference method:
for n = 1:length(t)-1
    u_new = u;
    for i = 2:length(x)-1
        u_xx = (u(i+1)-2*u(i)+u(i-1))/h^2;
        u_new(i) = u(i) + tau*(u_xx + u(i)*(1-u(i)));
    end

    % boundary conditions:
    u_new(1) = u(1) + tau*(2*(u(2)-u(1))/h^2 + u(1)*(1-u(1)));
    u_new(end) = u(end) + tau*(2*(u(end-1)-u(end))/h^2 + u(end)*(1-u(end)));

    u = u_new;
    U(n+1,:) = u;
end

% front position:
x_front = zeros(size(t));
for n = 1:length(t)
    i = find(U(n,:) <= 0.5,1);
    x_1 = x(i-1);
    x_2 = x(i);
    u_1 = U(n,i-1);
    u_2 = U(n,i);
    x_front(n) = x_1 + (0.5-u_1)*(x_2-x_1)/(u_2-u_1);
end

% front speed:
c = zeros(size(t));
for n = 2:length(t)-1
    c(n) = (x_front(n+1)-x_front(n-1))/(2*tau);
end
Moving-frame solver
% params:
L = 100;
h = 0.2;
tau = 0.01;
T = 100;
c0 = 1.95;

xi = -L:h:L;
t = 0:tau:T;

% initial condition:
v = zeros(size(xi));
v(xi < 0) = 1;

V = zeros(length(t),length(xi));
V(1,:) = v;

% finite difference method:
for n = 1:length(t)-1
    v_new = v;
    for i = 2:length(xi)-1
        v_xixi = (v(i+1)-2*v(i)+v(i-1))/h^2;
        v_xi = (v(i+1)-v(i-1))/(2*h);
        v_new(i) = v(i) + tau*(v_xixi + c0*v_xi + v(i)*(1-v(i)));
    end

    % boundary conditions:
    v_new(1) = v(1) + tau*(2*(v(2)-v(1))/h^2 + v(1)*(1-v(1)));
    v_new(end) = v(end) + tau*(2*(v(end-1)-v(end))/h^2 + v(end)*(1-v(end)));

    v = v_new;
    V(n+1,:) = v;
end
% the front position and speed are obtained as per above,
% they are not included here for brevity.

The centred speed formula applies to interior time indices. In the moving frame, I recover the physical speed by adding the frame velocity to the relative speed.

What I took from the investigation

The moving frame was the key computational decision. It let me distinguish a front that looks settled from one whose speed is still converging, without simply extending the stationary domain indefinitely.

The comparison also made the role of the initial profile more precise. A discontinuity, a finite linear transition and a steep sigmoid can all lead towards the same speed, while a sufficiently gradual sigmoid can sustain a faster one. The analytical calculation supplies a lower bound; the numerical experiments reveal how different initial profiles approach it or select a higher value.

References

  • N. Alexeeva, MAM3043S Mathematical Physics: Lecture Notes, Department of Mathematics and Applied Mathematics, University of Cape Town, 2026.
  • Wikipedia contributors, KPP-Fisher Equation.
  • M. Alfaro, T. Giletti and D. Xiao, The Bramson Correction in the Fisher-KPP Equation: From Delay to Advance, Mathematische Annalen 392, 5275–5316 (2025), DOI: 10.1007/s00208-025-03231-5.

Originally completed as part of MAM3043S · Methods of Mathematical Physics, University of Cape Town, 2026.