Argmax Subscript in LaTeX (\arg\max_{x})

arg⁡max⁡x\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.

x∗=arg⁡max⁡x∈X  c⊤xx^* = \arg\max_{x \in \mathcal{X}} \; c^\top x
\documentclass{article}
\begin{document}
Argmax Subscript: $\arg\max_{x}$

\[ x^* = \arg\max_{x \in \mathcal{X}} \; c^\top x \]
\end{document}

Related symbols

All Pengoptimuman →

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.
Math poweredTulis LaTeX menggunakan AI

Editor LaTeX AI Terbaik, Alternatif Overleaf

Octree membantu penyelidik dari 15+ universiti menulis kertas penyelidikan dengan lebih cepat menggunakan AI

  • Jana diagram TikZ yang cantik menggunakan AI
  • Muat naik imej dan tukar ke LaTeX dengan lancar
  • Dapatkan bantuan segera untuk menulis dan memformat kertas penyelidikan