The virial theorem relates the total kinetic energy of a self-gravitating body due to the motions of its constituent parts,

to the gravitational potential energy,*T*of the body.*U**2T + U = 0*By re-arranging the above equation and making some simple assumptions about

and*T*for galaxies we obtain:*U*where

is the total mass of the galaxy,**M**is the mean velocity (combining the rotation and velocity dispersion) of stars in the galaxy,*v*is Newton's gravitational constant and*G*is the effective radius (size) of the galaxy. This equation is extremely important, as it relates two observable properties of galaxies (velocity dispersion and effective radius) to a fundamental, but unobservable, property - the mass of the galaxy. Consequently, the virial theorem forms the root of many galaxy scaling relations.*R*The comparison of mass estimates based on the virial theorem to estimates based on the luminosities of galaxies is one technique used by astronomers to detect the presence of dark matter in galaxies and clusters of galaxies.