Doubt regarding isothermal enthalpy change of ideal gases

In the book, I have seen that it is written that in an isothermal change, $$\Delta H =\Delta U + \Delta n\_\mathrm{g}RT$$
I can clearly understand the derivation where $\Delta H = \Delta U +\Delta (PV)$
And as $PV=nRT$, $\Delta (PV)=\Delta(n\_\mathrm{g}RT)$


And as $T=\text{const.}$


$\Delta (PV)=\Delta n\_\mathrm{g}RT$


We plunge this value in the above equation. But what my question is, if the process is isothermal, internal energy must be constant i.e. $\Delta U=0$.


Then the equation must be
$$\Delta H = \Delta n\_\mathrm{g}RT$$


I want to know where is my concept wrong?





> 
> But what my question is, if the process is isothermal, internal energy must be constant.
> 
> 
> 


Thermodynamics in this contexts evaluates changes of state variables. The "state" means their change depends only on the initial and final state, not on the path how the final state has been reached.


Therefore, being isothermal means here that the initial and final temperature are the same, while the temperature profile between these states does not matter.


It says nothing about the $\Delta U$ value. The eventual ongoing process may be exothermic, endothermic or thermally neutral. If you take natural gas and air at $\pu{25 ^{\circ}C}$, burn the gas and cool the products back to $\pu{25 ^{\circ}C}$, it is an isothermal thermodynamic process.


For $\Delta n\_\mathrm{g} \ne 0$, a chemical reactions must occur. In such a case, $\Delta U \ne 0$ even if $\mathrm{d}T=0$.


Without any reaction, $\Delta n\_\mathrm{g} = \Delta U = \Delta H = 0$ unless the system is open.


With a reaction, generally, $\Delta H = \Delta U + \Delta(pV) \ne 0$ as $\Delta U \ne 0$ and possibly $\Delta (pV) \ne 0$.


 1

Your equation is based on the condition that a chemical reaction is occurring within a closed system. Even for an ideal gas chemical reaction, $\Delta U$ and $\Delta H$ are not zero even if the change in temperature is zero. Only if the process is adiabatic and in a constant volume system is $\Delta U=0$, but the temperature is not constant in such a case.


 1