Maxwell relations
In-game article clicks load inline without leaving the challenge.
The Maxwell relations in thermodynamics can be derived from the symmetry of second derivatives and the definitions of the thermodynamic potentials, or from Jacobian determinants. The most common Maxwell relations involve the potential functions U {\displaystyle U} (the total internal energy), H {\displaystyle H} (enthalpy), A {\displaystyle A} (Helmholtz free energy), and G {\displaystyle G} (Gibbs free energy), and the functions of state P {\displaystyle P} (pressure), T {\displaystyle T} (absolute temperature), V {\displaystyle V} (volume), and S {\displaystyle S} (entropy).
They are named for the physicist James Clerk Maxwell, who first presented them in his text Theory of Heat (1872). Maxwell's relations are useful in problem-solving quantities that are difficult to measure to those that are easier to work with. Numerous mnemonic devices exist for remembering them, notably, the thermodynamic square.
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 x i {\displaystyle x_{i}} and x j {\displaystyle x_{j}} are two different natural variables for that potential,
∂ ∂ x j ( ∂ Φ ∂ x i ) = ∂ ∂ x i ( ∂ Φ ∂ x j ) {\displaystyle {\frac {\partial }{\partial x_{j}}}\left({\frac {\partial \Phi }{\partial x_{i}}}\right)={\frac {\partial }{\partial x_{i}}}\left({\frac {\partial \Phi }{\partial x_{j}}}\right)}
where the partial derivatives are taken with all other natural variables held constant. For every thermodynamic potential there are 1 2 n ( n − 1 ) {\textstyle {\frac {1}{2}}n(n-1)} possible Maxwell relations where n {\displaystyle n} 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 T {\displaystyle T}, or entropy S {\displaystyle S}) and their mechanical natural variable (pressure P {\displaystyle P}, or volume V {\displaystyle V}):
+ ( ∂ T ∂ V ) S = − ( ∂ P ∂ S ) V = ∂ 2 U ∂ S ∂ V + ( ∂ T ∂ P ) S = + ( ∂ V ∂ S ) P = ∂ 2 H ∂ S ∂ P + ( ∂ S ∂ V ) T = + ( ∂ P ∂ T ) V = − ∂ 2 F ∂ T ∂ V − ( ∂ S ∂ P ) T = + ( ∂ V ∂ T ) P = ∂ 2 G ∂ T ∂ P {\displaystyle {\begin{aligned}+\left({\frac {\partial T}{\partial V}}\right)_{S}&=&-\left({\frac {\partial P}{\partial S}}\right)_{V}&=&{\frac {\partial ^{2}U}{\partial S\partial V}}\\+\left({\frac {\partial T}{\partial P}}\right)_{S}&=&+\left({\frac {\partial V}{\partial S}}\right)_{P}&=&{\frac {\partial ^{2}H}{\partial S\partial P}}\\+\left({\frac {\partial S}{\partial V}}\right)_{T}&=&+\left({\frac {\partial P}{\partial T}}\right)_{V}&=&-{\frac {\partial ^{2}F}{\partial T\partial V}}\\-\left({\frac {\partial S}{\partial P}}\right)_{T}&=&+\left({\frac {\partial V}{\partial T}}\right)_{P}&=&{\frac {\partial ^{2}G}{\partial T\partial P}}\end{aligned}}\,\!}
where the potentials as functions of their natural thermal and mechanical variables are the internal energy U ( S , V ) {\displaystyle U(S,V)}, enthalpy H ( S , P ) {\displaystyle H(S,P)}, Helmholtz free energy F ( T , V ) {\displaystyle F(T,V)}, and Gibbs free energy G ( T , P ) {\displaystyle G(T,P)}. 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( ∂ y ∂ x ) z = 1 / ( ∂ x ∂ y ) z . {\displaystyle \left({\frac {\partial y}{\partial x}}\right)_{z}=1{\biggl /}\left({\frac {\partial x}{\partial y}}\right)_{z}.}
Derivations
First derivation
For a given set of four real variables ( x , y , z , w ) {\displaystyle (x,y,z,w)}, restricted to move on a 2-dimensional C 2 {\displaystyle C^{2}} surface in R 4 {\displaystyle \mathbb {R} ^{4}}. 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.
This derivation exploits the reciprocal relation
( ∂ w ∂ y ) z = ( ∂ w ∂ x ) z ( ∂ x ∂ y ) z , {\displaystyle \left({\frac {\partial w}{\partial y}}\right)_{z}=\left({\frac {\partial w}{\partial x}}\right)_{z}\left({\frac {\partial x}{\partial y}}\right)_{z},}
and the cyclical relation
( ∂ x ∂ y ) z ( ∂ y ∂ z ) x ( ∂ z ∂ x ) y = − 1. {\displaystyle \left({\frac {\partial x}{\partial y}}\right)_{z}\left({\frac {\partial y}{\partial z}}\right)_{x}\left({\frac {\partial z}{\partial x}}\right)_{y}=-1.}
There are four real variables ( T , S , P , V ) {\displaystyle (T,S,P,V)}, 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 V , S {\displaystyle V,S} as the independent variables, and U {\displaystyle U} as the dependent variable. Start with the thermodynamic identity d U = − P d V + T d S {\displaystyle dU=-PdV+TdS}.
Now, ∂ V , S U = ∂ S , V U {\displaystyle \partial _{V,S}U=\partial _{S,V}U} since the surface is C 2 {\displaystyle C^{2}}, that is,[ ∂ ∂ V ( ∂ U ∂ S ) V ] S = [ ∂ ∂ S ( ∂ U ∂ V ) S ] V , {\displaystyle \left[{\frac {\partial }{\partial V}}\left({\frac {\partial U}{\partial S}}\right)_{V}\right]_{S}=\left[{\frac {\partial }{\partial S}}\left({\frac {\partial U}{\partial V}}\right)_{S}\right]_{V},}which yields the result.
Derivation in terms of Jacobians
This derivation is as follows. Since d U = T d S − P d V {\displaystyle dU=TdS-PdV}, for any cycle,0 = ∮ d U = ∮ T d S − ∮ P d V . {\displaystyle 0=\oint dU=\oint TdS-\oint PdV.}Taking the cycle infinitesimal yields ∂ ( P , V ) ∂ ( T , S ) = 1 {\displaystyle {\frac {\partial (P,V)}{\partial (T,S)}}=1}. 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 P V {\displaystyle PV}-plane) must be equal to the heat absorbed (the area of the closed cycle in the T S {\displaystyle TS}-plane). By the chain rule for Jacobians, for any coordinate transformation ( x , y ) {\displaystyle (x,y)},∂ ( P , V ) ∂ ( x , y ) = ∂ ( T , S ) ∂ ( x , y ) . {\displaystyle {\frac {\partial (P,V)}{\partial (x,y)}}={\frac {\partial (T,S)}{\partial (x,y)}}.}Now setting ( x , y ) {\displaystyle (x,y)} to various values gives us the four Maxwell relations. For example, setting ( x , y ) = ( P , S ) {\displaystyle (x,y)=(P,S)} gives ( ∂ T ∂ P ) S = ( ∂ V ∂ S ) P . {\displaystyle \left({\frac {\partial T}{\partial P}}\right)_{S}=\left({\frac {\partial V}{\partial S}}\right)_{P}.}
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.
Derivation of the Maxwell relation can be deduced from the differential forms of the thermodynamic potentials: The differential form of internal energy U is d U = T d S − P d V {\displaystyle dU=T\,dS-P\,dV} This equation resembles total differentials of the form d z = ( ∂ z ∂ x ) y d x + ( ∂ z ∂ y ) x d y {\displaystyle dz=\left({\frac {\partial z}{\partial x}}\right)_{y}\!dx+\left({\frac {\partial z}{\partial y}}\right)_{x}\!dy} It can be shown, for any equation of the form, d z = M d x + N d y {\displaystyle dz=M\,dx+N\,dy} that M = ( ∂ z ∂ x ) y , N = ( ∂ z ∂ y ) x {\displaystyle M=\left({\frac {\partial z}{\partial x}}\right)_{y},\quad N=\left({\frac {\partial z}{\partial y}}\right)_{x}} Consider, the equation d U = T d S − P d V {\displaystyle dU=T\,dS-P\,dV}. We can now immediately see that T = ( ∂ U ∂ S ) V , − P = ( ∂ U ∂ V ) S {\displaystyle T=\left({\frac {\partial U}{\partial S}}\right)_{V},\quad -P=\left({\frac {\partial U}{\partial V}}\right)_{S}} Since we also know that for functions with continuous second derivatives, the mixed partial derivatives are identical (Symmetry of second derivatives), that is, that ∂ ∂ y ( ∂ z ∂ x ) y = ∂ ∂ x ( ∂ z ∂ y ) x = ∂ 2 z ∂ y ∂ x = ∂ 2 z ∂ x ∂ y {\displaystyle {\frac {\partial }{\partial y}}\left({\frac {\partial z}{\partial x}}\right)_{y}={\frac {\partial }{\partial x}}\left({\frac {\partial z}{\partial y}}\right)_{x}={\frac {\partial ^{2}z}{\partial y\partial x}}={\frac {\partial ^{2}z}{\partial x\partial y}}} we therefore can see that ∂ ∂ V ( ∂ U ∂ S ) V = ∂ ∂ S ( ∂ U ∂ V ) S {\displaystyle {\frac {\partial }{\partial V}}\left({\frac {\partial U}{\partial S}}\right)_{V}={\frac {\partial }{\partial S}}\left({\frac {\partial U}{\partial V}}\right)_{S}} and therefore that ( ∂ T ∂ V ) S = − ( ∂ P ∂ S ) V {\displaystyle \left({\frac {\partial T}{\partial V}}\right)_{S}=-\left({\frac {\partial P}{\partial S}}\right)_{V}}
Derivation of Maxwell Relation from Helmholtz Free energy
The differential form of Helmholtz free energy is d F = − S d T − P d V {\displaystyle dF=-S\,dT-P\,dV} − S = ( ∂ F ∂ T ) V , − P = ( ∂ F ∂ V ) T {\displaystyle -S=\left({\frac {\partial F}{\partial T}}\right)_{V},\quad -P=\left({\frac {\partial F}{\partial V}}\right)_{T}} From symmetry of second derivatives ∂ ∂ V ( ∂ F ∂ T ) V = ∂ ∂ T ( ∂ F ∂ V ) T {\displaystyle {\frac {\partial }{\partial V}}\left({\frac {\partial F}{\partial T}}\right)_{V}={\frac {\partial }{\partial T}}\left({\frac {\partial F}{\partial V}}\right)_{T}} and therefore that ( ∂ S ∂ V ) T = ( ∂ P ∂ T ) V {\displaystyle \left({\frac {\partial S}{\partial V}}\right)_{T}=\left({\frac {\partial P}{\partial T}}\right)_{V}} The other two Maxwell relations can be derived from differential form of enthalpy d H = T d S + V d P {\displaystyle dH=T\,dS+V\,dP} and the differential form of Gibbs free energy d G = V d P − S d T {\displaystyle dG=V\,dP-S\,dT} in a similar way. So all Maxwell Relationships above follow from one of the Gibbs equations.
Combined form first and second law of thermodynamics,
| T d S = d U + P d V {\displaystyle T\,dS=dU+P\,dV} |
U, S, and V are state functions. Let,
- U = U ( x , y ) {\displaystyle U=U(x,y)}
- S = S ( x , y ) {\displaystyle S=S(x,y)}
- V = V ( x , y ) {\displaystyle V=V(x,y)}
- d U = ( ∂ U ∂ x ) y d x + ( ∂ U ∂ y ) x d y {\displaystyle dU=\left({\frac {\partial U}{\partial x}}\right)_{y}\!dx+\left({\frac {\partial U}{\partial y}}\right)_{x}\!dy}
- d S = ( ∂ S ∂ x ) y d x + ( ∂ S ∂ y ) x d y {\displaystyle dS=\left({\frac {\partial S}{\partial x}}\right)_{y}\!dx+\left({\frac {\partial S}{\partial y}}\right)_{x}\!dy}
- d V = ( ∂ V ∂ x ) y d x + ( ∂ V ∂ y ) x d y {\displaystyle dV=\left({\frac {\partial V}{\partial x}}\right)_{y}\!dx+\left({\frac {\partial V}{\partial y}}\right)_{x}\!dy}
Substitute them in Eq.1 and one gets, T ( ∂ S ∂ x ) y d x + T ( ∂ S ∂ y ) x d y = ( ∂ U ∂ x ) y d x + ( ∂ U ∂ y ) x d y + P ( ∂ V ∂ x ) y d x + P ( ∂ V ∂ y ) x d y {\displaystyle T\left({\frac {\partial S}{\partial x}}\right)_{y}\!dx+T\left({\frac {\partial S}{\partial y}}\right)_{x}\!dy=\left({\frac {\partial U}{\partial x}}\right)_{y}\!dx+\left({\frac {\partial U}{\partial y}}\right)_{x}\!dy+P\left({\frac {\partial V}{\partial x}}\right)_{y}\!dx+P\left({\frac {\partial V}{\partial y}}\right)_{x}\!dy} And also written as, ( ∂ U ∂ x ) y d x + ( ∂ U ∂ y ) x d y = T ( ∂ S ∂ x ) y d x + T ( ∂ S ∂ y ) x d y − P ( ∂ V ∂ x ) y d x − P ( ∂ V ∂ y ) x d y {\displaystyle \left({\frac {\partial U}{\partial x}}\right)_{y}\!dx+\left({\frac {\partial U}{\partial y}}\right)_{x}\!dy=T\left({\frac {\partial S}{\partial x}}\right)_{y}\!dx+T\left({\frac {\partial S}{\partial y}}\right)_{x}\!dy-P\left({\frac {\partial V}{\partial x}}\right)_{y}\!dx-P\left({\frac {\partial V}{\partial y}}\right)_{x}\!dy} comparing the coefficient of dx and dy, one gets ( ∂ U ∂ x ) y = T ( ∂ S ∂ x ) y − P ( ∂ V ∂ x ) y {\displaystyle \left({\frac {\partial U}{\partial x}}\right)_{y}=T\left({\frac {\partial S}{\partial x}}\right)_{y}-P\left({\frac {\partial V}{\partial x}}\right)_{y}} ( ∂ U ∂ y ) x = T ( ∂ S ∂ y ) x − P ( ∂ V ∂ y ) x {\displaystyle \left({\frac {\partial U}{\partial y}}\right)_{x}=T\left({\frac {\partial S}{\partial y}}\right)_{x}-P\left({\frac {\partial V}{\partial y}}\right)_{x}} Differentiating above equations by y, x respectively
| ( ∂ 2 U ∂ y ∂ x ) = ( ∂ T ∂ y ) x ( ∂ S ∂ x ) y + T ( ∂ 2 S ∂ y ∂ x ) − ( ∂ P ∂ y ) x ( ∂ V ∂ x ) y − P ( ∂ 2 V ∂ y ∂ x ) {\displaystyle \left({\frac {\partial ^{2}U}{\partial y\partial x}}\right)=\left({\frac {\partial T}{\partial y}}\right)_{x}\left({\frac {\partial S}{\partial x}}\right)_{y}+T\left({\frac {\partial ^{2}S}{\partial y\partial x}}\right)-\left({\frac {\partial P}{\partial y}}\right)_{x}\left({\frac {\partial V}{\partial x}}\right)_{y}-P\left({\frac {\partial ^{2}V}{\partial y\partial x}}\right)} |
and
| ( ∂ 2 U ∂ x ∂ y ) = ( ∂ T ∂ x ) y ( ∂ S ∂ y ) x + T ( ∂ 2 S ∂ x ∂ y ) − ( ∂ P ∂ x ) y ( ∂ V ∂ y ) x − P ( ∂ 2 V ∂ x ∂ y ) {\displaystyle \left({\frac {\partial ^{2}U}{\partial x\partial y}}\right)=\left({\frac {\partial T}{\partial x}}\right)_{y}\left({\frac {\partial S}{\partial y}}\right)_{x}+T\left({\frac {\partial ^{2}S}{\partial x\partial y}}\right)-\left({\frac {\partial P}{\partial x}}\right)_{y}\left({\frac {\partial V}{\partial y}}\right)_{x}-P\left({\frac {\partial ^{2}V}{\partial x\partial y}}\right)} |
U, S, and V are exact differentials, therefore, ( ∂ 2 U ∂ y ∂ x ) = ( ∂ 2 U ∂ x ∂ y ) {\displaystyle \left({\frac {\partial ^{2}U}{\partial y\partial x}}\right)=\left({\frac {\partial ^{2}U}{\partial x\partial y}}\right)} ( ∂ 2 S ∂ y ∂ x ) = ( ∂ 2 S ∂ x ∂ y ) {\displaystyle \left({\frac {\partial ^{2}S}{\partial y\partial x}}\right)=\left({\frac {\partial ^{2}S}{\partial x\partial y}}\right)} ( ∂ 2 V ∂ y ∂ x ) = ( ∂ 2 V ∂ x ∂ y ) {\displaystyle \left({\frac {\partial ^{2}V}{\partial y\partial x}}\right)=\left({\frac {\partial ^{2}V}{\partial x\partial y}}\right)} Subtract Eq.2 and Eq.3 and one gets ( ∂ T ∂ y ) x ( ∂ S ∂ x ) y − ( ∂ P ∂ y ) x ( ∂ V ∂ x ) y = ( ∂ T ∂ x ) y ( ∂ S ∂ y ) x − ( ∂ P ∂ x ) y ( ∂ V ∂ y ) x {\displaystyle \left({\frac {\partial T}{\partial y}}\right)_{x}\left({\frac {\partial S}{\partial x}}\right)_{y}-\left({\frac {\partial P}{\partial y}}\right)_{x}\left({\frac {\partial V}{\partial x}}\right)_{y}=\left({\frac {\partial T}{\partial x}}\right)_{y}\left({\frac {\partial S}{\partial y}}\right)_{x}-\left({\frac {\partial P}{\partial x}}\right)_{y}\left({\frac {\partial V}{\partial y}}\right)_{x}} Note: The above is called the general expression for Maxwell's thermodynamical relation.
Maxwell's first relation
Allow x = S and y = V and one gets
( ∂ T ∂ V ) S = − ( ∂ P ∂ S ) V {\displaystyle \left({\frac {\partial T}{\partial V}}\right)_{S}=-\left({\frac {\partial P}{\partial S}}\right)_{V}}
Maxwell's second relation
Allow x = S and y = P and one gets
( ∂ T ∂ P ) S = ( ∂ V ∂ S ) P {\displaystyle \left({\frac {\partial T}{\partial P}}\right)_{S}=\left({\frac {\partial V}{\partial S}}\right)_{P}}
Maxwell's third relation
Allow x = T and y = V and one gets
( ∂ S ∂ V ) T = ( ∂ P ∂ T ) V {\displaystyle \left({\frac {\partial S}{\partial V}}\right)_{T}=\left({\frac {\partial P}{\partial T}}\right)_{V}}
Maxwell's fourth relation
Allow x = T and y = P and one gets
( ∂ S ∂ P ) T = − ( ∂ V ∂ T ) P {\displaystyle \left({\frac {\partial S}{\partial P}}\right)_{T}=-\left({\frac {\partial V}{\partial T}}\right)_{P}}
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:
( ∂ μ ∂ P ) S , N = ( ∂ V ∂ N ) S , P = ∂ 2 H ∂ P ∂ N {\displaystyle \left({\frac {\partial \mu }{\partial P}}\right)_{S,N}=\left({\frac {\partial V}{\partial N}}\right)_{S,P}\qquad ={\frac {\partial ^{2}H}{\partial P\partial N}}}
where μ 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 Ω ( μ , V , T ) {\displaystyle \Omega (\mu ,V,T)} yields: ( ∂ N ∂ V ) μ , T = ( ∂ P ∂ μ ) V , T = − ∂ 2 Ω ∂ μ ∂ V ( ∂ N ∂ T ) μ , V = ( ∂ S ∂ μ ) V , T = − ∂ 2 Ω ∂ μ ∂ T ( ∂ P ∂ T ) μ , V = ( ∂ S ∂ V ) μ , T = − ∂ 2 Ω ∂ V ∂ T {\displaystyle {\begin{aligned}\left({\frac {\partial N}{\partial V}}\right)_{\mu ,T}&=&\left({\frac {\partial P}{\partial \mu }}\right)_{V,T}&=&-{\frac {\partial ^{2}\Omega }{\partial \mu \partial V}}\\\left({\frac {\partial N}{\partial T}}\right)_{\mu ,V}&=&\left({\frac {\partial S}{\partial \mu }}\right)_{V,T}&=&-{\frac {\partial ^{2}\Omega }{\partial \mu \partial T}}\\\left({\frac {\partial P}{\partial T}}\right)_{\mu ,V}&=&\left({\frac {\partial S}{\partial V}}\right)_{\mu ,T}&=&-{\frac {\partial ^{2}\Omega }{\partial V\partial T}}\end{aligned}}}