Fokker Plank Equation

For a drift diffusion process

dz→=A→(t,z→)dt+𝐁(t,z→)dW→t

is in differential form. The in integral form

z→(tb)−z→(ta)=∫tatbA→(t,z→(t))dt+∫tatb𝐁(t,z→(t))dW→t

is defined by a regular Reinmann integral and an Ito integral with respect to a Weiner process. Expanding their definitions is

=limΔtmax→0⁡∑(ti,ti+1)∈π(ta,tb)A→(ti,z→(ti))(ti+1−ti))
+limΔtmax→0⁡∑(ti,ti+1)∈π(ta,tb)𝐁(ti,z→(ti))(W→(ti+1)−W→(ti)))

Let Δit=ti+1−ti and ΔiW→=W→(ti+1)−W→(ti).

=limΔtmax→0⁡∑Δit∈π(ta,tb)A→(ti,z→(ti))Δit+limΔtmax→0⁡∑Δit∈π(ta,tb)𝐁(ti,z→(ti))ΔiW→

Now consider an infinitelly differentiable, square integrable function f(t,z→(t)) that is a function of the vector.

f(t+k,z→(t+k))−f(t,z→(t))

We can put in a dummy value equal to zero

=f(t+k,z→(t+k))+∑j=1N(−f(tj,z→(tj))+f(tj,z→(tj)))−f(ta,z→(ta))

And move the 2 endpoints into the summation

=∑i=0N(f(ti+1,z→(ti+1))−f(ti,z→(ti)))

where the endpoints are t0=t and tN+1=t+k, and all the other indices are copied ti=tj. Then make

=∑i=0N(f(ti+1+Δi+1t,z→(ti+1+Δi+1t))−f(ti+Δit,z→(ti+Δit)))

And taking the limit it is still valid

=limN→∞⁡∑i=0N(f(ti+1+Δi+1t,z→(ti+1+Δi+1t))−f(ti+Δit,z→(ti+Δit)))

We can make the sum a partition

=limΔtmax→0⁡∑Δit∈π(t,t+k)(f(ti+1+Δi+1t,z→(ti+1+Δi+1t))−f(ti+Δit,z→(ti+Δit)))

And we the test function f is chosen so that the radius of convergence for the Taylor series is nonzero. So we can expand the difference of the inside of the sum to a Taylor series.

=limΔtmax→0⁡∑i(∂f∂tΔt+∂f∂z→⋅(z→(ti+1)−z→(ti))+12∂2f∂2tΔt2+…)

Let

Δiz→=z→(ti+1)−z→(ti)

So

=limΔtmax→0⁡∑i(∂f∂tΔt+∂f∂z→⋅Δiz→+12∂2f∂2tΔt2+12∂2f∂2z→Δiz→⋅Δiz→+∂2f∂t∂z→ΔtΔiz→+…)

Here ∂f∂z→ is the gradient and ∂2f∂2z→ is the Hessian and so on. If we expand the gradients and Hessians to a sum

=limΔtmax→0⁡∑i(∂f∂tΔt+∑kU∂f∂z→kΔiz→k+12∂2f∂2tΔt2+12∑kU∑lU∂2f∂z→k∂z→lΔiz→kΔiz→l+∑kU∂2f∂t∂z→kΔtΔiz→k+…)

one can see that

Δiz→k=∫titi+1A→(t,z→(t))kdt+∫titi+1𝐁(t,z→(t))kdW→t

and so

Δiz→kΔiz→l=(∫titi+1A→k(t,z→(t))dt)(∫titi+1A→l(t,z→(t))dt)
+(∫titi+1𝐁k(t,z→(t))dW→t)(∫titi+1𝐁l(t,z→(t))dW→t)
+(∫titi+1A→k(t,z→(t))dt)(∫titi+1𝐁l(t,z→(t))dW→t)
+(∫titi+1A→l(t,z→(t))dt)(∫titi+1𝐁k(t,z→(t))dW→t)

Get rid of the first term

For the first part let

Mk=supt∈[ti,ti+1]A→k(t,z(t))
Ml=supt∈[ti,ti+1]A→l(t,z(t))

Then

∫titi+1A→k(t,z→(t))dt≤MkΔit

So

(∫titi+1A→k(t,z→(t))dt)(∫titi+1A→l(t,z→(t))dt)≤MkMlΔit2

And inside the summation is

limΔtmax→0⁡∑i∂f∂z→k∂z→l(∫titi+1A→k(t,z→(t))dt)(∫titi+1A→l(t,z→(t))dt)=limΔtmax→0⁡∑i∂f∂z→k∂z→lMkMlΔit2≤limΔtmax→0⁡Δitmax∑i∂f∂z→k∂z→lMkMlΔit=0

and doing the same thing with a lower bound we know the first part goes to zero

The second term

Looking at the second term

(∫titi+1𝐁k(t,z→(t))dW→t)(∫titi+1𝐁l(t,z→(t))dW→t)

We can expand the dot product to

=(∑sU∫titi+1𝐁k,s(t,z→(t))dW→t,s)(∑qU∫titi+1𝐁l,q(t,z→(t))dW→t,q)
=∑sU∑qU(∫titi+1𝐁k,s(t,z→(t))dW→t,s)(∫titi+1𝐁l,q(t,z→(t))dW→t,q)

If we take the expected value then

=∑sU∑qU𝔼[(∫titi+1𝐁k,s(t,z→(t))dW→t,s)(∫titi+1𝐁l,q(t,z→(t))dW→t,q)]

Swap in the definition of Ito integrals

=∑sU∑qU𝔼[(limΔtmax→0⁡∑Δat∈π(ti,ti+1)𝐁k,s(t,z→(t))ΔaW→t,s)(limΔtmax→0⁡∑Δbt∈π(ti,ti+1)𝐁l,q(t,z→(t))ΔbW→t,q)]

Factor out the limit and swap it with the expected value (I think this works but not sure)

=limΔtmax→0⁡𝔼[∑sU∑qU(∑Δat∈π(ti,ti+1)𝐁k,s(t,z→(t))ΔaW→t,s)(∑Δbt∈π(ti,ti+1)𝐁l,q(t,z→(t))ΔbW→t,q)]
=limΔtmax→0⁡𝔼[∑sU∑qU∑Δat∈π(ti,ti+1)∑Δbt∈π(ti,ti+1)(𝐁k,s(t,z→(t))ΔaW→t,s)(𝐁l,q(t,z→(t))ΔbW→t,q)]

then rearange

=limΔtmax→0⁡∑sU∑qU∑Δat∈π(ti,ti+1)∑Δbt∈π(ti,ti+1)𝔼[(𝐁k,s(t,z→(t))𝐁l,q(t,z→(t)))(ΔaW→t,sΔbW→t,q)]

The (ΔaW→t,sΔbW→t,q) are are independent, so their covariance is always zero if s≠q. So in the sume we only keep the diagonals

=limΔtmax→0⁡∑sU∑Δat∈π(ti,ti+1)∑Δbt∈π(ti,ti+1)𝔼[(𝐁k,s(t,z→(t))𝐁l,s(t,z→(t)))(ΔaW→t,sΔbW→t,s)]

And the increments in (ΔaW→t,sΔbW→t,s) are also independent by definition of a Weiner process, so the expected value goes to zero for different increments a≠b

=limΔtmax→0⁡∑sU∑Δat∈π(ti,ti+1)𝔼[(𝐁k,s(t,z→(t))𝐁l,s(t,z→(t)))(ΔaW→t,sΔaW→t,s)]

And the variance of a Weiner processes increment is by definition the increment of time, so (ΔaW→t,sΔaW→t,s)=Δat

=limΔtmax→0⁡∑sU∑Δat∈π(ti,ti+1)𝔼[(𝐁k,s(t,z→(t))𝐁l,s(t,z→(t)))]Δat

And now its just the definition of a Reinmann integral

=∑sU∫titi+1𝔼[(𝐁k,s(t,z→(t))𝐁l,s(t,z→(t)))]dt

Third and Fourth terms

So with

(∫titi+1A→k(t,z→(t))dt)(∫titi+1𝐁l(t,z→(t))dW→t)

inside the summation it looks like

limΔtmax→0⁡∑i(∫titi+1A→k(t,z→(t))dt)(∫titi+1𝐁l(t,z→(t))dW→t)

If we use Cauchy Schwarz inequality where ∑i|AiBi|≤∑iAi2∑iBi2 then

limΔtmax→0⁡|∑i(∫titi+1A→k(t,z→(t))dt)(∫titi+1𝐁l(t,z→(t))dW→t)|≤limΔtmax→0⁡∑i(∫titi+1A→k(t,z→(t))dt)2(∫titi+1𝐁l(t,z→(t))dW→t)2

And we've seen that the first term goes to zero, and the second term is finite so

=0

and we don't have to worry about it at all

Taylor series substituted

So substituting what we have, where only 1 of the terms isn't zero gives

limΔtmax→0⁡𝔼[Δiz→kΔiz→l]=∑sU∫titi+1𝔼[(𝐁k,s(t,z→(t))𝐁l,s(t,z→(t)))]dt

Looking back at the Taylor series if we take the expected value

𝔼[f(t+k,z→(t+k))−f(t,z→(t))]=𝔼[limΔtmax→0⁡∑i(∂f∂tΔt+∑kU∂f∂z→kΔiz→k+12∂2f∂2tΔt2+12∑kU∑lU∂2f∂z→k∂z→lΔiz→kΔiz→l+∑kU∂2f∂t∂z→kΔtΔiz→k+…)]

and the higher order terms other than these ones go to zero, pretty easy to prove similar to others but will skip it for now

=𝔼[limΔtmax→0⁡∑i(∂f∂tΔt+∑kU∂f∂z→kΔiz→k+12∑kU∑lU∂2f∂z→k∂z→lΔiz→kΔiz→l)]
=limΔtmax→0⁡∑i(∂f∂tΔt+∑kU𝔼[∂f∂z→kΔiz→k]+12∑kU∑lU𝔼[∂2f∂z→k∂z→lΔiz→kΔiz→l])

The first part is just a Reinmann integral

=∫tt+k∂f∂tdtlimΔtmax→0⁡∑i(∑kU𝔼[∂f∂z→kΔiz→k]+12∑kU∑lU𝔼[∂2f∂z→k∂z→lΔiz→kΔiz→l])

Substitute

=∫tt+k∂f∂tdtlimΔtmax→0⁡∑i(∑kU𝔼[∂f∂z→k(∫titi+1A→(t,z→(t))kdt+∫titi+1𝐁(t,z→(t))kdW→t)]+12∑kU∑lU𝔼[∂2f∂z→k∂z→lΔiz→kΔiz→l])

and adding the integrals just concatenates them so

=∫tt+k∂f∂tdt+∑kU(∫tt+k𝔼[∂f∂z→kA→(t,z→(t))k]dt+∫titi+1𝔼[𝐁(t,z→(t))kdW→t])+limΔtmax→0⁡∑i(12∑kU∑lU𝔼[∂2f∂z→k∂z→lΔiz→kΔiz→l])

The expected value of just the drift term is zero so

=∫tt+k∂f∂tdt+∑kU∫tt+k𝔼[∂f∂z→kA→(t,z→(t))k]dt+limΔtmax→0⁡∑i(12∑kU∑lU𝔼[∂2f∂z→k∂z→lΔiz→kΔiz→l])

Then if we substitute again

=∫tt+k∂f∂tdt+∑kU∫tt+k𝔼[∂f∂z→kA→(t,z→(t))k]dt+limΔtmax→0⁡∑i(12∑kU∑lU𝔼[∂2f∂z→k∂z→l(∑sU∫titi+1(𝐁k,s(t,z→(t))𝐁l,s(t,z→(t)))dt)])

and the integrals just concatenate again so the limit doesn't matter

=∫tt+k∂f∂tdt+∑kU∫tt+k𝔼[∂f∂z→kA→(t,z→(t))k]dt+12∑kU∑lU∫tt+k𝔼[∂2f∂z→k∂z→l(∑sU(𝐁k,s(t,z→(t))𝐁l,s(t,z→(t))))]dt

Then let

𝐃=𝐁T𝐁

so then

=∫tt+k∂f∂tdt+∑kU∫tt+k𝔼[∂f∂z→kA→(t,z→(t))k]dt+12∑kU∑lU∫tt+k𝔼[∂2f∂z→k∂z→l𝐃k,l(t,z→(t))]dt

So we get the formula expression

𝔼[f(t+k,z→(t+k))−f(t,z→(t))]=∫tt+k∂f∂tdt+∑kU∫tt+k𝔼[∂f∂z→kA→(t,z→(t))k]dt+12∑kU∑lU∫tt+k𝔼[∂2f∂z→k∂z→l𝐃k,l(t,z→(t))]dt

And since its deterministic you can do

ddt𝔼[f(t,z→(t))]=𝔼[∂f∂t+∑kU∂f∂z→kA→(t,z→(t))k+12∑kU∑lU∂2f∂z→k∂z→l𝐃k,l(t,z→(t))]

final part

We also know that

𝔼[f(z→(t))]=∫Vf(z→)p(t,z→)dz→

so taking the derivative of both sides

ddt𝔼[f(z→(t))]=∫Vf(z→)dp(t,z→)dtdz→

and substituting

∫V(∑kU∂f∂z→kA→(t,z→(t))k+12∑kU∑lU∂2f∂z→k∂z→l𝐃k,l(t,z→(t)))p(t,z→)dz→=∫Vf(z→)dp(t,z→)dtdz→

Divergence theorem

Split the integral up

=∫V∑kU∂f∂z→kA→(t,z→(t))kp(t,z→)dz→+∫V12∑kU∑lU∂2f∂z→k∂z→l𝐃k,l(t,z→(t))p(t,z→)dz→

first part

focusing on the first part

=∫V∑kU∂f∂z→kA→(t,z→(t))kp(t,z→)dz→

We can write it like this

=∫V∑kU((∇zf)⋅(A→p))dz→

and remember that a scalar and a vector

∇⋅(ab→)=(∇a⋅b→)+(a∇b→)

And with the divercence theorem

∫V∇z⋅c→(z→)dz→=∮Ω(V)(c→(z→)⋅n→)dz→

And if its two of then dotted then

∫V(∇za⋅b→)dz→+∫V(a∇z⋅b→)dz→=∮Ω(V)((ab→)⋅n→)dz→

so

=∮Ω(V)((pA→f)⋅n→)dz→−∫Vf∇z⋅(pA→)dz→

And if we assume the probability goes to zero at the edge (or in the limit to infinity) then the boundary condition dissapears

=−∫Vf∇z⋅(pA→)dz→

second part

TODO, just the same thing but twice

result

So we have

∫V∂p∂tfdz→=∫V(−∑kU∂∂z→k(pA→(t,z→(t))k)+12∑kU∑lU∂2∂z→k∂z→l(p𝐃k,l(t,z→(t))))f(t,z→)dz→

and since it works for arbitrary function f it must be that

∂p∂t=−∑kU∂∂z→k(pA→(t,z→(t))k)+12∑kU∑lU∂2∂z→k∂z→l(p𝐃k,l(t,z→(t)))