Given,
Initial pressure, P1=2 bar
Initial Volume, V1=30 L
Initial temperature T1=300 K
Again,
Final pressure, P2=2 bar
Final Volume, V2=40 L
Final temperature T2=500 K
According to first law of thermodynamics,
ΔU=q+W
We know,
q=Cp△T×n =40×[500−300]×1 =40×200 =8000 J∴W=−Pext×△V×100
(workdone)
=−2×(40−30)×100 =−2×10×100 J =−2000 J∴△U=8000+(−2000) J△U=6000 J