# Virial theorem

In mechanics, the virial theorem provides a general equation that relates the average over time of the total kinetic energy, ${\displaystyle \left\langle T\right\rangle }$, of a stable system consisting of N particles, bound by potential forces, with that of the total potential energy, ${\displaystyle \left\langle V_{\text{TOT}}\right\rangle }$, where angle brackets represent the average over time of the enclosed quantity. Mathematically, the theorem states

${\displaystyle \left\langle T\right\rangle =-{\frac {1}{2}}\,\sum _{k=1}^{N}\left\langle \mathbf {F} _{k}\cdot \mathbf {r} _{k}\right\rangle }$

where Fk represents the force on the kth particle, which is located at position rk. The word virial for the right-hand side of the equation derives from vis, the Latin word for "force" or "energy", and was given its technical definition by Rudolf Clausius in 1870.[1]

The significance of the virial theorem is that it allows the average total kinetic energy to be calculated even for very complicated systems that defy an exact solution, such as those considered in statistical mechanics; this average total kinetic energy is related to the temperature of the system by the equipartition theorem. However, the virial theorem does not depend on the notion of temperature and holds even for systems that are not in thermal equilibrium. The virial theorem has been generalized in various ways, most notably to a tensor form.

If the force between any two particles of the system results from a potential energy V(r) = αr n that is proportional to some power n of the inter-particle distance r, the virial theorem takes the simple form

${\displaystyle 2\langle T\rangle =n\langle V_{\text{TOT}}\rangle .}$

Thus, twice the average total kinetic energy ${\displaystyle \left\langle T\right\rangle }$ equals n times the average total potential energy ${\displaystyle \left\langle V_{\text{TOT}}\right\rangle }$. Whereas V(r) represents the potential energy between two particles, VTOT represents the total potential energy of the system, i.e., the sum of the potential energy V(r) over all pairs of particles in the system. A common example of such a system is a star held together by its own gravity, where n equals −1.

Although the virial theorem depends on averaging the total kinetic and potential energies, the presentation here postpones the averaging to the last step.

## History

In 1870, Rudolf Clausius delivered the lecture "On a Mechanical Theorem Applicable to Heat" to the Association for Natural and Medical Sciences of the Lower Rhine, following a 20 year study of thermodynamics. The lecture stated that the mean vis viva of the system is equal to its virial, or that the average kinetic energy is equal to 1/2 the average potential energy. The virial theorem can be obtained directly from Lagrange's Identity as applied in classical gravitational dynamics, the original form of which was included in Lagrange's "Essay on the Problem of Three Bodies" published in 1772. Karl Jacobi's generalization of the identity to n bodies and to the present form of Laplace's identity closely resembles the classical virial theorem. However, the interpretations leading to the development of the equations were very different, since at the time of development, statistical dynamics had not yet unified the separate studies of thermodynamics and classical dynamics.[2] The theorem was later utilized, popularized, generalized and further developed by James Clerk Maxwell, Lord Rayleigh, Henri Poincaré, Subrahmanyan Chandrasekhar, Enrico Fermi, Paul Ledoux and Eugene Parker. Fritz Zwicky was the first to use the virial theorem to deduce the existence of unseen matter, which is now called dark matter. As another example of its many applications, the virial theorem has been used to derive the Chandrasekhar limit for the stability of white dwarf stars.

## Statement and derivation

For a collection of N point particles, the scalar moment of inertia I about the origin is defined by the equation

${\displaystyle I=\sum _{k=1}^{N}m_{k}|{\mathbf {r} }_{k}|^{2}=\sum _{k=1}^{N}m_{k}r_{k}^{2}}$

where mk and rk represent the mass and position of the kth particle. rk=|rk| is the position vector magnitude. The scalar G is defined by the equation

${\displaystyle G=\sum _{k=1}^{N}{\mathbf {p} }_{k}\cdot {\mathbf {r} }_{k}}$

where pk is the momentum vector of the kth particle. Assuming that the masses are constant, G is one-half the time derivative of this moment of inertia

${\displaystyle {\frac {1}{2}}{\frac {dI}{dt}}={\frac {1}{2}}{\frac {d}{dt}}\sum _{k=1}^{N}m_{k}\,{\mathbf {r} }_{k}\cdot {\mathbf {r} }_{k}=\sum _{k=1}^{N}m_{k}\,{\frac {d{\mathbf {r} }_{k}}{dt}}\cdot {\mathbf {r} }_{k}=\sum _{k=1}^{N}{\mathbf {p} }_{k}\cdot {\mathbf {r} }_{k}=G\,.}$

In turn, the time derivative of G can be written

{\displaystyle {\begin{aligned}{\frac {dG}{dt}}&=\sum _{k=1}^{N}{\mathbf {p} }_{k}\cdot {\frac {d{\mathbf {r} }_{k}}{dt}}+\sum _{k=1}^{N}{\frac {d{\mathbf {p} }_{k}}{dt}}\cdot {\mathbf {r} }_{k}\\&=\sum _{k=1}^{N}m_{k}{\frac {d{\mathbf {r} }_{k}}{dt}}\cdot {\frac {d{\mathbf {r} }_{k}}{dt}}+\sum _{k=1}^{N}{\mathbf {F} }_{k}\cdot {\mathbf {r} }_{k}\\&=2T+\sum _{k=1}^{N}{\mathbf {F} }_{k}\cdot {\mathbf {r} }_{k}\,,\end{aligned}}}

where mk is the mass of the k-th particle, ${\displaystyle {\mathbf {F} }_{k}={\frac {d{\mathbf {p} }_{k}}{dt}}}$ is the net force on that particle, and T is the total kinetic energy of the system

${\displaystyle T={\frac {1}{2}}\sum _{k=1}^{N}m_{k}v_{k}^{2}={\frac {1}{2}}\sum _{k=1}^{N}m_{k}{\frac {d{\mathbf {r} }_{k}}{dt}}\cdot {\frac {d{\mathbf {r} }_{k}}{dt}}.}$

### Connection with the potential energy between particles

The total force ${\displaystyle {\mathbf {F} }_{k}}$ on particle k is the sum of all the forces from the other particles j in the system

${\displaystyle {\mathbf {F} }_{k}=\sum _{j=1}^{N}{\mathbf {F} }_{jk}}$

where ${\displaystyle {\mathbf {F} }_{jk}}$ is the force applied by particle j on particle k. Hence, the virial can be written

${\displaystyle -{\frac {1}{2}}\,\sum _{k=1}^{N}\mathbf {F} _{k}\cdot \mathbf {r} _{k}=-{\frac {1}{2}}\,\sum _{k=1}^{N}\sum _{j=1}^{N}\mathbf {F} _{jk}\cdot \mathbf {r} _{k}.}$

Since no particle acts on itself (i.e., ${\displaystyle {\mathbf {F} }_{jk}=0}$ whenever ${\displaystyle j=k}$), we have

${\displaystyle \sum _{k=1}^{N}{\mathbf {F} }_{k}\cdot {\mathbf {r} }_{k}=\sum _{k=1}^{N}\sum _{jk}{\mathbf {F} }_{jk}\cdot {\mathbf {r} }_{k}=\sum _{k=1}^{N}\sum _{j[3]

where we have assumed that Newton's third law of motion holds, i.e., ${\displaystyle {\mathbf {F} }_{jk}=-{\mathbf {F} }_{kj}}$ (equal and opposite reaction).

It often happens that the forces can be derived from a potential energy V that is a function only of the distance rjk between the point particles j and k. Since the force is the negative gradient of the potential energy, we have in this case

${\displaystyle {\mathbf {F} }_{jk}=-\nabla _{{\mathbf {r} }_{k}}V=-{\frac {dV}{dr}}\left({\frac {{\mathbf {r} }_{k}-{\mathbf {r} }_{j}}{r_{jk}}}\right),}$

which is clearly equal and opposite to ${\displaystyle {\mathbf {F} }_{kj}=-\nabla _{{\mathbf {r} }_{j}}V}$, the force applied by particle ${\displaystyle k}$ on particle j, as may be confirmed by explicit calculation. Hence,

${\displaystyle \sum _{k=1}^{N}\mathbf {F} _{k}\cdot \mathbf {r} _{k}=\sum _{k=1}^{N}\sum _{j

Thus, we have

${\displaystyle {\frac {dG}{dt}}=2T+\sum _{k=1}^{N}{\mathbf {F} }_{k}\cdot {\mathbf {r} }_{k}=2T-\sum _{k=1}^{N}\sum _{j

### Special case of power-law forces

In a common special case, the potential energy V between two particles is proportional to a power n of their distance r

${\displaystyle V(r_{jk})=\alpha r_{jk}^{n},}$

where the coefficient α and the exponent n are constants. In such cases, the virial is given by the equation

${\displaystyle -{\frac {1}{2}}\,\sum _{k=1}^{N}\mathbf {F} _{k}\cdot \mathbf {r} _{k}={\frac {1}{2}}\,\sum _{k=1}^{N}\sum _{j

where VTOT is the total potential energy of the system

${\displaystyle V_{\text{TOT}}=\sum _{k=1}^{N}\sum _{j

Thus, we have

${\displaystyle {\frac {dG}{dt}}=2T+\sum _{k=1}^{N}{\mathbf {F} }_{k}\cdot {\mathbf {r} }_{k}=2T-nV_{\text{TOT}}.}$

For gravitating systems the exponent n equals −1, giving Lagrange's identity

${\displaystyle {\frac {dG}{dt}}={\frac {1}{2}}{\frac {d^{2}I}{dt^{2}}}=2T+V_{\text{TOT}}}$

which was derived by Lagrange and extended by Jacobi.

### Time averaging

The average of this derivative over a time, τ, is defined as

${\displaystyle \left\langle {\frac {dG}{dt}}\right\rangle _{\tau }={\frac {1}{\tau }}\int _{0}^{\tau }{\frac {dG}{dt}}\,dt={\frac {1}{\tau }}\int _{G(0)}^{G(\tau )}\,dG={\frac {G(\tau )-G(0)}{\tau }},}$

from which we obtain the exact equation

${\displaystyle \left\langle {\frac {dG}{dt}}\right\rangle _{\tau }=2\left\langle T\right\rangle _{\tau }+\sum _{k=1}^{N}\left\langle {\mathbf {F} }_{k}\cdot {\mathbf {r} }_{k}\right\rangle _{\tau }.}$

The virial theorem states that, if ${\displaystyle \left\langle {dG}/{dt}\right\rangle _{\tau }=0}$, then

${\displaystyle 2\left\langle T\right\rangle _{\tau }=-\sum _{k=1}^{N}\left\langle {\mathbf {F} }_{k}\cdot {\mathbf {r} }_{k}\right\rangle _{\tau }.}$

There are many reasons why the average of the time derivative might vanish, i.e., ${\displaystyle \left\langle {dG}/{dt}\right\rangle _{\tau }=0}$. One often-cited reason applies to stably bound systems, i.e., systems that hang together forever and whose parameters are finite. In that case, velocities and coordinates of the particles of the system have upper and lower limits so that Gbound, is bounded between two extremes, Gmin and Gmax, and the average goes to zero in the limit of very long times τ

${\displaystyle \lim _{\tau \rightarrow \infty }\left|\left\langle {\frac {dG^{\mathrm {bound} }}{dt}}\right\rangle _{\tau }\right|=\lim _{\tau \rightarrow \infty }\left|{\frac {G(\tau )-G(0)}{\tau }}\right|\leq \lim _{\tau \rightarrow \infty }{\frac {G_{\max }-G_{\min }}{\tau }}=0.}$

Even if the average of the time derivative of G is only approximately zero, the virial theorem holds to the same degree of approximation.

For power-law forces with an exponent n, the general equation holds

${\displaystyle \langle T\rangle _{\tau }=-{\frac {1}{2}}\sum _{k=1}^{N}\langle {\mathbf {F} }_{k}\cdot {\mathbf {r} }_{k}\rangle _{\tau }={\frac {n}{2}}\langle V_{\text{TOT}}\rangle _{\tau }.}$

For gravitational attraction, n equals −1 and the average kinetic energy equals half of the average negative potential energy

${\displaystyle \langle T\rangle _{\tau }=-{\frac {1}{2}}\langle V_{\text{TOT}}\rangle _{\tau }.}$

This general result is useful for complex gravitating systems such as solar systems or galaxies.

A simple application of the virial theorem concerns galaxy clusters. If a region of space is unusually full of galaxies, it is safe to assume that they have been together for a long time, and the virial theorem can be applied. Doppler measurements give lower bounds for their relative velocities, and the virial theorem gives a lower bound for the total mass of the cluster, including any dark matter.

The averaging need not be taken over time; an ensemble average can also be taken, with equivalent results.

## In quantum mechanics

Although originally derived for classical mechanics, the virial theorem also holds for quantum mechanics, as first shown by Fock.[4]

Evaluate the commutator of the Hamiltonian ${\displaystyle H=V(\{X_{i}\})+\sum _{n}P_{n}^{2}/2m}$ and the product ${\displaystyle X_{n}P_{n}}$ of the position operator ${\displaystyle X_{n}}$ and the momentum operator ${\displaystyle P_{n}=-i\hbar d/dX_{n}}$ of particle ${\displaystyle n}$:

${\displaystyle [H,X_{n}P_{n}]=X_{n}[H,P_{n}]+[H,X_{n}]P_{n}=i\hbar X_{n}{\frac {dV}{dX_{n}}}-i\hbar {\frac {P_{n}^{2}}{m}},}$

so summing over all particles one finds for ${\displaystyle Q=\sum _{n}X_{n}P_{n}}$ the commutator

${\displaystyle {\frac {i}{\hbar }}[H,Q]=2T-\sum _{n}X_{n}{\frac {dV}{dX_{n}}}}$

with kinetic energy ${\displaystyle T=\sum _{n}P_{n}^{2}/2m}$. The left-hand side of this equation is just ${\displaystyle -dQ/dt}$, according to the Heisenberg equation of motion. The expectation value ${\displaystyle \langle dQ/dt\rangle }$ of that time derivative vanishes in a stationary state, hence we obtain the quantum virial theorem

${\displaystyle 2\langle T\rangle =\sum _{n}\langle X_{n}dV/dX_{n}\rangle .}$

## In special relativity

For a single particle in special relativity, it is not the case that ${\displaystyle T={\frac {1}{2}}{\mathbf {p} }\cdot {\mathbf {v} }}$. Instead, it is true that ${\displaystyle T=(\gamma -1)mc^{2}\,}$ and

{\displaystyle {\begin{aligned}{\frac {1}{2}}{\mathbf {p} }\cdot {\mathbf {v} }&={\frac {1}{2}}{\vec {\beta }}\gamma mc\cdot {\vec {\beta }}c={\frac {1}{2}}\gamma \beta ^{2}mc^{2}=\left({\frac {\gamma \beta ^{2}}{2(\gamma -1)}}\right)T\,.\end{aligned}}}

The last expression can be simplified to either ${\displaystyle \left({\frac {1+{\sqrt {1-\beta ^{2}}}}{2}}\right)T}$ or ${\displaystyle \left({\frac {\gamma +1}{2\gamma }}\right)T}$.

Thus, under the conditions described in earlier sections (including Newton's third law of motion, ${\displaystyle {\mathbf {F} }_{jk}=-{\mathbf {F} }_{kj}}$, despite relativity), the time average for ${\displaystyle N}$ particles with a power law potential is

${\displaystyle {\frac {n}{2}}\langle V_{\mathrm {TOT} }\rangle _{\tau }=\left\langle \sum _{k=1}^{N}\left({\frac {1+{\sqrt {1-\beta _{k}^{2}}}}{2}}\right)T_{k}\right\rangle _{\tau }=\left\langle \sum _{k=1}^{N}\left({\frac {\gamma _{k}+1}{2\gamma _{k}}}\right)T_{k}\right\rangle _{\tau }\,.}$

In particular, the ratio of kinetic energy to potential energy is no longer fixed, but necessarily falls into an interval:

${\displaystyle {\frac {2\langle T_{\mathrm {TOT} }\rangle }{n\langle V_{\mathrm {TOT} }\rangle }}\in \left[1,2\right]\,,}$

where the more relativistic systems exhibit the larger ratios.

## Generalizations

Lord Rayleigh published a generalization of the virial theorem in 1903.[5] Henri Poincaré applied a form of the virial theorem in 1911 to the problem of determining cosmological stability.[6] A variational form of the virial theorem was developed in 1945 by Ledoux.[7] A tensor form of the virial theorem was developed by Parker,[8] Chandrasekhar[9] and Fermi.[10] The following generalization of the virial theorem has been established by Pollard in 1964 for the case of the inverse square law:[11][12] the statement ${\displaystyle 2\lim \limits _{\tau \rightarrow +\infty }\langle T\rangle _{\tau }=\lim \limits _{\tau \rightarrow +\infty }\langle U\rangle _{\tau }}$ is true if and only if ${\displaystyle \lim \limits _{\tau \rightarrow +\infty }{\tau }^{-2}I(\tau )=0.}$ A boundary term otherwise must be added, such as in Ref.[13]

## Inclusion of electromagnetic fields

The virial theorem can be extended to include electric and magnetic fields. The result is[14]

${\displaystyle {\frac {1}{2}}{\frac {d^{2}I}{dt^{2}}}+\int _{V}x_{k}{\frac {\partial G_{k}}{\partial t}}\,d^{3}r=2(T+U)+W^{E}+W^{M}-\int x_{k}(p_{ik}+T_{ik})\,dS_{i},}$

where I is the moment of inertia, G is the momentum density of the electromagnetic field, T is the kinetic energy of the "fluid", U is the random "thermal" energy of the particles, WE and WM are the electric and magnetic energy content of the volume considered. Finally, pik is the fluid-pressure tensor expressed in the local moving coordinate system

${\displaystyle p_{ik}=\Sigma n^{\sigma }m^{\sigma }\langle v_{i}v_{k}\rangle ^{\sigma }-V_{i}V_{k}\Sigma m^{\sigma }n^{\sigma },}$

and Tik is the electromagnetic stress tensor,

${\displaystyle T_{ik}=\left({\frac {\varepsilon _{0}E^{2}}{2}}+{\frac {B^{2}}{2\mu _{0}}}\right)\delta _{ik}-\left(\varepsilon _{0}E_{i}E_{k}+{\frac {B_{i}B_{k}}{\mu _{0}}}\right).}$

A plasmoid is a finite configuration of magnetic fields and plasma. With the virial theorem it is easy to see that any such configuration will expand if not contained by external forces. In a finite configuration without pressure-bearing walls or magnetic coils, the surface integral will vanish. Since all the other terms on the right hand side are positive, the acceleration of the moment of inertia will also be positive. It is also easy to estimate the expansion time τ. If a total mass M is confined within a radius R, then the moment of inertia is roughly MR2, and the left hand side of the virial theorem is MR22. The terms on the right hand side add up to about pR3, where p is the larger of the plasma pressure or the magnetic pressure. Equating these two terms and solving for τ, we find

${\displaystyle \tau \,\sim R/c_{s},}$

where cs is the speed of the ion acoustic wave (or the Alfvén wave, if the magnetic pressure is higher than the plasma pressure). Thus the lifetime of a plasmoid is expected to be on the order of the acoustic (or Alfvén) transit time.

## In astrophysics

The virial theorem is frequently applied in astrophysics, especially relating the gravitational potential energy of a system to its kinetic or thermal energy. Some common virial relations are,

${\displaystyle {\frac {3}{5}}{\frac {GM}{R}}={\frac {3}{2}}{\frac {k_{B}T}{m_{p}}}={\frac {1}{2}}v^{2},}$

for a mass ${\displaystyle M}$, radius ${\displaystyle R}$, velocity ${\displaystyle v}$, and temperature ${\displaystyle T}$. And the constants are Newton's constant ${\displaystyle G}$, the Boltzmann constant ${\displaystyle k_{B}}$, and proton mass ${\displaystyle m_{p}}$. Note that these relations are only approximate, and often the leading numerical factors (e.g. 3/5 or 1/2) are neglected entirely.

### Galaxies and cosmology (virial mass and radius)

In astronomy, the mass and size of a galaxy (or general overdensity) is often defined in terms of the "virial radius" and "virial mass" respectively. Because galaxies and overdensities in continuous fluids can be highly extended (even to infinity in some models—e.g. an isothermal sphere), it can be hard to define specific, finite measures of their mass and size. The virial theorem, and related concepts, provide an often convenient means by which to quantify these properties.

In galaxy dynamics, the mass of a galaxy is often inferred by measuring the rotation velocity of its gas and stars, assuming circular Keplerian orbits. Using the virial theorem, the dispersion velocity ${\displaystyle \sigma }$ can be used in a similar way. Taking the kinetic energy (per particle) of the system as, ${\displaystyle T=(1/2)v^{2}\sim (3/2)\sigma ^{2}}$, and the potential energy (per particle) as, U ~ (3/5)(GM/R), we can write

${\displaystyle {\frac {GM}{R}}\approx \sigma ^{2}.}$

Here ${\displaystyle R}$ is the radius at which the velocity dispersion is being measured, and ${\displaystyle M}$ is the mass within that radius. The virial mass and radius are generally defined for the radius at which the velocity dispersion is a maximum, i.e.

${\displaystyle {\frac {GM_{\text{vir}}}{R_{\text{vir}}}}\approx \sigma _{\max }^{2}.}$

As numerous approximations have been made, in addition to the approximate nature of these definitions, order-unity proportionality constants are often omitted (as in the above equations). These relations are thus only accurate in an order of magnitude sense, or when used self-consistently.

An alternate definition of the virial mass and radius is often used in cosmology where it is used to refer to the radius of a sphere, centered on a galaxy or a galaxy cluster, within which virial equilibrium holds. Since this radius is difficult to determine observationally, it is often approximated as the radius within which the average density is greater, by a specified factor, than the critical density, ${\displaystyle \rho _{\text{crit}}={\frac {3H^{2}}{8\pi G}}}$. Where ${\displaystyle H}$ is the Hubble parameter and ${\displaystyle G}$ is the gravitational constant. A common (although mostly arbitrary) choice for the factor is 200, in which case the virial radius is approximated as ${\displaystyle r_{\text{vir}}\approx r_{200}=r(\rho =200\cdot \rho _{\text{crit}})}$. The virial mass is then defined relative to this radius as ${\displaystyle M_{\text{vir}}\approx M_{200}=(4/3)\pi r_{200}^{3}\cdot 200\rho _{\text{crit}}}$.

## References

1. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
2. Collins, G. W. (1978). The Virial Theorem in Stellar Astrophysics. Pachart Press. Introduction
3. Proof of this equation
4. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
5. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
6. {{#invoke:citation/CS1|citation |CitationClass=book }}
7. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
8. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
9. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
10. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
11. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
12. {{#invoke:citation/CS1|citation |CitationClass=book }}
13. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
14. {{#invoke:citation/CS1|citation |CitationClass=book }}