text: Textbooks in physical chemistry generally give two derivations of the title equation. One is the conventional derivation that goes back to Van der Waals, a mechanical equation of state that cannot be used to specify all thermodynamic functions; the other is a statistical mechanics derivation that makes explicit the intermolecular potential neglected in the first derivation. A particular advantage of the statistical mechanical derivation is that it yields the partition function for the system, and allows all thermodynamic functions to be specified (including the mechanical equation of state).