CONTENTS

Feynman-Kac Formula

Motivation: why this matters in quant finance

Option pricing has two faces. The probabilistic face says "discount the expected payoff under the right dynamics"; the analytic face says "solve a parabolic PDE with a terminal payoff." The Feynman-Kac formula is the theorem that makes those faces the same object.

Lawler introduces it with a stock following geometric Brownian motion and a European call payoff F(x)=(xS)+F(x)=(x-S)^+. If
ϕ(t,x)=E[er(Tt)F(XT)Xt=x],\phi(t,x)=\mathbb{E}\left[e^{-r(T-t)}F(X_T)\mid X_t=x\right],

then ϕ\phi satisfies a PDE. In finance, this is why a Monte Carlo estimator and a finite-difference solver can agree: they are approximating the same conditional expectation from different sides.

The formula does not choose the pricing measure and does not prove absence of arbitrage. It starts after the diffusion dynamics and discounting convention have been specified, then turns the expectation into the corresponding differential equation.

The informal idea

Imagine holding a future payoff F(XT)F(X_T) when the state process currently has value Xt=xX_t=x. If a dollar at time ss grows at instantaneous rate r(s,Xs)r(s,X_s), then the payoff must be discounted back along the path. The value function is therefore

ϕ(t,x)=E[exp(tTr(s,Xs)ds)F(XT)Xt=x].\phi(t,x)=\mathbb{E}\left[\exp\left(-\int_t^T r(s,X_s)\,ds\right)F(X_T)\mid X_t=x\right].
The key martingale is the discounted value process. Lawler writes it as Rt1ϕ(t,Xt)R_t^{-1}\phi(t,X_t), where RtR_t is the accumulated money-market account. Since it is a conditional expectation of the terminal discounted payoff, it must be a martingale. Applying Itô's lemma and forcing its dtdt term to vanish produces the PDE.
The whole proof idea is one sentence: make the discounted conditional expectation a martingale, then read off the zero-drift condition.

Formal definitions

Let XtX_t solve the one-dimensional diffusion SDE

dXt=m(t,Xt)dt+σ(t,Xt)dWt.dX_t=m(t,X_t)\,dt+\sigma(t,X_t)\,dW_t.

Let F(XT)F(X_T) be an integrable payoff at time TT, and let r(t,x)0r(t,x)\ge0 be a discounting rate. Define

ϕ(t,x)=E[exp(tTr(s,Xs)ds)F(XT)Xt=x].\phi(t,x)=\mathbb{E}\left[\exp\left(-\int_t^T r(s,X_s)\,ds\right)F(X_T)\mid X_t=x\right].

If ϕ\phi is C1C^1 in tt and C2C^2 in xx, Lawler's Feynman-Kac theorem gives

tϕ(t,x)=m(t,x)xϕ(t,x)12σ2(t,x)xxϕ(t,x)+r(t,x)ϕ(t,x),\partial_t\phi(t,x) =-m(t,x)\partial_x\phi(t,x) -\frac{1}{2}\sigma^2(t,x)\partial_{xx}\phi(t,x) +r(t,x)\phi(t,x),

for 0t<T0\le t<T, with terminal condition

ϕ(T,x)=F(x).\phi(T,x)=F(x).

Equivalently, using the time-tt generator

Ltf(x)=m(t,x)f(x)+12σ2(t,x)f(x),L_t f(x)=m(t,x)f'(x)+\frac{1}{2}\sigma^2(t,x)f''(x),

the PDE is

tϕ(t,x)+Ltϕ(t,x)r(t,x)ϕ(t,x)=0.\partial_t\phi(t,x)+L_t\phi(t,x)-r(t,x)\phi(t,x)=0.

Key properties

It turns a discounted expectation into a PDE

The formula starts with a path expectation and proves that the value function satisfies a terminal-value PDE. Finance consequence: pricing by simulation and pricing by PDE are not rival models; they are two numerical routes to the same value under the same diffusion assumptions.

The discount rate appears as a killing term

In the generator form,

tϕ+Ltϕrϕ=0.\partial_t\phi+L_t\phi-r\phi=0.

The rϕ-r\phi term is exactly the mathematical trace of discounting. If r=0r=0, the equation reduces to the backward Kolmogorov equation for an undiscounted conditional expectation.

The terminal condition is the payoff

The PDE runs backward from ϕ(T,x)=F(x)\phi(T,x)=F(x). In a European option, the payoff is known at expiry, while today's value is the unknown. Finance consequence: option PDEs are terminal-value problems, not initial-value problems.

The martingale argument depends on Markov state sufficiency

Lawler uses that, given Ft\mathcal{F}_t, the only relevant state information for predicting XTX_T is XtX_t. This is why the value can be written as ϕ(t,Xt)\phi(t,X_t) rather than as a functional of the whole past path. Path-dependent payoffs require enlarging the state before this formula applies directly.

Smoothness is an assumption in the introductory theorem

Lawler explicitly assumes ϕ\phi is C1C^1 in time and C2C^2 in space, and notes that the general regularity theory is beyond the book. Kinked payoffs such as calls are handled by approximation or viscosity/weak-solution theory in more advanced treatments.

Worked examples

Example 1: no discounting recovers the backward equation

Set r=0r=0 and define

u(t,x)=E[F(XT)Xt=x].u(t,x)=\mathbb{E}[F(X_T)\mid X_t=x].

Feynman-Kac becomes

tu(t,x)+Ltu(t,x)=0,u(T,x)=F(x).\partial_tu(t,x)+L_tu(t,x)=0,\qquad u(T,x)=F(x).

This is the backward Kolmogorov equation. Feynman-Kac is therefore not separate from generators; it is the discounted payoff version of the same operator calculus.

Example 2: Lawler's geometric Brownian motion call

Let

dXt=mXtdt+σXtdWtdX_t=mX_t\,dt+\sigma X_t\,dW_t

and let F(x)=(xS)+F(x)=(x-S)^+ be a call payoff with strike SS. With constant discount rate rr,

ϕ(t,x)=E[er(Tt)F(XT)Xt=x].\phi(t,x)=\mathbb{E}\left[e^{-r(T-t)}F(X_T)\mid X_t=x\right].

The generator is

Lf(x)=mxf(x)+12σ2x2f(x),Lf(x)=mx f'(x)+\frac{1}{2}\sigma^2x^2f''(x),

so Feynman-Kac gives

tϕ+mxxϕ+12σ2x2xxϕrϕ=0.\partial_t\phi+m x\,\partial_x\phi+\frac{1}{2}\sigma^2x^2\partial_{xx}\phi-r\phi=0.

Lawler notes that this is a version of the Black-Scholes PDE. In risk-neutral pricing, mm is replaced by rr, but that substitution comes from financial no-arbitrage reasoning, not from Feynman-Kac itself.

Example 3: deterministic discounting as a multiplier

If r(t)r(t) is deterministic, Lawler writes

ϕ(t,x)=exp(tTr(s)ds)f(t,x),\phi(t,x)=\exp\left(-\int_t^T r(s)\,ds\right)f(t,x),

where

f(t,x)=E[F(XT)Xt=x].f(t,x)=\mathbb{E}[F(X_T)\mid X_t=x].

Since ff satisfies tf=Ltf\partial_t f=-L_tf, differentiating the product gives

tϕ=r(t)ϕLtϕ.\partial_t\phi=r(t)\phi-L_t\phi.

This is the same PDE:

tϕ+Ltϕr(t)ϕ=0.\partial_t\phi+L_t\phi-r(t)\phi=0.

The example makes the discounting role transparent: it shifts the backward equation by a value-proportional term.

Common confusions and pitfalls

"Feynman-Kac proves the risk-neutral measure exists." No. It connects a specified diffusion expectation with a PDE. The risk-neutral measure comes from no-arbitrage and change-of-measure arguments such as Girsanov's theorem.
"The discount term has the wrong sign." In generator form the PDE is ϕt+Ltϕrϕ=0\phi_t+L_t\phi-r\phi=0. Solving for ϕt\phi_t moves the generator terms to the other side and writes +rϕ+r\phi there. Both forms are the same equation.
"Feynman-Kac applies to any path-dependent payoff as written." The formula uses a Markov state XtX_t. For path-dependent products, the state must be enlarged to include the relevant running average, maximum, accrued integral, or barrier status.
"The PDE route avoids probabilistic assumptions." The PDE coefficients are exactly the diffusion coefficients. Changing mm, σ\sigma, or the measure changes the PDE.
"A kinked payoff violates the theorem, so option pricing fails." The introductory theorem assumes smoothness of ϕ\phi, not necessarily smoothness of FF in the final applied solution. Advanced regularity theory or approximation justifies common payoff cases.

Where this goes next

References

  • Lawler, G. F. (2023). Stochastic Calculus: An Introduction with Applications. Ch. 4 §4.3 (Feynman-Kac formula), with generator notation from Ch. 3 §3.5 (Diffusions).

Exercises

Test your understanding with 3 exercises for this lesson.