The energy equation is given, in classical thermodynamics, by 
 
and in statistical mechanics it is obtained via the  thermodynamic relation
 
and making use of the Helmholtz energy function and the canonical partition function one arrives at
 
where  is a two-body central potential,
 is a two-body central potential,  is the 
excess internal energy per particle,  and
 is the 
excess internal energy per particle,  and  is the radial distribution function.
 is the radial distribution function.