Lemma (Legendre transform of convex and differentiable function)

If $f: \R^n \to \R$ is strictly convex and differentiable, then the Legendre transform $$ \begin{align*} f^\ast(\v p) = \v p\cdot \v x(\v p) - f(\v x(\v p)) \end{align*} $$ where $\v x(\v p)$ is the solution to $\v p = \nabla f(\v x)$.

Proof