First Law of Thermodynamics – How to Correctly Denote the Law

entropythermodynamics

In thermodynamics, the first law is

$$dU = \delta Q – p dV$$

Now, second law of thermodynamics say

$$\delta Q \le T dS$$

where equality is for reversible processes. So by combination I get

$$dU \le T dS – p dV$$

But in many cases the equation is written generally as

$$dU = T dS – p dV$$

without taking care about reversibility.

If U is to be defined as a function of S, V, there must be the equality, because dU is a total derivative. But on the other hand, taking into account that $\delta Q/T \le dS$, the first form also give sense. So those two are somehow contradicting.

Which one is correct?

In some of my textbooks the first variant is first introduced, but suddenly it is written with the equality without notice.

**** EDIT 1 ****

This is an example I want to discuss:

Lets say I have an isolated vessel with an ideal gas in a state with T, p, V.
When I open a door so that the new Volume is V+dV, with new new volume dV initially in vacuum, after some while I have a new equilibrium state where the gas occupies the new total volume. No heat can be exchanged and no external work is done.

The end state is an equilibrium state with

p, T, V+dV

(T must stay constant because U doesn't only depend on T and U stays constant, because there is neither heat nor extern work.

Using entropy change of ideal gas

$$dS = C_v/T \cdot dT + nR/V \cdot dV$$

we would get

$$TdS = nRT/V\cdot dV = pdV$$

and

$$dU=TdS-pdV = 0$$

This is what I expect: $dU=0$

Interestingly I used an irreversible process to come from the initial state to the end state, but the equal sign seems to be valid in $dU=TdS-pdV$. Surprising, because I thought all the time, I have to use inequality for irreversible processes.

So is it correct to say, that the exact kind of the process that drives me from from initial state I to the end state E is not relevant at all and it can even be irreversible as long as I and E are equilibrium states? So the process used has nothing to do with the state?

$$dU = d'Q+d'W$$ is a process equation whereas $$dU = TdS-pdV$$ is a state equation, independent of process?

Moreover I observe:

$$TdS = nRT/V \cdot dV > dQ = 0$$

$$TdS > dQ$$

and from

$$dU = dQ + dW$$

$$pdV > dW$$

So wouldn't it better instead of

$$dU \le TdS -pdV$$

to say

$$dU = TdS -pdV$$

$$dQ \le TdS$$
$$dW \le pdV$$

because this does not mix up process variables with state variables?

Best Answer

Your first equation is incorrect and your final conclusions are correct.

We have conservation of energy which is expressed $$ dU = dQ + dW \tag{1} $$ and by arguments involving Clausius' theorem one can arrive at $$ dU = T dS - p dV. \tag{2} $$ Both the above equations hold no matter how the changes are taking place. (1) can be interpreted as a statement that there is a state function called internal energy and it changes by the amount of energy coming in via heat and work, no matter what the process may be. (2) can be interpreted as a statement about the change in various state functions between neighbouring equilibrium states. It does not depend on process. This may be compared to the fact that the height difference between two places on a hill does not depend on how you walk between them: it does not depend on the route, nor on whether you drag your feet or hop or whatever. (In this illustration dragging your feet is comparable to irreversible contributions such as friction, and hopping is comparable to passing out of equilibrium altogether).

When discussing irreversible processes one should note that $T$ and $p$ might not be well-defined or single-valued throughout a system during the process, but this fact is irrelevant to the use of (2) to make a statement about neighbouring equilibrium states. So we do not need any special notation for $T$ and $p$ when using (2).

The mistake is to think that $dQ = T dS$ and $dW = - p dV$. Those equalities only hold for reversible processes. More generally one has $$ dQ = T dS - |d\epsilon| \\ dW = -p dV + |d\epsilon| $$ where the quantity $d\epsilon$ is some amount of energy associated with irreversible contributions coming from things like friction, turbulence, dissipation and the like. The modulus sign is to make it clear that $dQ \le T dS$ and $dW \ge - pdV$. The first of these can be seen as the statement that the entropy changes by at least the amount of entropy coming in via heat, and possibly by more than this. The second result (work) says that to compress something you have to supply at least enough work to push against the pressure, and possibly some more to overcome friction. Equally, when the system expands then its surroundings will receive less work than $p dV$ if there is friction.

In view of the above one should not write $dU = dQ - p dV$ because that is not always true (it is only true for reversible processes) whereas (1) and (2) above are both always true.

Related Question