Mathematical Infrastructure
Feynman–Kac Formula
The probabilistic representation of solutions to linear parabolic PDEs as expectations over SDE trajectories. The bridge that lets you Monte Carlo a PDE, the reason high-dimensional Black-Scholes is tractable, and the foundation under every backward-SDE method including deep BSDE.
Prerequisites
Why This Matters
The Feynman–Kac formula is the precise statement that some partial differential equations can be solved by simulating a stochastic differential equation. That is a strong claim: instead of meshing a domain in — which costs exponentially in — you sample SDE trajectories and average a payoff at the terminal time, which costs only polynomially. For high-dimensional parabolic PDEs (Black–Scholes under counterparty risk, Hamilton–Jacobi–Bellman equations in stochastic control, committor functions in molecular dynamics) this is the only known route to a computable answer.
The formula also flips the mental model of what a PDE solution is. The classical view treats as a function on a continuous domain satisfying differentiation rules. The Feynman–Kac view treats as a value function over SDE trajectories starting from . Every modern method that combines neural networks with stochastic numerics — deep BSDE, the deep splitting method, Han–Jentzen–E's full nonlinear extensions — takes the value-function view as its starting point.
A useful slogan: the Fokker–Planck equation moves densities forward in time using the generator's adjoint; Feynman–Kac moves value functions backward in time using the generator itself. They are the two halves of the PDE-SDE duality.
Mental Model
Think of as the expected payoff of a stochastic game: starting from state at time , run the SDE forward to terminal time , and collect a reward . Two complications turn the simple expectation into the full Feynman–Kac form. First, you might discount the future at a rate , multiplying by . Second, you might collect a running reward along the trajectory, adding . Both are common in finance and control. The Feynman–Kac formula says these probabilistic constructions are exactly the unique solutions to a class of linear parabolic PDEs.
Formal Statement
Feynman–Kac Formula
Let solve the SDE with infinitesimal generator . Let solve the backward Kolmogorov / Cauchy problem
with sufficiently smooth and bounded growth. Then admits the probabilistic representation
The PDE has three ingredients that map cleanly to the SDE side: is the generator of the diffusion, is a state-dependent discount rate applied to terminal and running payoffs, and is a forcing term that becomes a running cost integrated along the path.
Classical Feynman–Kac (the clean special case)
Set and . The PDE collapses to , , and the formula reduces to . This is the version most often called "Feynman–Kac" without qualification.
Feynman–Kac Representation
Statement
Under the assumptions above, the unique classical solution to with terminal condition admits the probabilistic representation , where solves with .
Intuition
The map should be a martingale: starting from and running forward, the expected future value of at time should equal , since there is no information being added. Itô's lemma identifies the drift of as , which the PDE forces to be zero. The martingale property at the terminal time gives .
Proof Sketch
Apply Itô's lemma to on : . Take expectations conditional on . The stochastic integral is a martingale (polynomial-growth bounds plus Burkholder–Davis–Gundy), so its expectation vanishes, giving . The terminal condition closes the identity.
Why It Matters
This is the cleanest statement of "PDE = expectation over an SDE." Three consequences. (1) Monte Carlo solver. Sample trajectories of starting from , average , get an unbiased estimator of with variance that is independent of dimension. (2) Linearity of expectation as superposition principle. If is a sum of payoffs, the corresponding is the same sum; the PDE inherits the linearity for free. (3) A pricing equation for European options. With a risk-neutral asset price and the option payoff, the expectation is the price; any PDE-side method for must agree with the Monte Carlo estimator up to numerical error. The result states: for all .
Failure Mode
The polynomial-growth and regularity hypotheses can fail in two pedestrian ways. First, payoffs with exponential growth (e.g., ) make the expectation infinite even when the PDE has a formal solution. Second, degenerate diffusions ( rank-deficient at some points) leave parts of the state space unreachable from , and becomes determined by boundary data the SDE cannot probe. Hörmander-type bracket conditions or viscosity-solution machinery are then needed.
Discounted Variant: Black–Scholes
The full Feynman–Kac formula with discounting is what gives the Black–Scholes equation its probabilistic content. For an asset following geometric Brownian motion under the risk-neutral measure, , and a European option with payoff at maturity , the price at time with is
By Feynman–Kac, is the unique solution to the PDE , with terminal condition . This is the Black–Scholes equation in stock-price coordinates, and the equivalence "price = discounted expectation = PDE solution" is a Feynman–Kac identification, not an extra assumption.
The same machinery generalizes to multi-asset options, stochastic-volatility models (Heston), and counterparty-risk-adjusted pricing, except the PDE becomes high-dimensional ( assets means spatial dimensions) and classical methods give up. Feynman–Kac says you can still Monte Carlo it.
Worked Example: Heat Equation as Brownian Expectation
Take (standard Brownian motion shifted to start at ), , , and smooth. The generator is and the PDE becomes , . Feynman–Kac gives
The right-hand side is the heat kernel convolution. So the Feynman–Kac formula reproduces the heat-kernel representation of the backward heat equation, and by extension the forward heat equation, by swapping the time direction. This is the cleanest illustration of the formula: the stochastic representation and the PDE Green's function are the same object viewed from two sides.
Connection to Backward SDEs
The classical Feynman–Kac formula handles linear parabolic PDEs. For semilinear parabolic PDEs of the form with depending on and themselves, the linear formula no longer applies. The expectation is no longer well-defined because the "running payoff" depends on the unknown solution.
The right generalization is the backward stochastic differential equation (BSDE) of Pardoux and Peng (1990): a process satisfying with terminal condition . The pair encodes both and its gradient along the path: and . This is the nonlinear Feynman–Kac formula, and it is the mathematical object that the deep BSDE method numerically approximates.
Common Confusions
Forward vs backward Kolmogorov is a sign convention, not a different equation
The forward Kolmogorov (Fokker–Planck) equation evolves the density of forward in time using the generator's adjoint. The backward Kolmogorov equation evolves a value function backward in time using the generator itself. They are not different equations; they are dual halves of the same operator, and Feynman–Kac is the explicit dictionary between them.
The discount factor is exp(-∫ r ds), not exp(-r(T-t))
For state-dependent or time-dependent rates , the discount factor inside the expectation is the path-integrated , not the simpler . The latter is correct only when is a constant. This becomes important in stochastic interest-rate models (Vasicek, CIR) where itself is an SDE; the discount factor then depends on the entire trajectory of , not just its starting value.
Feynman–Kac is for linear PDEs in u; nonlinear-in-u PDEs need BSDEs
The classical formula handles PDE coefficients that depend on but not on itself. Adding a nonlinear-in- term to the PDE breaks the clean expectation representation: the running cost depends on the unknown solution and cannot be computed along a trajectory without knowing first. The fix is the BSDE formulation, which is implicit rather than explicit and requires solving a fixed-point problem at every step.
Exercises
Problem
Use Feynman–Kac to solve the backward heat equation , , on . Verify your answer by direct PDE substitution.
Problem
Derive the Black–Scholes PDE from the discounted Feynman–Kac formula, going in the opposite direction from the worked example: start from for geometric Brownian motion , apply Itô to , and read off the PDE.
References
No canonical references provided.
No current references provided.
No frontier references provided.
Next Topics
- Backward SDE Theory: the Pardoux–Peng generalization to nonlinear-in- PDEs.
- Deep BSDE Method: neural-network solver for the resulting BSDEs in high dimensions.
- Fokker–Planck Equation: the dual / forward-Kolmogorov side; densities instead of value functions.
- Hamilton–Jacobi–Bellman: the canonical fully nonlinear PDE that arises in stochastic control and is solved via the BSDE extension.
Last reviewed: April 18, 2026
Prerequisites
Foundations this topic depends on.
- Stochastic Differential EquationsLayer 3
- Brownian MotionLayer 2
- Measure-Theoretic ProbabilityLayer 0B
- Martingale TheoryLayer 0B
- Ito's LemmaLayer 3
- Stochastic Calculus for MLLayer 3