Search

Search papers and lessons

Helmholtz Free Energy

Level 3 · 11 min read

The Helmholtz free energy F = U - TS is the quantity a system at fixed temperature and volume settles to minimise, and it equals -k_B T ln Z, so it is read straight off the partition function.

On this page

  • Colour = topic mix
  • Thermal physics
  • Discrete math
  • Probability
  • Information theory
  • Sign in to see your progress

TL;DR

A system held at a fixed temperature TT and volume VV does not simply sit at its lowest energy. It trades energy against disorder. The Helmholtz free energy F=U−TSF = U - TS combines the two: UU is the internal energy and SS the entropy. At equilibrium with a heat bath, FF is as small as it can be.

It is also computed directly from the partition function by F=−kBTln⁡ZF = -k_B T \ln Z, so once you can count states you have the free energy.

Where you'll see it: deciding whether a chemical reaction or a phase change happens at a given temperature, predicting how a polymer or a gas responds to being squeezed at fixed temperature, and computing magnetisation from how a free energy depends on a field.

Intuition

Energy alone does not decide what a system does when it is warm. Picture a box of gas molecules. Bunching them in one corner and spreading them through the box cost about the same energy, yet the gas spreads out because there are vastly more ways to arrange molecules across the whole box than in one corner. The spread-out arrangement has more entropy, and at a finite temperature that counts for something.

The Helmholtz free energy is the bookkeeping that lets you see both effects in one number. The term UU is the cost of the energy in the arrangement. The term −TS-TS is the bonus from having many arrangements, scaled by temperature. When the temperature is low, TSTS is small and the system chooses low UU. When the temperature is high, TSTS dominates and the system chooses high entropy. Equilibrium is the point where the balance is best, and that point is the minimum of FF.

The plot below shows the idea for a simple spin that has two energy levels. The dashed line is the ground-state energy alone. The free energy always lies below it, because the entropy of having two accessible states contributes −TS-TS, and the two curves meet only at low temperature (large xx), where the excited state is almost never occupied.

00.511.522.533.54−4−3−2−10field strength over temperature, mu B / k_B Tfree energy per spin, in units of k_B T
  • F / (N k_B T), two-level spin
  • ground-state energy only
At large field the free energy tracks the ground-state energy. At small field the entropy of the two states pulls the curve further below it (to $-\ln 2$ at zero field). The marker at x = 1 gives about -1.127.

The math

Definition

Definition: Helmholtz free energy

For a system with internal energy UU, temperature TT and entropy SS,

F=U−TS.F = U - TS.

Here UU is the average energy of the system, SS is its entropy, and TT is the absolute temperature in kelvin.

The units are energy. Because TSTS is temperature times entropy, and entropy in joules per kelvin times kelvin gives joules, FF is an energy like UU. It is called "free" because the part U−F=TSU - F = TS is the energy that cannot be turned into work at fixed temperature, so FF is the energy that is free to be used.

Minimum at equilibrium

For a system in contact with a heat bath at fixed TT and VV, the second law says the total entropy of the bath plus system never decreases. Working through the bookkeeping, a spontaneous change of the system alone satisfies dF≤0dF \le 0. At equilibrium FF has reached its minimum, and no further change lowers it. This is the reason FF is the natural quantity for constant-temperature problems.

Free energy from the partition function

Take a canonical ensemble, where the probability of state ii is pi=e−βEi/Zp_i = e^{-\beta E_i}/Z with β=1/(kBT)\beta = 1/(k_B T) and partition function Z=∑ie−βEiZ = \sum_i e^{-\beta E_i} (see Canonical Ensemble). Then the internal energy is the average of the state energies, and the entropy is the Gibbs form:

U=∑ipiEi,S=−kB∑ipiln⁡pi.U = \sum_i p_i E_i, \qquad S = -k_B \sum_i p_i \ln p_i.

Take the logarithm of pi=e−βEi/Zp_i = e^{-\beta E_i}/Z, so ln⁡pi=−βEi−ln⁡Z\ln p_i = -\beta E_i - \ln Z. Multiply by pip_i and sum over the states. Since ∑ipi=1\sum_i p_i = 1, this gives ∑ipiln⁡pi=−βU−ln⁡Z\sum_i p_i \ln p_i = -\beta U - \ln Z. Substituting into the entropy,

TS=−kBT∑ipiln⁡pi=−kBT(−βU−ln⁡Z)=U+kBTln⁡Z.TS = -k_B T \sum_i p_i \ln p_i = -k_B T\bigl(-\beta U - \ln Z\bigr) = U + k_B T \ln Z.

Then

F=U−TS=U−(U+kBTln⁡Z)=−kBTln⁡Z.F = U - TS = U - \bigl(U + k_B T \ln Z\bigr) = -k_B T \ln Z.

So the free energy is minus kBTk_B T times the logarithm of the partition function. This is the most useful form in practice. It means that if you can write ZZ for a system, the free energy, and from it everything else, follows.

Other thermodynamic quantities

Because FF depends on TT and VV, its change is dF=−S dT−P dVdF = -S\,dT - P\,dV, where PP is pressure. This gives two results at fixed volume:

S=−(∂F∂T)V,U=F+TS=F−T(∂F∂T)V.S = -\left(\frac{\partial F}{\partial T}\right)_V, \qquad U = F + TS = F - T\left(\frac{\partial F}{\partial T}\right)_V.

With F=−kBTln⁡ZF = -k_B T \ln Z these become familiar expressions in ZZ, and you can check them by differentiating directly. For example, the pressure at fixed temperature is P=−(∂F/∂V)TP = -\left(\partial F/\partial V\right)_T.

Magnetisation

Add a magnetic field BB to a system whose states have energies that depend on BB. The magnetisation is M=−(∂F/∂B)TM = -\left(\partial F/\partial B\right)_T. This is the route by which a free energy gives a measurable property, and it is why the partition function is so useful: a derivative of ln⁡Z\ln Z with respect to field gives the response of the material.

Worked examples

Example
Two states, by hand

Take a system with two states: a ground state with energy 00 and an excited state with energy ε\varepsilon. Choose ε\varepsilon so that e−ε/kBT=14e^{-\varepsilon/k_B T} = \tfrac{1}{4}, that is ε=kBTln⁡4≈1.386 kBT\varepsilon = k_B T \ln 4 \approx 1.386\, k_B T. Work in units where kBT=1k_B T = 1 so that numbers stay simple.

  1. Partition function: Z=e0+e−ε=1+14=1.25Z = e^{0} + e^{-\varepsilon} = 1 + \tfrac{1}{4} = 1.25.
  2. Free energy: F=−kBTln⁡Z=−ln⁡1.25=−0.2231F = -k_B T \ln Z = -\ln 1.25 = -0.2231 (in units of kBTk_B T).
  3. Probabilities: p0=1/1.25=0.8p_0 = 1/1.25 = 0.8 and p1=0.25/1.25=0.2p_1 = 0.25/1.25 = 0.2.
  4. Internal energy: U=p1ε=0.2×1.386=0.2773U = p_1 \varepsilon = 0.2 \times 1.386 = 0.2773.
  5. Entropy from S=(U−F)/TS = (U - F)/T: S=0.2773+0.2231=0.5004S = 0.2773 + 0.2231 = 0.5004 (in units of kBk_B).
  6. Check with the Gibbs form: S/kB=−(0.8ln⁡0.8+0.2ln⁡0.2)=0.1785+0.3219=0.5004S/k_B = -(0.8 \ln 0.8 + 0.2 \ln 0.2) = 0.1785 + 0.3219 = 0.5004. The two routes agree.

Interpretation: at this temperature the system is mostly in its ground state, and the entropy of the 80-20 split is about half of kBk_B. The free energy is negative, and it is lower than the energy of the ground state would be if the entropy were ignored.

Example
A realistic case: a paramagnet

Take NN independent spins, each with energy −μB-\mu B (spin up) or +μB+\mu B (spin down) in a field BB. This is the textbook model of a paramagnet, a material whose atoms are small magnets.

  1. Partition function for one spin: z=eμB/kBT+e−μB/kBT=2cosh⁡(μB/kBT)z = e^{\mu B/k_B T} + e^{-\mu B/k_B T} = 2\cosh(\mu B / k_B T).
  2. For NN independent spins the partition function is Z=zNZ = z^{N}, so F=−NkBTln⁡[2cosh⁡(μB/kBT)]F = -N k_B T \ln\bigl[2\cosh(\mu B/k_B T)\bigr].
  3. Take the case μB=kBT\mu B = k_B T. Then F/N=−kBTln⁡(2cosh⁡1)F/N = -k_B T \ln(2\cosh 1). Here cosh⁡1=1.5431\cosh 1 = 1.5431, so 2cosh⁡1=3.08622\cosh 1 = 3.0862 and ln⁡3.0862=1.1269\ln 3.0862 = 1.1269. The free energy per spin is −1.127 kBT-1.127\, k_B T.
  4. Magnetisation: M=−(∂F/∂B)T=Nμtanh⁡(μB/kBT)M = -(\partial F/\partial B)_T = N\mu \tanh(\mu B/k_B T). At μB=kBT\mu B = k_B T this is Nμtanh⁡1=0.7616 NμN\mu \tanh 1 = 0.7616\, N\mu.
  5. Check: the ratio of up to down populations is e2μB/kBT=e2=7.39e^{2\mu B/k_B T} = e^{2} = 7.39, so the up fraction is 7.39/8.39=0.8817.39/8.39 = 0.881. The magnetisation per spin is (0.881−0.119)μ=0.762μ(0.881 - 0.119)\mu = 0.762\mu, which agrees with the formula.

Interpretation: the magnetisation is a derivative of the free energy, so measuring how the magnet responds to a field tells you about the states of the atoms. At strong fields the spins align and the magnetisation saturates at NμN\mu. At weak fields it grows roughly linearly, which is the Curie law.

Tradeoffs and failure modes

Helmholtz free energy is the right potential only for its own conditions. Choose the wrong one and the answer is misleading.

SituationWhat goes wrongBetter choice
Fixed temperature and pressure, as in most chemistry in an open beakerFF assumes fixed volume, so volume changes do work that FF does not trackUse the Gibbs free energy G=F+PVG = F + PV (see Gibbs Free Energy)
Fixed energy and volume, as in an isolated systemFF requires a heat bath, which the isolated system does not haveUse the entropy SS directly, or the microcanonical ensemble
A system that is not in equilibriumThe minimum principle holds only at equilibrium, so FF does not describe a system still relaxingTrack the relaxation with a kinetic model, or use a local free energy for slowly varying states
Interacting particles with many coupled statesZZ is hard to evaluate exactly, so FF must be approximatedUse mean-field theory, series expansions or simulation

A common mistake is to read FF as the energy available for work in every case. It is the work available at fixed temperature and volume, and it is misleading when the volume or pressure is not fixed. Another mistake is to forget that FF is an extensive quantity: ln⁡Z\ln Z of two independent systems adds, so their free energies add.

History

The idea goes back to the work of Josiah Willard Gibbs in the 1870s, who wrote the conditions for equilibrium in terms of entropy and energy. Gibbs also introduced the canonical ensemble, in his 1902 book on statistical mechanics, which made the partition-function route to FF routine.

Hermann von Helmholtz introduced the free-energy function in the early 1880s, in work on the thermodynamics of chemical processes. He wanted a potential that tells you which changes can happen at constant temperature, and he showed that the work a system can do at fixed temperature is bounded by the change in this quantity. The name stuck, though in some textbooks the function is still called the Helmholtz energy.

Ludwig Boltzmann had shown in the 1870s and 1880s that entropy measures the number of microscopic arrangements, and that linked thermodynamics to counting states. The step from counting to F=−kBTln⁡ZF = -k_B T \ln Z was made explicit in the statistical mechanics developed in the decades that followed. It caught on because it turned a thermodynamic bookkeeping quantity into something you could compute from a model.

Check yourself

QuestionWhy does the free energy F = U - TS favour a higher-entropy state when the temperature is high, even if that state has higher energy?Show answer

At high TT the product TSTS is large, so a large entropy lowers FF even when UU is larger. The quantity being minimised is FF, not UU. The entropy term carries a factor of TT, so as TT grows the entropy term outweighs the energy cost of spreading the system into more states.

QuestionA two-level system has energies 0 and ε, with e^{-ε/k_B T} = 1/3. Compute the free energy in units of k_B T.Show answer

The partition function is Z=1+1/3=4/3Z = 1 + 1/3 = 4/3. Then F=−kBTln⁡(4/3)=−0.2877 kBTF = -k_B T \ln(4/3) = -0.2877\, k_B T, since ln⁡(4/3)=0.2877\ln(4/3) = 0.2877.

QuestionCompute the magnetisation per spin of the paramagnet at μB = 0.5 k_B T, in units of μ, to two decimal places.Show answer

M/(Nμ)=tanh⁡(μB/kBT)=tanh⁡(0.5)=0.4621M/(N\mu) = \tanh(\mu B / k_B T) = \tanh(0.5) = 0.4621, so the magnetisation is about 0.46 μ0.46\, \mu per spin. This follows from M=−∂F/∂B=Nμtanh⁡(μB/kBT)M = -\partial F/\partial B = N\mu\tanh(\mu B/k_B T).

QuestionAn applied scenario: a chemist wants to know which of two reactions is favoured in an open flask at fixed temperature and pressure. Why would the Helmholtz free energy give the wrong answer, and what should she use?Show answer

The flask is at fixed pressure, so the system can expand and do work on its surroundings. FF is defined at fixed volume and does not account for the PVPV work. The chemist should use the Gibbs free energy G=F+PVG = F + PV, whose minimum at fixed TT and PP tells her which reaction proceeds. For a reaction whose volume change is small, the two give similar answers, but in general they differ.

QuestionWhy is it true that the free energy of two independent systems is the sum of their individual free energies?Show answer

For independent systems the partition function of the combined system is the product of the two partition functions, Z12=Z1Z2Z_{12} = Z_1 Z_2, because every pair of states is allowed. Taking the logarithm turns the product into a sum, so ln⁡Z12=ln⁡Z1+ln⁡Z2\ln Z_{12} = \ln Z_1 + \ln Z_2. Multiplying by −kBT-k_B T gives F12=F1+F2F_{12} = F_1 + F_2. This is what it means for FF to be extensive.

Sources