There is a crucial pedagogical point hidden in thermodynamic diagrams: the same gas can be taken from the same initial state to the same final state in completely different ways, one reversible and one irreversible. The natural question is: what changes and what stays the same between the two paths?
The answer separates two categories of quantities. The internal energy and the entropy of the gas are state functions: they depend only on the state of the gas, not on the path taken to reach it. So and are identical on the two paths, because and are the same. In contrast, the heat and the work exchanged depend on the path: they differ from one process to another, even for the same endpoints.
Summary — From A to B: same gas, same change of state, but...
Reversible: , with . Irreversible (free expansion): , with . In both cases and are equal, because they are state functions.
This distinction has a powerful practical consequence. In an irreversible process there is no well-defined path in the - diagram: there is no curve to integrate. But precisely because entropy is a state function, we can get round the obstacle.
The reversible case as a "useful path"
When must be calculated for an irreversible process, where there is no well-defined path in the - diagram, one can imagine a fictitious reversible path between the same initial and final states, because entropy is a state function. It is a practical technique: “treat the problem as if it were reversible” to calculate , but remember that the real one is not.
Linked notes
Topics: Termodinamica Concepts: Primo principio della termodinamica · Energia interna · Entropia Objects: Gas ideale
Related exercises: Esercizio svolto — espansione isoterma reversibile vs irreversibile · Problema — Doccia mattutina · Azoto riscaldato in un cilindro rigido