
(a) At constant temperature PV = constant, so the pressure falls as the gas expands; the path is the curve from (Pi,Vi) to (Pf,Vf) with Pf=VfPiVi. The work done is the area under this curve:
Wa=PiVilnViVf
(b) At constant pressure the path is the horizontal line from (Pi,Vi) to (Pi,Vf). The work done is the area of the rectangle under it:
Wb=Pi(Vf−Vi)
Comparison: both paths start at the same point and cover the same range of volume, but during the isothermal expansion the pressure is always below Pi, so the curve lies below the horizontal line everywhere after the start. The area under the isobaric line is therefore larger, and the gas does more work in case (b). In the figure (Vf=3Vi), Wa=PiViln3=1.10PiVi while Wb=2PiVi.