find (a) the change in internal energy of the gas and (b) the work done