Maxwell relations

Equations involving the partial derivatives of thermodynamic quantities
Thermodynamics
The classical Carnot heat engine
Branches
  • Classical
  • Statistical
  • Chemical
  • Quantum thermodynamics
  • Equilibrium / Non-equilibrium
Material properties
Specific heat capacity  c = {\displaystyle c=}
T {\displaystyle T} S {\displaystyle \partial S}
N {\displaystyle N} T {\displaystyle \partial T}
Compressibility  β = {\displaystyle \beta =-}
1 {\displaystyle 1} V {\displaystyle \partial V}
V {\displaystyle V} p {\displaystyle \partial p}
Thermal expansion  α = {\displaystyle \alpha =}
1 {\displaystyle 1} V {\displaystyle \partial V}
V {\displaystyle V} T {\displaystyle \partial T}
  • History
  • Culture
History
Philosophy
Theories
Key publications
  • An Experimental Enquiry
    Concerning ... Heat
  • On the Equilibrium of
    Heterogeneous Substances
  • Reflections on the
    Motive Power of Fire
Timelines
  • Art
  • Education
  • Category
  • v
  • t
  • e
Flow chart showing the paths between the Maxwell relations. P {\displaystyle P} is pressure, T {\displaystyle T} temperature, V {\displaystyle V} volume, S {\displaystyle S} entropy, α {\displaystyle \alpha } coefficient of thermal expansion, κ {\displaystyle \kappa } compressibility, C V {\displaystyle C_{V}} heat capacity at constant volume, C P {\displaystyle C_{P}} heat capacity at constant pressure.

Maxwell's relations are a set of equations in thermodynamics which are derivable from the symmetry of second derivatives and from the definitions of the thermodynamic potentials. These relations are named for the nineteenth-century physicist James Clerk Maxwell.

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, we have

Schwarz's theorem (general)

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} ):

Maxwell's relations (common)

+ ( 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 relationship

( y x ) z = 1 / ( x y ) z {\displaystyle \left({\frac {\partial y}{\partial x}}\right)_{z}=1\left/\left({\frac {\partial x}{\partial y}}\right)_{z}\right.}
which are sometimes also known as Maxwell relations.

Derivations

Short derivation

This section is based on chapter 5 of.[1]

Suppose we are given 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}} . Then, if we know two of them, we can determine the other two uniquely (generically).

In particular, we may take any two variables as the independent variables, and let the other two be the dependent variables, then we can take all these partial derivatives.

Proposition: ( 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}}

Proof: This is just the chain rule.

Proposition: ( 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}

Proof. We can ignore w {\displaystyle w} . Then locally the surface is just a x + b y + c z + d = 0 {\displaystyle ax+by+cz+d=0} . Then ( x y ) z = b a {\displaystyle \left({\frac {\partial x}{\partial y}}\right)_{z}=-{\frac {b}{a}}} , etc. Now multiply them.

Proof of Maxwell's relations:

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 E {\displaystyle E} as the dependent variable. We have d E = p d V + T d S {\displaystyle dE=-pdV+TdS} .

Now, V , S E = S , V E {\displaystyle \partial _{V,S}E=\partial _{S,V}E} since the surface is C 2 {\displaystyle C^{2}} , that is,

( ( E S ) V V ) S = ( ( E V ) S S ) V {\displaystyle \left({\frac {\partial \left({\frac {\partial E}{\partial S}}\right)_{V}}{\partial V}}\right)_{S}=\left({\frac {\partial \left({\frac {\partial E}{\partial V}}\right)_{S}}{\partial S}}\right)_{V}}
which yields the result.

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

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.

Extended derivation

Combined form first and second law of thermodynamics,

T d S = d U + P d V {\displaystyle T\,dS=dU+P\,dV}

(Eq.1)

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)}

(Eq.2)

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)}

(Eq.3)

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 = 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 third 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 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}}
Maxwell's fifth relation
Allow x = P and y = V and one gets
( T P ) V ( S V ) P ( T V ) P ( S P ) V = 1 {\displaystyle \left({\frac {\partial T}{\partial P}}\right)_{V}\left({\frac {\partial S}{\partial V}}\right)_{P}-\left({\frac {\partial T}{\partial V}}\right)_{P}\left({\frac {\partial S}{\partial P}}\right)_{V}=1}
Maxwell's sixth relation
Allow x = T and y = S and one gets
( P T ) S ( V S ) T ( P S ) T ( V T ) S = 1 {\displaystyle \left({\frac {\partial P}{\partial T}}\right)_{S}\left({\frac {\partial V}{\partial S}}\right)_{T}-\left({\frac {\partial P}{\partial S}}\right)_{T}\left({\frac {\partial V}{\partial T}}\right)_{S}=1}

Derivation based on Jacobians

If we view the first law of thermodynamics,

d U = T d S P d V {\displaystyle dU=T\,dS-P\,dV}
as a statement about differential forms, and take the exterior derivative of this equation, we get
0 = d T d S d P d V {\displaystyle 0=dT\,dS-dP\,dV}
since d ( d U ) = 0 {\displaystyle d(dU)=0} . This leads to the fundamental identity
d P d V = d T d S . {\displaystyle dP\,dV=dT\,dS.}

The physical meaning of this identity can be seen by noting that the two sides are the equivalent ways of writing the work done in an infinitesimal Carnot cycle. An equivalent way of writing the identity is

( T , S ) ( P , V ) = 1. {\displaystyle {\frac {\partial (T,S)}{\partial (P,V)}}=1.}

The Maxwell relations now follow directly. For example,

( S V ) T = ( T , S ) ( T , V ) = ( P , V ) ( T , V ) = ( P T ) V , {\displaystyle \left({\frac {\partial S}{\partial V}}\right)_{T}={\frac {\partial (T,S)}{\partial (T,V)}}={\frac {\partial (P,V)}{\partial (T,V)}}=\left({\frac {\partial P}{\partial T}}\right)_{V},}
The critical step is the penultimate one. The other Maxwell relations follow in similar fashion. For example,
( T V ) S = ( T , S ) ( V , S ) = ( P , V ) ( V , S ) = ( P S ) V . {\displaystyle \left({\frac {\partial T}{\partial V}}\right)_{S}={\frac {\partial (T,S)}{\partial (V,S)}}={\frac {\partial (P,V)}{\partial (V,S)}}=-\left({\frac {\partial P}{\partial S}}\right)_{V}.}

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:[2]

( 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}}}

See also

References

  1. ^ Pippard, A. B. (1957-01-01). Elements of Classical Thermodynamics:For Advanced Students of Physics (1st ed.). Cambridge: Cambridge University Press. ISBN 978-0-521-09101-5.
  2. ^ "Thermodynamic Potentials" (PDF). University of Oulu. Archived (PDF) from the original on 19 December 2022.