Quant Memo
Advanced

The Infinitesimal Generator of a Diffusion

A single operator that packages a diffusion's drift and volatility into "how fast does the expected value of any function change right now" — the object that turns Itô's lemma into a PDE and is the engine behind Black-Scholes and every short-rate model.

Prerequisites: Itô's Lemma, Stochastic Differential Equations

Itô's lemma tells you how a function of a diffusion changes over an instant — but written out in full it's a formula, not an object you can manipulate on its own. Distilling exactly the deterministic part of that formula into a single operator turns out to be one of the most useful moves in stochastic calculus: it's what converts "solve this stochastic process" into "solve this ordinary partial differential equation," which is how Black-Scholes actually gets derived.

The analogy: the instantaneous rate-of-change machine

Think of a machine that takes any function gg you feed it — "the option payoff," "the bond price," "the squared distance from some level" — and hands back a new function describing exactly how fast E[g(Xt)]E[g(X_t)] is changing, right now, given the diffusion XtX_t is currently at some point xx. That machine is the infinitesimal generator. It doesn't care what gg is; feed it any reasonable function and it returns the instantaneous expected rate of change, built entirely from the diffusion's drift and volatility.

Writing it down

For a diffusion dXt=μ(Xt)dt+σ(Xt)dWtdX_t = \mu(X_t)\,dt + \sigma(X_t)\,dW_t, the infinitesimal generator L\mathcal{L} acting on a twice-differentiable function gg is

Lg(x)=μ(x)g(x)+12σ(x)2g(x).\mathcal{L}g(x) = \mu(x) g'(x) + \tfrac{1}{2}\sigma(x)^2 g''(x).

In words: take the drift μ(x)\mu(x) times the function's slope g(x)g'(x) (how much of the change comes from the average direction of motion), add half the variance rate σ(x)2\sigma(x)^2 times the function's curvature g(x)g''(x) (how much extra drift the randomness itself contributes to the expected value, thanks to Jensen's-inequality-style convexity effects). This is exactly the deterministic part of Itô's lemma, stripped of the martingale (noise) term — formally,

Lg(x)=limh0E[g(Xt+h)Xt=x]g(x)h.\mathcal{L}g(x) = \lim_{h \to 0} \frac{E[g(X_{t+h}) \mid X_t = x] - g(x)}{h}.

In words: Lg(x)\mathcal{L}g(x) is the instantaneous rate at which the expected value of gg is changing, given you're currently sitting at xx — a derivative with respect to time, taken through the lens of the diffusion's own dynamics rather than a fixed path.

Path explorer
13055time →
end (bold path) 100.38spread of ends 58.966 independent paths, same settings

The Ornstein-Uhlenbeck paths above have generator Lg(x)=θ(μx)g(x)+12σ2g(x)\mathcal{L}g(x) = \theta(\mu - x)g'(x) + \tfrac12\sigma^2 g''(x). Watch how a path far from the mean-reversion level snaps back faster — that snap-back speed is precisely μ(x)=θ(μx)\mu(x) = \theta(\mu-x), the drift term feeding directly into L\mathcal{L}.

g(x) in mu(x) g'(x) + half sigma^2 g''(x) generator L Lg(x)
Feed any function g into the generator and it returns the instantaneous expected rate of change of g along the diffusion — built entirely from the drift acting on the slope and the volatility acting on the curvature.

Worked example 1: the generator of Brownian motion, checked against a known answer

For plain Brownian motion, μ(x)=0\mu(x)=0 and σ(x)=1\sigma(x)=1, so Lg(x)=12g(x)\mathcal{L}g(x) = \tfrac12 g''(x). Apply it to g(x)=x2g(x)=x^2: g(x)=2xg'(x)=2x, g(x)=2g''(x)=2, so Lg(x)=12×2=1\mathcal{L}g(x) = \tfrac12 \times 2 = 1. This says E[Wt2]E[W_t^2] grows at rate exactly 1 per unit time from any starting point — and indeed E[Wt2]=tE[W_t^2] = t for standard Brownian motion starting at 0, whose derivative with respect to tt is exactly 1. The generator's abstract formula reproduces a fact you can check directly.

Worked example 2: the generator as a PDE solver, for a bond price

A short rate follows drt=a(brt)dt+σdWtdr_t = a(b - r_t)\,dt + \sigma\,dW_t (a Vasicek-style mean-reverting process). The price of a bond, P(r,t)P(r,t), satisfies the PDE Pt+LPrP=0\frac{\partial P}{\partial t} + \mathcal{L}P - rP = 0 — this is the Feynman-Kac connection (see The Feynman-Kac Theorem): the generator turns the expected-discounted-payoff pricing problem into a solvable PDE. Concretely, with a=0.5a=0.5, b=0.03b=0.03, σ=0.01\sigma=0.01, at r=0.04r=0.04, LP=0.5(0.030.04)Pr+12(0.01)2Prr=0.005Pr+0.00005Prr\mathcal{L}P = 0.5(0.03-0.04)P_r + \tfrac12(0.01)^2 P_{rr} = -0.005\,P_r + 0.00005\,P_{rr}. Plugging in derivatives of a candidate solution and requiring the PDE to balance is literally how the closed-form Vasicek bond price formula is derived — the generator is the bridge between the SDE you wrote down and the PDE you can actually solve.

What this means in practice

  • Every closed-form diffusion-based pricing formula (Black-Scholes, Vasicek, CIR) is derived by writing down the generator, forming the associated PDE via Feynman-Kac, and solving it — the generator is the mechanical link between "here is the SDE" and "here is the pricing equation."
  • Stationary distributions of a diffusion satisfy Lp=0\mathcal{L}^* p = 0 where L\mathcal{L}^* is the generator's adjoint (see The Fokker-Planck and Kolmogorov Equations) — the generator and its adjoint together describe both "how a function's expectation evolves" and "how the probability density itself evolves."
  • Numerical schemes for SDEs (finite-difference PDE solvers for options) are, under the hood, discretizing the generator operator directly.

The infinitesimal generator Lg(x)=μ(x)g(x)+12σ(x)2g(x)\mathcal{L}g(x) = \mu(x)g'(x) + \tfrac12\sigma(x)^2 g''(x) packages a diffusion's drift and volatility into one operator that measures the instantaneous rate of change of E[g(Xt)]E[g(X_t)]. It is exactly the deterministic half of Itô's lemma, and it's the mechanism that turns an SDE into a solvable PDE.

It's tempting to think the generator only cares about drift, since μ(x)g(x)\mu(x)g'(x) looks like the "obvious" rate-of-change term. The second term, 12σ(x)2g(x)\tfrac12\sigma(x)^2 g''(x), is not a small correction — for convex functions (like x2x^2, or an option payoff near the money) it can dominate the drift term entirely. Dropping it, or treating the generator as "basically just the drift," throws away the exact channel through which volatility feeds into expected values — the same channel responsible for the entire convexity ("gamma") value of an option.

Related concepts

Practice in interviews

Further reading

  • Øksendal, Stochastic Differential Equations (ch. 7)
  • Shreve, Stochastic Calculus for Finance II (ch. 6)
ShareTwitterLinkedIn