\
\
The compression and expansion of gas occurs when the gas is heated. The gas is compressed, and the pressure decreases. The gas is then expanded, and the pressure increases.