(a) For an isothermal expansion of an ideal gas,
W=μRTlnV1V2=2.0×8.31×300×ln1030=4986×1.0986=5478 J
(b) The internal energy of an ideal gas depends only on its temperature, and the temperature is constant, so ΔU=0. By the first law, Q=ΔU+W=5478 J: all the heat absorbed is converted into work.
(c) The pressure falls from P1=V1μRT=0.0104986=4.99×105 Pa to P2=0.0304986=1.66×105 Pa along the curve PV = constant; the shaded area under it is the work done.

As the gas expands it does work on the piston. If no heat came in, this energy would have to come from the internal energy of the gas and it would cool, as in an adiabatic expansion. To keep the temperature at 300 K, the gas must be in contact with a reservoir at 300 K that supplies heat equal to the work done, 5478 J.