Thermodynamics refers to the field of chemistry which is concerned with understanding the flow of energy within a system or when a system changes from one state to another. One ultimate purpose of thermodynamics is to predict whether a change will occur spontaneously. The field of thermodynamics is based on three fundamental laws which lead to a set of parameters such as the free energy and the chemical potential, which are key to our understanding of spontaneous change.