# Entropy of Irreversible Isothermal Compression

If I want to find the entropy change of universe in isothermal irreversible compression, I use 2 approaches:

1. I use q/T. Which gives me positive entropy change for surroundings positive and negative entropy change for system. So, using clausius inequality to say that net entropy change is positive.

2. I find entropy change for irreversible isothermal expansion which comes out to be positive (again using clausius inequality) and say that the compression process is just the reverse of the expansion. So, entropy change being a state function must be negative(as it is just the reverse process).

What am I doing wrong here?

• Let’s see the details of your analyses of the two situations. – Chet Miller Apr 11 at 16:07
• I used the formula for change in entropy for ideal gas dS=d qrev/T which implies dS= (dU + Pdv)/T which implies dS = n×Cvm×dt/T + nRT×dv/V and then integrating from V1 to V2 to get deltaS for system. And using Wsystem/T (Isothermal process) for deltaS of surroundings. In the expansion, for system ln(V1/V2) is positive hence deltaS is positive and for surroundings, Wsys is negative so, deltaS is negative. Now using clausius inequality. And then similarly for compression from V2 to V1, entropy is positive according to clausius inequality but if we take it to be reverse of expansion, it is -ve. – Parth Kamra Apr 11 at 17:10
• You are aware that the work and heat for the reversible path (from which you calculated W and Q) are different from the work and heat for the irreversible path, right (in both scenarios)? – Chet Miller Apr 11 at 17:16
• Yes, but change in entropy is a state function so as long as I integrate from V1 to V2, it should give the same value as that of an irreversible path. – Parth Kamra Apr 11 at 17:32
• That's correct for the entropy change, but not for the total heat Q. For the irreversible path, Q is different from the Q for the reversible path. And Q for the irreversible path is what determines the entropy change of the reservoir. – Chet Miller Apr 11 at 17:43

For the case of the original surroundings, we know that $$Q_{irrev, surr}=-Q_{irrev, syst}$$. So, from the first law applied to the irreversible process $$\Delta U_{irrev, surr}=-Q_{irrev, syst}$$The alternate reversible process for the surroundings must take it between the same two states. This means that the internal energy for the alternate reversible process must suffer the same change as for the irreversible process. The only way this can happen is if the heat flow for the alternate reversible process is the same as for the irreversible process. So, the entropy change for the surroundings in the irreversible process is given by $$\Delta S=-\frac{Q_{irrev, syst}}{T}$$
The initial state of the system is specified by $$P_1V_1=nRT$$. The irreversible process is specified by suddenly changing the external pressure on the piston from $$P_1$$ to $$P_2$$, and then allowing the gas to re-equilibrate irreversibly to its new equilibrium state with volume $$V_2$$ given by $$V_2=P_1V_1/P_2$$. Since, during this irreversible process, the external pressure is constant, the work done by the gas on the surroundings is given by $$W=P_2(V_2-V_1)=nRT\left(1-\frac{V_1}{V_2}\right)$$This is also equal to the heat Q transferred from the surroundings to the system: $$Q=nRT\left(1-\frac{V_1}{V_2}\right)$$So the entropy change of the system during this irreversible process is given by: $$\Delta S_{syst}=nR\ln{(V_2/V_1)}$$And from the analysis I presented above, the change in entropy of the surroundings during this irreversible process is given by $$\Delta S_{surr}=-nR\left(1-\frac{V_1}{V_2}\right)$$The overall change in entropy for the system plus surroundings for this irreversible process is thus given by $$\Delta S=nR\left[\ln{(V_2/V_1)}-\left(1-\frac{V_1}{V_2}\right)\right]$$The term in brackets in this equation is positive for all values of the ratio of the volumes, whether the ratio greater than unity or less than unity. Therefore, the Clausius inequality ($$\Delta S>0$$) is satisfied for both expansion and compression in this irreversible process.