Other Thermodynamic Functions from the Partition Function
A cylinder of gas pushes on a piston with a pressure you can measure on a gauge. That single number, , is hiding inside the molecular partition function all along. Once you know how to extract internal energy and entropy from , every other thermodynamic function falls out by pure algebra, no new physics required. This matters because chemists rarely want or alone. Reaction spontaneity needs Gibbs energy. Compressibility needs pressure as a function of volume. Bomb versus flow calorimetry needs the difference between and . Statistical thermodynamics only earns its keep as a working tool once it can deliver all four classical state functions from one partition function. This article builds , , , and systematically from . You will see the master equation derived. Then each remaining function follows from a derivative of . Two fully worked examples show the machinery on a real gas. The article closes by pointing toward equilibrium constants, the next payoff of this framework.
- The Helmholtz energy is the hub: , derived directly from and .
- Pressure follows from by a volume derivative: .
- Enthalpy combines with the term, giving a clean partition-function expression for ideal gases.
- Gibbs energy becomes remarkably simple for an ideal gas: it depends only on through .
- All four functions require nothing beyond and its first derivatives with respect to and .
- Key idea: every classical thermodynamic function is a derivative of , so one partition function generates the entire state-function family.
Because is a complete thermodynamic potential in and , its total differential supplies and directly as derivatives of , and simple algebraic combinations then generate , , and without any further statistical input.
The physical picture
Earlier development of this framework established two results. The internal energy is
and the entropy is
Both came from treating as an encoding of how molecular states populate with temperature. Now notice something structural: and combine to give exactly , apart from a sign and the zero-point term. That combination is not a coincidence — it is the Helmholtz energy, and it is the single quantity from which everything else in classical thermodynamics can be regenerated by differentiation. Think of as a thermodynamic "master key." In classical thermodynamics, is a complete potential: knowing as a function of and lets you compute , , , , and by taking derivatives and forming simple combinations, with no additional experimental input needed. Statistical thermodynamics reaches the same destination from a different starting point — molecular energy levels packaged into — but the destination, the web of functions in the figure below, is identical.
The second useful picture is quantitative rather than schematic: how pressure, built from , reduces exactly to for an ideal gas because depends on only through the translational factor .
The core relations
where: is the zero-point Helmholtz energy, and is the canonical partition function.
where: the derivative is taken at constant temperature and particle number.
where: for an ideal gas , so .
where: for indistinguishable ideal-gas molecules this collapses to ... the clean form is derived below.
where: is the molecular partition function, the number of molecules, .
Goal. Starting only from the established expressions for and in terms of , derive , then obtain , , and as consequences, specializing at the end to an ideal gas of independent, indistinguishable molecules.
Step 1: Assemble the Helmholtz energy. The Helmholtz energy is defined thermodynamically as . Insert the statistical expressions,
The terms cancel exactly, leaving
This is remarkable: the entire temperature dependence of has canceled, and depends on through a single logarithm. No derivative of is needed to get itself — only for the functions built from it.
Step 2: Extract pressure from the volume dependence of . Classical thermodynamics gives the exact differential for a closed system, so
Substitute , noting is volume-independent for a gas whose zero-point energy does not shift with container size:
This is now a completely general recipe: given any , differentiate its logarithm with respect to and multiply by .
Step 3: Specialize to an ideal gas to see become familiar. For independent, indistinguishable molecules, , so
Only the molecular partition function depends on volume, and it does so solely through the translational factor,
so exactly, independent of the rotational, vibrational, and electronic factors (which carry no -dependence). Therefore
the ideal gas law, obtained without ever assuming it.
Step 4: Build enthalpy from and . Enthalpy is defined as with no statistical content of its own — it is a bookkeeping combination. Using the ideal-gas pressure from Step 3,
Step 5: Build Gibbs energy from and . Similarly , so using Step 1 and Step 3,
Substitute and use Stirling's approximation, :
The and terms cancel exactly — a small algebraic miracle that only happens for , not for , and it is why is the natural function to use for indistinguishable-particle gases in equilibrium calculations.
Worked examples
Example 1 — Foundational: Gibbs energy of argon gas at 298 K. Compute for 1.00 mol of argon at 298 K confined to 24.79 dm³ (1 bar standard molar volume), using only translational and electronic contributions (argon is monatomic, so no rotational or vibrational factors, and the ground electronic state is non-degenerate). Step 1: molecular mass and thermal wavelength.
Numerically, with J s, J K⁻¹, K:
Step 2: translational partition function.
Step 3: .
Step 4: Gibbs energy.
Sanity check: confirms the classical (Maxwell–Boltzmann, non-degenerate) limit is valid, and the negative sign correctly reflects that a gas expanding to fill accessible translational states lowers relative to the hypothetical crystal-like reference. The magnitude, tens of kJ/mol, matches tabulated statistical entropies of monatomic gases (argon's standard molar entropy is about 154.8 J K⁻¹mol⁻¹, and kJ/mol is the right order of magnitude once kJ/mol is added back).
Example 2 — Applied: pressure and enthalpy correction for a diatomic gas. For 2.00 mol of CO gas at 350 K in a 10.0 dm³ vessel, verify that the partition-function route reproduces the ideal gas pressure, and compute using the rotational contribution to . Take the rotational constant cm⁻¹ and treat vibration as fully frozen (only the ground state populated, contributing zero to at 350 K, since K for CO). Step 1: pressure from . Since only translation depends on , Step 3 of the derivation gives directly
This matches the ordinary ideal gas law calculation exactly, confirming Step 3 of the derivation for a real (non-monatomic) molecule: rotation and vibration are irrelevant to because they carry no volume dependence. Step 2: translational contribution to .
Step 3: rotational contribution. For a linear molecule with , first find :
Since , the high-temperature (equipartition) limit applies:
Step 4: total internal energy change and enthalpy.
Sanity check: for a linear molecule with translation and rotation fully active but vibration frozen, kinetic theory predicts and , so should equal — matching to four significant figures. The partition-function route and classical equipartition agree exactly in this high-temperature regime, as they must.
Limiting cases & common traps
| Situation | What happens | Why |
|---|---|---|
| (dilute gas, high ) | Maxwell–Boltzmann statistics valid, formula holds | Classical limit of quantum statistics |
| Formula for breaks down | Indistinguishability correction from becomes inadequate; need Fermi–Dirac or Bose–Einstein statistics | |
| ; | Only the ground state is populated | |
| Rigid rotor, harmonic oscillator | , differ only by (ideal gas) | exactly regardless of internal structure |
| Solids/liquids | ; must differentiate the actual | Translational factor no longer separates as |
The chemist behind it
The bridge from molecular partition functions to bulk thermodynamic functions was built by Josiah Willard Gibbs, who invented the ensemble formalism underlying itself, and refined into practical chemical use by Richard Chace Tolman and later systematized in the textbooks of McQuarrie. Gibbs's 1902 treatise Elementary Principles in Statistical Mechanics introduced the canonical ensemble and showed that (in his notation, using the "index of probability") reproduces every classical thermodynamic relation, work that predates the Schrödinger equation and yet remains the operational backbone of every statistical thermodynamics course today.
Origins · 1 minJosiah Willard Gibbs and how this was discovered
Ask the tutor: How does the same condition that validates classical statistics here also guarantee that equilibrium constants built from partition functions match experiment?
Why does the Helmholtz energy simplify so much compared to U or S?
Because , and the statistical formulas for and share an identical term that cancels exactly when you subtract from . What remains is just , with no leftover temperature derivative. This is not a numerical coincidence — it reflects that is the natural potential of the canonical ensemble, the one whose logarithm-of-partition-function form is built into the ensemble's definition from the start, before any derivatives are taken.
Why is Gibbs energy, not Helmholtz energy, used for equilibrium constants?
Chemical reactions are usually run at constant pressure and temperature, the natural variables of , not at constant volume, the natural variables of . The compact formula also isolates the molecular partition function per particle, , which is exactly the quantity that appears when partition functions of reactants and products are compared to build an equilibrium constant, foreshadowed in the next stage of this framework.
Does the pressure formula p = nRT/V hold for all gases, or only ideal ones?
It holds whenever the partition function factorizes as with containing a translational factor proportional to , and no other volume dependence. This is the defining condition of an ideal gas: molecules that do not interact, so their available volume enters only through translational kinetic energy levels. Real gases have intermolecular potentials that make , and hence , depend on in additional ways, producing deviations captured by virial or van der Waals corrections.
What goes wrong if I forget the N! in Q = q^N/N! when computing G?
Omitting leaves an extra in , which via Stirling's approximation is roughly , an enormous spurious term of order times for a mole of gas. It also destroys the exact cancellation that produces the clean result for , replacing a well-behaved intensive-looking expression with a wildly incorrect extensive miscount, sometimes called the Gibbs paradox when entropy is computed instead.