TL;DR
A system held at a fixed temperature and volume does not simply sit at its lowest energy. It trades energy against disorder. The Helmholtz free energy combines the two: is the internal energy and the entropy. At equilibrium with a heat bath, is as small as it can be.
It is also computed directly from the partition function by , 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 is the cost of the energy in the arrangement. The term is the bonus from having many arrangements, scaled by temperature. When the temperature is low, is small and the system chooses low . When the temperature is high, dominates and the system chooses high entropy. Equilibrium is the point where the balance is best, and that point is the minimum of .
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 , and the two curves meet only at low temperature (large ), where the excited state is almost never occupied.
- F / (N k_B T), two-level spin
- ground-state energy only
The math
Definition
For a system with internal energy , temperature and entropy ,
Here is the average energy of the system, is its entropy, and is the absolute temperature in kelvin.
The units are energy. Because is temperature times entropy, and entropy in joules per kelvin times kelvin gives joules, is an energy like . It is called "free" because the part is the energy that cannot be turned into work at fixed temperature, so is the energy that is free to be used.
Minimum at equilibrium
For a system in contact with a heat bath at fixed and , 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 . At equilibrium has reached its minimum, and no further change lowers it. This is the reason is the natural quantity for constant-temperature problems.
Free energy from the partition function
Take a canonical ensemble, where the probability of state is with and partition function (see Canonical Ensemble). Then the internal energy is the average of the state energies, and the entropy is the Gibbs form:
Take the logarithm of , so . Multiply by and sum over the states. Since , this gives . Substituting into the entropy,
Then
So the free energy is minus times the logarithm of the partition function. This is the most useful form in practice. It means that if you can write for a system, the free energy, and from it everything else, follows.
Other thermodynamic quantities
Because depends on and , its change is , where is pressure. This gives two results at fixed volume:
With these become familiar expressions in , and you can check them by differentiating directly. For example, the pressure at fixed temperature is .
Magnetisation
Add a magnetic field to a system whose states have energies that depend on . The magnetisation is . 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 with respect to field gives the response of the material.
Worked examples
Take a system with two states: a ground state with energy and an excited state with energy . Choose so that , that is . Work in units where so that numbers stay simple.
- Partition function: .
- Free energy: (in units of ).
- Probabilities: and .
- Internal energy: .
- Entropy from : (in units of ).
- Check with the Gibbs form: . 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 . The free energy is negative, and it is lower than the energy of the ground state would be if the entropy were ignored.
Take independent spins, each with energy (spin up) or (spin down) in a field . This is the textbook model of a paramagnet, a material whose atoms are small magnets.
- Partition function for one spin: .
- For independent spins the partition function is , so .
- Take the case . Then . Here , so and . The free energy per spin is .
- Magnetisation: . At this is .
- Check: the ratio of up to down populations is , so the up fraction is . The magnetisation per spin is , 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 . 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.
| Situation | What goes wrong | Better choice |
|---|---|---|
| Fixed temperature and pressure, as in most chemistry in an open beaker | assumes fixed volume, so volume changes do work that does not track | Use the Gibbs free energy (see Gibbs Free Energy) |
| Fixed energy and volume, as in an isolated system | requires a heat bath, which the isolated system does not have | Use the entropy directly, or the microcanonical ensemble |
| A system that is not in equilibrium | The minimum principle holds only at equilibrium, so does not describe a system still relaxing | Track the relaxation with a kinetic model, or use a local free energy for slowly varying states |
| Interacting particles with many coupled states | is hard to evaluate exactly, so must be approximated | Use mean-field theory, series expansions or simulation |
A common mistake is to read 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 is an extensive quantity: 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 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 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 the product is large, so a large entropy lowers even when is larger. The quantity being minimised is , not . The entropy term carries a factor of , so as 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 . Then , since .
QuestionCompute the magnetisation per spin of the paramagnet at μB = 0.5 k_B T, in units of μ, to two decimal places.Show answer
, so the magnetisation is about per spin. This follows from .
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. is defined at fixed volume and does not account for the work. The chemist should use the Gibbs free energy , whose minimum at fixed and 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, , because every pair of states is allowed. Taking the logarithm turns the product into a sum, so . Multiplying by gives . This is what it means for to be extensive.