Argmax Subscript in LaTeX (\arg\max_{\theta})
- LaTeX command
\arg\max_{\theta}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Argmax with the optimization variable theta in the subscript: the parameter value maximizing an objective.
This form names the variable being optimized, the standard way to write maximum likelihood, \hat{\theta}_{\text{MLE}} = \arg\max_\theta \sum_i \log p(x_i|\theta), and MAP estimation. Because the subscript attaches only to \max, in display mode theta sits below max, not centered under the full arg max. Replacing it with \operatorname*{arg\,max}_{\theta} or a declared \argmax gives a centered placement and is what most journals expect. In inline math the subscript appears to the right either way. You can also list constraints in the subscript, such as \theta \in \Theta, using \substack for multiple lines.
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_{\theta}$
\[ \hat{\theta} = \arg\max_{\theta} \sum_{i=1}^{N} \log p(x_i \mid \theta) \]
\end{document}Related symbols
- Argmin Subscript
\arg\min_{\theta} - Argmin
\arg\min - Tensor Product
\otimes - Argmax
\arg\max - Circle Dot
\odot - KL divergence (short form)
\text{KL}(P \| Q)
Frequently asked questions
- How do I write Argmax Subscript in LaTeX?
- Type \arg\max_{\theta} in math mode, for example $\hat{\theta} = \arg\max_{\theta} \sum_{i=1}^{N} \log p(x_i \mid \theta)$. It works in plain LaTeX without loading any package.
- Which package do I need for \arg\max_{\theta}?
- None. \arg\max_{\theta} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \arg\max_{\theta} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\arg\max_{\theta}$ in running text.
Beste AI LaTeX Editor, Overleaf Alternatief
Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI
- Genereer mooie TikZ-diagrammen met AI
- Upload afbeelding en converteer naadloos naar LaTeX
- Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen