Let T>0, B(t) be a Brownian motion, F(t) the filtration generated by B(t), X(t) a stochastic process adapted to F(t), and h:R→R a measurable function. Suppose X(t) satisfies:
dX(t)=α(t,X(t))dt+β(t,X(t))dB(t),
where α(t,X(t)), β(t,X(t)) are adapted processes. For x∈R and 0<t<T, let Ex,t be the expected value of h(X(T)) starting from X(t)=x, and denote this function by g(x,t). If α(t,X(t)),β(t,X(t)) are sufficiently nice, then X(t) is a Markov process and
E[h(X(T))∣F(t)]=g(t,X(t)).
Theorem 1 (Feynman-Kac) The function g(t,x) satisfies
gt(t,x)+α(t,X(t))gx(t,x)+21β2(t,x)gxx(t,x)=0g(T,x)=h(x).
Proof. We first note that the process g(t,X(t)) is a martingale. Indeed, for 0<s<t,
E[g(t,X(t))∣F(s)]=E[E[h(X(T))∣F(t)]∣F(s)]=E[h(X(T))∣F(s)]=g(s,X(s)).
We now use Itô's formula to compute the differential of g:
dg(t,X(t))=gtdt+gxdX(t)+21gxxdX(t)dX(t)=(gt+α(t,X(t))gx+21β2(t,x)gxx)dt+gxβ(t,X(t))dB(t).
Since g(t,X(t)) is a martingale, the dt term must vanish, so
gt(t,x)+α(t,X(t))gx(t,x)+21β2(t,x)gxx(t,x)=0.
Finally, since h(X(T)) is F(T)-measurable,
g(T,X(T))=E[h(X(T))∣F(T)]=h(X(T)),
which must hold for any value of X(T).
□
Since the process X(t) is a Markov process, it has a probability transition density p(t,T,x,y), so if X(t)=x, then
E[h(X(T))∣F(t)]=∫h(y)p(t,T,x,y)dy.
From the Feynman-Kac theorem, we obtain the Kolmogorov Backward Equation.
Theorem: Let p(t,T,x,y) be the transition density for the solution to the SDE in equation (1). Then,
pt+αpx+21β2pxx=0.
Proof. From the Feynman-Kac theorem we know
gt(t,x)+α(t,X(t))gx(t,x)+21β2(t,x)gxx(t,x)=0.
Since
g(t,x)=∫h(y)p(t,T,x,y)dy,
differentiating under the integral sign yields
∫h(y)(pt+αpx+21β2(t,x)pxx)dy=0.
This holds for all measurable functions h, so
pt+αpx+21β2pxx=0.
□
What this theorem tells us is that given X(T)=y, we can solve for the probability that X(t)=x as a function of x and t. Similarly, we can establish a forward equation for the transition function. Given the current position X(t)=x, we wish to find the probability that X(T)=y as a function of T and y for T>t.
Theorem. (Kolmogorov Forward Equation/Fokker-Planck Equation). Let p(t,T,x,y) be the transition density for the solution to the SDE in equation (1). Then p(t,T,x,y) satisfies
∂T∂p(t,T,x,y)+∂y∂(β(t,X(t),y)p(t,T,x,y))−21∂y2∂2(β2(T,y)p(t,T,x,y))=0.
Proof. Let a<b, let h be any smooth function compactly supported on [a,b], and suppose X(t)=x∈(a,b). Take for example
h(x)={e(x−a)(x−b)10x∈(a,b)o.w..
For t<u<T,
d(h(X(u)))=(α(u,X(u))h′(X(u))+21β2(u,X(u))h′′(X(u)))du+β(u,X(u))h′(X(u))dB(u).
Equivalently,
h(X(T))=h(x)+∫tT(α(u,X(u))h′(X(u))+21β2(u,X(u))h′′(X(u)))du+∫tTβ(u,X(u))h′(X(u))dB(u).
Taking expectations of both sides and noting that h,h′,h′′ are compactly supported on (a,b),
∫abh(y)p(t,T,x,y)dy=E[h(X(T))]=h(x)+∫tTE(α(u,X(u))h′(X(u))+21β2(u,X(u))h′′(X(u)))du=h(x)+∫tT∫abα(u,y)h′(y)p(t,u,x,y)dydu+∫tT∫ab21β2(u,y)h′′(u)p(t,u,x,y)dydu.
We now apply integration by parts once to the second term and twice to the third term and use the fact that h(a)=h′(a)=h′(b)=h(b)=0:
∫abh(y)p(t,T,x,y)dy=h(x)−∫tT∫ab∂y∂(α(u,y)p(t,u,x,y))h(y)dydu+21∫tT∫ab∂y2∂2(β2(u,y)p(t,u,x,y))h(y)dydu.
Finally, differentiating both sides with respect to T results in
∫abh(y)pT(t,T,x,y)dy=−∫ab∂y∂(α(T,y)p(t,T,x,y))h(y)dy+21∫ab∂y2∂2(β2(T,y)p(t,T,x,y))h(y)dy.
Hence,
∫abh(y)(pT(t,T,x,y)+∂y∂(α(T,y)p(t,T,x,y))−21∂y2∂2(β2(T,y)p(t,T,x,y)))dy=0.
This holds for all smooth functions compactly supported on (a,b). Since the set of smooth functions compactly supported on (a,b) is dense in the set of continuous compactly supported functions on (a,b), it follows that
pT(t,T,x,y)+∂y∂(α(T,y)p(t,T,x,y))−21∂y2∂2(β2(T,y)p(t,T,x,y))=0 for all y∈(a,b).
Since a<b are arbitrary, we thus have
∂T∂p(t,T,x,y)+∂y∂(β(t,X(t),y)p(t,T,x,y))−21∂y2∂2(β2(T,y)p(t,T,x,y))=0.
□