{
  "id": "maxwell-relations",
  "title": "Maxwell Relations",
  "lang": "en",
  "source_lang": "en",
  "summary": "Maxwell relations are thermodynamic identities that connect partial derivatives of state variables through the equality of mixed derivatives of thermodynamic potentials.",
  "category": "science",
  "subcategory": "physics",
  "type": "concept",
  "aliases": [
    "Maxwell thermodynamic relations",
    "Maxwell’s thermodynamic relations"
  ],
  "generated_at": "2026-11-05",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/maxwell-relations/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/maxwell-relations/",
      "json": "https://aiwiki.page/zh/maxwell-relations.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "The Maxwell relations are identities in thermodynamics that connect the partial derivatives of temperature, pressure, volume, and entropy. They follow from the equality of mixed second derivatives of a sufficiently smooth thermodynamic potential. Their practical importance is that they replace derivatives involving entropy, which is difficult to measure directly, with derivatives involving accessible quantities such as pressure, volume, and temperature. Named after James Clerk Maxwell, they are distinct from Maxwell’s equations of electromagnetism."
    },
    {
      "heading": "Physical and mathematical basis",
      "text": "A state function depends only on the equilibrium state of a system, not on the path taken to reach it. A thermodynamic potential is a state function whose derivatives give other thermodynamic variables when expressed in its natural independent variables.\n\nFor a closed, simple compressible system of fixed composition, with only pressure–volume work, the fundamental thermodynamic relation is\n\n\\[dU=T\\,dS-p\\,dV,\\]\n\nwhere \\(U\\) is internal energy, \\(T\\) is absolute temperature, \\(S\\) is entropy, \\(p\\) is pressure, and \\(V\\) is volume. The sign convention assigns positive work to work done by the system during expansion.\n\nThis identity combines the first law and second law for neighboring equilibrium states. It does not assert that heat is a state function or that heat transfer equals \\(T\\,dS\\) during an arbitrary irreversible process.\n\nThe mathematical foundation is the equality of mixed partial derivatives. If a function \\(f(x,y)\\) has continuous second derivatives, then\n\n\\[\\frac{\\partial^2 f}{\\partial y\\,\\partial x} = \\frac{\\partial^2 f}{\\partial x\\,\\partial y}.\\]\n\nConsequently, if its exact differential is\n\n\\[df=A(x,y)\\,dx+B(x,y)\\,dy,\\]\n\nthen\n\n\\[\\left(\\frac{\\partial A}{\\partial y}\\right)_x = \\left(\\frac{\\partial B}{\\partial x}\\right)_y.\\]\n\nApplying this result to thermodynamic potentials produces the Maxwell relations. The subscripts specify variables held fixed and are essential to each identity."
    },
    {
      "heading": "The four standard relations",
      "text": "The four standard Maxwell relations arise from internal energy, enthalpy, Helmholtz free energy, and Gibbs free energy. Throughout this section, the amount and composition of matter are fixed.\n\nInternal energy\n\nThe natural variables of internal energy are entropy and volume:\n\n\\[U=U(S,V), \\qquad dU=T\\,dS-p\\,dV.\\]\n\nThus,\n\n\\[T=\\left(\\frac{\\partial U}{\\partial S}\\right)_V, \\qquad -p=\\left(\\frac{\\partial U}{\\partial V}\\right)_S.\\]\n\nEquality of the mixed derivatives gives\n\n\\[\\boxed{ \\left(\\frac{\\partial T}{\\partial V}\\right)_S = -\\left(\\frac{\\partial p}{\\partial S}\\right)_V }.\\]\n\nEnthalpy\n\nEnthalpy is defined by\n\n\\[H=U+pV.\\]\n\nIts differential is\n\n\\[dH=T\\,dS+V\\,dp,\\]\n\nso its natural variables are \\(S\\) and \\(p\\). The corresponding relation is\n\n\\[\\boxed{ \\left(\\frac{\\partial T}{\\partial p}\\right)_S = \\left(\\frac{\\partial V}{\\partial S}\\right)_p }.\\]\n\nHelmholtz free energy\n\nHelmholtz free energy, written \\(F\\) or \\(A\\), is\n\n\\[F=U-TS.\\]\n\nIts differential is\n\n\\[dF=-S\\,dT-p\\,dV.\\]\n\nWith natural variables \\(T\\) and \\(V\\), it gives\n\n\\[\\boxed{ \\left(\\frac{\\partial S}{\\partial V}\\right)_T = \\left(\\frac{\\partial p}{\\partial T}\\right)_V }.\\]\n\nBoth coefficients in \\(dF\\) carry minus signs, so the resulting relation has a positive sign.\n\nGibbs free energy\n\nGibbs free energy is\n\n\\[G=U+pV-TS.\\]\n\nIts differential is\n\n\\[dG=-S\\,dT+V\\,dp.\\]\n\nWith natural variables \\(T\\) and \\(p\\), it gives\n\n\\[\\boxed{ \\left(\\frac{\\partial S}{\\partial p}\\right)_T = -\\left(\\frac{\\partial V}{\\partial T}\\right)_p }.\\]\n\nThese potentials are connected by Legendre transformations, which exchange a natural variable for its conjugate variable. Deriving each relation from the appropriate differential helps avoid errors in signs and constraints."
    },
    {
      "heading": "Entropy changes from measurable properties",
      "text": "A central application is the calculation of entropy changes from an equation of state and heat-capacity data.\n\nDefine the heat capacities at constant volume and constant pressure by\n\n\\[C_V=T\\left(\\frac{\\partial S}{\\partial T}\\right)_V, \\qquad C_p=T\\left(\\frac{\\partial S}{\\partial T}\\right)_p.\\]\n\nWriting entropy as \\(S(T,V)\\), and applying the Helmholtz relation, gives\n\n\\[dS= \\frac{C_V}{T}\\,dT + \\left(\\frac{\\partial p}{\\partial T}\\right)_V dV.\\]\n\nAlternatively, writing it as \\(S(T,p)\\) gives\n\n\\[dS= \\frac{C_p}{T}\\,dT - \\left(\\frac{\\partial V}{\\partial T}\\right)_p dp.\\]\n\nThese equations allow entropy differences to be calculated without directly measuring entropy. For example, the isothermal entropy change between two pressures is\n\n\\[S(T,p_2)-S(T,p_1) = -\\int_{p_1}^{p_2} \\left(\\frac{\\partial V}{\\partial T}\\right)_p dp.\\]\n\nFor a material that expands on heating at constant pressure, the volume derivative is positive; its entropy therefore decreases under isothermal compression within the region considered.\n\nFor an ideal gas,\n\n\\[pV=nRT,\\]\n\nwhere \\(n\\) is the amount of substance and \\(R\\) is the gas constant. Hence,\n\n\\[dS=\\frac{C_V}{T}\\,dT+\\frac{nR}{V}\\,dV.\\]\n\nIf \\(C_V\\) is constant over the temperature interval,\n\n\\[\\Delta S = C_V\\ln\\frac{T_2}{T_1} +nR\\ln\\frac{V_2}{V_1}.\\]\n\nHere \\(C_V\\) is the heat capacity of the entire fixed amount of gas, not its molar heat capacity."
    },
    {
      "heading": "Energy changes and response functions",
      "text": "Volume dependence of internal energy\n\nSubstituting the entropy differential into \\(dU=T\\,dS-p\\,dV\\) gives\n\n\\[dU=C_V\\,dT+ \\left[ T\\left(\\frac{\\partial p}{\\partial T}\\right)_V-p \\right]dV.\\]\n\nTherefore,\n\n\\[\\boxed{ \\left(\\frac{\\partial U}{\\partial V}\\right)_T = T\\left(\\frac{\\partial p}{\\partial T}\\right)_V-p }.\\]\n\nFor an ideal gas, \\((\\partial p/\\partial T)_V=p/T\\), so this derivative vanishes. Its internal energy depends only on temperature at fixed amount and composition. For a nonideal fluid, the volume dependence of internal energy contains information about intermolecular interactions.\n\nRelation between heat capacities\n\nThe Maxwell relations also lead to\n\n\\[C_p-C_V = T\\left(\\frac{\\partial p}{\\partial T}\\right)_V \\left(\\frac{\\partial V}{\\partial T}\\right)_p.\\]\n\nDefine the volumetric thermal expansion coefficient\n\n\\[\\alpha=\\frac{1}{V} \\left(\\frac{\\partial V}{\\partial T}\\right)_p\\]\n\nand the isothermal compressibility\n\n\\[\\kappa_T=-\\frac{1}{V} \\left(\\frac{\\partial V}{\\partial p}\\right)_T.\\]\n\nThen\n\n\\[\\boxed{ C_p-C_V=\\frac{TV\\alpha^2}{\\kappa_T} }.\\]\n\nIn a mechanically stable, single-phase state at positive temperature, where \\(\\kappa_T>0\\), this implies \\(C_p\\geq C_V\\). For an ideal gas, it reduces to \\(C_p-C_V=nR\\).\n\nIsentropic temperature changes\n\nSetting \\(dS=0\\) in the pressure-based entropy differential yields\n\n\\[\\left(\\frac{\\partial T}{\\partial p}\\right)_S = \\frac{T}{C_p} \\left(\\frac{\\partial V}{\\partial T}\\right)_p = \\frac{TV\\alpha}{C_p}.\\]\n\nThis describes temperature changes during isentropic compression or expansion. A reversible adiabatic process is isentropic; an irreversible adiabatic process need not be."
    },
    {
      "heading": "Generalizations",
      "text": "The four familiar identities are part of a broader family. For a system whose composition can vary,\n\n\\[dU=T\\,dS-p\\,dV+\\sum_i\\mu_i\\,dN_i,\\]\n\nwhere \\(N_i\\) is the amount of component \\(i\\), and \\(\\mu_i\\) is its chemical potential expressed consistently with that amount variable.\n\nThe Gibbs differential becomes\n\n\\[dG=-S\\,dT+V\\,dp+\\sum_i\\mu_i\\,dN_i.\\]\n\nEquality of mixed derivatives then gives, for example,\n\n\\[\\left(\\frac{\\partial \\mu_i}{\\partial p}\\right)_{T,\\{N_j\\}} = \\left(\\frac{\\partial V}{\\partial N_i}\\right)_{T,p,\\{N_{j\\ne i}\\}}.\\]\n\nThus, the pressure derivative of a component’s chemical potential equals its partial molar volume when \\(N_i\\) is measured in moles.\n\nAnalogous relations connect thermal, electrical, magnetic, elastic, and surface responses when the appropriate conjugate variables are included. Their signs depend on the definitions of the potential and work terms. In magnetic systems especially, the distinction between applied fields, internal fields, and field energy must be specified."
    },
    {
      "heading": "Conditions and limitations",
      "text": "Maxwell relations apply locally where a suitable equilibrium potential is sufficiently smooth and the selected independent variables provide a valid description of the state. Their use requires several qualifications:\n\n- Constraints must be explicit. Fixed temperature, entropy, pressure, and volume are not interchangeable conditions. Additional variables, including composition and external fields, must also be held fixed as required.\n- Phase boundaries require care. At a first-order phase transition, first derivatives of a thermodynamic potential can jump. Ordinary derivative identities cannot be applied across that discontinuity as though the potential were smooth.\n- Critical behavior can be singular. Near a critical point, response functions may diverge. The identities still constrain their relationships wherever the relevant derivatives exist, but finite-response formulas cannot be assumed to remain regular at the singular point.\n- Equilibrium identities are not kinetic laws. They do not specify how quickly a system relaxes toward thermodynamic equilibrium or how it responds during an arbitrary nonequilibrium process.\n- Consistency does not guarantee accuracy. A smooth but inaccurate thermodynamic potential can satisfy every Maxwell relation. Conversely, independently fitted equations of state and calorimetric data may violate them, revealing that the datasets or models are not mutually thermodynamically consistent."
    }
  ],
  "links": [
    "thermodynamics",
    "temperature",
    "pressure",
    "entropy",
    "james-clerk-maxwell",
    "maxwells-equations",
    "state-function",
    "thermodynamic-potential",
    "internal-energy",
    "first-law-of-thermodynamics",
    "second-law-of-thermodynamics",
    "derivative",
    "enthalpy",
    "helmholtz-free-energy",
    "gibbs-free-energy",
    "legendre-transform",
    "equation-of-state",
    "heat-capacity",
    "ideal-gas",
    "gas-constant",
    "thermal-expansion",
    "adiabatic-process",
    "chemical-potential",
    "phase-transition",
    "critical-point",
    "thermodynamic-equilibrium"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}