The Diffusion Equation
Drop a bead of ink into still water and watch the boundary blur. No stirring, no current — yet the dark cloud swells, its edge softening from a sharp line into a smooth halo, until the color fades evenly through the glass. What you are seeing is the collective effect of countless molecular collisions, each nudging an ink molecule a tiny random step. The astonishing fact is that this microscopic chaos obeys a single, clean law at the macroscopic scale: the density of the diffusing stuff changes at a rate set by its own curvature, , with one number — the diffusion coefficient — fixing the pace. The equation is deceptively simple but structurally deep. Because it can be written as a continuity equation with the down-gradient current (Fick's first law), it conserves total probability: diffusion rearranges without creating or destroying. Its fundamental solution — the response to a point release — is a Gaussian that broadens with variance , so a spreading front advances only as , never at constant speed. That law is the fingerprint of uncorrelated random stepping, and it is exactly the mean-square displacement that a Brownian particle traces out one trajectory at a time. Diffusion is where reversible microscopic mechanics turns into an irreversible macroscopic arrow. Run the equation backward and it is mathematically ill-posed — high-wavenumber ripples explode — mirroring the monotonic growth of entropy. Within statistical mechanics this equation is a hub: it is the force-free heart of the Fokker–Planck equation, the long-wavelength limit of the master equation for a hopping particle, and the ensemble companion of the Langevin trajectory. Master it and drift–diffusion, Kramers' escape problem, and the whole machinery of stochastic transport open up.
- The diffusion equation governs how a probability or concentration density spreads under random microscopic motion; the single constant has units of .
- It is a conservation law: written as continuity with the Fick current , it conserves .
- Its fundamental solution is a Gaussian with variance , so a point release spreads as and the mean-square displacement is (and in dimensions) — the diffusive scaling.
- Each Fourier mode decays as : short wavelengths vanish fastest, which is why diffusion smooths sharp features and why running it backward is ill-posed.
- It is the force-free special case of the Fokker–Planck equation; adding drift or a potential generalizes it to advection–diffusion and the Smoluchowski form.
- Key idea: uncorrelated random microscopic steps of zero mean and finite variance produce, after coarse-graining, a conserved density whose entire evolution is fixed by one number — a spreading Gaussian of width , slower than ballistic, and irreversible despite reversible microscopics.
Uncorrelated random microscopic steps of zero mean and finite variance produce, after coarse-graining in space and time, a conserved density whose evolution is fixed entirely by one number : . The response to a point release is a Gaussian of variance , so the front spreads as — the signature of diffusion.
Where this lives today
The diffusion equation is arguably the most reused partial differential equation in science, because the same operator governs any conserved quantity spread by unbiased random motion. It is the heat equation of thermal engineering (with the thermal diffusivity), the diffusion (zero-drift) part of the Black–Scholes equation in quantitative finance, the model for dopant profiles in semiconductor fabrication (junction depth ), and the backbone of image-processing "diffusion filters" that blur noise while preserving structure. In modern machine learning, diffusion models are inspired by this mathematics: they begin with a simple forward process that gradually adds Gaussian noise and train a model to approximate the corresponding reverse denoising dynamics, transforming noise into images. Within statistical physics the equation is the gateway to nonequilibrium dynamics: it is the force-free heart of the Fokker–Planck equation, the coarse-grained limit of the master equation, and the ensemble face of the Langevin trajectory. Single-molecule tracking in living cells routinely measures versus and reads off — and departures from the linear law (subdiffusion with ) now serve as a sensitive probe of crowding and binding inside cells.
The physical picture
Think of the density as a crowd of independent walkers, each kicked at random by the surrounding molecules. Nothing tells a walker which way to go, yet more walkers sit where the density is higher, so random motion alone produces a net flux from regions of high concentration to regions of low concentration. Count the walkers crossing any plane per unit time and it is proportional to the concentration difference across it — that is Fick's law, . Add the bookkeeping that walkers are neither born nor lost, and the diffusion equation follows with no further input. The Laplacian is a local averaging detector: it measures how much at a point falls below the average of its neighbors. Diffusion pushes every point toward that local average, so peaks erode and hollows fill. A jagged initial profile is combed smooth, high-frequency wrinkles first, until the density is uniform. This is the intuitive content of " is proportional to curvature." Two features distinguish diffusion from ordinary transport. First, it is slow at scale: to spread a distance takes time , quadratic in distance, which is why molecules cross a cell by diffusion in milliseconds but would need years to diffuse across a room — life uses convection and pumps for anything larger. Second, it is irreversible: although each molecular collision is time-reversible, the coarse-grained density only ever spreads. The arrow enters through the monotonic growth of the spatial entropy of , and mathematically through the fact that the backward equation blows up.
The second figure highlights the defining signature of diffusion: the characteristic width of the distribution grows as , rather than linearly in time. A signal that moved at constant speed would trace a straight line on a plot of displacement versus time; a ballistic object would trace a parabola in . Diffusion does neither — its mean-square displacement is a straight line through the origin, , and that single fact is what a hundred years of single-particle tracking has confirmed.
The core equations
The diffusion equation follows from combining particle conservation with Fick's constitutive law for the diffusive current. Start from the statement that walkers are neither created nor destroyed, so the density can change only by flux through a surface, and close it with the empirical observation that the current runs down the gradient. Combining the two gives a single second-order equation for .
where: — probability density (or concentration) at position and time ; — diffusion coefficient, units ; — the Laplacian, a local averaging operator. Physically: the density rises where it is locally concave-up (below its neighbors' average) and falls where it is concave-down, so any profile is combed toward flatness. The continuity form makes the conservation explicit and names the current whose divergence drives the density. Fick's first law supplies that current as proportional to minus the gradient.
where: — probability/particle current density; the minus sign encodes flow from high to low concentration. Reading it physically: the first equation is bookkeeping (change = net inflow), the second is the microphysics (random walkers drift down-gradient on average), and eliminating recovers equation (1). The response to a sharply localized release — a delta-function initial condition — is the Green's function of the equation, the heat kernel. Everything else follows by convolution because the equation is linear.
where: — the release point; the prefactor keeps while the Gaussian widens. Physically this is a bell curve whose peak sinks as and whose width grows as , spreading the same unit of probability over an ever-broader range. The second moment of that kernel is the mean-square displacement — the quantity a microscope measures by tracking a single particle, and the bridge to Brownian motion (the phenomenon that owns at the trajectory level, cross-referenced below).
where: — spatial dimension; each Cartesian axis contributes an independent . This linear-in- growth is the defining diffusive scaling; its slope directly gives . Because the equation is linear with constant coefficients, Fourier modes are its eigenfunctions: each spatial mode of wavevector evolves independently as . Consequently, short-wavelength (large-) fluctuations decay more rapidly than long-wavelength ones.
where: — the Fourier transform of ; — wavenumber. Physically the decay rate grows quadratically with , so sharp features (large ) blur first and the broad envelope survives longest — the mathematical statement that diffusion smooths.
The diffusion equation is not postulated but assembled from two independent physical inputs: the exact statement that the number of diffusing walkers is conserved, and the constitutive assumption (Fick's law) that the current is proportional to the negative concentration gradient. Keeping these separate makes clear what is rigorous (conservation) and what is constitutive (Fick's law), and it exposes exactly where the single constant enters. This same two-ingredient structure — a continuity equation plus a current — recurs throughout nonequilibrium physics, from heat conduction to charge transport.
Step 1. Take any fixed region . The rate of change of the walkers inside it equals minus the net current out through its boundary : . Why: nothing is created or destroyed inside, so every change is accounted for by flux across the surface.
Step 2. Apply the divergence theorem to the surface integral, , and shrink to a point. Since the region was arbitrary, the integrands match: . Why: an integral identity that holds for every region forces the local (differential) form.
Step 3. Close the system with Fick's first law : walkers on average drift from crowded to sparse regions at a rate proportional to the local gradient. Why: Fick's law is the constitutive assumption that closes the conservation law. Microscopically, it emerges as the long-wavelength, long-time limit of an unbiased random walk (or master equation), where the current becomes proportional to the density gradient.
Step 4. Substitute Fick's law into the continuity equation: for constant . Why: for constant , , giving the boxed equation (1).
Go deeper · Derivation B · 1 minThe heat kernel by Fourier transform, and why the front spreads as √t
The single most useful solution of the diffusion equation is its response to a point release, because linearity makes the point-source solution (the Green's function) the building block for arbitrary initial conditions through superposition. Deriving it by Fourier transform turns the partial differential equation into a one-line ordinary differential equation in each mode, and the inverse transform of the resulting Gaussian is again a Gaussian — the heat kernel of equation (3). The width of that Gaussian encodes the entire diffusive scaling law and fixes the mean-square displacement.
Step 1. Transform equation (1) in space, . The Fourier transform diagonalizes the Laplacian, replacing by multiplication with , so . Why: derivatives in real space are algebraic factors in Fourier space, decoupling the modes.
Step 2. Solve the mode ODE: . For a point source at , , giving equation (5). Why: each Fourier mode is an independent exponentially decaying amplitude — no mode-mixing in a linear constant-coefficient equation.
Step 3. Invert the transform. The inverse Fourier transform of the Gaussian in is a Gaussian in of variance , centered at : . Why: a Gaussian is its own Fourier transform up to a width inversion — a narrow spectrum in is a broad bell in .
Step 4. Read off the scaling. The variance means the width grows as and the peak, fixed by normalization, falls as . The second moment is in 1D and in dimensions. Why: the width, not a constant-speed front, is the fingerprint of adding independent random increments — the central limit theorem in action. *One can confirm these results by direct substitution: the heat kernel satisfies identically, its normalization is for all , and its second moment gives in 1D and in 3D.*
Limiting cases
The diffusion equation is the simplest member of a broader family of transport equations, obtained by adding drift, external forces, spatially varying diffusivity, or microscopic lattice dynamics. Two of these — the drift-carrying and potential forms — are exactly the territory of the Fokker–Planck equation, which owns them.
| Case | Result | Meaning |
|---|---|---|
| Add a drift velocity | Advection–diffusion: the Gaussian packet drifts at speed while spreading. With this is force-driven transport (owned by the Fokker–Planck equation). | |
| Add an external potential | The Smoluchowski (overdamped Fokker–Planck) equation; the stationary state is Boltzmann when the Einstein relation holds. | |
| Position-dependent | Inhomogeneous medium; the divergence form (not ) is needed to conserve probability, an Itô-versus-Stratonovich subtlety. | |
| Discrete lattice, | Nearest-neighbor hopping (a master equation); Taylor-expanding recovers with . | |
| Long-time, finite box | (uniform) | All nonzero Fourier modes die as ; the slowest mode sets . |
Worked examples
Example 1 — Extracting the diffusion coefficient from a point release, and its microscopic value. A pollutant is released as a point source and observed to have spread to a root-mean-square radius of after in three dimensions. What is , and does it match the molecular Stokes–Einstein prediction for a micron-scale particle in water?
Step 1. Use the 3D mean-square displacement . With and , solve .
Step 2. Compare to the molecular scale. For a bead of radius in water () at , the Stokes–Einstein value is . Numerically — ten orders of magnitude smaller. The pollutant dispersion is dominated by turbulent (eddy) diffusion rather than molecular diffusion. Using the molecular diffusivity above gives a characteristic diffusion time , about years, illustrating why molecular diffusion alone is ineffective over metre-scale distances. This illustrates the quadratic scaling : molecular diffusion is efficient over microscopic distances but becomes extremely slow on macroscopic scales. (The Stokes–Einstein here is the same number the Brownian-motion and Einstein-relation articles compute — a cross-article closure.)
Example 2 — How far, and how fast, does a molecule diffuse in a cell? A small protein has in cytoplasm. Estimate the time to diffuse across a cell and across a tissue.
Step 1. From with (use ), the cell-crossing time is — about , showing that diffusion is an efficient transport mechanism across the dimensions of a typical cell.
Step 2. For the same estimate gives — about 28 minutes. The quadratic scaling means a hundredfold larger distance costs a ten-thousandfold longer time, which is precisely why tissues need vasculature and cells above a critical size need active transport. These estimates illustrate the quadratic dependence of diffusion time on distance.
Origins · 1 minAdolf Fick and how this was discovered
Going further
References. Pathria & Beale, Statistical Mechanics, 3rd ed., ch. 15 (Fluctuations and Nonequilibrium Statistical Mechanics) · Kardar, Statistical Physics of Particles, ch. 9 · Reif, Fundamentals of Statistical and Thermal Physics, ch. 15 · Sethna, Statistical Mechanics: Entropy, Order Parameters, and Complexity, ch. 2 · Landau & Lifshitz, Physical Kinetics (vol. 10) and Fluid Mechanics (vol. 6, heat equation) · Einstein, Ann. Phys. 17, 549 (1905) · Risken, The Fokker–Planck Equation. Key results to keep in mind: the heat kernel follows from the Fourier transform; in 1D and in dimensions; the random-walk continuum limit gives ; and the Einstein relation with Stokes drag fixes the molecular value of .
Builds on: Brownian Motion · The Langevin Equation · The Einstein Relation. Leads to: The Fokker–Planck Equation · The Master Equation · The Ornstein–Uhlenbeck Process · Kramers' Escape Rate Theory.
Is the diffusion equation the same as the heat equation?
Mathematically, yes: both are , a linear parabolic PDE. Fourier derived it for temperature in 1822 (with the thermal diffusivity), Fick wrote it for concentration in 1855. The physics differs only in what and represent — temperature and thermal diffusivity, versus probability/concentration and a mass diffusion coefficient. The identical structure is why every result about heat kernels, Green's functions, and penetration depths transfers directly between heat conduction and molecular diffusion.
Where does the diffusion equation come from microscopically?
From a random walk. Put a walker on a lattice of spacing that hops left or right with equal probability every time . Its probability obeys . Taylor-expand in and : the first-order time term matches the second-order space term, and taking with fixed leaves . The single number packages the microscopic step size and rate; the central limit theorem guarantees the Gaussian kernel regardless of the exact step distribution, as long as it has finite variance.
Why does a spreading front go as √t rather than at constant speed?
Because independent random steps add in variance, not in displacement. After uncorrelated steps of typical size , the mean displacement is zero but the mean-square displacement is , so the typical distance is . With , the spread grows as . A constant-speed front would require the steps to be correlated (all pointing the same way), which is ballistic motion, not diffusion. The crossover from ballistic (short times, before the first collision) to diffusive (long times) is exactly what the velocity autocorrelation of the Langevin equation captures.
How does adding an external force change the equation?
It adds a drift current. In a potential the current gains an advective piece alongside the Fickian , giving the Smoluchowski equation . Its stationary, zero-current state is the Boltzmann distribution — but only if , the Einstein relation. This drift-plus-diffusion structure is exactly the Fokker–Planck equation, which owns the force-driven case; the bare diffusion equation is its force-free heart.
Does the diffusion equation conserve energy or increase entropy?
It conserves total probability (or total mass/heat), because it is a continuity equation with no source. It does not conserve the "energy" , which strictly decreases as gradients smooth out. And it monotonically increases the spatial (Gibbs–Shannon) entropy : differentiating along the flow gives , with equality only for a uniform distribution. This entropy increase is the microscopic arrow of time expressed at the level of the density.
When does normal diffusion break down?
Whenever the underlying steps are not independent with finite variance. If the walker gets trapped for heavy-tailed waiting times, or moves in a crowded, obstacle-filled medium, the mean-square displacement grows as with — subdiffusion () in cytoplasm and porous media, superdiffusion () for active or Lévy-flight motion. These anomalous regimes require fractional or continuous-time-random-walk generalizations; the ordinary diffusion equation is recovered only in the limit where the central limit theorem applies.
Why must position-dependent diffusion be written in divergence form?
Because only conserves probability. The naive form would create or destroy probability wherever varies in space, since the current would no longer be a pure divergence. The divergence form also encodes a real physical ambiguity: for a Langevin equation with state-dependent noise, whether the extra drift term appears depends on the Itô-versus-Stratonovich interpretation. Getting this right matters for particles diffusing near walls, in temperature gradients, or through membranes where the local mobility changes.