Helmholtz Free Energy is the right energy to use when temperature and volume are used as control variables. Free Energy and the Partition Function. Maxwell Relations -- you can derive them all. Legendre Transforms. Ideal Gas. Quantum Concentration.
Why some slow processes are still irreversible, as with toast and frogs.