Put
The thermodynamic derivatives of the canonical partition function give
The two momentum coordinates are unrestricted quadratic degrees of freedom, so the equipartition theorem gives mean kinetic energy . Hence
The same result follows from .