Rigorous mathematical derivation and interactive simulation showing how the gaussian exponential kernel arises from Fick's second law
In one dimension, non-steady-state mass diffusion is governed by Fick's second law with constant diffusivity D:
Because there is no inherent spatial scale imposed by an infinite boundary condition, dimensional analysis dictates that position z and time t must combine into an invariant similarity group.
We introduce the dimensionless similarity variable η:
Applying the chain rule to the partial derivatives with respect to t and z:
Expressing the partial derivatives of concentration C(η) using ∂C/∂t = (dC/dη) × (∂η/∂t) yields:
Substituting these transformed partial derivatives back into Fick's second law:
Rearranging into canonical form completely removes explicit time t, reducing the PDE to an invariant ODE:
Let p(η) = dC/dη. The equation becomes first-order separable:
Integrating p(η) gives the complementary error function for step boundaries, or the fundamental Gaussian kernel for point sources under total mass conservation:
When starting from a finite pulse of initial width σ₀ at zero time, the variance broadens linearly with time as σ²(t) = σ₀² + 2Dt, approaching the exact fundamental exponential kernel smoothly without any singularity at t = 0.