The Legendre transform (Adrien-Marie Legendre) 
is used to perform a change change of variables
(see, for example, Ref. 1, Chapter 4 section 11 Eq. 11.20 - 11.25):
If one has the function  one can write
 one can write
 
Let  , and
, and  , thus
, thus
 
If one subtracts  from
 from  , one has
, one has
 
or
 
Defining the function  then
then
 
The partial derivatives of  are
 are
 . .
Example
See also
References
- Mary L. Boas "Mathematical methods in the Physical Sciences" John Wiley & Sons, Second Edition.
- Robert A. Alberty "Use of Legendre transforms in chemical thermodynamics", Pure and Applied Chemistry 73 pp. 1349-1380 (2001)