Dynamic Virial Theorem is a time-dependent identity linking the second derivative of a system’s moment of inertia with its kinetic energy and force virials.
It extends across various fields by adapting the virial balance to homogeneous power-law interactions, geometric frameworks, and dissipative as well as nonequilibrium systems.
The theorem provides practical insights into energy balances, density of states, and transient dynamics, informing studies from quantum gases to gravitational models.
The dynamic virial theorem is the time-dependent identity that relates the second derivative of a system’s moment of inertia to its kinetic energy and the virial of the applied forces. In its standard particle form, for I(t)=∑i=1Nmiri2, it reads
21dt2d2I=2K+i=1∑Nri⋅Fi,
and its steady or long-time-averaged limit yields the familiar virial balance when the inertial term vanishes. Contemporary treatments place this identity in a broader setting: homogeneous power-law interactions, general steady states beyond canonical and microcanonical ensembles, geometric mechanics on manifolds and Lie algebroids, dissipative and open quantum systems, nonequilibrium quantum gases governed by Tan’s contact, continuum and micropolar media, and modified gravitational theories (Davis, 30 Jul 2025, Cariñena et al., 2014, Peng, 2022).
1. Classical identity and steady-state limit
For an N-particle system with masses mi, positions ri(t), momenta pi=mivi, and forces Fi, the standard constructions are the scalar moment of inertia
I(t)=∑i=1Nmiri2
and the Clausius virial
G(t)=∑i=1Nri⋅pi.
They satisfy dI/dt=2G, hence
21dt2d2I=2K+i=1∑Nri⋅Fi,0
with 21dt2d2I=2K+i=1∑Nri⋅Fi,1 the instantaneous kinetic energy. For conservative forces 21dt2d2I=2K+i=1∑Nri⋅Fi,2, the potential form becomes
21dt2d2I=2K+i=1∑Nri⋅Fi,3
The time-averaged theorem follows when 21dt2d2I=2K+i=1∑Nri⋅Fi,4 remains bounded, or more generally when the long-time average of the total derivative vanishes; then
21dt2d2I=2K+i=1∑Nri⋅Fi,5
These statements appear in particle, continuum, and stochastic formulations with the same kinematic core (LeBohec, 2022).
For homogeneous potentials, Euler-type scaling converts the force virial into a potential-energy relation. If 21dt2d2I=2K+i=1∑Nri⋅Fi,6, then 21dt2d2I=2K+i=1∑Nri⋅Fi,7, so the averaged theorem becomes
21dt2d2I=2K+i=1∑Nri⋅Fi,8
For inverse-power attraction with 21dt2d2I=2K+i=1∑Nri⋅Fi,9, one recovers N0, consistent with N1 and N2. A persistent source of confusion is the identification of the virial theorem with this averaged relation alone. The dynamic virial theorem is the instantaneous identity; the steady-state form requires the additional condition N3, and deviations from virial balance during collapse, expansion, or other transients are measured precisely by the inertial term N4 (Davis, 30 Jul 2025).
2. Homogeneous power-law interactions, density of states, and steady states beyond Gibbs ensembles
For pairwise power-law interactions,
N5
homogeneity implies
N6
Since N7, one has
N8
and therefore in the steady-state limit
N9
With the notation mi0, this is also written mi1. The relation holds in any spatial dimension mi2 provided the interaction is a pure power and sufficiently regular for the derivatives to exist.
A notable development is the exact computation of the configurational density of states
mi3
for homogeneous pair potentials. In three dimensions, using Rugh’s geometrical framework with the vector field mi4, one obtains
mi5
Combined with the quadratic kinetic density of states
mi6
the total density of states follows by convolution,
mi7
which implies
mi8
Thus the microcanonical heat capacity is constant for this class of systems. For mi9, the formula gives
ri(t)0
while canonical stability requires ri(t)1, which is ensured for any positive ri(t)2 and for negative ri(t)3 satisfying ri(t)4.
The same paper shows that the virial theorem can be recovered from the configurational density of states alone, without assuming canonical or microcanonical Gibbs measures. If the steady state has the form
ri(t)5
then
ri(t)6
and the conjugate variables theorem yields, after choosing ri(t)7,
ri(t)8
This extends the steady-state virial theorem to any stationary distribution that depends on phase-space variables through the conserved energy alone. By contrast, for non-homogeneous interactions such as Lennard–Jones ri(t)9, no single degree pi=mivi0 exists; the correct relation is
3. Geometric formulations on manifolds, in quasi-coordinates, and on Lie algebroids
In geometric mechanics, the dynamic virial theorem is formulated intrinsically for mechanical Lagrangians on a Riemannian configuration manifold pi=mivi3. With metric pi=mivi4, kinetic energy pi=mivi5, and Lagrangian pi=mivi6, a vector field pi=mivi7 defines the linear virial function
pi=mivi8
Along a solution pi=mivi9 of Fi0, differentiation gives
Fi1
Under periodicity or boundedness hypotheses ensuring that the average of a total derivative vanishes, the averaged virial relation becomes
Fi2
Special cases follow from the symmetry class of Fi3: for Killing fields Fi4, one gets Fi5; for homothetic fields Fi6 with constant Fi7, Fi8; for conformal Killing fields Fi9, the kinetic term is weighted locally by I(t)=∑i=1Nmiri20. The Euclidean dilation field I(t)=∑i=1Nmiri21 recovers
I(t)=∑i=1Nmiri22
and hence I(t)=∑i=1Nmiri23 for I(t)=∑i=1Nmiri24-homogeneous potentials (Cariñena et al., 2014).
A complementary formulation uses quasi-coordinates and Lie algebroids. In quasi-velocities I(t)=∑i=1Nmiri25 associated with a moving frame I(t)=∑i=1Nmiri26, Hamel’s coefficients I(t)=∑i=1Nmiri27 encode nonholonomy through I(t)=∑i=1Nmiri28. For Hamiltonian systems in quasi-coordinates, the general theorem is
I(t)=∑i=1Nmiri29
for any virial function G(t)=∑i=1Nri⋅pi.0 bounded along the motion. Fiberwise-linear virial functions G(t)=∑i=1Nri⋅pi.1 are associated with complete lifts of vector fields G(t)=∑i=1Nri⋅pi.2, and the virial identity becomes G(t)=∑i=1Nri⋅pi.3. In the Lagrangian picture, if G(t)=∑i=1Nri⋅pi.4, then G(t)=∑i=1Nri⋅pi.5 and therefore
G(t)=∑i=1Nri⋅pi.6
The same structure extends to Lie algebroids G(t)=∑i=1Nri⋅pi.7, where the virial theorem is written either as G(t)=∑i=1Nri⋅pi.8 on G(t)=∑i=1Nri⋅pi.9 or dI/dt=2G0 on dI/dt=2G1. This places the theorem in a setting adapted to systems with symmetry, moving frames, and nontrivial anchor maps (Cariñena et al., 2014).
4. Dissipative, stochastic, and open-system formulations
Dissipation modifies the dynamic virial balance by adding explicit force-virial terms from friction and noise. For the damped oscillator
dI/dt=2G2
the instantaneous relation is
dI/dt=2G3
Its long-time average gives
dI/dt=2G4
so the averaged kinetic and potential energies are generally unequal. For the Brownian oscillator
dI/dt=2G5
the dynamical identity becomes
dI/dt=2G6
In the stationary state, under stationarity and ergodicity, dI/dt=2G7 and dI/dt=2G8, so equipartition is restored: dI/dt=2G9
with 21dt2d2I=2K+i=1∑Nri⋅Fi,00 when 21dt2d2I=2K+i=1∑Nri⋅Fi,01 (Ghosh et al., 2023).
For a dissipative quantum oscillator coupled to a heat bath in the Caldeira–Leggett form, the virial operator is symmetrized,
21dt2d2I=2K+i=1∑Nri⋅Fi,02
and the Heisenberg equation produces bath-induced terms 21dt2d2I=2K+i=1∑Nri⋅Fi,03 and 21dt2d2I=2K+i=1∑Nri⋅Fi,04: 21dt2d2I=2K+i=1∑Nri⋅Fi,05
In the stationary state,
21dt2d2I=2K+i=1∑Nri⋅Fi,06
For the harmonic oscillator this gives
21dt2d2I=2K+i=1∑Nri⋅Fi,07
so non-Markovian memory and colored quantum noise break equipartition in general. The classical limit 21dt2d2I=2K+i=1∑Nri⋅Fi,08 and the weak-coupling limit 21dt2d2I=2K+i=1∑Nri⋅Fi,09 both suppress 21dt2d2I=2K+i=1∑Nri⋅Fi,10 and 21dt2d2I=2K+i=1∑Nri⋅Fi,11, recovering the standard relation. The same structure has an electrical analogue in noisy RLC circuits, where the virial balance is written in terms of charge 21dt2d2I=2K+i=1∑Nri⋅Fi,12 and current 21dt2d2I=2K+i=1∑Nri⋅Fi,13 (Ghosh et al., 2023).
A different extension treats non-differentiable paths in resolution-scale relativity. There the complex velocity is 21dt2d2I=2K+i=1∑Nri⋅Fi,14, the scale-covariant derivative is
21dt2d2I=2K+i=1∑Nri⋅Fi,15
and the virial theorem becomes
21dt2d2I=2K+i=1∑Nri⋅Fi,16
where the quantum-like potential is
21dt2d2I=2K+i=1∑Nri⋅Fi,17
Under the identification 21dt2d2I=2K+i=1∑Nri⋅Fi,18, this reproduces the quantum mechanical virial theorem while retaining a time-average formulation rather than expectation values as the primary averaging device (LeBohec, 2022).
5. Nonequilibrium quantum gases and Tan’s contact
For short-range interacting quantum gases in three dimensions, the dynamic virial theorem acquires an exact contact term. With particle mass 21dt2d2I=2K+i=1∑Nri⋅Fi,19, scattering length 21dt2d2I=2K+i=1∑Nri⋅Fi,20, harmonic confinement 21dt2d2I=2K+i=1∑Nri⋅Fi,21, total energy 21dt2d2I=2K+i=1∑Nri⋅Fi,22, trap energy 21dt2d2I=2K+i=1∑Nri⋅Fi,23, and
21dt2d2I=2K+i=1∑Nri⋅Fi,24
the theorem reads
21dt2d2I=2K+i=1∑Nri⋅Fi,25
or equivalently
21dt2d2I=2K+i=1∑Nri⋅Fi,26
where 21dt2d2I=2K+i=1∑Nri⋅Fi,27 is Tan’s contact defined by the large-momentum tail 21dt2d2I=2K+i=1∑Nri⋅Fi,28. At unitarity, 21dt2d2I=2K+i=1∑Nri⋅Fi,29, the contact term drops out, and the cloud-size dynamics becomes identical to that of an ideal gas. The derivation uses the dilation operator 21dt2d2I=2K+i=1∑Nri⋅Fi,30, the commutator 21dt2d2I=2K+i=1∑Nri⋅Fi,31, and Tan’s adiabatic relation
21dt2d2I=2K+i=1∑Nri⋅Fi,32
The contact term is therefore the dynamical imprint of short-distance correlations in the virial balance (Peng, 2022).
This nonequilibrium theorem provides an experimentally accessible formulation of the maximum energy growth theorem. For an initially noninteracting gas with a ramp 21dt2d2I=2K+i=1∑Nri⋅Fi,33, the short-time energy growth obeys
21dt2d2I=2K+i=1∑Nri⋅Fi,34
so the square-root ramp 21dt2d2I=2K+i=1∑Nri⋅Fi,35 maximizes the initial growth. Because
21dt2d2I=2K+i=1∑Nri⋅Fi,36
during free expansion, the theorem converts measurements of cloud size and contact into a direct test of the energy-growth bound.
In two-fluid hydrodynamics, the same identity combines with continuity and momentum balance to yield an out-of-equilibrium pressure relation,
21dt2d2I=2K+i=1∑Nri⋅Fi,37
where 21dt2d2I=2K+i=1∑Nri⋅Fi,38 encodes bulk dissipation. In equilibrium, with no flow and 21dt2d2I=2K+i=1∑Nri⋅Fi,39, this reduces to Tan’s pressure relation. The result is the nonequilibrium analogue of the equilibrium pressure/contact formula, expressed in terms of measurable dynamical quantities (Peng, 2022).
6. Continuum, field-theoretic, and micropolar generalizations
In continuum mechanics, the theorem is obtained by testing momentum balance against the generator of dilatations. For a material region 21dt2d2I=2K+i=1∑Nri⋅Fi,40 with density 21dt2d2I=2K+i=1∑Nri⋅Fi,41, velocity 21dt2d2I=2K+i=1∑Nri⋅Fi,42, Cauchy stress 21dt2d2I=2K+i=1∑Nri⋅Fi,43, and body-force density 21dt2d2I=2K+i=1∑Nri⋅Fi,44, define
21dt2d2I=2K+i=1∑Nri⋅Fi,45
Using Reynolds transport and Cauchy’s equation,
21dt2d2I=2K+i=1∑Nri⋅Fi,46
one finds
21dt2d2I=2K+i=1∑Nri⋅Fi,47
For fluids with 21dt2d2I=2K+i=1∑Nri⋅Fi,48, the stress contribution becomes 21dt2d2I=2K+i=1∑Nri⋅Fi,49. When boundary terms vanish by decay, compact support, or periodicity, the time-averaged continuum theorem reduces to the familiar bulk balance between kinetic, forcing, and trace-of-stress terms (Pommaret, 2015).
The same scaling structure appears in field theory through the dilatation Noether current
21dt2d2I=2K+i=1∑Nri⋅Fi,50
In four-dimensional Maxwell theory, the improved energy-momentum tensor is traceless,
21dt2d2I=2K+i=1∑Nri⋅Fi,51
which expresses conformal invariance. The continuum virial identity is therefore the nonrelativistic projection of a dilatational balance law. One formulation further identifies the Clausius, Cosserat, Maxwell, and Weyl equations as formal adjoints of the Spencer operator for the conformal group, with the trace term arising from testing against the dilatation generator 21dt2d2I=2K+i=1∑Nri⋅Fi,52 (Pommaret, 2015).
Micropolar media introduce an additional rotational sector. With velocity 21dt2d2I=2K+i=1∑Nri⋅Fi,53, microrotation 21dt2d2I=2K+i=1∑Nri⋅Fi,54, microinertia 21dt2d2I=2K+i=1∑Nri⋅Fi,55, force stress 21dt2d2I=2K+i=1∑Nri⋅Fi,56, and couple-stress 21dt2d2I=2K+i=1∑Nri⋅Fi,57, the translational virial theorem becomes
21dt2d2I=2K+i=1∑Nri⋅Fi,58
with 21dt2d2I=2K+i=1∑Nri⋅Fi,59. The rotational theorem is
21dt2d2I=2K+i=1∑Nri⋅Fi,60
with 21dt2d2I=2K+i=1∑Nri⋅Fi,61. These relations uncover the virial force-stress
21dt2d2I=2K+i=1∑Nri⋅Fi,62
and the virial couple-stress
21dt2d2I=2K+i=1∑Nri⋅Fi,63
The first contains the Reynolds stress through 21dt2d2I=2K+i=1∑Nri⋅Fi,64; the second contains the turbulent couple-stress through 21dt2d2I=2K+i=1∑Nri⋅Fi,65. In the classical Cauchy limit, where microrotation and couple-stress vanish, the rotational theorem collapses and the translational theorem reduces to the standard continuum virial relation (Ostoja-Starzewski, 2021).
7. Gravitational and astrophysical variants
In Newtonian gravity, the virial theorem is central to the dynamics of self-gravitating systems. For discrete masses,
21dt2d2I=2K+i=1∑Nri⋅Fi,66
and the time-dependent identity takes the form
21dt2d2I=2K+i=1∑Nri⋅Fi,67
or equivalently 21dt2d2I=2K+i=1∑Nri⋅Fi,68 in the notation used for the gravitational pair potential. For collisionless stellar systems, the continuum form is
21dt2d2I=2K+i=1∑Nri⋅Fi,69
and for self-gravity 21dt2d2I=2K+i=1∑Nri⋅Fi,70, so
21dt2d2I=2K+i=1∑Nri⋅Fi,71
In spherical collisionless systems with negative total energy, this equation governs undamped finite-amplitude breathing oscillations about virial equilibrium. One treatment maps the breathing mode to an Ermakov–Lewis–Leach structure, where 21dt2d2I=2K+i=1∑Nri⋅Fi,72 satisfies a parametric-oscillator equation and the invariant
21dt2d2I=2K+i=1∑Nri⋅Fi,73
generates an infinite asymptotic hierarchy 21dt2d2I=2K+i=1∑Nri⋅Fi,74 with 21dt2d2I=2K+i=1∑Nri⋅Fi,75 order by order. In that framework, the constants of motion depend on the virialised mass and radius through the universal scalings 21dt2d2I=2K+i=1∑Nri⋅Fi,76 and 21dt2d2I=2K+i=1∑Nri⋅Fi,77, rather than on the detailed choice of potential profile (Lecian et al., 2023).
Modified gravity changes the virial balance itself. In nonlocal Newtonian gravity, the pair force becomes
21dt2d2I=2K+i=1∑Nri⋅Fi,78
with
21dt2d2I=2K+i=1∑Nri⋅Fi,79
and the exact virial identity for an isolated 21dt2d2I=2K+i=1∑Nri⋅Fi,80-body system is
21dt2d2I=2K+i=1∑Nri⋅Fi,81
where
21dt2d2I=2K+i=1∑Nri⋅Fi,82
In virial equilibrium,
21dt2d2I=2K+i=1∑Nri⋅Fi,83
Interpreting the correction as an effective dark component leads to 21dt2d2I=2K+i=1∑Nri⋅Fi,84. For sufficiently isolated nearby galaxies in virial equilibrium at the present epoch, the theory predicts
21dt2d2I=2K+i=1∑Nri⋅Fi,85
where 21dt2d2I=2K+i=1∑Nri⋅Fi,86 is the baryonic diameter. In this setting the dynamic virial theorem is not merely diagnostic; it is the mechanism by which nonlocality is mapped onto an effective dark-matter fraction (Mashhoon, 2015).
A further model-specific complication concerns the meaning of stationarity. In a relativistic uniform sphere model with gravitational, electromagnetic, acceleration, and pressure fields, one analysis argues that the partial time derivative of the virial may vanish while the material derivative does not: 21dt2d2I=2K+i=1∑Nri⋅Fi,87
Within that framework the virial balance becomes
21dt2d2I=2K+i=1∑Nri⋅Fi,88
and the estimated ratio of kinetic to binding energy is 21dt2d2I=2K+i=1∑Nri⋅Fi,89, rather than the classical 21dt2d2I=2K+i=1∑Nri⋅Fi,90, because pressure and acceleration fields contribute to the internal dynamics. This does not alter the standard theorem as a mathematical identity; rather, it shows that the passage from stationarity to vanishing total virial derivative can depend sensitively on the kinematics and constitutive assumptions of the model under study (Fedosin, 2017).