Skip to content
latexci
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademics
Sign inFree
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademicsFree
Discord community ↗GitHub ↗
Sign in
LaTeX symbols›Operators›Argmax

Argmax in LaTeX

The LaTeX command for argmax is \operatorname*{argmax} (argument of maximum).

argmax⁡\operatorname*{argmax}argmax
\operatorname*{argmax}
Operators · needs amsmath

Writing a paper? The table generator and the BibTeX cleaner are one click away, no account.

Which command should you use?

CommandPackageUse it when
\operatorname*{argmax} recommendedamsmathThe star puts subscripts underneath in display math.
\DeclareMathOperator*{\argmax}{argmax} amsmath (preamble)In the preamble, then write \argmax_{x} f(x).
Table 1. Ways to write argmax in LaTeX. Every line was compiled with pdfLaTeX (TeX Live 2026) loading only the package shown.
Common mistake. \arg\max sets two operators: the limit goes under max only, and the spacing is off.

How to type Argmax

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.

Example
$\operatorname*{argmax}_{x \in X} f(x)$argmax⁡x∈Xf(x)\operatorname*{argmax}_{x \in X} f(x)x∈Xargmax​f(x)

Open this example in the live preview: it renders as you type, with no compiler and no signup.

Related Operators symbols

arg\arghom\homsgn\operatorname{sgn}tr\operatorname{tr}rank\operatorname{rank}diag\operatorname{diag}span\operatorname{span}argmin\operatorname*{argmin}lcm\operatorname{lcm}sin\sincos\costan\tanarcsin\arcsinarccos\arccos

Math operators in LaTeX: the full table or search all 350+ LaTeX symbols.

FAQ

How do you write argmax (argmax) in LaTeX?

Use \operatorname*{argmax} in math mode after adding \usepackage{amsmath} to your preamble. For example, $\operatorname*{argmax}_{x \in X} f(x)$.

Which package provides \operatorname*{argmax}?

It comes from the amsmath package: add \usepackage{amsmath} to your preamble.

What is the most common mistake with argmax in LaTeX?

\arg\max sets two operators: the limit goes under max only, and the spacing is off.

latexci

Free LaTeX tools for researchers and students, in any browser. No paid plan, no advertising.

Star on GitHubBuy me a coffee

Tools

Live PreviewBibTeX ToolsDOI → BibTeXarXiv → BibTeXPubMed → BibTeXISBN → BibTeXLaTeX DiffWord → LaTeXSymbol SearchTable GeneratorTemplatesCV Generator

Learn

Academics hubLife after OverleafFreeGitHub

Community

DiscordGitHub IssuesFeature Requests

© 2026 latexci. By Sitraka Forler, sitraka.lu

PrivacyTerms