Let (Ω,F,P) be a probability space with filtration F=(Ft)t≥0. Consider the SDE:
dXs=μ(s,Xs)ds+σ(s,Xs)dWs,Xt=x,
started at time t from position x∈R. We assume μ and σ are globally Lipschitz and have at most linear growth in x — conditions ensuring strong existence and pathwise uniqueness of the solution Xst,x for s≥t.
The generator of the diffusion is the second-order differential operator:
L=μ(t,x)∂x∂+21σ2(t,x)∂x2∂2.
Feynman-Kac Theorem
Theorem. Let r:[0,T]×R→R+ be a bounded discount function, and φ:R→R a measurable terminal payoff with E[∣φ(XTt,x)∣]<∞. Define:
u(t,x)=E[exp(−∫tTr(s,Xs)ds)φ(XT)Xt=x].
If u∈C1,2([0,T)×R), then u is the unique solution to the backward parabolic PDE:
∂t∂u+Lu−r(t,x)u=0,(t,x)∈[0,T)×R,u(T,x)=φ(x).
The PDE is solved backward in time from the terminal condition u(T,x)=φ(x).
Derivation
Define the discounted value process:
Ys=e−∫tsr(u,Xu)duu(s,Xs),s∈[t,T].
We claim Ys is a local martingale if and only if u satisfies the PDE.
Apply Itô's lemma to u(s,Xs):
du(s,Xs)=(ut+μux+21σ2uxx)ds+σuxdWs.
Let Ds=e−∫tsrdu denote the discount factor. Then dDs=−r(s,Xs)Dsds. Apply the product rule d(Dsus)=Dsdus+usdDs+d⟨D,u⟩s. Since Ds has finite variation, the covariation term vanishes:
dYs=Ds(ut+μux+21σ2uxx−ru)ds+DsσuxdWs.
For Ys to be a local martingale, the ds term must vanish identically. This forces:
ut+μux+21σ2uxx−ru=0.
This is the Feynman-Kac PDE. Taking expectations at s=T:
E[YT∣Ft]=Yt⇒u(t,x)=E[e−∫tTrdsφ(XT)∣Xt=x].□
The Black-Scholes PDE
Under the risk-neutral measure Q, the stock follows:
dSs=rSsds+σSsdWs.
The risk-neutral pricing formula for a European derivative with payoff φ(ST):
V(t,St)=e−r(T−t)EQ[φ(ST)∣St].
Matching with Feynman-Kac: Xs=Ss, μ(s,x)=rx, σ(s,x)=σx, constant discount rate r. The function V(t,s) satisfies:
∂t∂V+rs∂s∂V+21σ2s2∂s2∂2V−rV=0,
with terminal condition V(T,s)=φ(s).
This is the Black-Scholes PDE, derived from no-arbitrage (via Girsanov) and Feynman-Kac — not from the original delta-hedging argument.
Boundary Conditions for a European Call
For φ(s)=(s−K)+:
Terminal: V(T,s)=(s−K)+.
At s=0: V(t,0)=0. Under GBM, S=0 is an absorbing barrier; a call on a worthless stock is worthless.
As s→∞: V(t,s)∼s−Ke−r(T−t). A deep-in-the-money call behaves like a forward contract.
Feynman-Kac vs Delta Hedging
The original Black-Scholes (1973) derivation constructed a delta-hedged portfolio, assumed it earns the risk-free rate, and derived the PDE by no-arbitrage. Feynman-Kac provides a cleaner, more general route:
No-arbitrage⇒ EMM Q exists (FTAP).
Risk-neutral pricing: Vt=e−r(T−t)EQ[φ(ST)∣St].
Feynman-Kac: this expectation satisfies the BS PDE.
The delta-hedging argument assumes the hedge portfolio is self-financing and that the hedging error is zero — implicitly assuming completeness. Feynman-Kac makes the probabilistic structure transparent and extends immediately to:
Path-dependent payoffs via the Markov property and a sufficient state variable extension.
Multi-Dimensional Feynman-Kac
Let X=(X1,…,Xd) be a vector Itô process with generator:
L=∑i=1dμi∂xi∂+21∑i,j=1daij∂xi∂xj∂2,
where aij=(σσ⊤)ij is the diffusion matrix. Feynman-Kac applies directly: the function
u(t,x)=E[e−∫tTrdsφ(XT)∣Xt=x]
solves ∂tu+Lu−ru=0. The Black-Scholes PDE for a multi-asset option in a correlated log-normal model is the direct application of this with μi=rxi, aij=ρijσiσjxixj.
The full lesson requires Premium
The complete derivation, the C++ / Python implementation, the validation tables, the quiz, and the interview-angle notes are part of Premium. Start a Premium plan to unlock every module in this track.