I'm calculating $\Delta G$, $\Delta H$ and $\Delta S$ when an ideal gas expands isothermally and reversible at $20$°C from $5$ MPa to $1$ MPa. I used the relation that:
$$\left(\frac{\partial G}{\partial P}\right)_T=V$$
This relation can be shown from the defintion $G=H-TS$. Then I integrated G so that:
$$\Delta G=\int_{P_1}^{P_2}VdP$$
We have an ideal gas $=>V=\frac{RT}{P}$. Which gives us that:
$$\Delta G=\int_{P_1}^{P_2}\frac{RT}{P}dP=RT\ln\frac{P_2}{P_1}$$
If you calculate this you'll get that $\Delta G\approx3.9$ kJ/mol. This was correct.
However I then tried to calculate $\Delta H$. Since $dH=dQ+VdP$ and $dQ=TdS$: $$dH=TdS+VdP$$ After this we know that we have a reversible process which according to me means that $dS=0$. Which means that $dH=VdP=dG=>\Delta H=\Delta G$. However the answer was that $\Delta S= 13.38$ J/(Kmol) and $\Delta H=0$. How is this possible? Isn't $dS=0$ for a reversible process?