For a sample of perfect gas when its pressure is changed isothermally from pi to pf, the entropy change is given by