When an ideal gas undergoes an isothermal expansion