Minimum in LaTeX (\min)
- LaTeX command
\min- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Minimum operator, giving the smallest value of a finite set or the least value a function attains.
\min is a predefined operator name: it prints upright 'min' with correct spacing, and in display math a subscript goes underneath, as in \min_{x \in S} f(x). Inline, the subscript moves to the side to save line height; force it below with \min\limits_{x} if you really need to. Typing plain min in math mode gives three italic variables multiplied together, a frequent mistake. For the minimizing argument there is no built-in command, so define \DeclareMathOperator*{\argmin}{arg\,min} in the preamble. Distinguish \min from \inf, which need not be attained.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Minimum: $\min$
\[ \min_{x \in [0,1]} (x^2 - x) = -\tfrac{1}{4} \]
\end{document}Related symbols
- Maximum
\max - Not Greater or Equal
\ngeq - Infimum
\inf - Not Less or Equal
\nleq - Supremum
\sup - Not Greater Than
\ngtr
Frequently asked questions
- How do I write Minimum in LaTeX?
- Type \min in math mode, for example $\min_{x \in [0,1]} (x^2 - x) = -\tfrac{1}{4}$. It works in plain LaTeX without loading any package.
- Which package do I need for \min?
- None. \min is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \min in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\min$ 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