Legendre transform
Anchor (Master): Arnold §15 + Appendix 4; Abraham-Marsden *Foundations of Mechanics* §3.6; Marsden-Ratiu *Introduction to Mechanics and Symmetry* Ch. 7; Rockafellar *Convex Analysis* §12
Intuition [Beginner]
The Legendre transform is a way to swap which variable you treat as fundamental. In mechanics you start with a Lagrangian , where the basic data is position and velocity . The Legendre transform replaces by a new variable called the conjugate momentum, defined as the slope of in the direction. The output is the Hamiltonian , which encodes the same physics but lives on a new space — phase space — where positions and momenta sit as independent coordinates.
Here is the analogy. A convex curve can be described by listing the height of the curve above each horizontal position, or by listing the slope of each supporting tangent line and where that line cuts the vertical axis. Both descriptions carry the same information. The Legendre transform is the dictionary between them.
The geometric payoff is that phase space — the space where lives — has more structure than velocity space. It has a natural symplectic form, an extra geometric object that encodes time evolution as a rotation in pairs of coordinates. The Lagrangian story takes place on the tangent bundle ; the Hamiltonian story takes place on the cotangent bundle . The Legendre transform is the bridge.
Visual [Beginner]
A schematic showing two graphs side by side. On the left, a convex curve with a horizontal axis labelled and a vertical axis labelled , with a tangent line at one point and its slope marked . On the right, a curve with horizontal axis labelled and vertical axis labelled , with the height of the curve at each equal to the negative of the -intercept of the corresponding tangent line on the left. An arrow labelled "Legendre transform" connects the two.
The key picture is that each tangent line on the left becomes a single point on the right, and vice versa. The transform turns slopes into positions and intercepts into heights.
Worked example [Beginner]
Take the Lagrangian for a free particle of mass in one dimension: .
The conjugate momentum is the slope of in the direction. Differentiating with respect to gives . This matches the elementary physics formula "momentum equals mass times velocity." Solve for the velocity: .
The Hamiltonian is built by the rule , with rewritten in terms of . So .
Now add a potential energy , so . The momentum is still , and the Hamiltonian becomes . What this tells us: the Lagrangian was kinetic minus potential, the Hamiltonian is kinetic plus potential, and the Legendre transform converted between them.
Check your understanding [Beginner]
Formal definition [Intermediate+]
There are two complementary settings — one from convex analysis on , one from differential geometry on a smooth manifold. The mechanics application is the second; the conceptual content is in the first.
Convex form. Let be a smooth strictly convex function with superlinear growth ( as ). The Legendre transform of is the function defined by
Under the strict-convexity-plus-superlinear hypothesis the supremum is attained at a unique characterised by the equation . The map is the inverse of the gradient map , and one has the symmetric relation . The transform is involutive: (Fenchel-Moreau theorem [Rockafellar §12]). Geometrically, equals minus the -intercept of the supporting hyperplane to the graph of with slope .
Fibre form on a manifold. Let be a smooth manifold and a smooth Lagrangian. The fibre Legendre transform (or fibre derivative) is the smooth bundle map
for and . In coordinates this is , recovering the conjugate-momentum prescription .
The Lagrangian is regular if is a local diffeomorphism — equivalently, the vertical Hessian matrix is invertible at every . It is hyper-regular if is a global diffeomorphism . Hyper-regularity is the hypothesis under which Hamiltonian mechanics on is fully equivalent to Lagrangian mechanics on .
Hamiltonian. Given a hyper-regular , the Hamiltonian is
where . The phase space carries the canonical Liouville one-form and the symplectic form , providing the geometric setting for Hamilton's equations.
Counterexamples to common slips
- The Legendre transform is not the same as a Fourier transform, despite both being involutive integral-style transforms; the Legendre transform is purely pointwise (a supremum at each ) and requires convexity, not periodicity or integrability.
- Regularity of is not the same as hyper-regularity. Regularity is a pointwise condition (the Hessian is invertible everywhere); hyper-regularity adds global injectivity and surjectivity of . A free particle on is hyper-regular; a free particle on with a multivalued Lagrangian construction can fail global injectivity.
- For non-hyper-regular , the formula is not well-defined as a function on — one cannot solve uniquely for . The Dirac-Bergmann algorithm is the systematic substitute.
Key theorem with proof [Intermediate+]
Theorem (Lagrange-Hamilton equivalence). *Let be a smooth manifold, a hyper-regular Lagrangian, and the corresponding Hamiltonian. A smooth curve satisfies the Euler-Lagrange equations on if and only if the curve defined by satisfies Hamilton's equations*
Proof. Work in a chart on with coordinates , induced coordinates on and on . Hyper-regularity says defines a diffeomorphism, so is a smooth function of .
Differentiate the defining relation with respect to at fixed :
Since , the last two terms cancel and one obtains . This is the first Hamilton equation, identical in content to the inverse fibre derivative.
Differentiate the same relation with respect to at fixed :
Again cancels the first and third terms, leaving .
Now if satisfies Euler-Lagrange, . The left side is along the curve. The right side equals by the previous calculation. Combining with the first equation gives Hamilton's system. The reverse direction follows by reading the same equalities backward.
Bridge. The Legendre transform builds toward 05.01.02 (symplectic manifold) and 05.02.05 (cotangent bundle as canonical symplectic manifold): the same fibre derivative appears again in the construction of canonical phase-space coordinates, where the Liouville one-form on and the symplectic form supply the geometric scaffolding. Putting these together, the equivalence of Euler-Lagrange and Hamilton equations is exactly the statement that the fibre derivative identifies Lagrangian dynamics with symplectic dynamics; the foundational reason the symplectic side is preferred for further development is that carries an intrinsic geometric structure () that does not. The bridge between variational mechanics and symplectic geometry is precisely the Legendre transform.
Exercises [Intermediate+]
Lean formalization [Intermediate+]
Mathlib does not yet contain the integrated layer described in the lean_mathlib_gap field. A skeleton statement of what the formalisation would look like, paralleling the key theorem above:
The roadmap items (1)-(5) in lean_mathlib_gap describe the supporting infrastructure each sorry would require. The Fenchel-Moreau involution and the smooth-bundle-map structure of are independent contributions to convex analysis and to the differential-geometry library respectively.
Advanced results [Master]
The Legendre transform is the conceptual hinge of analytical mechanics and a recurring template across mathematical physics. The advanced material falls into three groups: convex-analytic generalisations, geometric refinements on the manifold side, and the singular case where hyper-regularity fails.
Convex-analytic generalisations. The pointwise definition extends without modification to convex functions on a topological vector space, with values in . The Fenchel-Moreau theorem then reads on the class of lower-semicontinuous convex functions [Rockafellar §12]. Strict convexity is what guarantees a unique attaining at each and hence a single-valued gradient relation; convexity without strictness yields a multivalued subdifferential. The Legendre transform is dual to the Fenchel conjugacy of convex sets via the indicator-function correspondence: the polar of a convex set is the Legendre transform of its indicator function.
Geometric refinements. The fibre derivative is the vertical-derivative map for the bundle . When is hyper-regular, the pullback of the canonical symplectic form on is the Lagrangian symplectic form , where is the Lagrangian one-form. In coordinates and . Hamilton's equations on pull back along to the Euler-Lagrange flow on . The whole symplectic geometry of phase space is thus implicit on the Lagrangian side via the fibre derivative, and explicit on the Hamiltonian side via the canonical structure of .
Singular Lagrangians and the Dirac-Bergmann algorithm. Many physical Lagrangians fail to be regular: gauge theories (Maxwell, Yang-Mills), general relativity in the ADM formulation, and reparametrisation-invariant systems all have identically. The fibre derivative is then not a local diffeomorphism. Dirac and Bergmann developed a constraint algorithm that handles this case [Marsden-Ratiu Ch. 7].
The image is locally cut out by primary constraints , the relations among the that hold automatically because the fibre derivative is not surjective. Consistency of the dynamics (preservation of these constraints under Hamiltonian flow) generates secondary constraints. Iterating, the constraint manifold is the maximal subset of on which the dynamics is consistent. Constraints split into first-class (their Poisson brackets vanish on the constraint manifold; these generate gauge transformations) and second-class (those whose brackets are non-degenerate on the constraint manifold; these reduce phase-space dimension). The reduced phase space, obtained by symplectic reduction with respect to the first-class constraints and the symplectic submanifold structure inherited via the second-class constraints, recovers a symplectic manifold on which the gauge-fixed dynamics is genuinely Hamiltonian.
Synthesis. The Legendre transform is precisely the bridge between two formulations of mechanics that look different but encode the same data: on velocity space and on phase space. The fibre derivative identifies -mechanics with -symplectic-geometry, and this identification is exactly the foundational reason every classical mechanical system has both a variational ("least action") and a flow-on-symplectic-manifold formulation. Putting these together, the Legendre transform is an instance of a more general duality: convex Fenchel duality on a vector space, fibre-wise on a bundle, and reduction-modulo-gauge in the singular setting all generalise the same template — the gradient of a convex function gives a diffeomorphism between a space and its dual, and the dual function is the conjugate. The bridge between Lagrangian variational mechanics and Hamiltonian symplectic geometry is exactly this gradient-as-diffeomorphism construction, fibred over the configuration manifold .
Full proof set [Master]
Theorem (Fenchel-Moreau involution). Let be a smooth strictly convex function with superlinear growth. Then .
Proof. Let . Since is strictly convex with a diffeomorphism (by superlinear growth and strict convexity), the supremum in is attained at the unique satisfying . Differentiate : . Hence is a diffeomorphism (the inverse of ), and is strictly convex with superlinear growth.
Now compute , with the supremum attained at satisfying , which inverts to . Substituting,
Theorem (fibre derivative is a smooth bundle map). *For smooth, the fibre derivative is a smooth map of fibre bundles over .*
Proof. In a coordinate chart on and on , the fibre derivative is given by . Each component is smooth as a partial derivative of a smooth function, so is smooth in coordinates. The expression respects the bundle projections: the -coordinate is preserved, so , where denotes the bundle projection to . Thus is a smooth map over . The coordinate-free definition verifies that the construction is intrinsic, independent of the chart.
Theorem (Lagrangian-Hamiltonian equivalence; restated). See the key theorem above; the proof there is the full proof.
Theorem (regular implies local-diffeomorphism). Let be regular at . Then is a local diffeomorphism near .
Proof. By Exercise 4 above, the Jacobian of in coordinates is block-triangular with diagonal blocks the identity and the vertical Hessian. The total determinant equals the determinant of the vertical Hessian, which is nonzero by regularity. The inverse function theorem then yields the local diffeomorphism.
Connections [Master]
Lagrangian on the tangent bundle
05.00.01. The starting point: the Legendre transform takes a Lagrangian as input. Hyper-regularity of is the hypothesis under which the transform yields a globally well-defined Hamiltonian description.Symplectic manifold
05.01.02. The output of the Legendre transform — the Hamiltonian — lives on a symplectic manifold. The cotangent bundle's canonical symplectic structure is what makes the Hamiltonian formulation geometric rather than merely algebraic.Cotangent bundle as canonical symplectic manifold
05.02.05. is the canonical example of a symplectic manifold; the Legendre transform is exactly what justifies this canonicity for mechanics. The Liouville one-form has its mechanical meaning fixed by the Legendre construction.Hamiltonian vector field
05.02.01. The Hamilton equations , are exactly the integral curves of the Hamiltonian vector field defined by . Without the Legendre transform there is no canonical to plug in; with it, the Hamiltonian flow on is the symplectic-geometric image of the Euler-Lagrange flow on .Noether's theorem
05.00.04. Noether's theorem on the Lagrangian side has its Hamiltonian counterpart via the moment map. The Legendre transform connects the two: a one-parameter symmetry of becomes a one-parameter symmetry of , and the conserved quantity transforms accordingly.*Geodesic flow as Hamiltonian flow on
05.02.06.* The free-particle Lagrangian on a Riemannian manifold is ; Legendre transform gives , the geodesic Hamiltonian. The geodesic flow on is a special case of Hamiltonian flow, accessible via the Legendre transform.Hamilton-Jacobi equation
05.02.07. Hamilton-Jacobi theory expresses the action as a generating function for the Hamiltonian flow; the Legendre relation is the variational form of the Legendre transform applied to the action.
Historical & philosophical context [Master]
Adrien-Marie Legendre introduced the transform in 1787 in Mémoire sur l'intégration de quelques équations aux différences partielles (Mém. Acad. Sci. Paris) [Legendre 1787], in the context of integrating partial differential equations. The transform was a tool for swapping dependent and independent variables, exploiting the duality between a convex curve and the family of its supporting tangent lines. Legendre's original setting was analytic, not mechanical.
William Rowan Hamilton's 1834 essay On a General Method in Dynamics and its 1835 sequel introduced what is now called the Hamiltonian formulation of mechanics. Hamilton arrived at the equations , via the principal function (now called the action), without explicit reference to Legendre's transform; the connection between Hamilton's and Lagrange's via was understood by Hamilton but presented as part of the variational machinery rather than as a transform.
The recognition that Hamilton's substitution is exactly Legendre's 1787 transform — applied fibre-wise on — was developed in the 19th century by Jacobi and others, and given its modern coordinate-free formulation in the 20th century. Vladimir Arnold's Mathematical Methods of Classical Mechanics [Arnold §15] gives the geometric statement: as a fibre derivative, with hyper-regularity as the condition for the Hamiltonian formulation to be globally equivalent. Ralph Abraham and Jerrold Marsden's Foundations of Mechanics (1978) [Abraham-Marsden §3.6] built the fully geometric Lagrangian-Hamiltonian theory on this footing, including the Lagrangian symplectic form and the systematic treatment of regularity.
The convex-analytic side was developed independently by Werner Fenchel in the 1940s and systematised by R. Tyrrell Rockafellar in Convex Analysis (1970) [Rockafellar §12]; the Fenchel-Moreau involution theorem on lower-semicontinuous convex functions is the precise general statement of which Legendre's smooth-strictly-convex case is a special case. The singular-Lagrangian extension via the Dirac-Bergmann constraint algorithm grew out of P.A.M. Dirac's 1950s work on canonical quantisation of gauge theories.