A sample of an ideal gas initially having internal energy U1 is allowed to expand adiabatically performing work W. Heat Q is then supplied to it