So we if we have a function $A(x,y)$ and we want to get a function $B(x,z)$ where $B$ is the function $A$ that is dependent on z and independent of $y$. We define the Legendre transform as $$B(x,z) = zy - A(x,y)$$
and we say that for $B$ to be independent of $y$ then $$z = \frac{\partial A}{\partial y}.$$
I have two questions:
- We say that $z$ and $y$ are independent variables but how is that true since $\frac{\partial A}{\partial y}$ can depend on $y$?
For example, take the example in Analytical mechanics by Hand & Finch ch.5: $A = y^2(1+x^2)$ thus $ z = \frac{\partial A}{\partial y} = 2y(1+x^2)$ and clearly $z$ depends on $y$,
so how do we say that $z$ and $y$ are truly independent variables?
- My second question is that in the same book it is said that A(x,y) must be a convex function for the Legendre transform to be defined, but why can it not be defined for concave functions?
As shown in the image attached, this is one geometrical interpretation where we need the function $ux-f(x)$ to be extremized,
but what if the difference can be negative i.e. $f(x) > ux$ such that the difference has a minimum thus $\frac{\partial}{\partial x} (ux-f(x) = 0 $ at a point but this point is now a min. so The maximum does not exist but the minimum does example:

