Free Energy and Chemical Potential
Free energies translate the Second Law into criteria that use the variables chemists usually control. Instead of tracking both system and surroundings every time, the Helmholtz energy and Gibbs energy tell us whether a process can happen and how much useful work it can deliver under specified constraints.
The chemical potential is the central quantity that lets thermodynamics handle changing composition. It is the partial molar Gibbs energy and therefore the energetic "price" of adding a small amount of a substance to a mixture at fixed temperature and pressure.
Figure: Gibbs energy minimum as the thermodynamic basis of chemical potential and equilibrium. Image: Wikimedia Commons, Johannes Schneider, CC BY-SA 4.0.
Definitions
The Helmholtz energy is
and the Gibbs energy is
For a closed system with only pressure-volume work, their differentials are
and
For systems with variable composition,
where the chemical potential is
For a pure substance, . For a perfect gas,
For an ideal solution component,
For a real solution, activity replaces mole fraction:
The Gibbs-Duhem equation constrains partial molar quantities:
at constant temperature and pressure.
Key results
At constant temperature and volume,
with equality at equilibrium. The maximum non-expansion work available from a closed system at constant and is
At constant temperature and pressure,
with equality at equilibrium. The maximum non-expansion work available at constant and is
The natural variables of imply Maxwell relations. Starting from , identify
Equality of mixed second derivatives gives
Similarly, from :
The Gibbs energy of a pure substance depends on pressure through molar volume:
For a condensed phase with nearly constant ,
For a perfect gas, integration gives the logarithmic pressure dependence already stated:
The value of free energy is not absolute in most chemical uses; differences are what matter. The Helmholtz energy asks how much work is available from a system held at constant temperature and volume. The Gibbs energy asks the same kind of question for constant temperature and pressure, which is the more common chemical environment. The price paid for using is that pressure-volume work is already accounted for, so the work directly connected with is non-expansion work such as electrical, surface, or mechanical work other than simple expansion.
The origin of the Gibbs criterion is the entropy of the universe. At constant and , heat exchanged with the surroundings is tied to the system enthalpy. Substitution into gives
Thus a negative is not a new law; it is the Second Law rewritten for a common set of constraints. If the constraints change, the correct potential may change. For example, at constant and , replaces .
Chemical potential is powerful because it turns composition change into ordinary calculus. If a small amount of component is added to a mixture at fixed and , the Gibbs energy changes by plus corresponding terms for any other changes. Material equilibrium requires equality of chemical potential for each component across phases. A volatile liquid is in equilibrium with its vapor when the chemical potential of the liquid equals that of the vapor. A solute diffuses because its chemical potential is not uniform, not simply because its concentration is not uniform.
The logarithmic pressure dependence of for a perfect gas has several consequences. Compressing a gas increases its chemical potential, and expansion lowers it. This is why gases tend to flow from high pressure to low pressure: the direction lowers total Gibbs energy. For mixtures, each gas has its own chemical potential governed by partial pressure in the ideal limit. Reaction quotients are built from these chemical potentials, which is why pressure appears in gas equilibrium constants.
Activities preserve the same formal structure when ideality fails. Instead of abandoning
one replaces composition by activity:
This is not cosmetic. Activity is the thermodynamically effective escaping tendency or reacting tendency of a species relative to its standard state. In real gases, fugacity plays the analogous role; in real solutions, activity coefficients correct mole fractions, molalities, or concentrations.
Maxwell relations are more than mathematical curiosities. They let difficult derivatives be replaced by measurable ones. For example,
relates entropy changes with pressure to thermal expansion. Such identities are possible because , , , and are state functions with exact differentials. The equality of mixed partial derivatives is a mathematical expression of thermodynamic consistency.
Partial molar quantities also prevent a common misconception about mixtures. The contribution of one mole of a substance to a mixture is not necessarily its pure molar property. Adding a mole of salt to water can contract the solution; adding a volatile solute can lower solvent chemical potential; adding one component to a binary mixture can force the other component's chemical potential to change through the Gibbs-Duhem equation. The mixture is a coupled thermodynamic object.
Visual
| Thermodynamic potential | Definition | Natural variables | Equilibrium criterion |
|---|---|---|---|
| internal energy | isolated systems | ||
| useful for constant-pressure heat | |||
| decreases at constant | |||
| decreases at constant | |||
| mixture composition | equal at material equilibrium |
Worked example 1: Gibbs energy change for gas compression
Problem. Calculate when of a perfect gas at is compressed isothermally from to .
Method. Use the perfect-gas pressure dependence of molar Gibbs energy:
- Pressure ratio:
- Substitute:
- Convert:
Checked answer. Compression raises chemical potential, so is positive. The logarithmic dependence means a tenfold pressure increase costs about at room temperature.
Worked example 2: Gibbs-Duhem relation in a binary mixture
Problem. A binary liquid mixture at fixed and has and . If a composition change causes , what must be?
Method. Use the binary Gibbs-Duhem equation:
- Rearrange:
- Substitute:
- Calculate:
Checked answer. The chemical potentials cannot vary independently. Because there is three times as much as , a small increase in must be balanced by a larger decrease in .
Code
import numpy as np
R = 8.314462618
T = 298.15
pressures = np.array([0.1, 1.0, 2.0, 5.0, 10.0, 100.0]) # bar
mu_relative = R * T * np.log(pressures / 1.0) / 1000.0 # kJ/mol
for p, dmu in zip(pressures, mu_relative):
print(f"p={p:7.2f} bar mu-mu_standard={dmu:8.3f} kJ/mol")
def gibbs_duhem_binary(nA, nB, dmuA):
return -(nA / nB) * dmuA
print("dmu_B:", gibbs_duhem_binary(3.0, 1.0, 20.0), "J/mol")
Common pitfalls
- Treating as always minimized. The simple criterion requires constant and with appropriate work restrictions.
- Confusing with . Standard values refer to standard states; actual values include composition or pressure terms.
- Forgetting that chemical potential is a partial derivative. It changes with composition even at fixed and .
- Varying one chemical potential in a mixture independently of the others. The Gibbs-Duhem equation prevents that.
- Using mole fraction where activity is required for concentrated or strongly interacting solutions.
A good way to choose the correct free energy is to ask what the surroundings hold fixed. If and are fixed, is natural. If and are fixed, is natural. If and are fixed, is natural. If and are fixed, is natural. Chemical laboratory problems usually use because temperature and pressure are controlled, but electrochemical, surface, and biological systems may require attention to additional work terms.
Chemical potential should also be interpreted locally. Matter flows from high chemical potential to low chemical potential when allowed, just as heat flows from high temperature to low temperature. A concentration gradient contributes to a chemical-potential gradient, but electrical potential, pressure, interactions, and external fields can contribute too. This is why ions in membranes move according to electrochemical potential rather than concentration alone.
In calculations, never put a dimensional quantity directly inside a logarithm. Expressions like are shorthand for . The standard state may be hidden typographically, but it is conceptually present. This matters when comparing tables, deriving equilibrium constants, or switching between bar and pascal.
When a result seems to say that a process with positive "cannot happen," translate it into actual conditions. Positive standard Gibbs energy only says the standard-state comparison favors reactants. Changing activities, coupling to another process, applying electrical work, or removing products can make the actual negative.