Langevin Dynamics In Hamiltonian Phase Space

Langevin dynamics is usually written like

MX¨=XU(X)γMX˙+2γMkBTdW

which is really just two first order differential form relations

dxi=vidt
Midvi=xiU(x)dtγMividt+2γMikBTdWi

but statistical mechanics is formulated in Hamiltonian phase space.

Reformulating in Hamiltonian Phase space

Instead if we can generalize mass then can redefine the process as

dqi=Hpidt
dpi=Hqidtγipidt+Ki2γikBTdWi

where we will be solving for Ki to converge to the canonical ensemble equilibrium distribution.

Drift Diffusion Process

We can then combine both equations to a single drift diffusion process and generalize the matrix so the momentum can share noise

d[q1qnp1pn]=[Hp1HpnHq1γ1p1Hqnγnpn]dt+[0000000K1,12γ1kBTK1,n2γ1kBT0Kn,12γnkBTKn,n2γnkBT]dW

Fokker Plank

From the Fokker Plank equation any drift diffusion process

dz=A(z)dt+𝐁(z)dW

The probability density at each point will evolve as

ρt=izi(ρAi)+12ij2zizj((𝐁T𝐁)i,jρ)

Substitute in the Langevin equation.

ρt=i=1nqi(ρHpi)pi(ρ(Hqi+γipi))+12i=1nj=1n2pipj(ρ2kBTkKi,kKj,kγiγj)

We can combine the two sums and simplify.

i=1nqi(ρHpi)+pi(ρ(Hqi+γipi))+kBTj=1n2pipj(ρkKi,kKj,kγiγj)

Let Fi,j=kKi,kKj,kγiγj so that

i=1nqi(ρHpi)+pi(ρ(Hqi+γipi))+kBTj=1n2pipj(ρFi,j)

and use the chain rule to expand the derivatives in the first part.

=i=1nHqiρpiHpiρqi+ρpiγipi+ργi+kBTj=1n2pipj(ρFi,j)

Then for the second

=i=1nHqiρpiHpiρqi+ρpiγipi+ργi+kBTj=1npi(ρpiFi,j+Fi,jpiρ)

and again.

=i=1nHqiρpiHpiρqi+ρpiγipi+ργi+kBTj=1n(2ρpipjFi,j+ρ2Fi,jpipj+ρpiFi,jpj+ρpjFi,jpi)

Enforcing canonical distribution convergence

In the canonical ensemble it should converge to the below.

ρ0(q,p)=1ZeH(q,p)kBT

So it should be a stable distribution by definition of equilibrium

ρ0t=0

and putting it into the Fokker Plank equation we derived

=1Zi=1nHqieH(q,p)kBTpiHpieH(q,p)kBTqi+eH(q,p)kBTpiγipi+eH(q,p)kBTγi
+kBTj=1n(2eH(q,p)kBTpipjFi,j+eH(q,p)kBT2Fi,jpipj+eH(q,p)kBTpiFi,jpj+eH(q,p)kBTpjFi,jpi)

the Possion bracket part goes to zero.

=1Zi=1neH(q,p)kBTpiγipi+eH(q,p)kBTγi
+kBTj=1n(2eH(q,p)kBTpipjFi,j+eH(q,p)kBT2Fi,jpipj+eH(q,p)kBTpiFi,jpj+eH(q,p)kBTpjFi,jpi)

Then do the chain rule a bunch.

=1Zi=1neHkBTkBTHpiγipi+eHkBTγi
+kBTj=1n((eHkBT(kBT)2HpiHpjeHkBTkBT(2Hpipj))Fi,j
+eHkBT2Fi,jpipj
eHkBTkBT(HpiFi,jpj+HpjFi,jpi))

Factor out the probability.

=p0i=1n1kBTHpiγipi+γi
+kBTj=1n((1(kBT)2HpiHpj1kBT(2Hpipj))Fi,j
+2Fi,jpipj
1kBT(HpiFi,jpj+HpjFi,jpi))

Multiply through the temperature.

=p0i=1n1kBTHpiγipi+γi
+j=1n(1kBTHpiHpj(2Hpipj))Fi,j
+kBT2Fi,jpipj
(HpiFi,jpj+HpjFi,jpi)

Then group based on the temperature.

0=i=1n
1kBT(Hpiγipi+j=1nHpiHpjFi,j)
+kBTj=1n2Fi,jpipj
+γi+j=1n(HpiFi,jpjHpjFi,jpi(2Hpipj)Fi,j)

Any Hamiltonian and matrix 𝐅=𝐊𝐊 that satisfy the above equation will correctly have equilbibrium as a stable distribution

Quadratic Momentum

Hamiltonain Form Derivation

Starting with a regular Lagrangian of the form

L(q,q˙)=12imiq˙2+U(q)

bijecting it into another vector space so Q=f(q) and q=f1(q)

Using the chain rule we can see that

q˙i=dqidt=jfi1(Q)QjdQjdt=jfi1(Q)QjQ˙j

Then substituting back into the Lagrangian

L(Q,Q˙)=12imi(jfi1(Q)QjQ˙j)2+U(f1(Q))
=12imijkfi1(Q)Qjfi1(Q)QkQ˙jQ˙k+U(f1(Q))
=12jk(imifi1(Q)Qjfi1(Q)Qk)Q˙jQ˙k+U(f1(Q))

Then define a matrix

Gjk(Q)=imifi1(Q)Qjfi1(Q)Qk

Making

L(Q,Q˙)=Q˙𝐆(Q)Q˙+U(f1(Q))

Then do the Legendre transform to make it a Hamiltonian

Pi=LQ˙i=12j𝐆ijQ˙j+12j𝐆jiQ˙j

And 𝐆 is symmetric so

=j𝐆ijQ˙j

So

P=𝐆(Q)Q˙

The Legendre transform requires that it's invertable so if the matrix is invertable then

Q˙=𝐆1(Q)P

Then with the Legrendre transform

H(Q,P)=PQ˙L(Q,Q˙)
=P𝐆1(Q)PL(Q,𝐆1(Q)P)
=P𝐆1(Q)P12((𝐆1(Q)P)𝐆(Q)(𝐆1(Q)P))+U(Q)
=P𝐆1(Q)P12(P𝐆1(Q)𝐆(Q)𝐆1(Q)P)+U(Q)
=P𝐆1(Q)P12(P𝐆1(Q)P)+U(Q)
=12P𝐆1(Q)P+U(Q)

Solving for Matrix

Lets assume that each term of the sum should be zero. Since it should be valid for any temperature there are 3 equalities that must hold

Hpiγipi=j=1nHpiHpjFi,j
0=2Fi,jpipj
γi=j=1n(HpiFi,jpj+HpjFi,jpi+(2Hpipj)Fi,j)

If the Hamiltonian is in the form

H(q,p)=12p𝐆(q)p+U(q)

where the "mass matrix" is only a function of position, then one can define a matrix

𝐒=12(𝐆+𝐆)

where

2Hpipj=Si,j=Sj,i

Then if we assume that the F's are independent of momentum then the third equality becomes

γi=j=1n(2Hpipj)Fi,j
γi=j=1nFi,jSj,i=(FS)i,j

if all the gammas are equal then

𝐅=γ𝐒1
Fi,j=(γS1)i,j
kγKi,kKj,k=(γS1)i,j
kKi,kKj,k=(S1)i,j

Which requires

𝐊𝐊=𝐒1

since S is symmetric so it has an orthonormal eigenbasis

𝐒=𝐐𝐃𝐐

and since we assumed it to be invertable then the inverse is

𝐒1=𝐐𝐃1𝐐

and also assume it's positive definite then all the eigenvalues are positive so one can take the square root

𝐒1=𝐐𝐃1/2𝐃1/2𝐐
𝐒1=(𝐃1/2𝐐)𝐃1/2𝐐

So one possible solution is

𝐊=𝐃1/2𝐐