Why Does Temperature Decrease When Volume Decreases?

Why Does Temperature Decrease When Volume Decreases? Since the temperature of a gas is proportional to the square of the rms speed of the molecules, this compression leads to a very noticeable increase in temperature. So if you halve the volume (V/Vā€™ = 2) of a diatomic gas (gamma = 7/5), the temperature will increase