The LaTeX command for argmax is \operatorname*{argmax} (argument of maximum).
\operatorname*{argmax}Writing a paper? The table generator and the BibTeX cleaner are one click away, no account.
| Command | Package | Use it when |
|---|---|---|
\operatorname*{argmax} recommended | amsmath | The star puts subscripts underneath in display math. |
\DeclareMathOperator*{\argmax}{argmax} | amsmath (preamble) | In the preamble, then write \argmax_{x} f(x). |
Write \operatorname*{argmax} inside math mode, that is between $…$ for inline math or in a \[ … \] or equation block for display math. This symbol needs the amsmath package, so add \usepackage{amsmath} to your preamble.
$\operatorname*{argmax}_{x \in X} f(x)$Open this example in the live preview: it renders as you type, with no compiler and no signup.
\arg\hom\operatorname{sgn}\operatorname{tr}\operatorname{rank}\operatorname{diag}\operatorname{span}\operatorname*{argmin}\operatorname{lcm}\sin\cos\tan\arcsin\arccosMath operators in LaTeX: the full table or search all 350+ LaTeX symbols.
Use \operatorname*{argmax} in math mode after adding \usepackage{amsmath} to your preamble. For example, $\operatorname*{argmax}_{x \in X} f(x)$.
It comes from the amsmath package: add \usepackage{amsmath} to your preamble.
\arg\max sets two operators: the limit goes under max only, and the spacing is off.