Argmax Subscript in LaTeX (\arg\max_{x})
- LaTeX command
\arg\max_{x}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Argmax over x: the point x at which the objective function is largest.
In optimization texts the maximizer of f over a feasible set is written x^* = \arg\max_{x \in \mathcal{X}} f(x). Typed as \arg\max_{x}, the subscript attaches to \max, so in display style x appears centered under max rather than under the whole arg max. \operatorname*{arg\,max}_{x} or a starred declared operator places it under the full name. In inline math the subscript sits to the lower right regardless. Because maxima may not be unique, x^* \in \arg\max is technically more precise than equality. For maximization over several variables, list them: \arg\max_{x, y}.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Argmax Subscript: $\arg\max_{x}$
\[ x^* = \arg\max_{x \in \mathcal{X}} \; c^\top x \]
\end{document}Related symbols
- Argmin Subscript
\arg\min_{x} - Argmin
\arg\min - Minimize
\min_{x} - Argmax
\arg\max - Maximize
\max_{x} - Subject To
\text{s.t.}
Frequently asked questions
- How do I write Argmax Subscript in LaTeX?
- Type \arg\max_{x} in math mode, for example $x^* = \arg\max_{x \in \mathcal{X}} \; c^\top x$. It works in plain LaTeX without loading any package.
- Which package do I need for \arg\max_{x}?
- None. \arg\max_{x} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \arg\max_{x} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\arg\max_{x}$ in running text.
Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf
Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI
- Gumawa ng magagandang TikZ diagrams gamit ang AI
- Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
- Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers