Proof (Legendre transform of convex and differentiable function)

$\v p\cdot \v x - f(\v x)$ is stationary when $\v x$ is the maximiser, so $$ \begin{align*} \v 0 = \nabla(\v p\cdot \v x - f(\v x)) = \v p - \nabla f(\v x). \end{align*} $$