http://en.wikipedia.org/wiki/Intern...change_in_temperature_and_volume_or_pressure". This section of the wiki page was written by me, b.t.w.
Anyway, to summarize, in this problem it is given that PV = C, meaning that the temperature is kept constant. Then the amount of work done by the gas is given. The heat supplied to the gas is not given, but that follows from the given temperature change (which is zero). I claim that dT = 0 implies that dU = 0, so that the supplied heat to the gas must equal the work done by the gas. That then makes the rest of the problem trivial.
So, how do we know that dU = 0? The general equation is:
dU = T dS - P dV
It is convenient to rewrite this in terms of dT and dV. So, we want to express dS in terms of dT and dV. If you follow the derivation given in the wiki article, you see that dU can be written in terms of dT and dV as:
dU =C_{V}dT +\left[T\left(\frac{\partial P}{\partial T}\right)_{V} - P\right]dV
If you now use that we are dealing with an ideal gas, so that
\left(\frac{\partial P}{\partial T}\right)_{V} =\frac{P}{T}
you get:
dU = C_{V}dT
This means that the internal energy does not depend on the volume if we keep the temperature constant. This, in fact, implies that U considered as a function on T and any other variable X independent of T, will always be independent of X.
The heat capacity is also only a function of the temperature for an ideal gas. This follows from the fact that is is the derivative of U w.r.t. T at constant V. If you differentiate it w.r.t. sme vatriable X independent of T at constant T, and then in this second derivative interchange the order of differentiation and use that the inner derivative is zero, you get the desired result.