A Legendre–Fenchel transform of an extended-real-valued f:Rn→(−∞,+∞]f:\mathbb{R}^n\to(-\infty,+\infty] is the function f∗:Rn→[−∞,+∞]f^*:\mathbb{R}^n\to[-\infty,+\infty] defined by

f∗(y)  =  sup⁡x∈Rn(⟨y,x⟩−f(x)).f^*(y) \;=\; \sup_{x\in\mathbb{R}^n}\big(\langle y,x\rangle - f(x)\big).

where ⟨y,x⟩=∑i=1nyixi\langle y,x\rangle=\sum_{i=1}^n y_i x_i is the Euclidean .

Properties and limiting cases

If f≡+∞f\equiv+\infty, then f∗≡−∞f^*\equiv-\infty; otherwise ff is finite somewhere and f∗f^* never takes the value −∞-\infty.

This is exactly the ; the “Legendre” terminology is common even when ff is not differentiable, and it underlies and . When ff is smooth and strictly convex, the transform agrees with the classical on the range of ∇f\nabla f.

Examples
  • If f(x)=∣x∣f(x)=|x| on R\mathbb{R}, then f∗(y)=0f^*(y)=0 for ∣y∣≤1|y|\le 1 and f∗(y)=+∞f^*(y)=+\infty for ∣y∣>1|y|>1.
  • If f=δCf=\delta_C is the indicator of a set CC, then f∗(y)=sup⁡x∈C⟨y,x⟩f^*(y)=\sup_{x\in C}\langle y,x\rangle (the support function of CC).