A course in which the postulatory approach is used to develop the theory of thermodynamics. The postulates are stated in terms of a variational principle that allows them to be applied to systems subjected to fields, to phase transitions, and to systems in which surface effects are dominant. The thermodynamic stability of systems is examined and examples of stable, metastable, and unstable systems are discussed.