Legendre transform
The operation that swaps a variable for its conjugate slope, relating the four thermodynamic potentials.
Definition
A Legendre transform is a mathematical operation that re-expresses a function in terms of the slope of one of its variables rather than the variable itself, without losing information. In thermodynamics it is the operation that relates the four potentials: starting from the internal energy U(S, V) with dU = T dS − P dV, subtracting TS swaps the entropy S for its conjugate temperature T (giving the Helmholtz energy), and adding PV swaps the volume V for its conjugate pressure P (giving the enthalpy). Doing both yields the Gibbs energy.
The point of the transform is practical control. Entropy and volume are awkward to fix in a laboratory; their conjugates, temperature and pressure, are easy. The Legendre transform lets one trade an inconvenient natural variable for a convenient one while preserving all the thermodynamic content, so each potential is tailored to the variables a particular apparatus holds fixed.
The same operation connects the Lagrangian and Hamiltonian formulations of mechanics, where it swaps velocity for momentum. Its recurrence reflects a deep structural unity between thermodynamics and mechanics.