I'm trying to write an equation, but I keep getting an "Undined control sequence error on the line my equation is one, and I can't seem to figure out what the error is. Can any of you guys seen an errors in the equation?
\documentclass[a4paper,12pt]{article}
\begin{document}
$
\theta^* = \bf{argmin}\underbrace{{1\over2}(g-F(\theta))^T(g-F(\theta))}_\text{f(\theta)}
$
\end{document}
\text
marked as undefined; you need\usepackage{amsmath}
, for it. By the way,\bf{argmin}
is wrong: use\mathbf{argmin}
or, better yet,\operatorname{\mathbf{argmin}}
. However,\text
is wrong in that context: just_{f(\theta)}
should be used.