Bipolarity said:
According to my textbook, during an irreversible process, the entropy change of the surroundings is given by \frac{q}{T} where q is the heat transferred to the surroundings during the process. Why are we allowed to use this equation, considering that this equation only holds for reversible processes?
BiP
What you just said is true for both reversible and irreversible processes assuming that the surroundings are a "reservoir". A reservoir is a system that won't change its temperature no matter what happens. If the system is a reservoir, then that is the formula.
The entropy change of the surroundings is given by that formula regardless of whether the entropy was created or transferred into the surroundings. I have seen that same formula used in the analysis of a Carnot cycle, which is by definition has only reversible processes.
Your quotation from the textbook doesn't sound quite right. I suspect that you are misinterpreting what the textbook said. However, it is quite possible that the textbook made a wrong statement. They do that, sometimes.
My suspicion is that either you or the textbook are using the word "heat" incorrectly. My experience is that both teachers and students are often confused by the colloquial word heat. The word heat is used ambiguously because there is more than one physical meaning of the word. For instance, heat can be either the internal energy or the entropy carried energy.
I will conjecture as to what went wrong on the hypothesis that either you or the textbook misused the word "heat".
You used two suspicious phrases. One suspicious phrase in your statement is "heat transferred to the surroundings". A second suspicious phrase is "entropy change in the surroundings." The two quantities are not always related.
Let me speculate on what was meant by the what you said. I won't make any speculate as to whether it was you or the textbook that messed it up. My money is on the textbook.
The "heat transferred to the surroundings" may refer to the internal energy of the surroundings. If this is what was meant, then I can give you an answer that depends on a contingency. It won't be simple. However, the difficulty is in language not science.
The internal energy in the surroundings can be increased either due to the either heat conduction into the surroundings or due to work done on the surroundings. This is the contingency.
If the internal energy of the surroundings are increased by work, then entropy is created in the surroundings. The creation of entropy is irreversible. To put it another way, the only way work can increase the entropy in a reservoir is if the work was done by frictional forces. So if the "heat energy" was created by friction, then what you are describing is an irreversible process.
If the internal energy of the surroundings are increased by heat conduction, the entropy has been transferred to the surroundings. The words "heat conduction" always refers to the energy that is transferred along with the entropy. Whatever entropy has been transferred by heat conduction can be transferred back by work.
If the internal energy of the surrounding has been increased by heat conduction, then the process may be reversible. You don't know whether or not the process is reversible unless you know how much entropy was created.
Also note that in an irreversible process, entropy can be created anywhere in the system. There could be friction in the piston. The gas in the container may have entropy created by friction.
That is my conjecture. My advice is to read that part of the textbook and write down what you think the word "heat" means at each point. I particular, ask yourself this. At each point where the word "heat" is used, does it mean heat conduction or internal energy?
Heat conduction is completely different from internal energy, although the same word is often used for both. This has created a lot of confusion (entropy?-) and difficulty (work?-).