Entropy and the Second Law
Second Law of Thermodynamics, Entropy, and Free Energy
Entropy and the second law
Entropy, denoted by S, is a state function used to describe the dispersal of energy and the number of microscopic arrangements compatible with a system’s macroscopic state. It connects measurable quantities such as heat and temperature to the microscopic behavior of matter. Entropy is central to chemistry, biochemistry, and physics because it helps predict which processes can occur and which direction they tend to take.
The second law of thermodynamics describes the direction of spontaneous change. For an isolated system, entropy cannot decrease:
A reversible change leaves the entropy of an isolated system unchanged.
An irreversible change increases the entropy of an isolated system.
A process that would decrease the entropy of an isolated system cannot occur spontaneously.
The total entropy of an isolated system stays constant in a reversible process and increases in an irreversible process.
The second law gives physical meaning to an arrow of time: processes proceed in the direction that increases the total entropy of the universe, when the universe is treated as an isolated system.
Heat, entropy, and reversible processes
For a reversible process, the infinitesimal entropy change is defined by
where δQrev is the infinitesimal heat transferred reversibly and T is the absolute temperature. Equivalently,
The symbol δ distinguishes heat from a state-function differential: heat depends on the path taken, while entropy depends only on the initial and final states.
For an actual process, which may be irreversible, the entropy change satisfies
Equality applies to a reversible process; the inequality applies when irreversibility is present. For a finite process, the corresponding relationship is
with equality when the process follows a reversible path. The entropy change between two states can therefore be calculated using any convenient reversible path connecting those states, even if the actual process was irreversible.
The Carnot cycle and the Clausius inequality
The Carnot cycle illustrates the relationship between heat, work, and entropy using an ideal gas that undergoes four reversible steps. In a pressure–volume diagram, the cycle forms a loop.
Isothermal expansion at the higher temperature: The gas expands while its temperature remains constant. Heat enters the gas.
Adiabatic expansion: The gas expands without exchanging heat with its surroundings. Its temperature falls.
Isothermal compression at the lower temperature: The gas is compressed while its temperature remains constant. Heat leaves the gas.
Adiabatic compression: The gas is compressed without exchanging heat. Its temperature rises until the gas returns to its starting state.
An adiabatic process has no heat transfer, so δQ=0. Along a reversible adiabatic segment, dS=0 as well. The two isothermal steps involve heat transfer and corresponding entropy changes.
Heat and work over a cycle
Heat and work are path-dependent: their values depend on the route taken through the cycle. Internal energy, by contrast, is a state function. Since the system returns to its initial state at the end of a complete cycle,
Using the convention that W is work done by the system, the first law gives
Thus, over a complete cycle, the net heat transferred equals the net work done by the system:
On a pressure–volume diagram, the area enclosed by the cycle corresponds to the net work. The heat absorbed and released along individual steps need not sum to zero; instead, their net amount balances the net work.
The distinctive result for a reversible cycle is that the heat transfers, each divided by their respective temperatures, sum to zero:
This result shows that reversible heat divided by temperature gives a quantity whose change depends only on the system’s states: entropy.
Clausius inequality
For any cycle, including an irreversible one, the Clausius inequality is
For a reversible cycle, the integral equals zero. For an irreversible cycle, it is less than zero. This is a general mathematical statement of the second law: irreversible processes produce entropy, while reversible processes represent the limiting case with no entropy production.
Entropy from heat capacity and temperature
Heat capacity describes how much heat is needed to change a system’s temperature under specified conditions. Because entropy changes with temperature, heat capacity provides a way to calculate entropy changes.
At constant volume, reversible heating gives δQrev=CVdT, where CV is the heat capacity at constant volume. Substituting into the entropy definition gives
Therefore, the entropy change from temperature T1 to T2 at constant volume is
If CV is approximately constant over this temperature range,
At constant pressure, the analogous expression uses the heat capacity CP:
If CP is constant,
The heat capacity must be paired with the condition under which it is measured: CV for constant volume and CP for constant pressure. If the heat capacity varies with temperature, its temperature dependence must remain inside the integral.
The third law
The third law of thermodynamics provides a reference point for entropy. For a perfect crystal, the entropy approaches zero as the temperature approaches absolute zero:
This reference makes it possible, in principle, to determine absolute entropies by integrating heat-capacity data from temperatures near absolute zero. Absolute zero cannot be reached through a finite sequence of physical processes, but the limiting behavior remains useful in thermodynamics.
Molecular interpretations of entropy
Boltzmann’s relation
A molecular interpretation of entropy connects macroscopic states to their microscopic realizations. A microstate is a specific microscopic arrangement of a system; a macrostate is described by macroscopic properties such as pressure, volume, and temperature.
Boltzmann’s relation is
where kB is Boltzmann’s constant and Ω is the number of microstates consistent with the macrostate. A macrostate with more compatible microstates has greater entropy.
This relation helps explain why spontaneous processes often look like spreading, mixing, or randomizing. Such processes typically move a system toward macrostates that can be realized in many more microscopic ways.
Expansion, mixing, and equilibration
Examples illustrate the connection between entropy and the number of accessible configurations:
Pressure equilibration: If two connected regions contain gas at different pressures, opening a valve allows the gas to redistribute. The resulting pressure difference becomes smaller as the gas occupies more possible arrangements. The spontaneous change is not a coordinated movement of all gas molecules toward an even more unequal pressure distribution.
Mixing: When different gases are separated and a barrier is removed, the gases mix. There are vastly more microscopic arrangements in which the gases are distributed throughout both regions than arrangements in which each gas remains confined to one side.
Expansion into a room: Gas released from a container spreads through the available room. The dispersed state has many more possible molecular arrangements than the state in which all the gas is confined to the original container.
These examples are not driven by a tendency for each molecule to “seek disorder.” Rather, the macroscopic outcome arises because high-multiplicity macrostates are overwhelmingly more probable than low-multiplicity ones.
Entropy can also be considered through information theory, where it is related to uncertainty about possible states. This provides a useful conceptual perspective alongside the thermodynamic and molecular interpretations.
Energy functions and Gibbs free energy
Thermodynamic energy functions are useful because different experimental conditions make different variables convenient to control. The internal energy is a natural starting point for a closed, simple compressible system with pressure–volume work:
Here, internal energy U has natural variables entropy S and volume V. Other kinds of work, such as electrical or chemical work, may need additional terms. For example, a change in the amount of a chemical species can contribute a term involving its chemical potential.
Enthalpy
Enthalpy is defined as
For a closed, simple compressible system, its differential is
Enthalpy has natural variables S and P. Under appropriate constant-pressure conditions, an enthalpy change is related to heat transferred at constant pressure. This makes enthalpy useful in many chemical and biological settings.
Helmholtz free energy
The Helmholtz free energy is defined as
Its differential is
Its natural variables are temperature T and volume V, making it especially suited to processes studied at constant temperature and constant volume.
Gibbs free energy
The Gibbs free energy is defined by
Its differential for a closed, simple compressible system is
Gibbs free energy has natural variables temperature and pressure. These conditions are convenient for many chemical reactions and biological processes, since temperature and pressure are often easier to control experimentally than entropy and volume.
For a system whose composition can change, the differential includes chemical-potential terms:
where μi is the chemical potential of species i and dni is its change in amount. For a closed system with fixed composition, the composition term is omitted.
Gibbs free energy and spontaneity
At constant temperature and pressure, the Gibbs free energy change is commonly written
This relationship expresses the competition between enthalpic and entropic effects:
A decrease in enthalpy, ΔH<0, tends to favor a process.
An increase in entropy, ΔS>0, tends to favor a process.
The temperature determines the relative influence of the entropy term.
Under constant-temperature, constant-pressure conditions with no relevant non-expansion work, a process is spontaneous in the forward direction when ΔG<0. At equilibrium, the system is at a minimum of Gibbs free energy under those constraints, and an infinitesimal change has ΔG=0. A zero change alone is not sufficient to identify a stable equilibrium; the free energy must be at a minimum.
The usefulness of Gibbs free energy in biochemistry comes partly from the way it combines energy and entropy effects. Changes in bonding and intermolecular interactions contribute to enthalpy, while changes in the number of available molecular arrangements contribute to entropy. Their combined effect helps determine whether a process is favorable under specified conditions.
Noncovalent interactions in biological systems
Many important biological interactions do not involve forming or breaking covalent bonds. Instead, molecules associate through noncovalent forces that contribute to their energy and structure.
Ionic interactions
An ionic interaction is an electrostatic attraction or repulsion between charged species. For example, sodium and chloride ions attract one another through Coulombic forces. In solution, surrounding molecules can influence the strength and behavior of such interactions.
Ion–dipole interactions
A polar molecule has a permanent dipole: an uneven distribution of charge. An ion can interact with this dipole. Water molecules, for example, can orient around ions in solution, helping stabilize dissolved ions.
Dipole and induced-dipole interactions
A permanent dipole can interact with another permanent dipole. In addition, an ion or a permanent dipole can distort the electron distribution of a nearby neutral molecule and induce a temporary dipole. The ease with which an electron cloud can be distorted is called polarizability.
An induced dipole can also induce a dipole in a neighboring particle. These fluctuating, induced-dipole interactions are known as London dispersion forces. Such dispersion forces can occur even between molecules that lack permanent dipoles.
Hydrogen bonding
A hydrogen bond is a directional noncovalent interaction involving a hydrogen atom associated with an electronegative atom and an acceptor atom on another part of a molecule or on another molecule. It is often described as involving a donor, the hydrogen, and an acceptor, giving it a three-center character.
Hydrogen bonding is important in biological structure:
In proteins, hydrogen bonds between peptide groups help stabilize structures such as alpha helices and beta sheets.
In DNA and RNA, hydrogen bonding between appropriate nucleotides helps hold paired strands or regions together.
These interactions help determine molecular structure and contribute to the enthalpy and entropy changes involved in molecular association.
Partial derivatives and thermodynamic potentials
Thermodynamics frequently describes how one property changes as another changes while specified variables are held constant. A partial derivative expresses this dependence. For instance, a derivative with respect to temperature at fixed volume is written
The subscript V indicates that volume is held constant. The choice of what is held constant is essential: the same property can have different derivatives under different conditions.
Natural variables and differentials
The differential forms of the four energy functions show their natural variables:
Internal energy: U=U(S,V), with dU=TdS−PdV.
Enthalpy: H=H(S,P), with dH=TdS+VdP.
Helmholtz free energy: A=A(T,V), with dA=−SdT−PdV.
Gibbs free energy: G=G(T,P), with dG=−SdT+VdP.
The enthalpy, Helmholtz, and Gibbs functions are obtained from internal energy through Legendre transforms, which replace one natural variable with its conjugate variable. For example, H=U+PV replaces volume with pressure, while A=U−TS replaces entropy with temperature. Gibbs free energy performs both replacements.
Maxwell relations
Because thermodynamic potentials are state functions, their exact differentials have equal mixed partial derivatives. This produces the Maxwell relations, which connect partial derivatives that may be difficult to measure directly to other measurable quantities:
Each relation follows from equating mixed partial derivatives of the corresponding thermodynamic potential.
Expanding a state-function differential
A state function can be expressed in terms of variables other than its natural variables by using the multivariable chain rule. For example, if internal energy is expressed in terms of temperature and volume, then
This expansion describes how small changes in temperature and volume contribute to the change in internal energy. Such partial-derivative relationships are fundamental tools for analyzing thermodynamic systems and relating quantities that are experimentally accessible.

Ask anything
We've read this whole study set, so questions about it get the best answers.