Module 5 · 9 min read · Free chapter
Free energy functions, the thermodynamic equation of state and Maxwell relations
Start from zero: a criterion that looks only at the system
The second law judges a change by the entropy of the whole universe. That is awkward for a chemist, who can measure the flask but not the room, the building and the planet around it. We want a test written only in terms of the system.
Two new state functions do this. Helmholtz energy A works when temperature and volume are fixed, and Gibbs energy G works when temperature and pressure are fixed, which is how most reactions are run.
This chapter defines A and G, writes the four fundamental equations, derives the Maxwell relations from them, and uses these tools to answer real questions: how U changes with volume for a real gas, how G changes with T and p, and why a rubber band warms when stretched.
Helmholtz and Gibbs energies
Combine the first law with the Clausius inequality, . At constant T and V no expansion work is done, and the result can be written . At constant T and p it becomes . So we define
| Conditions | Spontaneous | Equilibrium |
|---|---|---|
| Constant T, V | dA < 0 | dA = 0 (A minimum) |
| Constant T, p | dG < 0 | dG = 0 (G minimum) |
Meaning as work. For a reversible change at constant T, ΔA = w_rev, so −ΔA is the maximum total work the system can deliver. At constant T and p, −ΔG is the maximum non-expansion work, such as electrical work in a cell (ΔG = −nFE). This is why A was once called the "work function" and G the "free energy": the part of the energy free to do useful work.
Since G = H − TS, at constant T we get ΔG = ΔH − TΔS. A reaction is driven by a fall in enthalpy, a rise in entropy, or both. The term TΔS grows with temperature, so entropy-driven reactions win at high temperature.
Worked example 1 (UPSC 2024). Find ΔA for the reversible isothermal compression of 1 mol of ideal gas from 100.0 L to 22.4 L at 298 K. At constant T, dA = −p dV, so = +3.71 kJ. A rises because work is stored in the compressed gas. For an ideal gas ΔU = 0 here, so ΔA = −TΔS, and the entropy falls.
Fundamental equations and Maxwell relations
For a reversible change with only p-V work, δq = T dS and δw = −p dV, so the first law becomes the fundamental equation dU = T dS − p dV. Because U, S and V are state functions, it holds for irreversible changes too. Adding d(pV), −d(TS) or both gives the other three:
Each equation shows the natural variables of its function: U(S, V), H(S, p), A(T, V), G(T, p). Reading off coefficients gives useful results, for example and .
For any exact differential dz = M dx + N dy, the mixed derivatives are equal: . Applying this to the four equations gives the Maxwell relations:
The last two are the most used. Entropy cannot be measured directly with a gauge, but p, V and T can, so these relations turn entropy questions into equation-of-state questions.
Worked example 2 (UPSC 2020). Derive . Start from dG = −S dT + V dp, so and . G is a state function, so , giving . For an ideal gas the right side is , so entropy falls as pressure rises.
Worked example 3 (UPSC 2021). For a rubber band, . Stretching lines up the coiled polymer chains, which lowers their entropy, so and : a band stretched quickly (adiabatically) warms up, which you can feel on your lips. The tension is mainly entropic, so it grows with temperature. A band holding a fixed weight therefore shortens when heated, the opposite of a metal wire.
The thermodynamic equation of state
How does U change when a gas expands at constant temperature? From dU = T dS − p dV, divide by dV at constant T and use the Maxwell relation :
π_T is the internal pressure. It needs only the p-V-T equation of state. The matching result for enthalpy is .
For an ideal gas, , so π_T = 0: U does not depend on volume, which is what Joule's free expansion found (Work, heat, internal energy and the first law of thermodynamics).
Worked example 4 (UPSC 2019). For a van der Waals gas, , so . Then = . The internal pressure is positive and comes only from attraction (a). Expanding the gas pulls molecules apart against attraction, so U rises with volume, and a real gas cools slightly in a free expansion.
How G depends on temperature and pressure
From dG = −S dT + V dp:
Implications (UPSC 2023). S is always positive, so G always falls as T rises, and it falls fastest for gases, which have the most entropy. V is always positive, so G rises with pressure, strongly for gases and only slightly for solids and liquids. On a plot of G against T, the solid, liquid and gas lines have slopes −S_s, −S_l and −S_g. At each temperature the lowest line is the stable phase, and the crossings are the melting and boiling points. Raising the pressure lifts the gas line most, so the boiling point rises.
Pressure dependence for a gas. For an ideal gas ; integrating gives . For a real gas the pressure is replaced by the fugacity f, an effective pressure: . When attractions dominate, f < p and the molar Gibbs energy is lower than the ideal value, because the molecules are stabilised by their neighbours. When repulsions dominate (high pressure), f > p and G_m is higher.
Gibbs-Helmholtz equation. Combining with G = H − TS gives
Worked example 5 (UPSC 2017). For a cell reaction ΔG = a + bT + cT² (J mol⁻¹). Units: a in J mol⁻¹, b in J K⁻¹ mol⁻¹, c in J K⁻² mol⁻¹. Then and . Measuring the cell voltage at several temperatures therefore gives ΔH and ΔS without a calorimeter.
Mains lens: how UPSC asks this
This topic is asked as derivations more than numbers. Recent examples: ΔA for an isothermal compression with a tyre question (2024); G against T and p, a G-T sketch and the effect of interactions (2023, 20 marks); a rubber band (2021); the Maxwell relation from dG (2020); internal pressure of a van der Waals gas (2019); units of a, b, c and ΔS, ΔH from ΔG(T) (2017).
Expect:
- Derivations (10 marks): any Maxwell relation, π_T = T(∂p/∂T)_V − p, Gibbs-Helmholtz.
- Applications (10 marks): π_T for a given equation of state, ΔS and ΔH from ΔG(T), rubber elasticity.
- Short numericals (5 to 10 marks): ΔA or ΔG for isothermal ideal-gas changes.
Model answer plan: "Show that (∂U/∂V)_T = T(∂p/∂T)_V − p and evaluate it for a van der Waals gas" (15 marks).
- Write dU = T dS − p dV; divide by dV at constant T.
- Derive the Maxwell relation from dA = −S dT − p dV.
- Substitute to get π_T; show π_T = 0 for an ideal gas.
- For a van der Waals gas, , so .
- Interpret: attraction makes U rise with volume; real gases cool in free expansion.
Quick revision
- A = U − TS (constant T, V); G = H − TS (constant T, p); spontaneous if dA or dG < 0.
- −ΔA = maximum work; −ΔG = maximum non-expansion work (ΔG = −nFE).
- dU = T dS − p dV; dH = T dS + V dp; dA = −S dT − p dV; dG = −S dT + V dp.
- Key Maxwell relations: and .
- : 0 for ideal gas, for van der Waals.
- , ; lowest G phase is stable.
- Gibbs-Helmholtz: ; fugacity f < p when attraction dominates.