Classical Mechanics versus Thermodynamics (Part 1)

Everybody loves Hamilton’s equations: there are just two, and they summarize the entire essence of classical mechanics. Most people hate the Maxwell relations in thermodynamics: there are lots, and they’re bewilderingly similar, so they’re hard to remember. But what I’d like to show you now is that Hamilton’s equations are a special case of the Maxwell relations!