When air is compressed rapidly, temperature increases because temperature and volume of gas are inversely proportional to each other according to gas laws. When air is compressed rapidly, its volume decreases leading to increase in temperature.
When air is compressed rapidly, the temperature increases according to the laws of thermodynamics. Compression of air is caused under increased pressure, which leads to rise a proportional increase in heat. The increase in heat leads to a rise in temperature of the system.
The pressure of the gas is doubled during compression so that the volume of air gets halved as per Boyle's law: The volume of the gas is inversely proportional to pressure at constant temperature
Gay-Lussac's law states that the pressure of the gas is directly proportional to temperature at constant temperature. According to Charles law, the volume of the gas is directly proportional to temperature at constant pressure.
The combined gas law gives the relation between pressure, temperature, and volume of gas as follows: PV/T = constant. Therefore, the combined gas law equation indicates that the pressure of gas is directly proportional to temperature. As the pressure exerted on the air increases during compression, the temperature of air also increases.