The Fokker–Planck equation
The question
Particles start in a cloud and move with a drift and some noise. What will their next density snapshot look like?
- 1 SeeSketch the density before checking.
- 2 TryCompare two pulls and tune the noise.
- 3 ProveBuild the zero-current argument.
- 4 ApplyCalculate means, spreads, and currents.
Before you start · 3 quick checks on areas, variance, and partial derivatives
Two ideas before you start
2 ideasProbability is an area
A bell curve with a shaded interval underneath.
The shaded area is the chance of finding a particle in that interval. Equal-width intervals can hold different amounts of probability.
Exact definition
Write \(X_t\) for the position of one particle at time \(t\). A density \(p(t,x)\) is a nonnegative function of position \(x\) with total area one. The chance of \(X_t\) lying between positions \(x_1\) and \(x_2\) is
\[\Pr(x_1\le X_t\le x_2)=\int_{x_1}^{x_2} p(t,x)\,dx.\]The mean is the average position in the probability law. The variance is the average squared distance from that mean. Its square root, the standard deviation, has the same units as position. The bell in the figure is a normal density.
Drift is a local rule
A graph of drift versus position for a constant push or a pull toward the origin.
The vertical value is the drift at that position. Positive drift points right. Negative drift points left.
Exact definition
The motion of one particle on the real line is described by an Itô stochastic differential equation (SDE):
\[dX_t=b(X_t)\,dt+\sigma(X_t)\,dW_t.\]Here \(W_t\) is standard Brownian motion. It starts at zero, and its increments over disjoint time intervals are independent. Over an interval of length \(h\) an increment is normal with mean zero and variance \(h\). Over a short interval starting at \(x\), freezing the coefficients gives approximate mean displacement \(b(x)h\) and approximate displacement variance \(\sigma(x)^2 h\). This describes the leading terms for the smooth models here. We write \(D(x)=\sigma(x)^2/2\) for the diffusivity.
With the noise switched off, \(b(x)\) is the ordinary differential equation's slope in the sense of slope fields. The plot above shows \(b\) as a function of position. A single noisy path can move against the local drift.
Refresher on partial derivatives and diffusion
For a profile \(p(t,x)\), \(p_t\) holds position fixed and measures change in time. The derivative \(p_x\) holds time fixed and measures the slope of a snapshot. The derivative \(p_{xx}\) is the spatial derivative of that slope.
The heat equation describes how a profile changes when its rate of change in time is proportional to its second derivative in space, which measures how the snapshot bends. Its simplest form is \(p_t=Dp_{xx}\), where \(D\gt0\) is constant. In this lesson the profile is probability density and the domain is the whole line.
Sketch a later density
Particles move independently on the whole line. Their starting positions are independent of their Brownian noise.
- Choose a drift rule and a noise amplitude. The solid curve starts as the initial density.
- Use the two sketch controls to move and stretch the dashed bell.
- Check your sketch to see where the particles land and compare with the exact curve.
How the bars and the curve are made
Each simulated particle starts from an independent draw from the initial bell. Conditional on its start, we sample its position at the selected time from the exact Gaussian transition law. The same random draws are reused at different clock settings so you can compare snapshots. The display samples each time separately and the snapshots do not specify a Brownian path between them.
A bar's area is its count divided by the sample size. Chance changes the bars even though the underlying density has no sampling error. The curve comes from the analytic solution, and the comparison with your sketch uses its mean and standard deviation.
Change the pull and the noise
- Adjust pull strength and noise amplitude to change the model.
- Move the clock and compare the current density with the dotted stationary curve.
Goals
Why the curve stays a bell
Use the drift \(b(x)=c-\theta x\), with constant \(c\), \(\theta\ge 0\), and constant \(\sigma\gt0\). In the drift menu the constant-push cases have \(\theta=0\), and the pull case has \(c=0\), \(\theta\gt0\). The initial position is normal and independent of \(W\). Write \(m_0\) and \(v_0\) for its mean and variance.
With constant drift, the displacement is the sum of \(ct\) and the independent normal variable \(\sigma W_t\). The new mean is \(m_0+ct\), and the new variance is \(v_0+\sigma^2t\). When \(c=0\) this is the heat equation case. The variance added is \(2Dt\).
For the pull case, multiplying the SDE by \(e^{\theta t}\) and using the product rule cancels the drift. This gives a scaled start and independent Gaussian noise:
\[\begin{aligned} X_t&=e^{-\theta t}X_0+\eta_t,\\ \eta_t&=\sigma\int_0^t e^{-\theta(t-s)}\,dW_s. \end{aligned}\]The integrand is deterministic. Sums of its weighted Brownian increments are centered Gaussian, with variances that converge to the integral of the squared weights. Hence \(\eta_t\) has mean zero and variance \(\sigma^2(1-e^{-2\theta t})/(2\theta)\). Squaring the multiplier on \(X_0\) gives its contribution to the variance:
\[\begin{aligned} m(t)&=m_0 e^{-\theta t},\\ v(t)&=v_*+(v_0-v_*)e^{-2\theta t},\\ v_*&=\sigma^2/(2\theta). \end{aligned}\]As time grows, the mean tends to zero and the variance tends to \(v_*\). These normal laws converge to the centered normal law with variance \(v_*\). With an initially narrower bell, the variance rises. With an initially wider bell, it falls. Equal initial and stationary variances keep the spread fixed while the center can still move.
Find the stationary density from the current
For a smooth density of the Itô diffusion on the line, with smooth coefficients and the conditions stated in the derivation below, the forward equation and its probability current \(J\) are
\[\begin{aligned} p_t &= -\partial_x J,\\ J &= bp-\partial_x(Dp). \end{aligned}\]Positive current crosses a point to the right. The fundamental theorem of calculus gives the rate of change of the probability in \([x_1,x_2]\) as \(J(t,x_1)-J(t,x_2)\). If the current vanishes at both infinities, the total probability is conserved. When the noise varies with position, the spatial derivative acts on the product \(Dp\).
Derive the forward equation from Itô's lemma
Assume a nonexplosive diffusion on \(\mathbb R\), with smooth \(b,\sigma\), a density \(p\) continuously differentiable in time and twice continuously differentiable in space for \(t\gt0\). For a smooth function \(f\) vanishing outside a bounded interval, Itô's lemma gives a time term \(Lf=bf'+Df''\) and a noise term \(\sigma f'\,dW_t\). This noise integral has mean zero because \(\sigma f'\) is bounded. Write the expectation as a density integral and differentiate in time.
\[\int f p_t\,dx=\int (Lf)p\,dx.\]All integrals here are over the line. The test function and its derivatives vanish outside a bounded interval. Substitute the formula for \(Lf\). Integrate the drift term once by parts and the diffusion term twice. The endpoint terms vanish. The right-hand side becomes \(\int fK\,dx\), where
\[K=-(bp)_x+(Dp)_{xx}.\]The identity \(\int f(p_t-K)\,dx=0\) holds for every smooth compactly supported \(f\). If the continuous difference \(p_t-K\) were nonzero at a point, it would have one strict sign on a small interval. A nonnegative test function supported there would give a nonzero integral. Thus \(p_t=K\) pointwise, giving the forward equation.
The same operator \(L\) acts on a different function in the backward equation. Fix a terminal time \(T\) and a bounded smooth payoff \(g\). Let \(u(s,x)\) be the expected value of \(g(X_T)\) for a particle started at position \(x\) at time \(s\). For a Markov diffusion and a smooth \(u\) in the generator's domain, conditioning a short time after \(s\) gives \(u_s+Lu=0\), with \(u(T,x)=g(x)\). The forward equation moves an initial density in time. The backward equation moves a terminal observable back to an earlier starting time.
Take the whole line with drift \(b(x)=-\theta x\), \(\theta\gt0\), and constant \(D=\sigma^2/2\gt0\). Among positive, smooth normalized densities with current vanishing at infinity, the only stationary density is normal with mean zero and variance \(D/\theta\).
Call the stationary density \(q(x)\). At stationarity \(J_x=0\), so \(J\) is constant in space. The condition at infinity fixes that constant to zero. Build the proof from there. Where a line asks about a positive \(x\), use \(x\gt0\).
Work with a density or a current
Check units first. Variance has squared position units. Current has units of probability per time.
Further reading
- G. E. Uhlenbeck and L. S. Ornstein, On the Theory of the Brownian Motion, Physical Review.
- H. Risken, The Fokker–Planck Equation: Methods of Solution and Applications.