When an ideal gas is compressed adiabatically