Maxwell relations
Template:Short description Template:For Template:Thermodynamics
The Maxwell relations in thermodynamics can be derived from the symmetry of second derivatives and the definitions of the thermodynamic potentials,[1]Template:Reference page or from Jacobian determinants.[2][3]Template:Reference page The most common Maxwell relations involve the potential functions (the total internal energy), (enthalpy), (Helmholtz free energy), and (Gibbs free energy), and the functions of state (pressure), (absolute temperature), (volume), and (entropy).[4]Template:Reference page
They are named for the physicist James Clerk Maxwell, who first presented them in his text Theory of Heat (1872).[5] Maxwell's relations are useful in problem-solving quantities that are difficult to measure to those that are easier to work with.[3]Template:Reference page Numerous mnemonic devices exist for remembering them,[4]Template:Reference page notably, the thermodynamic square.[6]Template:Reference page
Equations
The structure of Maxwell relations is a statement of equality among the second derivatives for continuous functions. It follows directly from the fact that the order of differentiation of an analytic function of two variables is irrelevant (Schwarz theorem). In the case of Maxwell relations the function considered is a thermodynamic potential and and are two different natural variables for that potential,
where the partial derivatives are taken with all other natural variables held constant. For every thermodynamic potential there are possible Maxwell relations where is the number of natural variables for that potential.
The four most common Maxwell relations

The four most common Maxwell relations are the equalities of the second derivatives of each of the four thermodynamic potentials, with respect to their thermal natural variable (temperature , or entropy Template:Nowrap and their mechanical natural variable (pressure , or volume Template:Nowrap
where the potentials as functions of their natural thermal and mechanical variables are the internal energy , enthalpy , Helmholtz free energy , and Gibbs free energy . The thermodynamic square can be used as a mnemonic to recall and derive these relations. The usefulness of these relations lies in their quantifying entropy changes, which are not directly measurable, in terms of measurable quantities like temperature, volume, and pressure.
Each equation can be re-expressed using the reciprocal relation
Derivations
First derivation
For a given set of four real variables , restricted to move on a 2-dimensional surface in . Knowing two of them enables the remaining two to be determined. In particular, one may take any two variables as the independent variables, and let the other two be the dependent variables, then take all these partial derivatives.[7]
This derivation exploits the reciprocal relation
and the cyclical relation
There are four real variables , restricted on the 2-dimensional surface of possible thermodynamic states. This allows us to use the previous two propositions.
It suffices to prove the first of the four relations, as the other three can be obtained by transforming the first relation using the previous two propositions. Pick as the independent variables, and as the dependent variable. Start with the thermodynamic identity .
Now, since the surface is , that is,which yields the result.
Derivation in terms of Jacobians
This derivation is as follows.[2] Since , for any cycle,Taking the cycle infinitesimal yields . That is, the map preserves area. Maxwell's relations therefore state in a cyclic process, that the work done by the system (given by the area of the closed cycle in the -plane) must be equal to the heat absorbed (the area of the closed cycle in the -plane).[2] By the chain rule for Jacobians, for any coordinate transformation ,Now setting to various values gives us the four Maxwell relations. For example, setting gives
Extended derivations
Maxwell relations are based on simple partial differentiation rules, in particular the total differential of a function and the symmetry of evaluating second order partial derivatives. Template:Math proof Template:Math proof
General Maxwell relationships
The above are not the only Maxwell relationships. When other work terms involving other natural variables besides the volume work are considered or when the number of particles is included as a natural variable, other Maxwell relations become apparent. For example, if we have a single-component gas, then the number of particles N is also a natural variable of the above four thermodynamic potentials. The Maxwell relationship for the enthalpy with respect to pressure and particle number would then be:
where Template:Mvar is the chemical potential. In addition, there are other thermodynamic potentials besides the four that are commonly used, and each of these potentials will yield a set of Maxwell relations. For example, the grand potential yields:[8]