An ideal gas goes from the state i to the state f as shown in the figure. The work done by the gas during the process.