Internal energy is the sumofallmicroscopic kinetic energies and potential energies of a molecule within a system.
1st law of thermodynamics states 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.
1st law of thermodynamics:
increase in internal energy=work done on gas + heat supplied to gas