Consider the following proof for change in internal energy of real gases, liquids and solids(assuming Non-$PV$ work $=0$):
- Let X denote real gases, liquids, and solids
- The First law of thermodynamics is $dU=dQ-dW=dQ-PdV$, which also holds for X
- At constant volume, $dU_{v}=dQ_{v}-0$.
- Now, $dQ_{v}=nC_{v}\,dT$ is a trivial expression and thus, will also hold for X.
- So we have $dU=nC_{v}\,dT$.
- Since U is a state function(in terms of V and T), $dU_{v}=dU$ since the path is irrelevant.
- Thus, we get $dU=nC_{v}\,dT$ for all X.
However, some sources indicate that $dU=nC_{v}\,dT$ is applicable only for ideal gases. Are they correct? If so, what is the mistake in this proof?
Addendum:
It seems the issue is in point 6 in that $dU_{v}=du$ cannot be used. This is because the internal energy change does not depend on the path, but if you are choosing an alternative path to calculate $du$ (like isochoric), that path needs to exist between the two states. So $dU=nC_{v}\,dT$ is true for an isochoric process for all X, but not in general for any process. But, why doesn't this issue arise in ideal gases?