Quasistatic Irreversible Expansion

From the initial conditions, we now expand the methane by just barely opening the needle valve, slowly venting air. The process path is a continuous curve on the process diagram, but the curve is not

smooth; even though the air is vented continuously, the piston does not move continuously because of friction between the piston and cylinder walls.