# Why do we need the supremum when performing Legendre transformations?

Legendre transforms appear all over physics. For instance, in statistical mechanics, they allow us to move between descriptions in terms of different thermodynamic potentials. Similarly, in quantum field theory, they are used to construct the effective action $\Gamma[\varphi]$ (the generating functional of one-particle irreducible correlators) from $W[J]$, the generating functional of connected correlators.

The thing is, you often see these transformations in two different forms. It might be either $$\Gamma[\varphi] = \sup_J(J \cdot \varphi - W[J]),$$ see e.g. here, or just $$\Gamma[\varphi] = J \cdot \varphi - W[J].$$ as it is written here and on Wikipedia. I understand taking the supremum ensures that $\Gamma[\varphi]$ ends up a convex function of $\varphi$. So why do some people worry about this and others don't? Is there any more to it, perhaps with regard to invertibility?

## 2 Answers

The second form is ill-defined: you want to swap the independent variable from $J$ to $\varphi$, so you can't have any dependence on $J$ in the final answer.

That's the case, explicitly, in your first equation, but it's also implicit in the second form, where it'll be implicit that $J$ needs to be taken at an extremum or at the solution of some equation that encodes that extremum. However, as you've written it, there is not enough information to fully define the transform.

In general, it tends to be a good idea to use the supremum instead of the maximum because the supremum of any nonempty set of real numbers is always defined (whereas the maximum might not, i.e. when the supremum is not in the set), and this ensures that you're actually defining a function instead of an expression that might fail to produce an answer in some cases.

The solution of the problem posed is that the second formula is valid in a different context than the first.

The first formula is the definition of the Legendre transform $\Gamma$ of $\phi$, and $J$ is a dummy variable.

In the second formula it is already presupposed that $\Gamma$ is the Legendre transform of $\phi$, and that $J$ is the maximizer in the first formula (which is assumed to exist). It is an identity that follows under this additional condition from the first formula.