Notes on diffusion

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, D, 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 J is a vector; the gradient supplies its direction and the minus sign makes it run downhill:

\mathbf{J} = -D\,\nabla c1

Conservation

Whatever leaves a volume has to enter its neighbours, so the local rate of change is minus the divergence of the flux:

\frac{\partial c}{\partial t} + \nabla \cdot \mathbf{J} = 02

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:

\frac{\partial c}{\partial t} = D\,\nabla^2 c3

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 D and t is \sqrt{Dt}, which is why every diffusive process looks the same once you measure distances in those units.

The fundamental solution

Release N particles at a point and let them go. The answer is a Gaussian whose variance grows linearly in time:

c(x,t) = \frac{N}{\sqrt{4\pi D t}}\; \exp\!\left(-\frac{x^2}{4Dt}\right)4

Its second moment is the cleanest statement in the subject:

\langle x^2 \rangle = 2Dt5

so the width grows as \sqrt{t} while the peak height falls as t^{-1/2}: the area stays put, the profile flattens. In d dimensions the same argument, one integration by parts per axis, gives \langle r^2\rangle = 2dDt.

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.