Skip to main content

Chapter 9 — Diffusions and Generators

Guiding question

Given an SDE dX=b(X) dt+σ(X) dWdX = b(X)\,dt + \sigma(X)\,dW, is there a single operator that encodes everything about how smooth functions evolve under XX? How does this operator connect SDEs to partial differential equations?

The infinitesimal generator L\mathcal L is the differential operator that describes the local behavior of a diffusion process. It packages Itô's formula into a single operator, and its study bridges stochastic analysis and classical analysis. The generator is the stochastic analogue of the derivative — it measures how fast the expected value of a function changes along the process.


9.1 The infinitesimal generator: definition​

Let XX be the strong solution of dXt=b(Xt) dt+σ(Xt) dWtdX_t = b(X_t)\,dt + \sigma(X_t)\,dW_t. For a smooth function f:R→Rf:\mathbb R\to\mathbb R with compact support, define:

Lf(x)=lim⁡t↓0Ex[f(Xt)]−f(x)t,\mathcal L f(x) = \lim_{t\downarrow 0}\frac{\mathbb E^x[f(X_t)] - f(x)}{t},

where Ex[⋅]=E[⋅∣X0=x]\mathbb E^x[\cdot] = \mathbb E[\cdot\mid X_0 = x].

By Itô's formula, the limit exists and equals:

Lf(x)=b(x)f′(x)+12σ(x)2f′′(x).\boxed{\mathcal L f(x) = b(x)f'(x) + \tfrac12\sigma(x)^2 f''(x).}
Derivation from Itô's formula

By Itô's formula with f∈C2f\in C^2:

f(Xt)=f(x)+∫0t[b(Xs)f′(Xs)+12σ2(Xs)f′′(Xs)] ds+∫0tσ(Xs)f′(Xs) dWs.f(X_t) = f(x) + \int_0^t [b(X_s)f'(X_s) + \tfrac12\sigma^2(X_s)f''(X_s)]\,ds + \int_0^t\sigma(X_s)f'(X_s)\,dW_s.

Taking expectations (the stochastic integral has zero expectation):

Ex[f(Xt)]=f(x)+Ex ⁣[∫0tLf(Xs) ds].\mathbb E^x[f(X_t)] = f(x) + \mathbb E^x\!\left[\int_0^t\mathcal L f(X_s)\,ds\right].

Dividing by tt and taking t→0t\to 0 (using Xs→xX_s\to x and continuity of Lf\mathcal Lf):

lim⁡t→0Ex[f(Xt)]−f(x)t=Lf(x).\lim_{t\to 0}\frac{\mathbb E^x[f(X_t)]-f(x)}{t} = \mathcal L f(x).

9.2 Examples of generators​

Brownian motion (b=0b=0, σ=1\sigma=1):

LBMf=12f′′.\mathcal L_{\rm BM} f = \tfrac12 f''.

This is 12\frac12 the Laplacian (or the heat operator in one dimension).

Geometric Brownian Motion (b=μxb=\mu x, σ=σx\sigma = \sigma x):

LGBMf=μxf′+12σ2x2f′′.\mathcal L_{\rm GBM} f = \mu x f' + \tfrac12\sigma^2 x^2 f''.

Ornstein–Uhlenbeck (b=κ(θ−x)b=\kappa(\theta-x), σ=σ\sigma=\sigma):

LOUf=κ(θ−x)f′+12σ2f′′.\mathcal L_{\rm OU} f = \kappa(\theta-x)f' + \tfrac12\sigma^2 f''.

CIR (b=κ(θ−x)b=\kappa(\theta-x), σ=σx\sigma=\sigma\sqrt{x}):

LCIRf=κ(θ−x)f′+12σ2xf′′.\mathcal L_{\rm CIR} f = \kappa(\theta-x)f' + \tfrac12\sigma^2 x f''.

9.3 Dynkin's formula​

Dynkin's formula

Let τ\tau be a stopping time with Ex[τ]<∞\mathbb E^x[\tau]<\infty and f∈Dom(L)f\in\text{Dom}(\mathcal L) (the domain of the generator). Then

Ex[f(Xτ)]=f(x)+Ex ⁣[∫0τLf(Xs) ds].\mathbb E^x[f(X_\tau)] = f(x) + \mathbb E^x\!\left[\int_0^\tau \mathcal L f(X_s)\,ds\right].
Proof via optional stopping

The process Mt=f(Xt)−f(x)−∫0tLf(Xs) dsM_t = f(X_t) - f(x) - \int_0^t\mathcal L f(X_s)\,ds is a local martingale (by Itô's formula). Under appropriate integrability, the optional stopping theorem applies at τ\tau: Ex[Mτ]=0\mathbb E^x[M_\tau]=0, which is Dynkin's formula.

Generator L = ½∂²/∂x² for Brownian motion: Dynkin's formula
f(x) at t=0E[f(W_t)|W₀=x]−330
Dynkin's formulaE[W_t² | W₀=x] = x² + t (Lf = 1)
Dynkin's formula: E[f(W_t)|W₀=x] = f(x) + t·Lf(x) + O(t²). The generator L = ½∂² measures the instantaneous rate of change of E[f(W_t)] at t=0. This connects martingale theory to PDEs: if M_t = f(W_t) − ∫₀ᵗ Lf(W_s)ds is a martingale, then Lf = 0 characterizes harmonic functions.

9.4 Harmonic functions​

A function ff is L\mathcal L-harmonic on a domain DD if Lf=0\mathcal L f = 0 on DD.

Mean value property for diffusions

If Lf=0\mathcal L f = 0 on DD and τD=inf⁡{t:Xt∉D}\tau_D = \inf\{t: X_t\notin D\} is the first exit time from DD (with Ex[τD]<∞\mathbb E^x[\tau_D]<\infty), then

f(x)=Ex[f(XτD)].f(x) = \mathbb E^x[f(X_{\tau_D})].

The value at any interior point equals the expected boundary value.

Proof

By Dynkin's formula: Ex[f(XτD)]=f(x)+Ex[∫0τDLf(Xs) ds]=f(x)\mathbb E^x[f(X_{\tau_D})] = f(x) + \mathbb E^x[\int_0^{\tau_D}\mathcal L f(X_s)\,ds] = f(x), since Lf=0\mathcal L f = 0.

Diffusions average over their domain

For ordinary Brownian motion, Lf=12f′′=0\mathcal L f = \frac12f''=0 means ff is linear (in 1D). The mean value property says: the value of a linear function at any point equals its average on any symmetric interval. For multidimensional BM, harmonic functions satisfy the classical mean value property of harmonic analysis.

For diffusions with drift and varying diffusion, "harmonic" is with respect to the weighted operator b⋅∇+12σ2Δb\cdot\nabla + \frac12\sigma^2\Delta — the natural geometry determined by the SDE.


9.5 The Kolmogorov equations​

The generator connects SDEs to two classical PDEs.

Forward (Fokker–Planck) equation. The probability density p(t,y;0,x)=∂yPx(Xt≤y)p(t,y;0,x) = \partial_y\mathbb P^x(X_t\le y) satisfies the PDE (written for the yy-variable):

∂tp=L∗p,\partial_t p = \mathcal L^* p,

where L∗\mathcal L^* is the adjoint operator:

L∗p=−∂y(b(y)p)+12∂yy(σ2(y)p).\mathcal L^* p = -\partial_y(b(y)p) + \tfrac12\partial_{yy}(\sigma^2(y)p).

This describes how the probability mass flows forward in time.

Backward (Kolmogorov backward) equation. The function u(t,x)=Ex[f(XT)∣Xt=x]u(t,x) = \mathbb E^x[f(X_T)\mid X_t = x] satisfies the PDE (written for the xx-variable):

∂tu+Lxu=0,u(T,x)=f(x).\partial_t u + \mathcal L_x u = 0,\qquad u(T,x) = f(x).

The subscript xx means L\mathcal L acts on the spatial variable xx, with tt as a parameter.

Forward vs backward: two perspectives on the same dynamics

The forward equation tracks the evolving probability distribution of XtX_t. The backward equation tracks the conditional expectation of a functional, running time backward from the terminal condition.

In option pricing:

  • Forward equation = time-evolution of the stock price density (used in local volatility calibration).
  • Backward equation = the option price PDE (Black–Scholes, Feynman–Kac).

Both encode the same SDE; the difference is which variable (current state vs future payoff) is being tracked.


9.6 Generators in dd dimensions​

For the dd-dimensional SDE dX=b(X) dt+σ(X) dWd\mathbf X = \mathbf b(\mathbf X)\,dt + \boldsymbol\sigma(\mathbf X)\,d\mathbf W, the generator is:

Lf(x)=∑ibi(x) ∂if(x)+12∑i,j(σσ⊤)ij(x) ∂ijf(x).\mathcal L f(\mathbf x) = \sum_i b_i(\mathbf x)\,\partial_i f(\mathbf x) + \tfrac12\sum_{i,j}(\sigma\sigma^\top)_{ij}(\mathbf x)\,\partial_{ij}f(\mathbf x).

The matrix A=σσ⊤A = \sigma\sigma^\top is the diffusion matrix. The generator is:

L=b⋅∇+12tr(A ∇2).\mathcal L = \mathbf b\cdot\nabla + \tfrac12\text{tr}(A\,\nabla^2).

For A=IA = I and b=0\mathbf b = 0: L=12Δ\mathcal L = \frac12\Delta (half-Laplacian).

Generator of GBM in finance

For GBM dS=rS dt+σS dWdS = rS\,dt + \sigma S\,dW (risk-neutral), the generator is:

LBS=rS ∂S+12σ2S2 ∂SS.\mathcal L_{\rm BS} = rS\,\partial_S + \tfrac12\sigma^2 S^2\,\partial_{SS}.

The Black–Scholes PDE is ∂tf+LBSf=rf\partial_t f + \mathcal L_{\rm BS} f = rf, i.e.,

(∂t+LBS−r)f=0.(\partial_t + \mathcal L_{\rm BS} - r)f = 0.

The operator LBS−r\mathcal L_{\rm BS} - r is the Black–Scholes operator: its null space consists of correctly priced option prices. Adding rr on the right reflects discounting at the risk-free rate.


9.7 Problems​

Problem 1: Generator of OU

For dX=−κX dt+σ dWdX = -\kappa X\,dt + \sigma\,dW, compute L(x2)\mathcal L(x^2) and verify via Dynkin that Ex[Xt2]=x2e−2κt+σ22κ(1−e−2κt)\mathbb E^x[X_t^2] = x^2 e^{-2\kappa t} + \frac{\sigma^2}{2\kappa}(1-e^{-2\kappa t}).

Problem 2: Harmonic function for BM

Find all functions ff on (a,b)(a,b) with LBMf=12f′′=0\mathcal L_{\rm BM}f = \frac12 f'' = 0. What does the mean value property say for BM on (a,b)(a,b)?

Problem 3: CIR generator applied to bond price

For CIR with Lf=κ(θ−x)f′+12σ2xf′′\mathcal L f = \kappa(\theta-x)f' + \frac12\sigma^2 xf'', show that the function f(x)=e−Bxf(x) = e^{-Bx} (for constant BB) satisfies Lf=(κθB−12σ2B2x+κBx−κθB)⋯\mathcal L f = (\kappa\theta B - \frac12\sigma^2 B^2 x + \kappa Bx - \kappa\theta B)\cdots — work out the full calculation as a step toward Vasicek bond pricing.


9.8 Selected solutions​

Solution 1

L(x2)=−κx⋅2x+12σ2⋅2=−2κx2+σ2\mathcal L(x^2) = -\kappa x\cdot 2x + \frac12\sigma^2\cdot 2 = -2\kappa x^2 + \sigma^2.

By Dynkin: ddtEx[Xt2]=Ex[L(Xt2)]=−2κEx[Xt2]+σ2\frac{d}{dt}\mathbb E^x[X_t^2] = \mathbb E^x[\mathcal L(X_t^2)] = -2\kappa\mathbb E^x[X_t^2] + \sigma^2.

This is an ODE v˙=−2κv+σ2\dot v = -2\kappa v + \sigma^2 with solution v(t)=σ22κ+(x2−σ22κ)e−2κtv(t) = \frac{\sigma^2}{2\kappa} + (x^2 - \frac{\sigma^2}{2\kappa})e^{-2\kappa t}. This matches the known variance formula.

Solution 2

f′′=0f''=0 implies f(x)=ax+bf(x) = ax + b (linear functions). The mean value property: for BM starting at x∈(a,b)x\in(a,b), f(x)=Ex[f(Xτab)]f(x) = \mathbb E^x[f(X_{\tau_{ab}})], where τab\tau_{ab} is the first exit time from (a,b)(a,b). For ff linear, the Brownian paths "average" to reach the boundary at aa or bb proportionally: f(x)=f(a)Px(Xτ=a)+f(b)Px(Xτ=b)f(x) = f(a)\mathbb P^x(X_{\tau}=a) + f(b)\mathbb P^x(X_{\tau}=b). With Px(Xτ=b)=(x−a)/(b−a)\mathbb P^x(X_\tau=b) = (x-a)/(b-a), this gives f(x)=f(a)b−xb−a+f(b)x−ab−af(x) = f(a)\frac{b-x}{b-a} + f(b)\frac{x-a}{b-a}, which is consistent with linearity.


9.9 What this chapter gives you​

ConceptFormula
Infinitesimal generatorLf=bf′+12σ2f′′\mathcal L f = b f' + \frac12\sigma^2 f''
Dynkin's formulaEx[f(Xτ)]=f(x)+Ex[∫0τLf ds]\mathbb E^x[f(X_\tau)] = f(x) + \mathbb E^x[\int_0^\tau \mathcal L f\,ds]
Harmonic functionsLf=0⇒f(x)=Ex[f(XτD)]\mathcal Lf = 0 \Rightarrow f(x) = \mathbb E^x[f(X_{\tau_D})]
Forward equation∂tp=L∗p\partial_t p = \mathcal L^*p (density evolution)
Backward equation∂tu+Lu=0\partial_t u + \mathcal Lu = 0, u(T,⋅)=gu(T,\cdot) = g
Black–Scholes operatorLBS=rS∂S+12σ2S2∂SS\mathcal L_{\rm BS} = rS\partial_S + \frac12\sigma^2 S^2\partial_{SS}

The next chapter derives the Feynman–Kac formula, which makes the correspondence between conditional expectations and PDEs precise and quantitative.