I want to have the "^" sign over the "=" sign.
I have tried \newcommand{\defeq}{\overset{^}{=}}, \newcommand{\defeq}{\stackrel{\text{^}}{=}}, \newcommand{\defeq}{\overset{\^}{=}} and different combinations of these, but none have worked yet.
Also, I would like my command only to work in math mode (in the {$$}, \begin{equation}, and such environments). I do not want it to work in textmode, so the output of \defeq , {$\defeq$} should be , ^= (but the ^ over the =).