In an isothermal process the volume of an ideal gas is halved. One can say that
Work done by the gas is positive
Internal energy of the system increases
Work done by the gas is negative
Internal energy of the system decreases.
dU=0 and work done =dW=PV2−V1
∵V2=V12=V2dW=−PV2