# Langevin equation

In physics, a Langevin equation (named after Paul Langevin) is a stochastic differential equation describing how a system evolves when subjected to a combination of deterministic and fluctuating ("random") forces. The dependent variables in a Langevin equation typically are collective (macroscopic) variables changing only slowly in comparison to the other (microscopic) variables of the system. The fast (microscopic) variables are responsible for the stochastic nature of the Langevin equation. One application is to Brownian motion, which models the fluctuating motion of a small particle in a fluid.

## Brownian motion as a prototype

The original Langevin equation describes Brownian motion, the apparently random movement of a particle in a fluid due to collisions with the molecules of the fluid, $m{\frac {\mathrm {d} \mathbf {v} }{\mathrm {d} t}}=-\lambda \mathbf {v} +{\boldsymbol {\eta }}\left(t\right).$
Here, $\mathbf {v}$ is the velocity of the particle, $\lambda$ is its damping coefficient, and $m$ is its mass. The force acting on the particle is written as a sum of a viscous force proportional to the particle's velocity (Stokes' law), and a noise term ${\boldsymbol {\eta }}\left(t\right)$ representing the effect of the collisions with the molecules of the fluid. The force ${\boldsymbol {\eta }}\left(t\right)$ has a Gaussian probability distribution with correlation function $\left\langle \eta _{i}\left(t\right)\eta _{j}\left(t'\right)\right\rangle =2\lambda k_{\text{B}}T\delta _{i,j}\delta \left(t-t'\right),$ where $k_{\text{B}}$ is the Boltzmann constant, $T$ is the temperature and $\eta _{i}\left(t\right)$ is the i-th component of the vector ${\boldsymbol {\eta }}\left(t\right)$. The $\delta$-function form of the time correlation means that the force at a time $t$ is uncorrelated with the force at any other time. This is an approximation: the actual random force has a nonzero correlation time corresponding to the collision time of the molecules. However, the Langevin equation is used to describe the motion of a "macroscopic" particle at a much longer time scale, and in this limit the $\delta$-correlation and the Langevin equation becomes virtually exact.
Another common feature of the Langevin equation is the occurrence of the damping coefficient $\lambda$ in the correlation function of the random force, which in an equilibrium system is an expression of the Einstein relation.

## Mathematical aspects

A strictly $\delta$-correlated fluctuating force ${\boldsymbol {\eta }}\left(t\right)$ is not a function in the usual mathematical sense and even the derivative $\mathrm {d} \mathbf {v} /\mathrm {d} t$ is not defined in this limit. This problem disappears when the Langevin equation is written in integral form $m\mathbf {v} =\int ^{t}\left(-\lambda \mathbf {v} +{\boldsymbol {\eta }}\left(t\right)\right)\mathrm {d} t.$
Therefore, the differential form is only an abbreviation for its time integral. The general mathematical term for equations of this type is "stochastic differential equation".
Another mathematical ambiguity occurs for Langevin equations with multiplicative noise, which refers to noise terms that are multiplied by a non-constant function of the dependent variables, e.g., $\left|{\boldsymbol {v}}(t)\right|{\boldsymbol {\eta }}(t)$. If a multiplicative noise is intrinsic to the system, its definition is ambiguous, as it is equally valid to interpret it according to Stratonovich- or Ito- scheme (see Itô calculus). Nevertheless, physical observables are independent of the interpretation, provided the latter is applied consistently when manipulating the equation. This is necessary because the symbolic rules of calculus differ depending on the interpretation scheme. If the noise is external to the system, the appropriate interpretation is the Stratonovich one.

## Generic Langevin equation

There is a formal derivation of a generic Langevin equation from classical mechanics. This generic equation plays a central role in the theory of critical dynamics, and other areas of nonequilibrium statistical mechanics. The equation for Brownian motion above is a special case.
An essential step in the derivation is the division of the degrees of freedom into the categories slow and fast. For example, local thermodynamic equilibrium in a liquid is reached within a few collision times, but it takes much longer for densities of conserved quantities like mass and energy to relax to equilibrium. Thus, densities of conserved quantities, and in particular their long wavelength components, are slow variable candidates. This division can be expressed formally with the Zwanzig projection operator. Nevertheless, the derivation is not completely rigorous from a mathematical physics perspective because it relies on assumptions that lack rigorous proof, and instead are justified only as plausible approximations of physical systems.
Let $A=\{A_{i}\}$ denote the slow variables. The generic Langevin equation then reads ${\frac {\mathrm {d} A_{i}}{\mathrm {d} t}}=k_{\text{B}}T\sum \limits _{j}{\left[{A_{i},A_{j}}\right]{\frac {{\mathrm {d} }{\mathcal {H}}}{\mathrm {d} A_{j}}}}-\sum \limits _{j}{\lambda _{i,j}\left(A\right){\frac {\mathrm {d} {\mathcal {H}}}{\mathrm {d} A_{j}}}+}\sum \limits _{j}{\frac {\mathrm {d} {\lambda _{i,j}\left(A\right)}}{\mathrm {d} A_{j}}}+\eta _{i}\left(t\right).$
The fluctuating force $\eta _{i}\left(t\right)$ obeys a Gaussian probability distribution with correlation function $\left\langle {\eta _{i}\left(t\right)\eta _{j}\left(t'\right)}\right\rangle =2\lambda _{i,j}\left(A\right)\delta \left(t-t'\right).$
This implies the Onsager reciprocity relation $\lambda _{i,j}=\lambda _{j,i}$ for the damping coefficients $\lambda$. The dependence $\mathrm {d} \lambda _{i,j}/\mathrm {d} A_{j}$ of $\lambda$ on $A$ is negligible in most cases. The symbol ${\mathcal {H}}=-\ln \left(p_{0}\right)$ denotes the Hamiltonian of the system, where $p_{0}\left(A\right)$ is the equilibrium probability distribution of the variables $A$. Finally, $[A_{i},A_{j}]$ is the projection of the Poisson bracket of the slow variables $A_{i}$ and $A_{j}$ onto the space of slow variables.
In the Brownian motion case one would have ${\mathcal {H}}=\mathbf {p} ^{2}/\left(2mk_{\text{B}}T\right)$, $A=\{\mathbf {p} \}$ or $A=\{\mathbf {x} ,\mathbf {p} \}$ and $[x_{i},p_{j}]=\delta _{i,j}$. The equation of motion $\mathrm {d} \mathbf {x} /\mathrm {d} t=\mathbf {p} /m$ for $\mathbf {x}$ is exact: there is no fluctuating force $\eta _{x}$ and no damping coefficient $\lambda _{x,p}$.

## Examples
### Thermal noise in an electrical resistor

There is a close analogy between the paradigmatic Brownian particle discussed above and Johnson noise, the electric voltage generated by thermal fluctuations in a resistor. The diagram at the right shows an electric circuit consisting of a resistance R and a capacitance C. The slow variable is the voltage U between the ends of the resistor. The Hamiltonian reads ${\mathcal {H}}=E/k_{\text{B}}T=CU^{2}/(2k_{\text{B}}T)$, and the Langevin equation becomes ${\frac {\mathrm {d} U}{\mathrm {d} t}}=-{\frac {U}{RC}}+\eta \left(t\right),\;\;\left\langle \eta \left(t\right)\eta \left(t'\right)\right\rangle ={\frac {2k_{\text{B}}T}{RC^{2}}}\delta \left(t-t'\right).$
This equation may be used to determine the correlation function $\left\langle U\left(t\right)U\left(t'\right)\right\rangle ={\frac {k_{\text{B}}T}{C}}\exp \left(-{\frac {\left|t-t'\right|}{RC}}\right)\approx 2Rk_{\text{B}}T\delta \left(t-t'\right),$ which becomes white noise (Johnson noise) when the capacitance C becomes negligibly small.

### Critical dynamics

The dynamics of the order parameter $\varphi$ of a second order phase transition slows down near the critical point and can be described with a Langevin equation. The simplest case is the universality class "model A" with a non-conserved scalar order parameter, realized for instance in axial ferromagnets, ${\begin{aligned}{\frac {\partial }{\partial t}}\varphi {\left(\mathbf {x} ,t\right)}&=-\lambda {\frac {\delta {\mathcal {H}}}{\delta \varphi }}+\eta {\left(\mathbf {x} ,t\right)},\\[2ex]{\mathcal {H}}&=\int d^{d}x\left[{\frac {1}{2}}r_{0}\varphi ^{2}+u\varphi ^{4}+{\frac {1}{2}}\left(\nabla \varphi \right)^{2}\right],\\[2ex]\left\langle \eta {\left(\mathbf {x} ,t\right)}\,\eta {\left(\mathbf {x} ',t'\right)}\right\rangle &=2\lambda \,\delta {\left(\mathbf {x} -\mathbf {x} '\right)}\;\delta {\left(t-t'\right)}.\end{aligned}}$ Other universality classes (the nomenclature is "model A",..., "model J") contain a diffusing order parameter, order parameters with several components, other critical variables and/or contributions from Poisson brackets.

### Harmonic oscillator in a fluid

$m{\frac {dv}{dt}}=-\lambda v+\eta (t)-kx$
A particle in a fluid is described by a Langevin equation with a potential energy function, a damping force, and thermal fluctuations given by the fluctuation dissipation theorem. If the potential is quadratic then the constant energy curves are ellipses, as shown in the figure. If there is dissipation but no thermal noise, a particle continually loses energy to the environment, and its time-dependent phase portrait (velocity vs position) corresponds to an inward spiral toward 0 velocity. By contrast, thermal fluctuations continually add energy to the particle and prevent it from reaching exactly 0 velocity. Rather, the initial ensemble of stochastic oscillators approaches a steady state in which the velocity and position are distributed according to the Maxwell–Boltzmann distribution. In the plot below (figure 2), the long time velocity distribution (blue) and position distributions (orange) in a harmonic potential (U=1/2 kx$^2${\textstyle U={\frac {1}{2}}kx^{2}}) is plotted with the Boltzmann probabilities for velocity (green) and position (red). In particular, the late time behavior depicts thermal equilibrium.

### Trajectories of free Brownian particles

Consider a free particle of mass $m$ with equation of motion described by $m{\frac {d\mathbf {v} }{dt}}=-{\frac {\mathbf {v} }{\mu }}+{\boldsymbol {\eta }}(t),$ where $\mathbf {v} =d\mathbf {r} /dt$ is the particle velocity, $\mu$ is the particle mobility, and ${\boldsymbol {\eta }}(t)=m\mathbf {a} (t)$ is a rapidly fluctuating force whose time-average vanishes over a characteristic timescale $t_{c}$ of particle collisions, i.e. ${\overline {{\boldsymbol {\eta }}(t)}}=0$. The general solution to the equation of motion is $\mathbf {v} (t)=\mathbf {v} (0)e^{-t/\tau }+\int _{0}^{t}\mathbf {a} (t')e^{-(t-t')/\tau }dt',$ where $\tau =m\mu$ is the correlation time of the noise term. It can also be shown that the autocorrelation function of the particle velocity $\mathbf {v}$ is given by ${\begin{aligned}R_{vv}(t_{1},t_{2})&\equiv \langle \mathbf {v} (t_{1})\cdot \mathbf {v} (t_{2})\rangle \\&=v^{2}(0)e^{-(t_{1}+t_{2})/\tau }+\int _{0}^{t_{1}}\int _{0}^{t_{2}}R_{aa}(t_{1}',t_{2}')e^{-(t_{1}+t_{2}-t_{1}'-t_{2}')/\tau }dt_{1}'dt_{2}'\\&\simeq v^{2}(0)e^{-|t_{2}-t_{1}|/\tau }+\left[{\frac {3k_{\text{B}}T}{m}}-v^{2}(0)\right]{\Bige^{-|t_{2}-t_{1}|/\tau }-e^{-(t_{1}+t_{2})/\tau }{\Big ]},\end{aligned}}$ where we have used the property that the variables $\mathbf {a} (t_{1}')$ and $\mathbf {a} (t_{2}')$ become uncorrelated for time separations $t_{2}'-t_{1}'\gg t_{c}$. Besides, the value of lim$_{t→∞}$⟨v$^2$(t)⟩=lim$_{t→∞}$R$_{vv}$(t, t){\textstyle \lim _{t\to \infty }\langle v^{2}(t)\rangle =\lim _{t\to \infty }R_{vv}(t, t)} is set to be equal to $3k_{\text{B}}T/m$ such that it obeys the equipartition theorem. If the system is initially at thermal equilibrium already with $v^{2}(0)=3k_{\text{B}}T/m$, then $\langle v^{2}(t)\rangle =3k_{\text{B}}T/m$ for all $t$, meaning that the system remains at equilibrium at all times.
The velocity $\mathbf {v} (t)$ of the Brownian particle can be integrated to yield its trajectory $\mathbf {r} (t)$. If it is initially located at the origin with probability 1, then the result is $\mathbf {r} (t)=\mathbf {v} (0)\tau \left(1-e^{-t/\tau }\right)+\tau \int _{0}^{t}\mathbf {a} (t')\left[1-e^{-(t-t')/\tau }\right]dt'.$
Hence, the average displacement ⟨r(t)⟩=v(0)τ(1−e$^{−t/τ}$){\textstyle \langle \mathbf {r} (t)\rangle =\mathbf {v} (0)\tau \left(1-e^{-t/\tau }\right)} asymptotes to $\mathbf {v} (0)\tau$ as the system relaxes. The mean squared displacement can be determined similarly: $\langle r^{2}(t)\rangle =v^{2}(0)\tau ^{2}\left(1-e^{-t/\tau }\right)^{2}-{\frac {3k_{\text{B}}T}{m}}\tau ^{2}\left(1-e^{-t/\tau }\right)\left(3-e^{-t/\tau }\right)+{\frac {6k_{\text{B}}T}{m}}\tau t.$
This expression implies that $\langle r^{2}(t\ll \tau )\rangle \simeq v^{2}(0)t^{2}$, indicating that the motion of Brownian particles at timescales much shorter than the relaxation time $\tau$ of the system is (approximately) time-reversal invariant. On the other hand, $\langle r^{2}(t\gg \tau )\rangle \simeq 6k_{\text{B}}T\tau t/m=6\mu k_{\text{B}}Tt=6Dt$, which indicates an irreversible, dissipative process.

### Recovering Boltzmann statistics

If the external potential is conservative and the noise term derives from a reservoir in thermal equilibrium, then the long-time solution to the Langevin equation must reduce to the Boltzmann distribution, which is the probability distribution function for particles in thermal equilibrium. In the special case of overdamped dynamics, the inertia of the particle is negligible in comparison to the damping force, and the trajectory $x(t)$ is described by the overdamped Langevin equation $\lambda {\frac {dx}{dt}}=-{\frac {\partial V(x)}{\partial x}}+\eta (t)\equiv -{\frac {\partial V(x)}{\partial x}}+{\sqrt {2\lambda k_{\text{B}}T}}{\frac {dB_{t}}{dt}},$ where $\lambda$ is the damping constant. The term $\eta (t)$ is white noise, characterized by $\left\langle \eta (t)\eta (t')\right\rangle =2k_{\text{B}}T\lambda \delta (t-t')$ (formally, the Wiener process). One way to solve this equation is to introduce a test function $f$ and calculate its average. The average of $f(x(t))$ should be time-independent for finite $x(t)$, leading to ${\frac {d}{dt}}\left\langle f(x(t))\right\rangle =0,$
Itô's lemma for the Itô drift-diffusion process $dX_{t}=\mu _{t}\,dt+\sigma _{t}\,dB_{t}$ says that the differential of a twice-differentiable function f(t, x) is given by $df=\left({\frac {\partial f}{\partial t}}+\mu _{t}{\frac {\partial f}{\partial x}}+{\frac {\sigma _{t}^{2}}{2}}{\frac {\partial ^{2}f}{\partial x^{2}}}\right)dt+\sigma _{t}{\frac {\partial f}{\partial x}}\,dB_{t}.$
Applying this to the calculation of $\langle f(x(t))\rangle$ gives $\left\langle -f'(x){\frac {\partial V}{\partial x}}+k_{\text{B}}Tf''(x)\right\rangle =0.$
This average can be written using the probability density function $p(x)$; ${\begin{aligned}&\int \left(-f'(x){\frac {\partial V}{\partial x}}p(x)+{k_{\text{B}}T}f''(x)p(x)\right)dx\\=&\int \left(-f'(x){\frac {\partial V}{\partial x}}p(x)-{k_{\text{B}}T}f'(x)p'(x)\right)dx\\=&\;0\end{aligned}}$ where the second term was integrated by parts (hence the negative sign). Since this is true for arbitrary functions $f$, it follows that ${\frac {\partial V}{\partial x}}p(x)+{k_{\text{B}}T}p'(x)=0,$ thus recovering the Boltzmann distribution $p(x)\propto \exp \left({-{\frac {V(x)}{k_{\text{B}}T}}}\right).$

## Equivalent techniques

In some situations, one is primarily interested in the noise-averaged behavior of the Langevin equation, as opposed to the solution for particular realizations of the noise. This section describes techniques for obtaining this averaged behavior that are distinct from—but also equivalent to—the stochastic calculus inherent in the Langevin equation.

### Fokker–Planck equation

A Fokker–Planck equation is a deterministic equation for the time dependent probability density $P\left(A,t\right)$ of stochastic variables $A$. The Fokker–Planck equation corresponding to the generic Langevin equation described in this article is the following: ${\frac {\partial P\left(A,t\right)}{\partial t}}=\sum _{i,j}{\frac {\partial }{\partial A_{i}}}\left(-k_{\text{B}}T\left[A_{i},A_{j}\right]{\frac {\partial {\mathcal {H}}}{\partial A_{j}}}+\lambda _{i,j}{\frac {\partial {\mathcal {H}}}{\partial A_{j}}}+\lambda _{i,j}{\frac {\partial }{\partial A_{j}}}\right)P\left(A,t\right).$ The equilibrium distribution $P(A)=p_{0}(A)={\text{const}}\times \exp(-{\mathcal {H}})$ is a stationary solution.

#### Klein–Kramers equation

The Fokker–Planck equation for an underdamped Brownian particle is called the Klein–Kramers equation. If the Langevin equations are written as ${\begin{aligned}{\dot {\mathbf {r} }}&={\frac {\mathbf {p} }{m}}\\{\dot {\mathbf {p} }}&=-\xi \,\mathbf {p} -\nabla V(\mathbf {r} )+{\sqrt {2m\xi k_{\mathrm {B} }T}}{\boldsymbol {\eta }}(t),\qquad \langle {\boldsymbol {\eta }}^{\mathrm {T} }(t){\boldsymbol {\eta }}(t')\rangle =\mathbf {I} \delta (t-t')\end{aligned}}$ where $\mathbf {p}$ is the momentum, then the corresponding Fokker–Planck equation is ${\frac {\partial f}{\partial t}}+{\frac {1}{m}}\mathbf {p} \cdot \nabla _{\mathbf {r} }f=\xi \nabla _{\mathbf {p} }\cdot \left(\mathbf {p} \,f\right)+\nabla _{\mathbf {p} }\cdot \left(\nabla V(\mathbf {r} )\,f\right)+m\xi k_{\mathrm {B} }T\,\nabla _{\mathbf {p} }^{2}f$ Here $\nabla _{\mathbf {r} }$ and $\nabla _{\mathbf {p} }$ are the gradient operator with respect to r and p, and $\nabla _{\mathbf {p} }^{2}$ is the Laplacian with respect to p.
In $d$-dimensional free space, corresponding to $V(\mathbf {r} )={\text{constant}}$ on $\mathbb {R} ^{d}$, this equation can be solved using Fourier transforms. If the particle is initialized at $t=0$ with position $\mathbf {r} '$ and momentum $\mathbf {p} '$, corresponding to initial condition $f(\mathbf {r} ,\mathbf {p} ,0)=\delta (\mathbf {r} -\mathbf {r} ')\delta (\mathbf {p} -\mathbf {p} ')$, then the solution is ${\begin{aligned}f(\mathbf {r} ,\mathbf {p} ,t)=&{\frac {1}{\left(2\pi \sigma _{X}\sigma _{P}{\sqrt {1-\beta ^{2}}}\right)^{d}}}\times \\&\quad \exp \left[-{\frac {1}{2(1-\beta ^{2})}}\left({\frac {|\mathbf {r} -{\boldsymbol {\mu }}_{X}|^{2}}{\sigma _{X}^{2}}}+{\frac {|\mathbf {p} -{\boldsymbol {\mu }}_{P}|^{2}}{\sigma _{P}^{2}}}-{\frac {2\beta (\mathbf {r} -{\boldsymbol {\mu }}_{X})\cdot (\mathbf {p} -{\boldsymbol {\mu }}_{P})}{\sigma _{X}\sigma _{P}}}\right)\right]\end{aligned}}$ where ${\begin{aligned}&\sigma _{X}^{2}={\frac {k_{\mathrm {B} }T}{m\xi ^{2}}}\left[1+2\xi t-\left(2-e^{-\xi t}\right)^{2}\right];\qquad \sigma _{P}^{2}=mk_{\mathrm {B} }T\left(1-e^{-2\xi t}\right)\\&\beta ={\frac {k_{\text{B}}T}{\xi \sigma _{X}\sigma _{P}}}\left(1-e^{-\xi t}\right)^{2}\\&{\boldsymbol {\mu }}_{X}=\mathbf {r} '+(m\xi )^{-1}\left(1-e^{-\xi t}\right)\mathbf {p} ';\qquad {\boldsymbol {\mu }}_{P}=\mathbf {p} 'e^{-\xi t}.\end{aligned}}$ In three spatial dimensions, the mean squared displacement is $\langle \mathbf {r} (t)^{2}\rangle =\int f(\mathbf {r} ,\mathbf {p} ,t)\mathbf {r} ^{2}\,d\mathbf {r} d\mathbf {p} ={\boldsymbol {\mu }}_{X}^{2}+3\sigma _{X}^{2}$

### Path integral

A path integral equivalent to a Langevin equation can be obtained from the corresponding Fokker–Planck equation or by transforming the Gaussian probability distribution $P^{(\eta )}(\eta )\mathrm {d} \eta$ of the fluctuating force $\eta$ to a probability distribution of the slow variables, schematically $P(A)\mathrm {d} A=P^{(\eta )}(\eta (A))\det(\mathrm {d} \eta /\mathrm {d} A)\mathrm {d} A$. The functional determinant and associated mathematical subtleties drop out if the Langevin equation is discretized in the natural (causal) way, where $A(t+\Delta t)-A(t)$ depends on $A(t)$ but not on $A(t+\Delta t)$. It turns out to be convenient to introduce auxiliary response variables ${\tilde {A}}$. The path integral equivalent to the generic Langevin equation then reads $\int P(A,{\tilde {A}})\,\mathrm {d} A\,\mathrm {d} {\tilde {A}}=N\int \exp \left(L(A,{\tilde {A}})\right)\mathrm {d} A\,\mathrm {d} {\tilde {A}},$ where $N$ is a normalization factor and $L(A,{\tilde {A}})=\int \sum _{i,j}\left\{{\tilde {A}}_{i}\lambda _{i,j}{\tilde {A}}_{j}-{\widetilde {A}}_{i}\left\{\delta _{i,j}{\frac {\mathrm {d} A_{j}}{\mathrm {d} t}}-k_{\text{B}}T\left[A_{i},A_{j}\right]{\frac {\mathrm {d} {\mathcal {H}}}{\mathrm {d} A_{j}}}+\lambda _{i,j}{\frac {\mathrm {d} {\mathcal {H}}}{\mathrm {d} A_{j}}}-{\frac {\mathrm {d} \lambda _{i,j}}{\mathrm {d} A_{j}}}\right\}\right\}\mathrm {d} t.$ The path integral formulation allows for the use of tools from quantum field theory, such as perturbation and renormalization group methods. This formulation is typically referred to as either the Martin-Siggia-Rose formalism or the Janssen-De Dominicis formalism after its developers. The mathematical formalism for this representation can be developed on abstract Wiener space.