Fokker–Planck Equation Explained with Worked Examples

If , the density of obeys the Fokker–Planck equation .

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Fokker–Planck equation means

The first term transports probability with the drift, as in a continuity equation; the second spreads it out by diffusion. For and the equation is the heat equation (the heat equation), solved by with peak density ; for this is . The solution is the normal density of Brownian motion, see the normal density and the heat kernel.

With constant drift and , is normal with mean and variance : at , mean 1.5 and variance 12. For the Ornstein–Uhlenbeck process , , the stationary density (a standard normal) makes the right-hand side zero: the flux vanishes when .

The equation is derived from Itô's lemma by applying it to a test function and integrating by parts; the partial differential equation methods are those of separation of variables. Applications include price models, population dynamics and statistical physics; the dual formulation for expectations is the Feynman–Kac formula.

What is it used for?

The Fokker–Planck equation describes how the probability density of a randomly moving particle spreads and drifts with time.

How to use fokker–planck equation

  1. Identify the drift and the diffusion .
  2. Write the equation .
  3. For constant the solution is normal with mean and variance .
  4. For a stationary density set the right-hand side to zero.

Graph

Densities of Brownian motion at t = 1, 2 and 4 (peak 1/√(2πt))t = 2: peak 0.282-6-4-2024600.10.20.30.4Densities of Brownian motion at t = 1, 2 and 4 (peak 1/√(2πt))xdensityt = 1t = 2t = 4Graph with x from -6 to 6 and y from 0 to 0.45. Shows the curve t = 1; the curve t = 2; the curve t = 4; point t = 2: peak 0.282 at (0, 0.2821).

The density spreads out and its peak falls as time passes.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: peak of the heat kernel

For , and start at 0, find the peak density at .

Worked example
Answer
0.28210.2821
  1. Normal with variance t
  2. At t = 2

Example 2: drift and diffusion

For , find the mean and variance at .

Worked example
Answer
E=1.5, Var⁡=12E=1.5,\ \operatorname{Var}=12
  1. Mean
  2. Variance

Example 3: stationary density

For and , verify that makes the flux zero at .

Worked example
Answer
flux 0\text{flux }0
  1. p and p_x
  2. Flux

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

dX = dW, X₀ = 0, t = 4

p is N(0, 4); p(0, 4)

0.1995.

dX = 2dt + dW, X₀ = 0, t = 3

mean

6.

dX = −X dt + dW

stationary variance σ²/(2θ)

0.5.

same

stationary density at 0

0.5642.

Word problems

For dX = μ(x)dt + σ(x)dW, ∂p/∂t = −∂(μp)/∂x + ½∂²(σ²p)/∂x². With μ = 0 and σ = 1 it is the heat equation.

Pure diffusion

X_t ~ N(0, t) with t = 4: p(0).

  1. 1/√(8π)
  2. Check: ✓0.1995

Constant drift

Mean of X₃.

  1. 2 × 3
  2. Check: ✓6

OU process Higher

Stationary variance σ²/(2θ).

  1. 1/2
  2. Check: ✓0.5

Stationary peak Higher

Normal with variance 0.5, at 0.

  1. 1/√π
  2. Check: ✓0.5642

Common mistakes

Forgetting the drift term

only diffusion ✗

include −(μp)ₓ ✓

Both terms.

σ instead of σ²/2

σ ✗

½σ² ✓

Variance.

Density not conserved

any ✗

∫p dx = 1 always ✓

Continuity equation.

SDE and PDE variables confused

same ✗

p is the density of X_t ✓

Forward equation.

Exam tips

  1. Drift transports, diffusion spreads.
  2. ∫p = 1 is conserved.
  3. Pure diffusion: N(0, σ²t).
  4. Stationary: ∂p/∂t = 0.
  5. Forward equation.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. p(0, t) for σ = 1, t = 1, 4 dp Foundation

0.3989

2. p(0, t) for σ = 1, t = 9, 4 dp Foundation

0.133

3. Mean at t = 5 with drift 0.5 Foundation

2.5

4. Variance at t = 5 with σ = 2 Higher

20

5. Stationary variance: θ = 2, σ = 2 Higher

1

6. p(0, t) for σ = 2, t = 1, 4 dp Higher

0.1995

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Fokker–Planck equation
Evolution of the density.
Drift (μ)
Mean velocity.
Diffusion (σ²)
Spread rate.
Stationary density
∂p/∂t = 0.
Ornstein–Uhlenbeck
Mean-reverting process.
Forward Kolmogorov
Another name.

Frequently asked questions

What is the Fokker–Planck equation?

∂p/∂t = −(μp)ₓ + ½(σ²p)ₓₓ.

What does it describe?

The density of a diffusion over time.

What is its pure diffusion form?

The heat equation, see heat equation.

How do I find a stationary density?

Set ∂p/∂t = 0 and solve.

Which page covers Brownian motion?

Brownian motion.

Which page covers GBM?

geometric Brownian motion.

More in Advanced statistics and stochastic processes and the formula sheets.