The first law of thermodynamics