Internal energy is the sum of allmicroscopickinetic energies and potential energies of the molecules within a system.
1st law of thermodynamics stated that the increase in internal energy of a closed system is the sum of the thermal energy supplied to the system and the work done on the system.