A few notes
W is negative, because we are doing work on the gas
- W would be positive if the gas did work for us
Where did the work go?
- Isothermal compression
- The temperature is constant (same before and after)
-
- First law: The work went into heating the bath
-
- Second law: We decreased the entropy of the gas
- And increased the entropy of the bath