An insulator container contains 4 moles of an ideal diatomic gas at temperature T. Heat Q is supplied to the gas, due to which 2 moles of the gas are dissociated into atoms but temperature of the gas remains constant.
= ( internal energy of 4 moles of a monoatomic gas + internal energy of the 2 moles of diatomic gas) – ( internal energy of 4 moles of diatomic ideal gas) =