Andrew Mason said:
If the temperature of the gas and the surroundings are the same it can be isothermal only if it is quasistatic.
I am saying that it can't be quasistatic, hence it can't be isothermal, if there is an initial finite difference between the external pressure on the gas and the internal pressure of the gas.
So in order for problem 5.8 to make any sense I think you have to replace "is isothermally compressed by a constant external pressure" by "is compressed by a constant external pressure" and add "At the end of the process, T=300K." where T refers to the temperature of the gas.
AM
I think you're making this problem a lot harder than it needs to be.
You are concerned that the assumption that the irreversible compression process is isothermal is somehow not valid, or inconsistent, or unrealistic (I'm not sure which). I will agree with "unrealistic". Of course, there are no isothermal processes in reality. "Reversible isothermal process" is an idealization like "steady flow" or "incompressible fluid". Objecting to this stipulation is like objecting when a pendulum problem tells you to ignore the mass of the string, or when a mass-spring problem tells you to ignore the mass of the spring, or when you are told to use the ideal gas law instead of including real-gas effects. It's just an idealization that is meant to allow the student to focus on other aspects of the model.
I think it is a conceptual mistake to bring these issues into a problem of thermodynamics. Your objections are essentially about heat transfer, not thermodynamics. In particular, it would seem that your objections about the isothermal assumption would vanish in the limit of large thermal diffusivity for the gas. The assumption doesn't introduce an inconsistency within thermodynamics. While you're not a student, I have found that many students get very confused when they try to reason about thermodynamics by resorting to reasoning about heat transfer. Conversely, one has to focus on the thermodynamics when learning thermodynamics and set aside any conceptions about the difficulties introduced by finite-rate heat transfer.
As I read the problem, the authors are merely stipulating that the student ignore any irreversibilities that are due to the finite rate of heat transfer, or the need for heat transfer to take place across a finite temperature difference. The problem is "about" figuring out the difference between reversible work and irreversible work. For the given conditions, the reversible work is NRT ln(V
2/V
1), while the irreversible work is P(V
2-V
1). Since both processes are stipulated to be isothermal (even though a real irreversible compression can't be isothermal), this allows the student to infer that at every step of the irreversible process, the internal energy of the gas is fixed, so that every increment of the work input becomes heat output to the surroundings at a known temperature. This enables the calculation of the entropy added to both the system and the surroundings.
A more detailed calculation could be more realistic. As you wrote, in actuality the finite rate of piston movement induces finite changes in the temperature of the gas, which results in irreversible heat transfer. But wouldn't this calculation necessarily require additional information about the gas, the geometry of the cylinder, the distribution of the work irreversibilities (friction? gas viscosity?) etc.? Isn't the student better off learning the basic thermodynamics first, before launching into a full transient 3d Navier-Stoke simulation?
The bottom line is that the simplifications in this problem, albeit unrealistic, introduce no inconsistency in thermodynamics and serve a valid pedagogical purpose. And it's really no more unrealistic than any of the dozens of other routine idealizations we encounter.