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.

The original Langevin equation^{[1]}^{[2]} describes Brownian motion, the apparently random movement of a particle in a fluid due to collisions with the molecules of the fluid,

Here, is the velocity of the particle, is its damping coefficient, and 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* representing the effect of the collisions with the molecules of the fluid. The force has a Gaussian probability distribution with correlation function

where is Boltzmann's constant, is the temperature and is the i-th component of the vector . The -function form of the time correlation means that the force at a time 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 -correlation and the Langevin equation becomes virtually exact.

Another common feature of the Langevin equation is the occurrence of the damping coefficient in the correlation function of the random force, which in an equilibrium system is an expression of the Einstein relation.

A strictly -correlated fluctuating force is not a function in the usual mathematical sense and even the derivative is not defined in this limit. This problem disappears when the Langevin equation is written in integral form

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., . 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.^{[3]}^{[4]}

There is a formal derivation of a generic Langevin equation from classical mechanics.^{[5]}^{[6]} This generic equation plays a central role in the theory of critical dynamics,^{[7]} 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.^{[8]} 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 denote the slow variables. The generic Langevin equation then reads

The fluctuating force obeys a Gaussian probability distribution with correlation function

This implies the Onsager reciprocity relation for the damping coefficients . The dependence of on is negligible in most cases. The symbol denotes the Hamiltonian of the system, where is the equilibrium probability distribution of the variables . Finally, is the projection of the Poisson bracket of the slow variables and onto the space of slow variables.

In the Brownian motion case one would have , or and . The equation of motion for is exact: there is no fluctuating force and no damping coefficient .

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.^{[9]} 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 , and the Langevin equation becomes

This equation may be used to determine the correlation function

which becomes white noise (Johnson noise) when the capacitance

The dynamics of the order parameter of a second order phase transition slows down near the critical point and can be described with a Langevin equation.^{[7]} The simplest case is the universality class "model A" with a non-conserved scalar order parameter, realized for instance in axial ferromagnets,

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.

See also: Phase space |

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 (orange) and position distributions (blue) in a harmonic potential () is plotted with the Boltzmann probabilities for velocity (red) and position (green). In particular, the late time behavior depicts thermal equilibrium.

Consider a free particle of mass with equation of motion described by

where is the particle velocity, is the particle mobility, and is a rapidly fluctuating force whose time-average vanishes over a characteristic timescale of particle collisions, i.e. . The general solution to the equation of motion is

where is the correlation time of the noise term. It can also be shown that the autocorrelation function of the particle velocity is given by

where we have used the property that the variables and become uncorrelated for time separations . Besides, the value of is set to be equal to such that it obeys the equipartition theorem. If the system is initially at thermal equilibrium already with , then for all , meaning that the system remains at equilibrium at all times.

The velocity of the Brownian particle can be integrated to yield its trajectory . If it is initially located at the origin with probability 1, then the result is

Hence, the average displacement asymptotes to as the system relaxes. The mean squared displacement can be determined similarly:

This expression implies that , indicating that the motion of Brownian particles at timescales much shorter than the relaxation time of the system is (approximately) time-reversal invariant. On the other hand, , which indicates an irreversible, dissipative process.

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 is described by the overdamped Langevin equation

where is the damping constant. The term is white noise, characterized by (formally, the Wiener process). One way to solve this equation is to introduce a test function and calculate its average. The average of should be time-independent for finite , leading to

Itô's lemma for the Itô drift-diffusion process says that the differential of a twice-differentiable function *f*(*t*, *x*) is given by

Applying this to the calculation of gives

This average can be written using the probability density function ;

where the second term was integrated by parts (hence the negative sign). Since this is true for arbitrary functions , it follows that

thus recovering the Boltzmann distribution

The probability density function p(k) of the turbulent kinetic energy k is investigated for diabatic atmospheric surface layer (ASL) flows.^{[11]} In the latter reference, authors show when the velocity components are near-Gaussian and their squared amplitudes are nearly independent, the resulting p(k) is shown to be γ-distributed. therefore, a nonlinear Langevin equation that preserves a γ-distributed p(k), but allows linear relaxation of k to its mean state, is proposed and tested using multiple ASL data sets.

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.

A Fokker–Planck equation is a deterministic equation for the time dependent probability density of stochastic variables . The Fokker–Planck equation corresponding to the generic Langevin equation described in this article is the following:^{[12]}

The equilibrium distribution is a stationary solution.

Main article: Klein–Kramers equation |

The Fokker–Planck equation for an underdamped Brownian particle is called the Klein–Kramers equation.^{[13]}^{[14]} If the Langevin equations are written as

where is the momentum, then the corresponding Fokker–Planck equation is

Here and are the gradient operator with respect to

In -dimensional free space, corresponding to on , this equation can be solved using Fourier transforms. If the particle is initialized at with position and momentum , corresponding to initial condition , then the solution is^{[14]}^{[15]}

where

In three spatial dimensions, the mean squared displacement is

A path integral equivalent to a Langevin equation can be obtained from the corresponding Fokker–Planck equation or by transforming the Gaussian probability distribution of the fluctuating force to a probability distribution of the slow variables, schematically .
The functional determinant and associated mathematical subtleties drop out if the Langevin equation is discretized in the natural (causal) way, where depends on but not on . It turns out to be convenient to introduce auxiliary *response variables* . The path integral equivalent to the generic Langevin equation then reads^{[16]}

where is a normalization factor and

The path integral formulation allows for the use of tools from quantum field theory, such as perturbation and renormalization group methods.