Internal energy is equal to the sum of the kinetic energy of the random motion of molecules relative to the center of mass of bodies and the potential energies of the interaction of molecules with one another.