For a sample of perfect gas when its pressure is changed isothermally from pi to pf, the entropy change is given by
ΔS=nRlnpfpi
ΔS=nRlnpipf
ΔS=nRTlnpfpi
ΔS=RTlnpipf
For an ideal gas undergoing reversible expansion, when temperature changes fromTi to Tfand pressure changes from pi to pf,
ΔS=nCplnTfTi+nRlnPiPf
For an isothermal process, Ti=Tf so, ln1=0
∴ΔS=nRlnPiPf