The diffusion equation
Two laws, one gradient, and a Gaussian that spreads as the square root of time.
Diffusion is what happens when a gradient has nowhere to hide. Nothing in the microscopic picture has a preferred direction — molecules jostle, collide and drift apart — yet the macroscopic description is so law-abiding that a single constant, , is enough to predict it.
Fick's first law
Particles move from crowded regions to empty ones at a rate proportional to the steepness of the concentration. The current density is a vector; the gradient supplies its direction and the minus sign makes it run downhill:
Conservation
Whatever leaves a volume has to enter its neighbours, so the local rate of change is minus the divergence of the flux:
Putting them together
Substitute the flux (1) into the balance (2) and the two laws collapse into one equation. This is the whole of diffusion theory:
It is linear, so solutions add. It is first order in time, so it forgets its initial condition one smoothing step at a time. And it contains no length scale — the only quantity with units of length that can be made from and
is
, which is why every diffusive process looks the same once you measure distances in those units.
The fundamental solution
Release particles at a point and let them go. The answer is a Gaussian whose variance grows linearly in time:
Its second moment is the cleanest statement in the subject:
so the width grows as while the peak height falls as
: the area stays put, the profile flattens. In
dimensions the same argument, one integration by parts per axis, gives
.
Where it stops being enough
A Gaussian decays to nothing, which is fine if the particles are allowed to leave. Keep them in a box and the profile settles into a cosine; add a reaction and the uniform state itself can become unstable. That last case is where diffusion stops smoothing and starts drawing — the subject of the next page.