The Feynman-Kac formula
Anchor (Master): Karatzas-Shreve Brownian Motion and Stochastic Calculus §§4.4, 5.7; Kac On distributions of certain Wiener functionals (1949); Simon Functional Integration and Quantum Physics Ch. 1-3 (Euclidean Schrödinger semigroups)
Intuition Beginner
Heat spreads. Drop a bead of dye into still water and watch it bloom outward, the sharp dot softening into a wider and wider smudge until the colour is spread thin everywhere. The mathematics of that blooming is the heat equation, and for a long time the only way to solve it was to treat the dye as a continuous field and grind through calculus on it.
There is a second picture, and it is the heart of this unit. Forget the field. Imagine the dye is made of millions of tiny specks, each one jittering at random, taking a haphazard walk with no memory and no goal. Each speck wanders off in its own direction, and the smudge you see is just the crowd of them spread out. The amount of colour at a spot tomorrow is the average over all the random wanders of where a speck happens to land.
That swap — from solving an equation about a smooth field to averaging over random walks — is the formula this unit is built around. It turns a question about heat into a question about the typical fate of a wanderer.
Visual Beginner
A starting dot sits at the centre. From it, several thin jagged paths spray outward, each one a random wiggling walk that ends somewhere different. Over each endpoint sits a faint bell-shaped hump showing how likely a walker is to finish there: tall near the start, low far away.
The bell shape is the punchline. If you release a huge swarm of walkers from one point and let them jitter for a fixed time, the crowd settles into a bell-shaped pile, fattest at the centre and thinning toward the edges. The height of the value we want at any spot is the average value the walkers carry to that spot. To find the temperature at a place and time, you do not solve the heat equation directly; you ask where the random walkers go and take the mean of what they bring.
Worked example Beginner
Start a single random walker at a point on a line and let it jitter for one unit of time. Where does it end up? Not at a fixed place, but spread out around the start in a bell-shaped pile. Suppose we want to know the value of some starting pattern, averaged over where the walker lands.
Take the starting pattern to be a smooth hill centred at zero. Release the walker from a point to the right of zero. Most of the walker's possible endpoints sit near where it started, on the right slope of the hill, but a good fraction drift left toward the peak and some drift further right down the far slope. The average of the hill's height over all those endpoints is the answer the formula gives for the value at that point after one unit of time.
Now release the walker from the very peak. Its endpoints spread symmetrically to both sides, all sampling lower parts of the hill, so the average comes out a little below the peak height. The pattern has slumped: the top is pulled down, the slopes filled in. That slumping is the dye blooming. We never solved an equation; we released walkers, looked at where they landed, and averaged the starting hill over those landing spots. The bloomed pattern is what the average produces.
Check your understanding Beginner
Formal definition Intermediate+
Let be a second-order elliptic differential operator on ,
$$
L = \tfrac{1}{2} \sum_{i,j} a_{ij}(x), \partial_{x_i} \partial_{x_j} + \sum_i b_i(x), \partial_{x_i},
\qquad a(x) = \sigma(x)\sigma(x)^\top,
$$
with Lipschitz and of linear growth, so that the stochastic differential equation has a unique strong solution — the diffusion with generator , in the sense of the construction co-produced as 02.15.03. Write for the solution started at , write and for probability and expectation under that initial condition, and let be bounded below and continuous (the potential, or killing rate). The expectation is the Lebesgue integral of 02.07.04 against the law of the path.
Definition (Feynman-Kac functional). Given a measurable of at most polynomial growth, define $$ u(t,x) ;=; \mathbb{E}_x!\left[, u_0(X_t), \exp!\Big(-!\int_0^t V(X_s),ds\Big) \right], \qquad t \ge 0,\ x \in \mathbb{R}^n. $$ The exponential weight is the multiplicative functional ; it discounts a path by the accumulated potential it has traversed. When the weight is the constant and is a pure average of the initial data over the diffusion.
The pure heat case. Take and . Then is Brownian motion, and
$$
u(t,x) = \mathbb{E}x[u_0(B_t)] = \int{\mathbb{R}^n} u_0(y), p_t(x,y),dy,
\qquad
p_t(x,y) = (2\pi t)^{-n/2} \exp!\Big(-\frac{|x-y|^2}{2t}\Big).
$$
The Brownian transition density is exactly the Gaussian heat kernel of 02.13.03: the probabilistic object (the law of started at ) and the analytic object (the fundamental solution of ) are one and the same function. This identity is the seed of the whole theory; everything below is the statement that the diffusion average solves the corresponding parabolic equation.
Counterexamples to common slips
The integral is taken along the random path, not at the endpoint: it is a functional of the entire trajectory , and replacing it by is wrong. Two paths with the same endpoint but different histories carry different weights.
Boundedness of below is what keeps and the expectation finite. If is unbounded below, the exponential can blow up and the formula may diverge; the Schrödinger case with a deep attractive well is exactly where this care is needed.
The formula represents the solution of the backward Cauchy problem with initial data , not the forward Fokker-Planck (Kolmogorov forward) equation for densities. The generator acts in the space variable on ; its formal adjoint governs the evolution of densities instead.
Key theorem with proof Intermediate+
Theorem (Feynman-Kac). Let be a bounded solution of the Cauchy problem $$ \partial_t u = L u - V u \quad (t>0), \qquad u(0,\cdot) = u_0, $$ with bounded below and continuous and continuous of polynomial growth. Then has the representation $$ u(t,x) ;=; \mathbb{E}_x!\left[, u_0(X_t), \exp!\Big(-!\int_0^t V(X_s),ds\Big) \right]. $$
Proof. Fix and . For consider the discounted process
$$
Y_s ;=; u(t-s,, X_s), \exp!\Big(-!\int_0^s V(X_r),dr\Big) ;=; u(t-s, X_s), M_s.
$$
We show is a martingale under . Apply Itô's formula of 02.15.02 to the product , noting (the weight has finite variation, so it contributes no quadratic term and no cross-variation with ). Writing for the time derivative and using that the generator of is ,
$$
dY_s = M_s\Big[, -\partial_t u + L u - V u ,\Big](t-s, X_s),ds ;+; M_s, \nabla u(t-s,X_s)^\top \sigma(X_s), dB_s.
$$
The drift bracket is ; by hypothesis satisfies , so the bracket vanishes identically. Hence
$$
dY_s = M_s, \nabla u(t-s,X_s)^\top \sigma(X_s), dB_s,
$$
a pure stochastic-integral term. Under the boundedness of and the growth control on and , the integrand lies in the class for which the Itô integral is a genuine martingale (localise by a stopping sequence and pass to the limit using dominated convergence, the weight supplying the domination). Therefore . Now evaluate the endpoints: at , (a constant); at , . Equating the two expectations gives
$$
u(t,x) = \mathbb{E}_x!\left[ u_0(X_t)\exp!\Big(-!\int_0^t V(X_r),dr\Big)\right]. \qquad \square
$$
Bridge. This martingale argument builds toward every later use of stochastic representation, and it appears again in the killed-diffusion and Dirichlet-problem refinements of the Master tier, where a stopping time replaces the fixed horizon . The foundational reason the proof works is that the diffusion's generator is defined so that has drift under Itô's formula; the discount is engineered so that its drift cancels exactly the term in the equation, and this is exactly why the potential enters as a path integral in the exponent rather than as a pointwise factor. The construction generalises the pure-heat identity — there , , and is already a martingale because solves — to an arbitrary elliptic with potential. The central insight is that the Cauchy problem and the path average are two readings of one martingale, and putting these together the heat kernel of 02.13.03 is recovered as the Brownian transition density. The bridge is that solving a parabolic PDE and computing an expectation over diffusion paths are the same operation seen from two sides.
Exercises Intermediate+
Advanced results Master
The killed diffusion and the probabilistic semigroup. The potential admits a literal probabilistic reading: enlarge the state space by a cemetery point and kill the path at rate , i.e. send it to over with probability . The survival probability up to time , conditional on the trajectory, is exactly , so the Feynman-Kac functional for the killed diffusion (with ). The family is then a strongly continuous semigroup of bounded operators, the Schrödinger semigroup, with infinitesimal generator . The Dirichlet problem of Exercise 4 is the same construction with killing replaced by absorption at the boundary ; killed and absorbed diffusions are the two faces of a sub-Markovian semigroup, and the heat content of a domain — the total surviving mass — is the Feynman-Kac average of the constant .
The Euclidean bridge to quantum mechanics. Place and read as a Schrödinger Hamiltonian. The unitary quantum evolution of the real-time Schrödinger equation has, formally, the same generator as the Feynman-Kac semigroup after the substitution — the Wick rotation to imaginary (Euclidean) time. Feynman's 1948 sum-over-histories wrote as an oscillatory integral over paths weighted by , an object with no underlying measure. Kac's contribution was to observe that in imaginary time the oscillatory weight becomes the genuine, positive Wiener weight, so acquires a rigorous path-integral kernel
$$
\big(e^{-tH}\big)(x,y) = \mathbb{E}_{x\to y}!\left[\exp!\Big(-!\int_0^t V(B_s),ds\Big)\right] p_t(x,y),
$$
the expectation taken over the Brownian bridge from to . This is the precise sense in which probability furnishes a mathematically honest path integral while the physicists' real-time version remains formal; it cross-links the construction of Brownian motion and the path integral in 08.14.01, where the Wiener measure is built as the measure the present formula integrates against.
Spectral consequences. Because on is a positivity-preserving semigroup with a Gaussian-dominated kernel, the path-integral representation gives quantitative control of the spectrum of : lower bounds on the kernel yield upper bounds on eigenvalues, ground-state positivity follows from the strict positivity of the Wiener weight, and large- asymptotics of feed Tauberian estimates of the eigenvalue-counting function. The functional-integral method of Simon's monograph turns each analytic question about into a question about a Brownian functional, and the probabilistic positivity of the weight is what makes the bridge so productive.
Synthesis. The Feynman-Kac formula is the foundational reason the heat kernel of 02.13.03 is the Brownian transition density and not merely similar to it: solving the Cauchy problem and averaging over diffusion paths are the same martingale read two ways, and this is exactly the duality between the generator acting on functions and the diffusion realising it. The central insight is that the potential enters not pointwise but as a path integral in an exponent, because the multiplicative functional that discounts a path is precisely the survival probability of a particle killed at rate ; this generalises the pure-heat average to the full Schrödinger semigroup and is dual, under Wick rotation , to the formal real-time path integral of quantum mechanics. Putting these together, the killed diffusion, the Dirichlet problem, Kac's occupation-time identity, and the Euclidean quantum propagator are all one construction specialised: a stopped or weighted average over the paths of a diffusion. The bridge is that the analytic semigroup and the probabilistic average over Wiener paths are two names for the operator this unit builds, and that operator appears again in 08.14.01 as the rigorous content of the path integral and builds toward the spectral theory of Schrödinger operators.
Full proof set Master
The martingale verification of the parabolic Feynman-Kac formula is given in full in the Key theorem section. The remaining Master claims are recorded here.
Proposition (semigroup property of the Feynman-Kac propagator). For bounded below, the operators form a semigroup: for .
Proof. Fix and a bounded measurable . By the Markov property of the diffusion (the defining property of the construction in 02.15.03), conditioning on and using that restarts from with a fresh independent driving Brownian motion,
$$
\mathbb{E}x!\Big[ u_0(X{t+r}), e^{-\int_0^{t+r} V(X_s),ds} ,\Big|, \mathcal F_t \Big]
= e^{-\int_0^t V(X_s),ds}; \mathbb{E}_{X_t}!\Big[ u_0(X_r), e^{-\int_0^r V(X_s),ds}\Big],
$$
where the last factor is by the strong Markov restart. The accumulated weight splits as , and the second piece is measured by the restarted path, which is the source of the factorisation. Taking of both sides and using the tower property,
$$
P_{t+r}^V u_0(x) = \mathbb{E}_x!\Big[ e^{-\int_0^t V(X_s),ds}, P_r^V u_0(X_t)\Big] = P_t^V\big(P_r^V u_0\big)(x). \qquad \square
$$
Proposition (Kac moment formula for Brownian occupation). Let be Brownian motion on and bounded continuous. Then — the expected total accumulated killing — equals wherever the diffusion is certain to be eventually killed, and more generally solves .
Proof. For the second claim, apply the Itô computation of the Key theorem to with the time-independent . Itô's formula gives . For to be the martingale that makes consistent with the definition (here so ), the drift must vanish, i.e. . Conversely a bounded solution of that elliptic equation yields, by the stopped-martingale argument of Exercise 4 with , the representation . For the first claim, integrate the identity from to : the left side telescopes to , so , which is exactly when , i.e. when killing is certain.
Proposition (Euclidean kernel via the Brownian bridge). For and bounded below, the Schrödinger semigroup , , has integral kernel , the inner expectation over the Brownian bridge from to in time .
Proof. Disintegrate the Wiener measure started at over the endpoint : the law of has density , and conditionally on the path is a Brownian bridge . Hence for bounded ,
$$
P_t^V u_0(x) = \mathbb{E}x\big[u_0(B_t)M_t\big] = \int{\mathbb{R}^n} u_0(y), p_t(x,y), \mathbb{E}{x\to y}^{(t)}!\big[M_t\big],dy = \int u_0(y),K_t(x,y),dy,
$$
by Fubini (justified since is bounded below, so and the integrand is dominated by , integrable for polynomially bounded , invoking the dominated convergence of 02.07.04). Reading off the kernel of gives $K_t(x,y) = p_t(x,y),\mathbb{E}{x\to y}^{(t)}[M_t]\square$
Connections Master
The Itô integral and Itô's formula 02.15.02 supply the engine of every proof in this unit. Itô's formula applied to the discounted process is what produces the drift bracket ; the cancellation of that bracket against the Cauchy problem is the entire mechanism of the representation, and the stochastic-integral term it leaves behind is the martingale whose constancy of expectation yields the formula.
The diffusion attached to a generator and the SDE construction 02.15.03, co-produced in this wave, is what gives meaning to "the diffusion with generator " used throughout. That unit builds as the strong solution of and identifies its generator as ; the present unit consumes that identification at the step where Itô's formula turns into a process with drift . The Markov and strong-Markov properties established there are exactly what the semigroup proposition here invokes. The two units are the forward and backward faces of one object: 02.15.03 runs the paths, this unit averages over them.
The heat equation, heat kernel, and Duhamel principle 02.13.03 is the analytic prerequisite and the destination. The Gaussian heat kernel constructed there as the fundamental solution of is recovered here as the Brownian transition density, and Duhamel's principle for the inhomogeneous equation reappears (Exercise 3) as the probabilistic source term . The maximum principle of the parabolic theory is mirrored by the positivity of the diffusion average.
The Lebesgue integral and monotone convergence 02.07.04 is what the expectation is: the integral of the path functional against the law of the diffusion. The dominated- and monotone-convergence theorems of that unit are invoked at each localisation step where a stopped martingale is passed to its limit and where Fubini disintegrates the Wiener measure over the endpoint.
Brownian motion, the Wiener measure, and the path integral 08.14.01 is the physics-facing counterpart. There the Wiener measure is constructed as the measure on path space that the Feynman-Kac functional integrates against, and the formal real-time Feynman path integral is presented; this unit supplies the rigorous imaginary-time version of that object, the Euclidean propagator , and the Wick rotation is the precise dictionary between the two.
Historical & philosophical context Master
Richard Feynman's 1948 Space-time approach to non-relativistic quantum mechanics (Reviews of Modern Physics 20, 367–387) [Feynman 1948] proposed that the quantum propagator be written as a sum over all paths connecting two points, each weighted by with the classical action. The proposal was physically luminous and analytically suspect: the oscillatory weight defines no countably additive measure on path space, so the "integral" was a formal limit of finite-dimensional integrals with no underlying measure-theoretic content. Mark Kac, who had attended Feynman's lectures, recognised that the difficulty evaporates in imaginary time. His 1949 paper On distributions of certain Wiener functionals (Transactions of the AMS 65, 1–13) [Kac 1949] established the now-standard identity by computing the distribution of , the occupation time, and recognising the exponential functional as the solution of a heat equation with potential. Where Feynman summed over real-time paths, Kac integrated the genuine, positive Wiener weight over Brownian paths — the same formula with the oscillation traded for decay.
The philosophical payoff is a lesson about which structures are real. The real-time path integral remains, to this day, a formal device that physicists wield with great success but mathematicians cannot ground as a measure; the imaginary-time version is a theorem about the Wiener measure, complete with a martingale proof. The mathematical honesty of the construction is bought entirely by the positivity of the Brownian weight, which is what lets the Wiener measure exist as a probability measure in the first place. The standard modern accounts — Øksendal's Stochastic Differential Equations (2003) [Øksendal 2003], Karatzas and Shreve's Brownian Motion and Stochastic Calculus (1991) [Karatzas-Shreve 1991], and Barry Simon's Functional Integration and Quantum Physics (1979) [Simon 1979] — treat the formula not as a curiosity but as the central conduit between analysis and probability: every spectral question about a Schrödinger operator becomes a question about a Brownian functional, and the heat kernel of partial differential equations becomes the transition law of a stochastic process. The recurring theme is that the right way to compute with a generator is sometimes to run the process it generates.
Bibliography Master
@article{kac1949,
author = {Kac, Mark},
title = {On distributions of certain {W}iener functionals},
journal = {Transactions of the American Mathematical Society},
volume = {65},
number = {1},
pages = {1--13},
year = {1949}
}
@article{feynman1948,
author = {Feynman, Richard P.},
title = {Space-time approach to non-relativistic quantum mechanics},
journal = {Reviews of Modern Physics},
volume = {20},
number = {2},
pages = {367--387},
year = {1948}
}
@book{oksendal2003,
author = {{\O}ksendal, Bernt},
title = {Stochastic Differential Equations: An Introduction with Applications},
edition = {6},
publisher = {Springer-Verlag, Berlin},
year = {2003}
}
@book{karatzas1991,
author = {Karatzas, Ioannis and Shreve, Steven E.},
title = {Brownian Motion and Stochastic Calculus},
edition = {2},
series = {Graduate Texts in Mathematics},
volume = {113},
publisher = {Springer-Verlag, New York},
year = {1991}
}
@book{simon1979,
author = {Simon, Barry},
title = {Functional Integration and Quantum Physics},
series = {Pure and Applied Mathematics},
volume = {86},
publisher = {Academic Press, New York},
year = {1979}
}