I am trying to understand Hamiltonian mechanics, and the last time I've tried I got up to the Legendre-Fenchel transformation, and in the next chapter suddenly those commutators were used and I was completely lost where and why they came from. My guess is that I missed something about the Legendre-Fenchel transformation just before that.
As of my understanding, the Legendre-Fenchel transformation for a given function $f:\Bbb R\to\Bbb R^n$ is such:
Take the convex hull of the graph of $f$, call it $G$.
$G$ is the intersection of half-spaces $\{\vec x\; |\; \vec n\cdot \vec x \geq b\}$.
Then the Legendre-Fenchel transformation is a mapping $f^*: \vec n \mapsto b$.
The question is: is this correct or am I missing some important point or have some errors in logic or assumptions?