Consider again the apparatus described in Exercise 7.18 of Chapter 7.
(i) Calculate the initial and final total energy and entropy in the two cases.
(ii) Suggest a physical process whereby the entropy increases in case A, and explain where the energy lost by the system goes in case B.
(iii) Now suppose that after the mass is increased to $m_2$, instead of releasing the piston, it is simply moved to a given height $h$ and fixed there. Consider the total energy $U(S, h)$ and entropy $S(U, h)$. Plot graphs of $S\left(U_i, h\right)$ and $U\left(S_i, h\right)$ as a function of $h$, where $U_i, S_i$ are the total energy and entropy after the mass is increased but before the piston is moved (treat 1 mole of gas at STP for the initial conditions, and take $m_2=2 m_1$ ). Explain how these graphs relate to the answers to Exercise 7.18 of Chapter 7.