Supremum in LaTeX (\sup)
- LaTeX command
\sup- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Supremum: the least upper bound of a set, central to completeness of the reals and to norm definitions.
Operator norms are written \|A\| = \sup_{\|x\| = 1} \|Ax\|, and the uniform norm of a function is \sup_x |f(x)|. The command places its subscript below in display mode and to the right inline, just like \lim. Use \limsup for the limit superior rather than combining \lim and \sup by hand, and remember that \sup exists for every bounded nonempty subset of the reals whereas \max may not. When the subscript condition is long, stack lines with \substack{...} under the operator instead of cramming one wide subscript.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Supremum: $\sup$
\[ \|f\|_\infty = \sup_{x \in X} |f(x)| \]
\end{document}Related symbols
- Least Upper Bound
\text{lub} - Infimum
\inf - Greatest Lower Bound
\text{glb} - Maximum
\max - Minimum
\min - Not Greater or Equal
\ngeq
Frequently asked questions
- How do I write Supremum in LaTeX?
- Type \sup in math mode, for example $\|f\|_\infty = \sup_{x \in X} |f(x)|$. It works in plain LaTeX without loading any package.
- Which package do I need for \sup?
- None. \sup is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \sup in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\sup$ 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