I am writing an equation and I'd like to put above the equal sign $(=)$ a footnote describing shortly the reason for that equality.
I tried
\[x^2\stackrel{\footnote{foo}}{=}x\ast x\]
but this only shows the footnote's number above the equal sign but no foo on the bottom of the page.
Any idea? What is the best way to do this kind of trick?