(a) A piston is used to compress an ideal gas quasistatically from volume Vi to volume Vf . If the gas is in thermal contact with a heat bath at temperature T, such that the compression is carried out isothermally, calculate the work done on the gas, the change in entropy of the gas and the change in entropy of the heat bath
(b) The compression is repeated but but non-quasistatically. Are the three calculated quantities higher, lower, or the same as before?
The Attempt at a Solution
For (a) I said that W=-NkT*ln(Vf/Vi), and [tex]\Delta[/tex]E = 0, so [tex]\Delta[/tex]Q = NkT*ln(Vf/Vi).
Then as it's quasistatic [tex]\Delta[/tex]Sgas = [tex]\Delta[/tex]Q/T = Nk*ln(Vf/Vi)
I then said as it's quasistatic [tex]\Delta[/tex]Suniverse=[tex]\Delta[/tex]Sgas + [tex]\Delta[/tex]Sbath=0
so [tex]\Delta[/tex]Sbath = -Nk*ln(Vf/Vi)
I think this is right but confirmation would be good. For (b) I said that [tex]\Delta[/tex]Sgas will be the same as it's a state variable, but as the entropy of the universe must increase the bath's entropy must increase. The only thing I'm unsure about is whether or not the work increases/decreases/stays the same. Anyone got any ideas about how to approach this?