Thermodynamics deals with relations between heat and other forms of energy. The first law of thermodynamics states that energy cannot be created or destroyed, only changed from one form to another. The second law includes two statements: the Clausius statement says heat cannot spontaneously flow from cold to hot without external work, and the Kelvin-Planck statement says it is impossible to convert all heat into work. The Carnot cycle provides the maximum efficiency for converting heat into work, while the reverse Carnot cycle describes refrigerators and heat pumps.