I seem to be able to contradict the second law of thermodynamics. What am I missing?
- $dS = \frac{\delta q}{T}$ along reversible paths
- $S$ is a potential: $\Delta S_{A \to B} = \int_\gamma\frac{\delta q}{T}$ for every reversible path $\gamma$ from $A$ to $B$ (if any)
- In an isolated system $\Delta S_{A \to B} \ge 0$, $= 0$ for a reversible path, $\gt 0$ for an irreversible path (by the second law of thermodynamics)
- But, if for a reversible path $\Delta S_{A \to B} = 0$ (by 3). then, by 2., $\Delta S_{A \to B} = 0$ for all paths (including irreversible ones), contradicting the second law.
The only week point that I can spot is the "if any" in 2. Are irreversible paths the ones between states which aren't connected by reversible paths? But then how do we define entropy change between such states?
There is a related question here: How can the entropy of the universe increase when undergoing an irreversible process?
However, I don't fully understand/accept the accepted answers as I'm wondering what happens if I just look at the universe as a whole and not split it into a system and surrounding.