Feynman-Kac Formula

Research Depth 111 in the knowledge graph I know this Set as goal
Unlocks 1 downstream topic
feynman-kac pde-sde-connection parabolic-pde

Core Idea

The Feynman-Kac formula connects solutions of parabolic PDEs to expectations of stochastic processes. If u(x,t) solves ∂u/∂t + μ(x)∂u/∂x + (1/2)σ²(x)∂²u/∂x² - r(x)u = 0 with terminal condition u(x,T) = g(x), then u(x,t) = E[exp(-∫ₜᵀ r(X(s))ds) · g(X(T)) | X(t) = x], where dX = μ dt + σ dW. This provides a probabilistic representation of PDE solutions and a PDE representation of stochastic expectations — a deep bridge between analysis and probability.

Explainer

The Feynman-Kac formula is one of the deepest connections in mathematics: it equates solutions of partial differential equations with expectations of stochastic processes. The formula states that the solution of the parabolic PDE ∂u/∂t + μ(x)∂u/∂x + (1/2)σ²(x)∂²u/∂x² - r(x)u = 0 with terminal condition u(x,T) = g(x) can be represented as u(x,t) = E[exp(-∫ₜᵀ r(X(s))ds) · g(X(T)) | X(t) = x], where X follows the SDE dX = μ(X)dt + σ(X)dW. The PDE coefficients μ, σ determine the dynamics of the process; the terminal condition g determines the payoff; the coefficient r introduces discounting.

The proof in one direction (from stochastic representation to PDE) uses Itô's formula directly. Define u(x,t) = E[e^{-∫r ds} g(X(T)) | X(t) = x] and consider the process M(s) = e^{-∫ₜˢ r du} u(X(s), s) for s ∈ [t,T]. Apply Itô's formula to M: the drift must be zero because M is a martingale (it is a conditional expectation process). Setting the drift to zero yields exactly the PDE. The converse direction (from PDE solution to stochastic representation) reverses this argument: if u solves the PDE, then M(s) = e^{-∫ₜˢ r du} u(X(s), s) has zero drift by Itô's formula, hence is a martingale. Taking expectations at s = T gives u(x,t) = E[e^{-∫r ds} g(X(T)) | X(t) = x].

This bridge works in both directions practically. Given a PDE, you can solve it by simulating diffusion paths and averaging — this is the Monte Carlo method, which excels in high dimensions where grid-based PDE solvers fail catastrophically due to the curse of dimensionality. Conversely, given a stochastic expectation, you can write down the corresponding PDE and apply analytical techniques (separation of variables, Green's functions, transform methods) or efficient numerical PDE solvers. The choice depends on the problem structure: low-dimensional problems with smooth coefficients favor PDE methods; high-dimensional problems or problems with complex path-dependent payoffs favor Monte Carlo.

In mathematical finance, the Feynman-Kac formula is the link between the Black-Scholes PDE and risk-neutral pricing. The Black-Scholes PDE ∂V/∂t + rS(∂V/∂S) + (1/2)σ²S²(∂²V/∂S²) - rV = 0 is in exact Feynman-Kac form with the risk-neutral drift rS, diffusion σS, and discount rate r. The formula gives V(S,t) = E_Q[e^{-r(T-t)} payoff(S_T)], recovering the risk-neutral pricing formula. Richard Feynman arrived at this formula from the physics side (path integrals in quantum mechanics); Mark Kac gave the rigorous mathematical proof. The formula reveals that PDEs and expectations are two languages for the same mathematics — master both, and you can translate freely between them.

Practice Questions 3 questions

Prerequisite Chain

Counting to 10Counting to 20Understanding ZeroThe Number ZeroCounting to FiveOne-to-One CorrespondenceCombining Small Groups Within 5Addition Within 10Addition Within 20Two-Digit Addition Without RegroupingTwo-Digit Addition with RegroupingAddition Within 100Repeated Addition as MultiplicationMultiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Two-Digit by One-Digit DivisionDivision with RemaindersRemainders and Quotients in DivisionDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueReading and Writing DecimalsComparing and Ordering DecimalsAdding and Subtracting DecimalsMultiplying DecimalsDividing DecimalsDividing FractionsMixed Number ArithmeticOrder of OperationsInteger Order of OperationsVariable ExpressionsCombining Like TermsOne-Step EquationsTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionTrigonometric Ratios ReviewRadian MeasureConverting Between Degrees and RadiansThe Unit CircleGraphing Sine and CosineGraphing Tangent and Reciprocal Trigonometric FunctionsDerivatives of Trigonometric FunctionsAntiderivativesIterated Integrals and Fubini's TheoremDouble Integrals in Cartesian CoordinatesDouble Integrals over Rectangular RegionsDouble Integrals in Polar CoordinatesDouble Integrals: Definition and SetupIterated Integrals and Fubini's TheoremDouble Integrals over Rectangular RegionsDouble Integrals over General RegionsApplications of Double Integrals: Area, Mass, and MomentsCenter of MassConservation of Linear MomentumElastic CollisionsInelastic CollisionsCoefficient of RestitutionCollision Analysis and Real-World ApplicationsTwo-Body Collisions in the Center-of-Mass FrameReduced Mass and Two-Body ProblemsKinematics in Two DimensionsProjectile MotionCircular Motion: KinematicsRotational KinematicsTorqueMoment of InertiaRotational Kinetic EnergyThe Work-Energy TheoremConservation of Mechanical EnergyFirst Law of ThermodynamicsThermodynamic Processes and the PV DiagramIsobaric and Isochoric ProcessesHeat EnginesThermal Efficiency of Heat EnginesRefrigerators and Heat PumpsSecond Law of ThermodynamicsEntropyMicrostates and MacrostatesEnsemble Theory FundamentalsCanonical Ensemble (NVT)Partition Function: Definition and PropertiesThe Canonical Partition Function and Thermodynamic DerivationMaxwell-Boltzmann Distribution and Classical LimitBrownian MotionProperties of Brownian MotionThe Itô IntegralItô's Formula (Itô's Lemma)Stochastic Differential EquationsFeynman-Kac Formula

Longest path: 112 steps · 534 total prerequisite topics

Prerequisites (3)

Leads To (1)