Andrew Mason said:
The pressure of the gas cannot remain constant if n and T are held constant during an expansion: P=nRT/V.
That's why I said the pressure scales like 1/V, and used that in my calculation. The outside air pressure stays the same, but that is quite irrelevant to the work done by the gas-- another strange thing about the question, it gives unnecessary information.
I don't think the question contemplates adding more gas.
I assume there is no added gas, yes.
You can't maintain constant internal pressure and gas temperature if V changes.
I don't see anything in the question that requires that the internal gas pressure remain constant. Indeed, the irreversibility tends to make me expect the internal gas pressure should be allowed to be different from the external gas pressure, but that's one of the unclear things about the question-- the reason that the expansion is irreversible. That reason will matter to the work done, for example free expansion does no work.
So this is an isothermal expansion where the gas pressure starts off much higher than the 1 atm. external pressure.
Again, the external pressure is irrelevant, as is the heat flow. All you need is that the expansion is isothermal, and you know that the work done is PV ln 2. Since we don't know P unless it equals the external pressure, my interpretation is that it starts out at 1 atm, but something is happening to the container to make the gas expand irreversibly. Or maybe you're right, and we're supposed to assume it ends up at 1 atm instead of starting there-- in which case it still does PV ln 2 work, but the P is the initial pressure, which would have to then be 2 atm instead of 1 atm. So if P=2 and V=1 initially, the answer would then be 2 ln 2 instead of just ln 2, in those units.
So the answer W = P_{ext}(V_f-V_i) is correct.
No, that is the work done on the outside, it is not the work done by the gas. If you are right that the pressure starts off at 2 atm (which seems reasonable), then for the container to cease expanding when the volume is 2 liters, the kinetic energy associated with the expanding container will need to be removed somehow. That's why the work done by the gas will be more than the work done on the surroundings, in that scenario.
The scenario you have suggested can only apply if there is effectively 0 external pressure (free expansion).
No, the scenario I suggest doesn't care at all what the external pressure is-- we are asked the work done by the gas, so all we need is the initial P and V of the gas, and then the work done by the isothermal gas is PV ln 2.