6. Entropy and the Second Law of Thermodynamics
6.5 Entropy and entropy generation
6.5.1 The inequality of Clausius
The inequality of Clausius states that for any cycle, reversible or irreversible, there exists the following relation:
∮δQT≤0 (‘‘=" for reversible cycles; ‘‘<" for irreversible cycles)∮δQT≤0 (‘‘=" for reversible cycles; ‘‘<" for irreversible cycles)
where δQ represents the differential amount of heat transfer into or out of a system through an infinitesimal part of the system boundary. δQ is positive for heat transfer into the system and is negative for heat transfer out of the system. T is the absolute temperature at the infinitesimal part of the system boundary, where the heat transfer occurs. The cyclic integral symbol ∮ indicates that the integration must be done for the entire cycle. In other words, all heat transfer into and out of the system, as well as their corresponding boundary temperatures, must be considered in the integral.
The inequality of Clausius applies to all cycles. We will prove it by using the heat engine cycle, Figure 6.1.3, as an example. For a reversible heat engine cycle operating between a heat source at a constant temperature of TH and a heat sink at a constant temperature of TL, the cyclic integral can be written as
∮(δQT)rev=(QHTH)rev+(−QLTL)rev
Note that for a reversible cycle,
(THTL)rev=(QHQL)rev
Therefore, the following equation exists for a reversible cycle.
∮(δQT)rev=0
For an irreversible cycle operating between the same two heat reservoirs at constant temperatures of TH and TL, we assume that the heat absorbed from the heat source, QH, remains the same as that in the reversible cycle,
∵QH,rev=QH,irrev=QH and Wrev>Wirrev
∴QL,rev<QL,irrev
∴(QHQL)irrev<(QHQL)rev and (QHQL)rev=(THTL)rev
∴(QHQL)irrev<(THTL)rev and (THTL)rev=(THTL)irrev
∴(QHTH)irrev<(QLTL)irrev
Therefore,
∮(δQT)irrev=(QHTH+−QLTL)irrev=(QHTH)irrev−(QLTL)irrev<0
Now, we have proven the inequality of Clausius for heat engine cycles. A similar procedure may be applied to prove the inequality of Clausius for refrigerator and heat pump cycles.
6.5.2 Definition of entropy
Why is the inequality of Clausius important? The cyclic integral is either equal to or less than zero depending on the nature of the cycle: reversible or irreversible. The inequality of Clausius provides a basis for introducing the concepts of entropy and entropy generation. Both concepts are important in the second law of thermodynamics.

Let us apply the inequality of Clausius to a reversible cycle consisting of two reversible processes 1→2 via path A and 2→1 via path B, see Figure 6.5.1.
∵∮(δQT)rev=∫21(δQT)pathA+∫12(δQT)pathB=∫21(δQT)pathA−∫21(δQT)pathB=0
∴∫21(δQT)pathA=∫21(δQT)pathB
The above equation indicates that the integral between the two states 1 and 2 of any reversible processes depends only on the two states, not on the paths; therefore, the integral ∫21(δQT)rev is a state function and must be related to a thermodynamic property. We define such thermodynamic property as entropy, S, and the change in entropy between two states can be expressed as
ΔS=S2−S1=∫21(δQT)rev
The infinitesimal change of entropy in a reversible process can thus be written as
dS=(δQT)rev
where S is the entropy and T is the absolute temperature. The common SI units for entropy are kJ/K or J/K. It is important to note that entropy, S, is a state function; ΔS in a process depends on the initial and final states, not on the path of the process.
Entropy is an extensive property; its corresponding intensive property is called specific entropy, s=Sm, and its common SI units are kJ/kgK or J/kgK.
Example 1
Consider a reversible process and an irreversible process from states 1 to 2, as shown in the T-S diagram, Figure 6.5.e1. Answer the following questions
(1) Is the change in entropy, ΔS, the same or different in these two processes?
(2) Is it possible to show the heat transfer of the reversible process in the T-S diagram?
(3) Is it possible to show the heat transfer of the irreversible process in the T-S diagram?

Solution:
(1) Entropy is a state function. The two processes have the same initial and final states, therefore, the same ΔS.
(2) From the definition of entropy, the heat transfer in the reversible process can be found from
Qrev=∫21(δQ)rev=∫21(TdS)rev
This integral can be shown graphically as the shaded area under the T-S curve of the reversible process, see Figure 6.5.e2.

(3) The heat transfer of the irreversible process cannot be simply calculated without additional information, and it cannot be shown in the T-S diagram.
Example 2
A reversible process from states 1→2 in a piston-cylinder is shown in Figure 6.5.e3. Determine whether the change in specific internal energy Δu=u2−u1, specific work w, and specific heat transfer q are positive, zero, or negative.

Solution:
The P−v diagram shows an expansion process in the piston-cylinder. Its specific boundary work can be shown as the shaded area in the P−v diagram, see Figure 6.5.e3. It can also be expressed as
1w2=∫21Pdv>0
From the definition of entropy,
dS=(δQT)rev
The process is reversible; therefore,
(δQ)rev=TdS
∴1Q2=Qrev=∫21(δQ)rev=∫21TdS
The specific heat transfer is
1q2=1Q2m=∫21Tds
From the T−s diagram in Figure 6.5.e3, s1=s2; therefore,
1q2=0
The specific heat transfer in a reversible process can be shown graphically as the area under the process line in the T−s diagram. Note: this statement is only true for reversible processes; it is not valid for irreversible processes!
Apply the first law of thermodynamics to the piston-cylinder (closed system),
Δu=1q2−1w2=0−1w2<0
In conclusion, the reversible expansion process illustrated in the P−v and T−s diagrams in Figure 6.5.e3 has a positive boundary work and zero heat transfer (adiabatic). The specific internal energy decreases in the process.
6.5.3 Entropy generation, Sgen
Entropy generation is another important concept in the second law of thermodynamics. Let us consider a cycle consisting of two processes; process 2→1 is a reversible process and process 1→2 can be any process, either reversible or irreversible, see Figure 6.5.2. We will apply the definition of entropy and the inequality of Clausius in the following derivations.
∵ΔS=S2−S1=∫21(δQT)rev
∴∮δQT=∫21(δQT)+∫12(δQT)rev=∫21(δQT)−∫21(δQT)rev=∫21(δQT)−(S2−S1)≤0
∴(S2−S1)≥∫21(δQT)
We may change the above inequality to an equation by introducing entropy generation, Sgen≥0, to the right side; therefore,
ΔS=(S2−S1)=∫21(δQT)+Sgen(Sgen≥0)
This relation is valid for all processes with the “=” sign for reversible processes, and the “>” sign for irreversible processes. The differential form of the relation can be expressed as
dS=δQT+δSgen(δSgen≥0)

It is important to note that Sgen and ΔS are different concepts.
- Entropy generation, Sgen, is a measure of the irreversibilities in a process. Sgen is NOT a property of the system. It depends on the path of a process; the more irreversible a process is, the larger Sgen is.
- Entropy S is a thermodynamic property of the system. It is a state function. ΔS depends on the initial and final states only, not on the path of a process.
- In general, ΔS≠Sgen. ΔS may be positive or negative, but Sgen must be positive for irreversible processes or zero for reversible processes.
Why is entropy generation important? how does it play a role in the universe? The universe is everything, including all the matter and energy that could possibly exist in all space and time. We may treat the universe as an isolated system because nothing exists outside the universe. From the entropy generation, Sgen≥0, we can prove that the entropy in the universe always increases due to the existence of irreversibilities in nature and in all human activities.

Let us define a system in the universe and everything outside the system boundary as the surroundings, see Figure 6.5.3. The change of entropy in the universe can be written as
ΔSuniv=ΔSsys+ΔSsur
where ΔSuniv,ΔSsys, and ΔSsur represent the changes of entropy in the universe, the system, and its surroundings, respectively.
The change of entropy in the universe can be written in terms of entropy generation as
ΔSuniv=∫21(δQT)+(Sgen)univ and (Sgen)univ≥0
Since the universe is an isolated system, heat transfer across the universe boundary Q=0. In addition, since all real processes happening in the universe are irreversible, we can drop the “=” sign in the inequality; therefore,
(Sgen)univ=ΔSuniv=ΔSsys+ΔSsur>0
The above relation indicates that the entropy generation in the universe is always a positive number due to the irreversibilities in all real processes. As a result, the entropy in the universe always increases. This concept can be expressed in a general format as follows if we divide the universe into a number of subsystems.
(Sgen)univ=ΔSuniv=ΔSsys,1+ΔSsys,2+...+ΔSsys,n=∑ni=1ΔSsys,i>0
where ΔSsys,i is the change of entropy in the subsystem, i, in the universe.
6.5.4 The second law of thermodynamics expressed in terms of entropy generation, Sgen
The second law of thermodynamics was previously described with the Kelvin-Planck and Clausius statements. In fact, any device that violates the Kelvin-Planck or Clausius statements must have Sgen<0.
Take a heat pump as an example. We may prove that any heat pump that violates the Clausius statement would have Sgen<0. A heat pump that violates the Clausius statement would have QH=QL from the first law of thermodynamics, see Figure 6.5.4. Note that entropy is a state function. For the heat pump cycle, the initial and final states are the same; therefore, ΔS=0. The change of entropy in the heat pump cycle can be expressed as follows,
∵ΔS=∫21(δQT)+Sgen=−QHTH+QLTL+Sgen=0 and TH>TL
∴Sgen=QHTH−QLTL=QH(1TH−1TL)<0

Now, we have proven that any heat pump that violates the Clausius statement would have Sgen<0. A similar procedure may be applied to prove that any heat engine that violates the Kelvin-Planck statement would have Sgen<0.
In summary, the second law of thermodynamics requires that any process or cycle proceeds in the direction that obeys Sgen≥0, in which the “=” sign applies to the ideal Carnot cycles and the “>” sign applies to any real, irreversible cycles or processes.
- Actual, irreversible process or cycle: Sgen>0
- Carnot, reversible process or cycle: Sgen=0
- Impossible process or cycle: Sgen<0
Practice Problems
Entropy is a thermodynamic property, which quantifies the degree of disorder of a system resulting from the dispersal of energy and matter in a process.
Specific entropy is the entropy per unit mass of a system.