Final answer:
The potential energy of a gas decreases during a phase change, such as cooling and condensing to a liquid.
Step-by-step explanation:
The potential energy of a gas decreases during a phase change when a large amount of energy is extracted from the system and causes a decrease in the gas's volume, pressure, or both. For example, when a gas is cooled and condenses to a liquid, its potential energy decreases. This is illustrated by a graph of pressure vs. temperature, where the pressure of a gas continually decreases as it is cooled at a constant volume.