Lesson 8 of 15

Entropy and the Second Law

Entropy and the Second Law

Entropy (SS) is a state function measuring the dispersal of energy — loosely, the "disorder" of a system. For any reversible process:

dS=dQrevT    ΔS=dQrevTdS = \frac{dQ_{\text{rev}}}{T} \implies \Delta S = \int \frac{dQ_{\text{rev}}}{T}

Isothermal Entropy Change

At constant temperature, the integral simplifies to:

ΔS=QT\Delta S = \frac{Q}{T}

Entropy Change of an Ideal Gas

For a general process taking an ideal gas from (T1,V1)(T_1, V_1) to (T2,V2)(T_2, V_2):

ΔS=nCvln ⁣T2T1+nRln ⁣V2V1\Delta S = nC_v \ln\!\frac{T_2}{T_1} + nR\ln\!\frac{V_2}{V_1}

The first term captures the temperature change; the second captures the volume change.

Phase Transitions

At a phase transition (e.g. melting or boiling) the process is isothermal at temperature TT:

ΔS=ΔHT\Delta S = \frac{\Delta H}{T}

where ΔH\Delta H is the enthalpy of the transition (latent heat per mole).

The Second Law

The total entropy of an isolated system never decreases:

ΔSuniverse0\Delta S_{\text{universe}} \geq 0

Equality holds for reversible processes; strict inequality holds for irreversible ones.

Your Task

Implement the three functions below.

Python runtime loading...
Loading...
Click "Run" to execute your code.