In this Chapter, we quickly review some basic definitions and concepts from thermodynamics. We then provide a brief description of thefirst and second laws of thermodynamics. Next, we discuss the mathematical consequences of these laws and cover some relevant theorems in multivariate calculus. Finally, free energies and their importance are introduced.