For an adiabatic expansion of an ideal gas