First law of thermodynamics
Perhaps you could start here First law of thermodynamics - Wikipedia, the free encyclopedia