Write the diffusion process as , with . Its diffusion generator is
The Itô formula says that is a local martingale, and is a true martingale when the stopped terms are integrable. Taking expectations gives Dynkin formula for a diffusion. This is the bridge from infinitesimal stochastic dynamics to differential equations.
For the transition semigroup , the Markov property gives . On a smooth generator domain where differentiation is valid, differentiating the semigroup identity yields the Kolmogorov backward equation , with initial value . If a transition density exists, integration against smooth compactly supported tests and integration by parts give the Fokker-Planck equation
The backward equation acts on the starting point, while this forward equation describes the evolving probability density.
Here is a full representation proof with a source and potential. Suppose is nonexplosive, is bounded, are bounded, and is a bounded classical solution on a finite slab of
For a process started from at time , put . The Itô product rule gives
Therefore is a local martingale. It is bounded in absolute value by , so it is a true martingale, without requiring a global derivative bound. Its endpoint expectations give the parabolic Feynman-Kac formula with a source
This proves uniqueness in the bounded classical class. Setting recovers the backward heat or diffusion representation; the minus sign in the killing term produces the negative exponential.
For an elliptic problem, stop at the first exit from a bounded regular domain . Suppose , is bounded and solves with boundary data . The same calculation, stopped at , gives a martingale dominated by . Continuity puts on the boundary. Taking the limit and using dominated convergence gives the elliptic Feynman-Kac formula
For , harmonic functions for give stopped martingales and are averages of their exit-boundary values. For Brownian motion , this is the probabilistic solution of the Dirichlet problem. Suitable smooth coefficients and uniform ellipticity give familiar settings where the required diffusion, exit-time integrability and classical solutions exist. The representation itself follows from the stated regularity and integrability conditions, rather than claiming classical solvability for arbitrary coefficients.