Work done in vacuum is calculated by:
w=−Pext(Vfinal–Vinitial)
For the given problem: Pext=0, because it is a free expansion (in the vacuum).
Hence,
w=−(0×(5−1))
w=0
According to joule experimental observation, For an isothermal expansion of ideal gas, no heat will be absorbed or evolved, hence q=0
By the 1st law of thermodynamics,
q+w=ΔU
ΔU=0
Since, w=0 and q=0, then the change in internal energy ΔU will also be 0.