A unit mass of an ideal gas at temperature $T$ undergoes a reversible isothermal process from pressure $P_{1}$ to pressure $P_{2}$ while losing heat to the surroundings at temperature $T$ in the amount of $q .$ If the gas constant of the gas is $R,$ the entropy change of the gas $\Delta s$ during this process is
(a) $\Delta s=R \ln \left(P_{2} / P_{1}\right)$
(b) $\Delta s=R \ln \left(P_{2} / P_{1}\right)-q / T$
(c) $\Delta s=R \ln \left(P_{\mathrm{J}} / P_{2}\right)$
(d) $\Delta s=R \ln \left(P_{1} / P_{2}\right)-q / T$
(e) $\Delta s=0$