Thermodynamics has always been a tough thing for me. There are lots of assumptions in this subject (those assumptions, I know, are necessary, I know the science of thermodynamics is a very practical science).
First Law of Thermodynamics states mathematically:
$$\Delta U=Q+W$$
(with proper sign conventions must be used). This is just a law of conservation of energy and a very straightforward equation, but when we come to chemical thermodynamics this equation changes its form and becomes:
$$\Delta U=Q+p\,\Delta V$$
My intuition says as soon as pressure and volume comes in any equation it becomes specifically for gases. So, my first question is:
Why thermodynamical equations are just for gases?
Let's imagine an isothermal expansion of a gas (that simple piston and gas experiment) under a constant pressure, now work $W$ is $$W=p\,\Delta V$$ but if use ideal gas Law equation i.e. $$pV=nRT$$ $$p\,\Delta V = \Delta nRT + nR\,\Delta T\tag1$$
since the expansion is isothermal therefore $\Delta T = 0$ and I can think that during expansion no atom or molecule has been annihilated therefore $\Delta n = 0$, so after all we get $$p\,\Delta V = 0$$ $$W=0$$
I want to know my mistakes in above consideration.
There is a question in my book:
A swimmer coming out of a pool is covered with a film of water weighing $18\ mathrm g$. How much heat must be supplied to evaporate this water at $298\ \mathrm K$? Calculate the internal energy change of vaporization at $100\ \mathrm{^\circ C}$. $\Delta_\mathrm{vap}H^\circ = 40.66\ \mathrm{kJ\ mol^{-1}}$ for water at $373\ \mathrm K$
My book give its solution like this
$$\ce{H2O(l) -> H2O(g)}$$
Amount of substance of $18\ \mathrm g$ of $\ce{H2O(l)}$ is just $1\ \mathrm{mol}$. Since, $\Delta U=Q-p\,\Delta V$, therefore,
$$\Delta U=\Delta H-p\,\Delta V $$.
$$\Delta U=\Delta H-\Delta nRT$$
$$\Delta U=40.66 \times 10^3\ \mathrm{J\ mol^{-1}}-1\ \mathrm{mol}\times8.314\ \mathrm{J\ K^{-1}mol^{-1}}\times373\ \mathrm K$$
$$ \Delta U=37.56\ \mathrm{kJ\ mol^{-1}}$$
I have a lot of problems with this solution which goes directly to the foundations of science of thermodynamics. (I must say it's because of these books that science becomes a rotten subject, these books destroy the real essence of science).
How is $\Delta n=1\ \mathrm{mol}$?
Why temperature is taken as $373\ \mathrm K$ and not $298\ \mathrm K$, since the process starts at $298\ \mathrm K$ we should use it?
At $373\ \mathrm K$ the process becomes an isothermal one (latent heat) so $\Delta U$ ought to be zero, if we think the process of vaporization starts from $373\ \mathrm K$.
Any help will be much appreciated. Thank you.