How to Derive Maxwell’s Relations.