According to the First law of thermodynamics , it is useful to separate changes to the internal energy of a thermodynamic system into two sorts of energy transfers . The first law of thermodynamics relates changes in the internal energy of a thermodynamic system to two forms of energy transfer .