Hamilton's principle/Mathematics/The Legendre transform: Difference between revisions
hamiltons-principle>HPVBuild Initial import of M3-01 |
Remove phrase duplicated by the piped link |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:The Legendre transform}} | |||
{{Plebeian|Hamilton's principle/Explainers/Reading a curve two ways}} | {{Plebeian|Hamilton's principle/Explainers/Reading a curve two ways}} | ||
| Line 6: | Line 7: | ||
into <math>2n</math> first-order ones. This page treats the transform on its own, | into <math>2n</math> first-order ones. This page treats the transform on its own, | ||
before it is put to work on | before it is put to work on | ||
[[Hamilton's principle/Mathematics/The Hamiltonian and Hamilton's equations]]. | [[Hamilton's principle/Mathematics/The Hamiltonian and Hamilton's equations|the Hamiltonian and Hamilton's equations]]. | ||
== The construction == | == The construction == | ||
| Line 27: | Line 28: | ||
it, (1) has no unique solution and (2) is not a function. This is why the | it, (1) has no unique solution and (2) is not a function. This is why the | ||
Legendre condition of | Legendre condition of | ||
[[Hamilton's principle/Mathematics/The Legendre condition]] reappears here: it is | [[Hamilton's principle/Mathematics/The Legendre condition|the Legendre condition]] reappears here: it is | ||
the same second-derivative requirement, met again for a different reason. | the same second-derivative requirement, met again for a different reason. | ||
| Line 65: | Line 66: | ||
This cancellation — the same one that made <math>y''</math> drop out of the | This cancellation — the same one that made <math>y''</math> drop out of the | ||
Beltrami derivation on | Beltrami derivation on | ||
[[Hamilton's principle/Mathematics/The Beltrami identity]] — is why the transform | [[Hamilton's principle/Mathematics/The Beltrami identity|the Beltrami identity]] — is why the transform | ||
is clean. The chain-rule term is annihilated by the defining relation. | is clean. The chain-rule term is annihilated by the defining relation. | ||
| Line 83: | Line 84: | ||
<math>\partial^2 f/\partial v_i \partial v_k</math> to be invertible, which is | <math>\partial^2 f/\partial v_i \partial v_k</math> to be invertible, which is | ||
the non-degeneracy condition of | the non-degeneracy condition of | ||
[[Hamilton's principle/Mathematics/Several dependent variables]]. Then | [[Hamilton's principle/Mathematics/Several dependent variables|Several dependent variables]]. Then | ||
:<math>g(p) = \sum_{i=1}^n p_i v_i - f(v) | :<math>g(p) = \sum_{i=1}^n p_i v_i - f(v) | ||
| Line 114: | Line 115: | ||
Apply it to <math>L(x, y, y')</math> with <math>y'</math> active and | Apply it to <math>L(x, y, y')</math> with <math>y'</math> active and | ||
<math>x, y</math> passive. The slope variable is the conjugate momentum of | <math>x, y</math> passive. The slope variable is the conjugate momentum of | ||
[[Hamilton's principle/Mathematics/The Euler-Lagrange equation]], | [[Hamilton's principle/Mathematics/The Euler-Lagrange equation|the Euler-Lagrange equation]], | ||
:<math>p = \frac{\partial L}{\partial y'} | :<math>p = \frac{\partial L}{\partial y'} | ||
| Line 128: | Line 129: | ||
<math>H</math> is the conserved quantity of the Beltrami identity, so | <math>H</math> is the conserved quantity of the Beltrami identity, so | ||
[[Hamilton's principle/Mathematics/The Beltrami identity]] is the statement that | [[Hamilton's principle/Mathematics/The Beltrami identity|the Beltrami identity]] is the statement that | ||
the Legendre transform of <math>L</math> is constant when <math>L</math> has no | the Legendre transform of <math>L</math> is constant when <math>L</math> has no | ||
explicit <math>x</math>. | explicit <math>x</math>. | ||
| Line 145: | Line 146: | ||
functions of the velocities and (10) cannot be inverted. Such Lagrangians are | functions of the velocities and (10) cannot be inverted. Such Lagrangians are | ||
'''degenerate''', and they are not pathological — they are the rule in gauge | '''degenerate''', and they are not pathological — they are the rule in gauge | ||
theories, where | theories, where [[Hamilton's principle/Applications/The electromagnetic Lagrangian|the electromagnetic Lagrangian]] is exactly | ||
[[Hamilton's principle/Applications/The electromagnetic Lagrangian]] is exactly | |||
this case. | this case. | ||
Degeneracy is the same phenomenon that | Degeneracy is the same phenomenon that | ||
[[Hamilton's principle/Mathematics/Noether's second theorem]] characterises: | [[Hamilton's principle/Mathematics/Noether's second theorem|Noether's second theorem]] characterises: | ||
invariance under a group depending on arbitrary functions produces identities | invariance under a group depending on arbitrary functions produces identities | ||
among the Lagrange expressions, and those identities are why the Hessian is | among the Lagrange expressions, and those identities are why the Hessian is | ||
singular. The constrained Hamiltonian formalism that handles such systems is | singular. The constrained Hamiltonian formalism that handles such systems is | ||
named as further reading on [[Hamilton's principle/Sources]] and is not treated | named as further reading on [[Hamilton's principle/Sources|Sources]] and is not treated | ||
in this volume. | in this volume. | ||
| Line 167: | Line 167: | ||
== Next == | == Next == | ||
[[Hamilton's principle/Mathematics/The Hamiltonian and Hamilton's equations]] | [[Hamilton's principle/Mathematics/The Hamiltonian and Hamilton's equations|the Hamiltonian and Hamilton's equations]] | ||
applies the transform to the Euler-Lagrange system. | applies the transform to the Euler-Lagrange system. | ||
| Line 173: | Line 173: | ||
<references /> | <references /> | ||
Latest revision as of 05:15, 16 September 2026
The Legendre transform exchanges a variable for the slope of a function with respect to that variable. Applied to a Lagrangian in its velocity slot it produces the Hamiltonian, and it converts second-order equations into first-order ones. This page treats the transform on its own, before it is put to work on the Hamiltonian and Hamilton's equations.
The construction

Let be a real function of one variable, twice differentiable and strictly convex, so . Define the slope
Strict convexity makes strictly increasing and therefore invertible, so (1) can be solved for . The Legendre transform of is
Convexity is the hypothesis that makes the transform well defined. Without it, (1) has no unique solution and (2) is not a function. This is why the Legendre condition of the Legendre condition reappears here: it is the same second-derivative requirement, met again for a different reason.
The geometric reading
For fixed , consider the vertical gap between the line and the curve :
Then , which vanishes exactly at the solving (1), and , so that stationary point is a maximum. Therefore
is the intercept of the tangent line of slope . So the transform re-describes the curve: instead of listing its points, it lists its tangent lines by slope and intercept. Both descriptions carry the same information, which is why the transform is invertible.
It is an involution
Differentiate (2) with respect to :
the bracket vanishing by (1). So , mirroring . The relation between and is symmetric, and transforming twice returns .
This cancellation — the same one that made drop out of the Beltrami derivation on the Beltrami identity — is why the transform is clean. The chain-rule term is annihilated by the defining relation.
Differentiating (5) again gives
so is convex too, and sharply curved where is flat.
Several variables
For set . Solvability for the requires the Hessian to be invertible, which is the non-degeneracy condition of Several dependent variables. Then
and by the same cancellation.
Passive variables
If and only is transformed, then is a passive variable and
The sign flip in (8) is the source of every sign in Hamilton's equations. Proof: differentiating at fixed ,
again by .
The transform in mechanics
Apply it to with active and passive. The slope variable is the conjugate momentum of the Euler-Lagrange equation,
and the transform is
with expressed through . Two facts drop out at once.
is the conserved quantity of the Beltrami identity, so the Beltrami identity is the statement that the Legendre transform of is constant when has no explicit .
And by (8),
which is the minus sign in on the next page. It comes from the transform, not from mechanics.
Where the transform fails
If the Hessian in the velocities is singular, the momenta are not independent functions of the velocities and (10) cannot be inverted. Such Lagrangians are degenerate, and they are not pathological — they are the rule in gauge theories, where the electromagnetic Lagrangian is exactly this case.
Degeneracy is the same phenomenon that Noether's second theorem characterises: invariance under a group depending on arbitrary functions produces identities among the Lagrange expressions, and those identities are why the Hessian is singular. The constrained Hamiltonian formalism that handles such systems is named as further reading on Sources and is not treated in this volume.
Elsewhere in physics
The same transform relates thermodynamic potentials. Internal energy and Helmholtz free energy are Legendre transforms in the entropy-temperature pair, exactly as and are in the velocity-momentum pair, and the sign convention differs by a historical accident rather than by any mathematics.
Next
the Hamiltonian and Hamilton's equations applies the transform to the Euler-Lagrange system.