The work done by a gas when it undergoes a state change from 1 → 2 isothermally is
For an isothermal process T is constant.
Therefore from ideal gas equation we get -
pV = nRT
⇒ p=nRTV ...(1)
We know that the work done in any process can be calculated using -
From (1) and (2) -