(b) the gas will do positive work
Internal energy of the gas,
Here, Cv is the specific heat at constant volume and dT is the change in temperature.
If the process is isothermal, i.e. dT = 0, dU = 0.
Using the first law of thermodynamics, we get
Here, W is the positive work done by the gas.