This is the basic principle of the first law and states that the total energy of a closed system remains constant.