Gas Pressure and Particle Motion
Gas pressure happens because particles constantly bash into container walls, creating force. Higher temperature means particles have more kinetic energy and hit harder and more often, increasing pressure.
In a container that can change size (like a balloon), pressure differences matter. If outside pressure is higher, the gas gets compressed. If inside pressure is higher, the gas expands.
When you heat gas in a fixed container, particles speed up and collide more frequently with walls, so pressure increases. When you give gas more space at constant temperature, particles spread out and hit walls less often, so pressure drops.
Doing work on gases (like using a bike pump) transfers energy to the gas, increasing its internal energy and temperature. You're literally forcing more energetic particles into the space.
Real-world Connection: This explains why bike tyres get warm when you pump them up!