Work done by the gas
= integration from Vinitial to Vfinal P dV
= integration from Vinitial to Vfinal {nRT/V} dV
This is an isoentropic process involving a perfect gas,
=> PVγ = Constant
=> Given that P = nRT/V, then (nRT/V)Vγ = Constant
=> TVγ-1 = Constant/nR = Constant K for a fixed mass of gas.
=> T = K/Vγ-1
K = TinitialVinitialγ-1
Hence, work done by gas
= integration from Vinitial to Vfinal {nRT/V} dV
= integration from Vinitial to Vfinal (nR/V)*(K/Vγ-1) dV
= integration from Vinitial to Vfinal (nRK/Vγ) dV