Fix and define for . The assumed smooth extension and the Neumann boundary condition at zero make a function. The heat equation gives
The Itô formula therefore makes a local martingale. Stop first when leaves a large compact interval. The exponential growth bound and the finite exponential moments of the maximum of Brownian motion on give uniform integrability, so localization and the dominated convergence theorem yield
This is the Feynman-Kac formula for the Neumann heat problem.
The bounded local martingale is a true martingale. Its terminal condition is , so
This is also the Feynman-Kac formula for the displayed backward equation.
The pair is a Markov diffusion with infinitesimal generator
Part d shows that the terminal condition in the equation for is exactly
when evaluated at . The Feynman-Kac formula applied to the displayed backward equation therefore gives
Part c identifies the right side with .
Fix and apply Itô formula to for . Its drift is
by the Kolmogorov backward equation. Hence
Localization makes this a martingale, and boundedness of permits passage to the limit. Conditioning the identity on gives
This is the required special case of the Feynman-Kac formula, proved directly.