Refer to figure. Let ΔU1 and ΔU2 be the changes in internal energy of the system in the process A and B. Then

Initial and final points of both processes A and B are same. Therefore, change in internal energy in both the processes will be the same because internal energy is a state variable, independent of the path taken.


Therefore, ΔU1=ΔU2=0.

1