Starting with the same initial conditions, al ideal gas expands from volume V1 to V2 in three different ways. The work done by the gas is W2 if the process is purely isothermal, W2 if purely isobaric and W3 if purely adiabatic. Then
Work done is equal to area under the curve on PV diagram.