as shown in the P-T diagram. Assuming the gas to be ideal the work done by the gas in taking it from A to B is