Consider a (classical) ideal gas of diatomic molecules occupying a volume V at temperature T. The Hamiltonian describing one molecule is
$$H(r_1, r_2, p_1, p_2) = \frac{1}{2m}(p_1^2 + p_2^2) + \frac{K}{2}|r_1 - r_2|^2,$$
where K is a (positive) constant, ($r_1, r_2$) describe the positions of the two atoms, and ($p_1, p_2$) the corresponding momenta.
(a) Calculate the canonical partition function for a system containing N molecules. [Hint: Use the center of mass and relative positions and the corresponding momenta; use the fact that the inter-atomic distance is much smaller than the size of the system].
(b) Calculate the free energy of the system and the equations of state (for S, P, and μ).
(c) Determine the energy of the system using the theorem of the equipartition of energy. Check the result by explicitly calculating the energy.
(d) Determine the temperature dependence of $\langle|r_1 - r_2|^2\rangle$.