Chemistry‹›⌂ 0:00 studied

Module 5 · 9 min read · Free chapter

Free energy functions, the thermodynamic equation of state and Maxwell relations

What are you preparing for? We show the practice and previous year questions of your exam.

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, dS≥δqTdS \geq \dfrac{\delta q}{T}. At constant T and V no expansion work is done, and the result can be written d(U−TS)≤0d(U - TS) \leq 0. At constant T and p it becomes d(H−TS)≤0d(H - TS) \leq 0. So we define

A=U−TS,G=H−TSA = U - TS, \qquad G = H - TS
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 ΔA=−nRTln⁡V2V1=8.314×298×ln⁡100.022.4\Delta A = -nRT\ln\dfrac{V_2}{V_1} = 8.314 \times 298 \times \ln\dfrac{100.0}{22.4} = +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:

dU=T dS−p dVdH=T dS+V dpdU = T\,dS - p\,dV \qquad dH = T\,dS + V\,dp
dA=−S dT−p dVdG=−S dT+V dpdA = -S\,dT - p\,dV \qquad dG = -S\,dT + V\,dp

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 (∂U∂S)V=T\left(\dfrac{\partial U}{\partial S}\right)_V = T and (∂G∂p)T=V\left(\dfrac{\partial G}{\partial p}\right)_T = V.

For any exact differential dz = M dx + N dy, the mixed derivatives are equal: (∂M∂y)x=(∂N∂x)y\left(\dfrac{\partial M}{\partial y}\right)_x = \left(\dfrac{\partial N}{\partial x}\right)_y. Applying this to the four equations gives the Maxwell relations:

(∂T∂V)S=−(∂p∂S)V(∂T∂p)S=(∂V∂S)p\left(\frac{\partial T}{\partial V}\right)_S = -\left(\frac{\partial p}{\partial S}\right)_V \qquad \left(\frac{\partial T}{\partial p}\right)_S = \left(\frac{\partial V}{\partial S}\right)_p
(∂S∂V)T=(∂p∂T)V(∂S∂p)T=−(∂V∂T)p\left(\frac{\partial S}{\partial V}\right)_T = \left(\frac{\partial p}{\partial T}\right)_V \qquad \left(\frac{\partial S}{\partial p}\right)_T = -\left(\frac{\partial V}{\partial T}\right)_p

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 (∂S∂p)T=−(∂V∂T)p\left(\dfrac{\partial S}{\partial p}\right)_T = -\left(\dfrac{\partial V}{\partial T}\right)_p. Start from dG = −S dT + V dp, so (∂G∂T)p=−S\left(\dfrac{\partial G}{\partial T}\right)_p = -S and (∂G∂p)T=V\left(\dfrac{\partial G}{\partial p}\right)_T = V. G is a state function, so ∂2G∂p ∂T=∂2G∂T ∂p\dfrac{\partial^2 G}{\partial p\,\partial T} = \dfrac{\partial^2 G}{\partial T\,\partial p}, giving −(∂S∂p)T=(∂V∂T)p-\left(\dfrac{\partial S}{\partial p}\right)_T = \left(\dfrac{\partial V}{\partial T}\right)_p. For an ideal gas the right side is nRp\dfrac{nR}{p}, so entropy falls as pressure rises.

Worked example 3 (UPSC 2021). For a rubber band, (∂T∂l)S=−TC(∂S∂l)T\left(\dfrac{\partial T}{\partial l}\right)_S = -\dfrac{T}{C}\left(\dfrac{\partial S}{\partial l}\right)_T. Stretching lines up the coiled polymer chains, which lowers their entropy, so (∂S∂l)T<0\left(\dfrac{\partial S}{\partial l}\right)_T < 0 and (∂T∂l)S>0\left(\dfrac{\partial T}{\partial l}\right)_S > 0: 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 (∂S∂V)T=(∂p∂T)V\left(\dfrac{\partial S}{\partial V}\right)_T = \left(\dfrac{\partial p}{\partial T}\right)_V:

πT=(∂U∂V)T=T(∂p∂T)V−p\pi_T = \left(\frac{\partial U}{\partial V}\right)_T = T\left(\frac{\partial p}{\partial T}\right)_V - p

π_T is the internal pressure. It needs only the p-V-T equation of state. The matching result for enthalpy is (∂H∂p)T=V−T(∂V∂T)p\left(\dfrac{\partial H}{\partial p}\right)_T = V - T\left(\dfrac{\partial V}{\partial T}\right)_p.

For an ideal gas, T(∂p∂T)V=nRTV=pT\left(\dfrac{\partial p}{\partial T}\right)_V = \dfrac{nRT}{V} = p, 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, p=RTVm−b−aVm2p = \dfrac{RT}{V_m - b} - \dfrac{a}{V_m^2}, so (∂p∂T)V=RVm−b\left(\dfrac{\partial p}{\partial T}\right)_V = \dfrac{R}{V_m - b}. Then πT=RTVm−b−p\pi_T = \dfrac{RT}{V_m - b} - p = aVm2\dfrac{a}{V_m^2}. 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:

(∂G∂T)p=−S,(∂G∂p)T=V\left(\frac{\partial G}{\partial T}\right)_p = -S, \qquad \left(\frac{\partial G}{\partial p}\right)_T = V

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 Vm=RTpV_m = \dfrac{RT}{p}; integrating gives Gm=Gm∘+RTln⁡pp∘G_m = G_m^{\circ} + RT\ln\dfrac{p}{p^{\circ}}. For a real gas the pressure is replaced by the fugacity f, an effective pressure: Gm=Gm∘+RTln⁡fp∘G_m = G_m^{\circ} + RT\ln\dfrac{f}{p^{\circ}}. 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 (∂G∂T)p=−S\left(\dfrac{\partial G}{\partial T}\right)_p = -S with G = H − TS gives

[∂∂T(GT)]p=−HT2,[∂∂T(ΔGT)]p=−ΔHT2\left[\frac{\partial}{\partial T}\left(\frac{G}{T}\right)\right]_p = -\frac{H}{T^2}, \qquad \left[\frac{\partial}{\partial T}\left(\frac{\Delta G}{T}\right)\right]_p = -\frac{\Delta H}{T^2}

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 ΔS=−(∂ΔG∂T)p=−b−2cT\Delta S = -\left(\dfrac{\partial \Delta G}{\partial T}\right)_p = -b - 2cT and ΔH=ΔG+TΔS=a−cT2\Delta H = \Delta G + T\Delta S = a - cT^2. 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).

  1. Write dU = T dS − p dV; divide by dV at constant T.
  2. Derive the Maxwell relation (∂S∂V)T=(∂p∂T)V\left(\dfrac{\partial S}{\partial V}\right)_T = \left(\dfrac{\partial p}{\partial T}\right)_V from dA = −S dT − p dV.
  3. Substitute to get π_T; show π_T = 0 for an ideal gas.
  4. For a van der Waals gas, (∂p∂T)V=RVm−b\left(\dfrac{\partial p}{\partial T}\right)_V = \dfrac{R}{V_m - b}, so πT=aVm2\pi_T = \dfrac{a}{V_m^2}.
  5. 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: (∂S∂V)T=(∂p∂T)V\left(\dfrac{\partial S}{\partial V}\right)_T = \left(\dfrac{\partial p}{\partial T}\right)_V and (∂S∂p)T=−(∂V∂T)p\left(\dfrac{\partial S}{\partial p}\right)_T = -\left(\dfrac{\partial V}{\partial T}\right)_p.
  • πT=T(∂p∂T)V−p\pi_T = T\left(\dfrac{\partial p}{\partial T}\right)_V - p: 0 for ideal gas, aVm2\dfrac{a}{V_m^2} for van der Waals.
  • (∂G∂T)p=−S\left(\dfrac{\partial G}{\partial T}\right)_p = -S, (∂G∂p)T=V\left(\dfrac{\partial G}{\partial p}\right)_T = V; lowest G phase is stable.
  • Gibbs-Helmholtz: [∂∂T(ΔGT)]p=−ΔHT2\left[\dfrac{\partial}{\partial T}\left(\dfrac{\Delta G}{T}\right)\right]_p = -\dfrac{\Delta H}{T^2}; fugacity f < p when attraction dominates.

Mains answer practice

Write your answer first, then open the points a good answer should cover.

  1. Define Helmholtz and Gibbs energies. Show that −ΔG at constant T and p equals the maximum non-expansion work, and state the spontaneity criteria based on A and G.

    Show answer points
    • A = U − TS; G = H − TS
    • dG = δw_rev,non-exp at constant T, p
    • −ΔG = maximum useful work, e.g. ΔG = −nFE
    • dA < 0 (T, V) and dG < 0 (T, p); zero at equilibrium
  2. Calculate ΔA for the reversible isothermal compression of 1 mol of ideal gas from 100.0 L to 22.4 L at 298 K. Why does a tyre get hot when air is pumped in, and can it be inflated without a rise in temperature?

    Show answer points
    • dA = −p dV at constant T
    • ΔA = RT ln(100/22.4) = +3.71 kJ
    • Fast pumping is nearly adiabatic: work raises U and T
    • Slow pumping with heat loss to surroundings keeps T nearly constant
  3. Using the appropriate fundamental equation, derive the Maxwell relation (∂S/∂p)_T = −(∂V/∂T)_p and evaluate it for an ideal gas.

    Show answer points
    • dG = −S dT + V dp
    • (∂G/∂T)_p = −S, (∂G/∂p)_T = V
    • Equal mixed derivatives give the relation
    • Ideal gas: (∂S/∂p)_T = −nR/p
  4. For a rubber band (∂T/∂l)_S = −(T/C)(∂S/∂l)_T. Explain what happens to its temperature on rapid stretching and to its length when it is heated under a fixed load.

    Show answer points
    • Stretching aligns chains: (∂S/∂l)_T < 0
    • So (∂T/∂l)_S > 0: adiabatic stretch warms the band
    • Tension mainly entropic, grows with T
    • Heated under fixed load the band contracts (unlike a metal)
  5. Derive the thermodynamic equation of state (∂U/∂V)_T = T(∂p/∂T)_V − p. Evaluate the internal pressure for an ideal gas and for a van der Waals gas, and interpret.

    Show answer points
    • dU = T dS − p dV; divide by dV at constant T
    • Maxwell: (∂S/∂V)_T = (∂p/∂T)_V
    • Ideal gas: π_T = 0
    • vdW: (∂p/∂T)_V = R/(V_m − b), π_T = a/V_m²: attraction only
  6. From the Gibbs equation for a closed system, deduce how G varies with T and p, state the implications, sketch G against T for the solid, liquid and gas phases of a substance, and explain how attractive and repulsive interactions change the molar Gibbs energy of a gas.

    Show answer points
    • dG = −S dT + V dp: (∂G/∂T)_p = −S, (∂G/∂p)_T = V
    • G falls with T (gas fastest), rises with p (gas most)
    • G-T sketch: slopes −S; lowest line stable; crossings at T_m, T_b
    • Attraction: f < p, G_m lower; repulsion: f > p, G_m higher
  7. For an electrochemical reaction ΔG = a + bT + cT² (J mol⁻¹). Give the units of a, b and c, and derive ΔS and ΔH as functions of T. State the Gibbs-Helmholtz equation used.

    Show answer points
    • a: J mol⁻¹; b: J K⁻¹ mol⁻¹; c: J K⁻² mol⁻¹
    • ΔS = −(∂ΔG/∂T)_p = −b − 2cT
    • ΔH = ΔG + TΔS = a − cT²
    • Gibbs-Helmholtz: [∂(ΔG/T)/∂T]_p = −ΔH/T²
  8. What is fugacity? How is the molar Gibbs energy of a real gas written in terms of it, and when is f less than p?

    Show answer points
    • Effective pressure that keeps the ideal form of G
    • G_m = G°_m + RT ln(f/p°)
    • f < p when attractions dominate (moderate p)
    • f > p when repulsions dominate (high p); f → p as p → 0

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

More in this module: Thermodynamics

Official sources

Facts in this chapter were checked against these official sources.

  1. IGNOU M.Sc. MCH-013 General Physical Chemistry, Block 1, Unit 1: Gibbs and Helmholtz functions
  2. LibreTexts Chemistry, Physical and Theoretical Chemistry: internal pressure, the thermodynamic equation of state and fugacity