A cylinder containing three moles of nitrogen gas is heated at a constant pressure of 2 atm. The temperature of the gas changes from 300 K to 350 K as a result of the expansion. Find work done (a) on the gas, and (b) by the gas by using van der Waals equation of state instead of ideal gas law.
Credit: University Physics Volume 2 by OpenStax, openstax.org, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Exercises adapted: converted to Kosoma's format, maths re-typeset, some exercises split into parts. Source commit db44eb99e9aa1d918fd8cf182f82ccdece9c7b11.