Reference: Daniel V. Schroeder, An Introduction to Thermal Physics, (Addison-Wesley, 2000) – Problem 1.34.
Here is a slightly more complex example of using a PV diagram to deduce some facts about heat and work flows into or out of an ideal gas. This time, the path is a rectangle starting at and . On side A, the pressure is increased to while the volume is held constant. Then on side B, the volume is increased to while the pressure is constant at . On side C, the pressure is decreased back to with the volume constant at . Finally, on side D, the volume is decreased back to with the pressure constant at .
The gas in this case is diatomic, but the temperature is low enough that only the translational and rotational degrees of freedom are excited; vibrational modes are frozen out. This means that the energy of the gas is
The work done on any path is
and the heat is obtained from conservation of energy
We can do similar calculations to our earlier example of the triangular path to get
Along side A, no work is done, but heat is added to the gas to increase the pressure. Along side B, the gas expands doing work on the piston, but heat must be added to achieve this. Along side C, again no work is done and the gas gives off heat. Along side D, work must be done on the gas to compress it, and in the process the gas gives off heat.