In mathematics and physics, the Legendre transformation or Legendre transform, named after Adrien-Marie Legendre, is an involutive transformation on the real-valued convex functions of one real variable. Its generalization to convex functions of affine spaces is sometimes called the Legendre–Fenchel transformation.