A Mathematical Exploration of the Virial Theorem

A derivation and interpretation of the virial theorem through the mathematics of classical mechanics.

The virial theorem relates average kinetic energy to the forces acting on a system. Its essential qualification is an endpoint term: an average time derivative does not vanish merely because we call it an average.

The finite-time identity

Consider NN particles with constant masses mim_i, positions qi(t)\mathbf q_i(t), and velocities vi(t)\mathbf v_i(t) in an inertial frame. Assume Newton's equations miv˙i=Fim_i\dot{\mathbf v}_i=\mathbf F_i hold on the interval under consideration. Define

G(t)=i=1Nmiqivi,K(t)=12i=1Nmivi2.G(t)=\sum_{i=1}^{N}m_i\mathbf q_i\cdot\mathbf v_i, \qquad K(t)=\frac12\sum_{i=1}^{N}m_i\|\mathbf v_i\|^2.

Differentiating gives

G˙=2K+i=1NqiFi.\dot G=2K+\sum_{i=1}^{N}\mathbf q_i\cdot\mathbf F_i.

For T>0T>0, let fT=T10Tf(t)dt\langle f\rangle_T=T^{-1}\int_0^T f(t)\,dt. Integration yields the exact identity

2KT+i=1NqiFiT=G(T)G(0)T.2\langle K\rangle_T+ \left\langle\sum_{i=1}^{N}\mathbf q_i\cdot\mathbf F_i\right\rangle_T =\frac{G(T)-G(0)}{T}.

The right side is zero over a period for which G(T)=G(0)G(T)=G(0). It tends to zero in a long-time limit if G(T)/T0G(T)/T\to0; bounded positions and velocities are one sufficient condition. If the relevant averages also converge, the usual virial theorem follows:

2K+i=1NqiFi=0.2\langle K\rangle+ \left\langle\sum_{i=1}^{N}\mathbf q_i\cdot\mathbf F_i\right\rangle=0.

An escaping particle need not satisfy these conditions. For free motion with nonzero velocity, GG grows linearly, so dropping the endpoint term would incorrectly imply zero kinetic energy.

A homogeneous potential

Suppose the forces derive from a differentiable total potential U(q1,,qN)U(\mathbf q_1,\ldots,\mathbf q_N), so Fi=iU\mathbf F_i=-\nabla_iU. This formulation includes interactions between particles; we need not pretend each particle has an independent potential.

Assume simultaneous scaling gives

U(λq1,,λqN)=λαU(q1,,qN)(λ>0)U(\lambda\mathbf q_1,\ldots,\lambda\mathbf q_N) =\lambda^\alpha U(\mathbf q_1,\ldots,\mathbf q_N) \quad(\lambda>0)

where the potential is defined. Differentiate with respect to λ\lambda at 11:

i=1NqiiU=αU.\sum_{i=1}^{N}\mathbf q_i\cdot\nabla_iU=\alpha U.

Under the averaging conditions above, substitution gives

2K=αU.\boxed{2\langle K\rangle=\alpha\langle U\rangle.}

The potential's additive constant is fixed by the homogeneity condition. Adding an arbitrary constant usually destroys that condition, even though it leaves the forces unchanged.

Two examples

For a bound, collision-free Kepler orbit, U=k/rU=-k/r is homogeneous of degree 1-1. Thus 2K=U2\langle K\rangle=-\langle U\rangle. If E=K+UE=K+U is constant, then K=E\langle K\rangle=-E and U=2E\langle U\rangle=2E.

For a harmonic oscillator, U=kx2/2U=kx^2/2 has degree 22, so K=U\langle K\rangle=\langle U\rangle over a period. Instantaneous kinetic and potential energy generally differ; the equality concerns their averages.