A cylinder holds of an ideal gas. Its base stays in contact with a large reservoir at , so the gas is at before and after each change. The gas is compressed from to in two different ways. (Hypothetical data.) Take .
(a) In the first way the compression is slow and reversible: the frictionless piston is pushed in so gently that the pressure on it is always only infinitesimally greater than the gas pressure. The work done on the gas in such a compression is . Find this work.
(b) In the second way, a load is placed on the piston all at once, so that the external pressure stays equal to the final pressure of the gas throughout the compression. The gas then settles at and . Find the work done on the gas.
(c) In each case, how much heat does the gas give to the reservoir? Use your answers to explain why the sudden compression is irreversible.
