Correct expression to calculate reversible isothermal work of expansion is
−pextΔV
+Vext∆P
−2.303nRTlogvfvi
−2.303nRTlogpfpi
Wrev = −2.303nRTlogvfvi
Vf > Vifor expansion then Wrev = −ve