Minimize in LaTeX (\min_{x})
- LaTeX command
\min_{x}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Minimum over x: the smallest value an expression takes as x varies, written with x below min.
\min is a predefined operator that accepts limits, so in display math \min_{x} puts x beneath the word, while inline it appears as a subscript to the right. This is the opening line of a standard optimization problem: \min_x f(x) subject to constraints. When the minimum may not be attained, as with open sets, use \inf instead. To force display-style placement inline, write \min\limits_{x}. For multi-line conditions under min, use \substack{x \in \mathbb{R}^n \\ Ax = b}. The value it denotes is a number, unlike argmin, which returns the minimizer.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Minimize: $\min_{x}$
\[ \min_{x} \; \tfrac{1}{2} x^\top Q x + c^\top x \]
\end{document}Related symbols
- Maximize
\max_{x} - Argmin Subscript
\arg\min_{x} - Subject To
\text{s.t.} - Argmax Subscript
\arg\max_{x} - Constraint
g(x) \leq 0 - Argmin
\arg\min
Frequently asked questions
- How do I write Minimize in LaTeX?
- Type \min_{x} in math mode, for example $\min_{x} \; \tfrac{1}{2} x^\top Q x + c^\top x$. It works in plain LaTeX without loading any package.
- Which package do I need for \min_{x}?
- None. \min_{x} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \min_{x} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\min_{x}$ in running text.
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