Chem Math· Math-for-Chemists Hub
Atlas Chapter 4: Limits & Differentiation Interactive lesson

Partial Derivatives

Changing one variable at a time

Thermo / KineticsQuantum
Detail level

Varying one thing at a time

The calculus of thermodynamic surfaces

When a quantity depends on several variables, a partial derivative asks how it changes with one of them while the rest are held fixed. The curly replaces the straight to signal this, and the subscript names what is held constant:

Computing a partial derivative is easy: treat every other variable as a plain number and differentiate as usual. For the ideal gas , holding and constant and differentiating with respect to just means acts as a constant: .

The real power comes from combining partial derivatives. A total differential says how a function changes when all its variables change together:

Because the order of mixed partial derivatives doesn't matter (Schwarz's theorem), setting generates the Maxwell relations — identities that connect measurable quantities to derivatives of thermodynamic potentials.

Free energy falls with temperature; the faster the fall, the higher the entropy.
Free energy rises with pressure; the steeper the rise, the larger the molar volume.
The internal pressure — zero for an ideal gas, positive for a real gas (molecules attract).
Total differential
Thermodynamics runs on these
Free energy, enthalpy and entropy all depend on several variables, so thermodynamics is written in partial derivatives: , , and the Maxwell relations that connect them. Open the slice explorer.

The systematic framework for Maxwell relations comes from the four fundamental thermodynamic potentials and their exact differentials. For an exact differential , Euler's reciprocity (the Schwarz theorem) states . This is the exactness test — a quick way to verify whether a differential is exact, and to extract Maxwell relations without memorising them. The four potentials give four Maxwell relations:

An important partial derivative in calorimetry is , known as the isothermal pressure coefficient of enthalpy. From the fundamental relation , differentiating with respect to at constant and using the Maxwell relation :

For an ideal gas this is zero (enthalpy is independent of pressure — a direct consequence of no intermolecular forces); for real gases it is the basis of the Joule–Thomson coefficient.

Euler reciprocity (exactness test)
For : exact iff .
. Zero for ideal gas; negative for most real gases below the inversion temperature (Joule–Thomson cooling).
Total differential
— mixes thermal expansion and compressibility.
Cross-partials equal
(Schwarz theorem) — the foundation of every Maxwell relation.
Common pitfalls
  • Forgetting which variable is held constant. is ambiguous without specifying what is held fixed. Always write the subscript: (the second is identically zero).
  • Treating like in a chain rule. The chain rule works for functions of one variable, but for a function of two variables you must include all partial contributions: .
  • Sign errors in Maxwell relations. The sign depends on the potential. From the relation carries a minus sign: . From the relation also carries a minus: — check the sign from the fundamental differential each time.
  • Assuming that for all gases. This is true only for ideal gases. For real (van der Waals) gases the internal pressure is positive and non-negligible at high densities.

Partial-slice explorer

Freeze one variable and slide the other — the tangent line gives the partial derivative at each point.

Ideal gas p = RT/V. Vary:
1234567805101520253035V / Lp / atm
held T300 K
evaluate at V4.0 L
p at this point6.15 atm
partial slope-1.5386
Freezing one variable turns the 3-D surface into a single curve — and the partial derivative is just the ordinary slope of that slice. At constant T, p falls steeply as V grows (slope −RT/V²).
Worked example 1Evaluating (∂p/∂V)_T for an ideal gas

1.00 mol of an ideal gas is in a 4.00 L container at 300 K. Evaluate the partial derivative at these conditions ().

Worked example 2Fundamental thermodynamic relation: (∂G/∂T)_p = −S

The molar Gibbs free energy of a substance is . By differentiating with respect to at constant , and using the Gibbs–Helmholtz relation , show that .

Worked examples

Partial derivatives across thermodynamics, kinetics and molecular properties.

Worked example 3Total differential of the ideal gas pressure

Write the total differential of in terms of and (holding constant). Use it to estimate the change in pressure when temperature increases by 5 K and volume increases by 0.20 L, starting from , , .

Worked example 4Internal pressure of a van der Waals gas

Show that for a van der Waals gas , the internal pressure . Use the thermodynamic identity .

Worked example 5A Maxwell relation: entropy and volume

Starting from (the Helmholtz free energy), derive the Maxwell relation .

Worked example 6Euler reciprocity / exactness test for a thermodynamic differential

Test whether the differential is exact (i.e. whether is a state function). Use the Euler reciprocity condition applied to the and terms.

Worked example 7(∂H/∂p)_T for an ideal gas and a real gas

Using the relation (derived from ), evaluate this partial derivative for (a) an ideal gas and (b) a van der Waals gas at large molar volume.

ChallengeDerive (∂S/∂V)_T = (∂p/∂T)_V and evaluate for an ideal gas

Starting from the Helmholtz free energy with exact differential :

(a) Derive the Maxwell relation .

(b) Evaluate both sides for 1 mol of ideal gas at , and confirm they are equal.

(c) State what this Maxwell relation means physically (which quantity it allows you to measure indirectly).

Check yourself

Four quick questions on partial derivatives and thermodynamic relations.

Question 1 of 4 · Score 0

A partial derivative ∂f/∂x measures how f changes as you vary x while:

Choose an answer.