Because the equation of state is pV = nRT, we
know that at each stage p = nRT/V, with V the volume at that stage of the expansion.
The temperature T is constant in an isothermal expansion, so (together with n and R)
it may be taken outside the integral. It follows that the work of reversible isothermal
expansion of a perfect gas from Vi to Vf at a temperature T is