On the other hand, instead of mechanical applied energy, imagine you transfer heat to a closed system with a piston that is initially at equilibrium. Part of this energy converts to expansion work in absence of other forces except for entropic force. Under these circumstances, the change in total energy of the system will be: