Legendre Transformation
Prerequisites: Calculus.
Intuitive
A convex curve, one that bends upward everywhere like a parabola, can be described in two ways. The usual way lists its points: for each position we give the height of the curve. The other way lists its tangent lines: for each possible slope there is exactly one tangent line to the curve with that slope, and we record where that line crosses the vertical axis. The curve is then recovered as the envelope of all these tangent lines. Both descriptions contain the same information. The Legendre transform is the rule that converts the first description into the second, using the slope as the new variable.
Physics needs this because the natural variables of a problem are not always the ones we can control. In mechanics, the Lagrangian is a function of positions and velocities, while the Hamiltonian uses positions and momenta, and the momentum is the slope of the Lagrangian with respect to the velocity. In thermodynamics, the internal energy is a function of entropy and volume, but in the lab we usually fix the temperature, which is the slope of the energy with respect to the entropy. The Legendre transform swaps a variable for the corresponding slope without losing information, so we can go back and forth.
Concrete
Let be a function with , so that its slope is strictly increasing and can be solved for . The Legendre transform of is Geometrically, the tangent line of with slope is , so is its intercept with the -axis. Differentiating, and using , So the slope of gives back the old variable, and applying the transform to gives : the transform is its own inverse. In terms of differentials, becomes . With several variables one transforms only some of them, and the others are passive parameters with .
Example: mechanics. For the momentum is , so and The relation is the property from above, and is the rule for passive variables. Together with the Euler-Lagrange equation this gives Hamilton's equations.
Example: thermodynamics. The internal energy satisfies , so . The Helmholtz free energy is a function of temperature instead of entropy. Thermodynamics traditionally uses the opposite overall sign, instead of , which does not change the content. In the same way the enthalpy trades for , and the Gibbs free energy trades both.
When is not differentiable or not strictly convex, the general definition is which is always convex. Then is the convex envelope of (for lower semicontinuous ), which is why non-convex thermodynamic potentials are replaced by their convex hulls, as in the Maxwell construction for phase coexistence.
- See: Making sense of the Legendre transform by R. K. P. Zia, Edward F. Redish, Susan R. McKay
- and Ryder - Quantum Field Theory page 260
- see also Legendre transform | foreXiv
- A Neighborhood of Infinity: Quantum Mechanics and the Fourier-Legendre Transform over a Semiring
- https://www.andrew.cmu.edu/course/33-765/pdf/Legendre.pdf
- http://mathforum.org/kb/message.jspa?messageID=3868685 (Legendre transformation is "zero temperature limit" of the Laplace Transformation)
- A Neighborhood of Infinity: Some parallels between classical and quantum mechanics
- No-Nonsense Classical Mechanics by Jakob Schwichtenberg, appendix "The Legendre Transform"
Abstract
The Fourier transform and the Legendre transform may be interpreted as the same thing, just over different semirings.A Neighborhood of Infinity: Quantum Mechanics and the Fourier-Legendre Transform over a Semiring
Why is it interesting?
The Legendre transform shows up whenever we minimize or maximize something subject to constraints. That happens a lot.
https://johncarlosbaez.wordpress.com/2012/01/19/classical-mechanics-versus-thermodynamics-part-1/
The Legendre transformation is a useful mathematical tool that is used in thermodynamics, classical mechanics and quantum field theory.
Maybe the most famous application is that in classical mechanics, quantum mechanics and quantum field theory the Hamiltonian and the Lagrangian are connected by a Legendre transformation.
Moreover, the Legendre transformation is used in thermodynamics to motivate the connection between the internal energy, enthalpy, and Gibbs and Helmholtz free energies.
Both uses can be compactly motivated if the Legendre transform is properly understood. Unfortunately, that transform is often relegated to a footnote in a textbook, or worse is presented as a complicated mathematical procedure. […] In a nutshell, a Legendre transform simply changes the independent variables in a function of two variables by application of the product rule.
https://www.aapt.org/docdirectory/meetingpresentations/SM14/Mungan-Poster.pdf
Leads to: Hamiltonian Formalism.