When an ideal gas is taken from state a to b