Thermodynamics – Entropy, Reversibility & the Second Law

Introduction to the Second Law
  • This course has already covered the 1st Law of Thermodynamics, which primarily deals with energy bookkeeping and conservation, often applied to systems like heat engines. We now delve into the 2nd Law, which introduces fundamental concepts of spontaneity, directionality of processes, and the limits of energy conversion.

  • The lectures will be framed as a “play in four acts,” building a deductive understanding of entropy and its implications:

    1. Clausius’ Theorem: This foundational theorem provides a crucial inequality based on cyclic processes.

    2. Reversible Processes & Entropy: This act defines the ideal conditions necessary for process reversibility and introduces the concept of entropy as a state function.

    3. Reversible vs. Irreversible Processes: This section highlights the distinction between ideal (reversible) and real (irreversible) processes and their impact on entropy changes.

    4. Entropy Maximization: The final act demonstrates how entropy tends to increase in isolated systems, leading to the principle of entropy maximization at equilibrium.

  • The popular mantra often associated with the 2nd Law is: “Entropy = disorder; entropy of the universe always increases.”

    • While this intuition is correct, the instructor will instead provide a rigorous, deductive classical derivation based on the work of Clausius, which naturally leads to this same understanding, offering a more robust conceptual foundation.

Act 1 – Clausius’ Theorem

  • Clausius’ Theorem originated from a detailed analysis of the Carnot cycle, an idealized thermodynamic cycle that provides the upper limit on the efficiency of any classical thermodynamic engine operating between two heat reservoirs. It is crucial for understanding the limitations of converting heat into work.

  • The theorem states that for ANY cyclic process, regardless of the working substance or the complexity of the cycle, the integral of dQ/TdQ/T around the cycle is always less than or equal to zero:
    oxed{egin{equation}\\oint \frac{dQ}{T} \le 0\end{equation}}

  • Interpretation and Significance:

    • The term “dQ/TdQ/T” represents a mysterious quantity that emerged during the analysis of the Carnot cycle, hinting at a fundamental property related to heat transfer at a specific temperature.

    • Equality (=0=0): This condition is achieved only for fully reversible (ideal) cycles. A reversible cycle is one that can be reversed without any net change in the system or surroundings, implying no dissipative effects like friction or unrestrained expansion.

    • Strict Inequality (<0): This arises for any real, irreversible cycle. All real-world processes involve irreversibilities (e.g., heat transfer across a finite temperature difference, friction, mixing, unrestrained expansion), which prevent them from achieving the ideal reversible limit.

  • This theorem applies to any cycle that brings the system's state variables (such as pressure (P)(P), volume (V)(V), temperature (T)(T), internal energy (U)(U), etc.) back to their initial values, confirming its broad applicability in thermodynamics.

Act 2 – Reversible Processes & Definition of Entropy

  • A reversible path is an idealized thermodynamic process carried out infinitely slowly, such that the system remains infinitesimally close to thermodynamic equilibrium at every single step. This means that at any point, an infinitesimal change in conditions can reverse the direction of the process.

    • While practically unachievable in reality, it serves as a critical theoretical limiting idealization against which real (irreversible) processes are compared.

Two reversible paths between the same states
  • Consider two distinct thermodynamic states, labeled AA and BB. We can transition between these states via two different reversible paths, hereafter denoted as R<em>1R<em>1 and R</em>2R</em>2.

  • We can construct thermodynamic cycles using these paths:

    • A clockwise cycle: A<br>ightarrowR<em>1BightarrowR</em>2AA <br>ightarrow^{R<em>1} B ightarrow^{-R</em>2} A (where R<em>2-R<em>2 signifies traversing path R</em>2R</em>2 in the reverse direction).

    • A counter-clockwise cycle: A<br>ightarrowR<em>2BightarrowR</em>1AA <br>ightarrow^{R<em>2} B ightarrow^{-R</em>1} A (traversing path R1R*1 in reverse).

  • For each full cycle, Clausius’ Theorem states that egin{equation}\\oint_{\text{cycle}} \frac{dQ}{T} \le 0\end{equation}. Since these are fully reversible cycles, the inequality becomes an equality: egin{equation}\\oint_{\text{cycle}} \frac{dQ}{T} = 0\end{equation}.

  • Through algebraic manipulation of the integral for both cycles, it can be rigorously shown that the line integrals along the two separate reversible paths must be equal and opposite for the cycle integral to be zero:
    egin{equation}\\int*A^B \frac{dQ{R1}}{T}\end{equation} and egin{equation}\\int*A^B \frac{dQ{R2}}{T}\end{equation} must be equal. This implies that the quantity egin{equation}\\int \frac{dQ{rev}}{T}\end{equation} is path-independent for reversible processes between any two states. (If one were +y+y and the other y-y, both cannot simultaneously be egin{equation}\le 0\end{equation*} unless y=0y=0 for the cycle integral to be zero).

  • A quantity whose integral between two states is path-independent is, by definition, a state function (or point function). This insight represented a historical leap, allowing Clausius to posit the existence of a new state function called entropy, denoted by SS. Its differential change is defined as:
    oxed{egin{equation}\dS = \frac{dQ{rev}}{T}\end{equation} \qquad\text{(exact differential for reversible heat)}} Therefore, the change in entropy between states AA and BB is: oxed{egin{equation}\Delta S{A\to B} = SB - SA = \int{A}^{B} \frac{dQ{rev}}{T}\end{equation}}
    This formal definition establishes entropy as a measurable thermodynamic property.

Act 3 – Reversible vs. Irreversible Paths

  • Let's now consider the same initial and final states, AA and BB, but explore a scenario involving both an irreversible path (e.g., a fast, real-world process with friction or unrestrained expansion) and a reversible path (the idealized slow, careful process).

  • We construct a mixed cycle to apply Clausius’ Theorem:
    A<br>ightarrowextirrevB<br>ightarrowextrevAA <br>ightarrow^{ ext{irrev}} B <br>ightarrow^{- ext{rev}} A (clockwise direction).

  • Applying Clausius’ Theorem over this mixed cycle, which contains an irreversible segment, yields the inequality:
    egin{equation}\\int*A^B \frac{dQ{irrev}}{T} + \int*B^A \frac{dQ{rev}}{T} \le 0\end{equation}

  • We can replace the second integral, which is along the reversible path from BB to AA, with the negative of the entropy change from AA to BB, based on the definition of entropy:
    egin{equation}\int*B^A \frac{dQ{rev}}{T} = -\int*A^B \frac{dQ{rev}}{T} = -\Delta S{A\to B}\end{equation*} = -\Delta S.

  • Substituting this into the inequality, we obtain a profound result: oxed{egin{equation}\int*A^B \frac{dQ{irrev}}{T} \le \Delta S\end{equation*}} This is a critical inequality showing how entropy change relates to heat transfer for any process, reversible or irreversible.

    • Equality: The equality sign holds only if the path from AA to BB is reversible (i.e., egin{equation}\int dQ{rev}/T = \Delta S\end{equation*} ).

    • Strict Inequality ( < ): The strict inequality ( < ) arises for any real, irreversible path. This implies that for an irreversible process, the actual heat transferred (dQ<em>irrev)(dQ<em>{irrev}) divided by temperature is always less than the change in entropy (dSdS) for the system (dQ{irrev} < TdS), highlighting the dissipative nature of real processes.

Act 4 – Entropy Maximization (Second-Law Inequality)

  • Let's examine an isolated system. An isolated system is defined as one that does not exchange heat (dQ=0)(dQ=0), work (dW=0)(dW=0) or mass with its surroundings. It is perfectly thermally insulated and enclosed.

    • Since there is no heat exchange, the term egin{equation}\int dQ/T\end{equation} naturally becomes zero.

  • Applying the general inequality from Act 3 (egin{equation}\int dQ/T \le \Delta S\end{equation}) to an isolated system where dQ=0dQ=0, the inequality simplifies dramatically to:
    oxed{egin{equation}\Delta S \ge 0 \quad \text{ or } \quad SB \ge SA\end{equation}}
    for any spontaneous process occurring from state AA to state BB within an isolated system.

  • Consequences of the Entropy Maximization Principle:

    • Never Decreasing Entropy: The entropy of an isolated system can never decrease during any spontaneous process. It either stays the same (for reversible changes) or increases (for irreversible/spontaneous changes). This fundamental principle gives rise to the concept of the “arrow of time,” indicating the direction in which natural processes spontaneously unfold.

    • Real vs. Ideal Processes: Equality (egin{equation}\Delta S = 0\end{equation}) is only achieved for perfectly reversible changes or processes that are already at equilibrium. All real, spontaneous changes in an isolated system must result in an increase in the system's entropy (egin{equation}\Delta S > 0\end{equation}).

    • This result is one of many equivalent statements of the Second Law of Thermodynamics, each emphasizing a different aspect of the law but leading to the same profound conclusions about the universe.

Combined Statement of 1st & 2nd Laws

  • The First Law of Thermodynamics is essentially an energy bookkeeping equation, stating that the change in internal energy (dU)(dU) of a system is due to heat (dQdQ), work (dW)(dW), and mass flow interactions (dUmassflowdU_{mass flow}):
    egin{equation}\dU = dQ + dW + dU {mass\,flow}\end{equation}

  • For a simple compressible system (e.g., a gas in a piston) with no mass flow, we can express the work done on the system as dW=PdVdW = -P dV (where PP is pressure and VV is volume).

  • For a reversible process, the heat exchanged can be uniquely defined in terms of entropy change and temperature: dQrev=TdSdQ_{rev} = T dS.

  • Substituting these reversible differential terms into the First Law for a reversible infinitesimal step yields the fundamental thermodynamic identity (also known as the Gibbs fundamental equation or the fundamental equation of thermodynamics): oxed{egin{equation}\dU = T\,dS - P\,dV + \mu\,dN\end{equation}} where:

    • TT is the absolute temperature.

    • dSdS is the infinitesimal change in entropy.

    • PP is the pressure.

    • dVdV is the infinitesimal change in volume.

    • μ\mu is the chemical potential (energy required to add one particle to the system at constant TT and PP).

    • dNdN is the infinitesimal change in particle number.

  • Caution: It is crucial to remember that this combined equation (dU=TdSPdVdU = TdS - PdV for a closed system) is only strictly valid for reversible infinitesimal steps. For irreversible steps, the relationship dQ < TdS holds, meaning that the simple substitution of dQ=TdSdQ = TdS is invalid. In such cases, the First Law still applies, but the Second Law (the dQ < TdS inequality) must be used carefully.

Differential Forms & State-Function Recognition

  • A generic total differential of a function MM dependent on variables X,Y,ZX, Y, Z can be written as:
    egin{equation}\dM = A\,dX + B\,dY + C\,dZ\end{equation}

  • The coefficients (A,B,CA, B, C) in such an exact differential are partial derivatives of MM with respect to the corresponding independent variables, while holding others constant. For example:

    • A = egin{equation}\left(\partial M/\partial X\right) {Y,Z}\end{equation} (partial derivative of MM with respect to XX at constant YY and ZZ).

    • Similarly, B = egin{equation}\left(\partial M/\partial Y\right) {X,Z}\end{equation} and C = egin{equation}\left(\partial M/\partial Z\right) {X,Y}\end{equation} .

  • Recognizing such patterns allows for the rapid manipulation of thermodynamic identities and derivation of Maxwell relations, which will recur frequently in advanced thermodynamics. It is a powerful mathematical tool for extracting relationships between state variables.

Concept of Equilibrium

  • Qualitative Definition:

    • Equilibrium is often described as a “state of rest” where all macroscopic properties of a system (like temperature, pressure, volume, concentration) stop changing over time.

    • It is also viewed as a “state of balance” where microscopic fluctuations within the system average out, leading to no net macroscopic change.

  • Operational Procedure:

    1. Prepare System & Boundary Conditions at t=0t=0: Set up the system with specific initial conditions and define its interactions with the surroundings (e.g., isolated, constant temperature, constant pressure).

    2. Wait as toextbft o extbf{∞}: Allow the system to evolve spontaneously over a very long period.

    3. Equilibrium Reached: The system is considered to have reached equilibrium when no further macroscopic change is observable, even if left undisturbed for extended periods. At this point, all spontaneous processes within the system have ceased.

Relation to Entropy
  • All spontaneous processes occur while the system is evolving towards equilibrium; none of these processes remain at equilibrium. Equilibrium is the destination, not a transient state.

  • For an isolated system, which cannot exchange energy or matter with its surroundings, the Second Law dictates that spontaneous processes never decrease entropy (egin{equation}\Delta S \ge 0\end{equation}). This implies that a system within an isolated boundary will evolve until its entropy reaches the maximum possible value consistent with the given constraints (e.g., fixed volume, fixed energy).
    oxed{egin{equation}\text{Equilibrium (isolated)} \;\Longrightarrow\; S = S_{max}\end{equation}}

  • This principle provides an alternative, rigorous pathway to the intuitive “entropy = disorder” notion often introduced in simpler contexts (the “baby-book example”). Maximum entropy corresponds to the most statistically probable and disordered arrangement given the system's energy and volume.

Spontaneity Criterion (Isolated Systems)

  • Based on the principle of entropy maximization for isolated systems, we can establish clear criteria for the spontaneity of a process:

    • If a proposed process would lead to a decrease in the total entropy of an isolated system (egin{equation}\Delta S < 0\end{equation}, it is impossible and will not occur spontaneously.

    • If a proposed process would leave the total entropy unchanged (egin{equation}\Delta S = 0\end{equation}, it implies a reversible or an infinitely slow process, meaning the system is already at equilibrium or undergoing a quasi-static change.

    • If a proposed process would lead to an increase in the total entropy of an isolated system (egin{equation}\Delta S > 0\end{equation}, it is spontaneous and irreversible. All natural, real-world processes in isolated systems fall into this category, always seeking to reach a state of higher entropy.

Looking Ahead

  • While entropy maximization is a fundamental criterion for isolated systems, many real engineering and material systems are maintained under different conditions, most commonly at constant temperature and pressure, rather than being isolated.

  • For such non-isolated systems, entropy alone is not the sole criterion for spontaneity or equilibrium. We need a more convenient thermodynamic potential that accounts for these constant conditions. Therefore, future derivations will show that equilibrium under fixed temperature and pressure corresponds to the minimum of the Gibbs free energy (GG).

  • The subsequent lectures will heavily focus on the applications and implications of Gibbs