Determine the amount of work done on an ideal gas as it is heated in an enclosed thermally insulated cylinder topped with a freely moving piston. The cylinder contains of n moles of the gas and the temperature is raised from T1 to T2. The piston has a mass m and a cross sectional area A.