The LaTeX command for little o (o) is o (little-o (strict upper bound)).
oWriting a paper? The table generator and the BibTeX cleaner are one click away, no account.
| Command | Package | Use it when |
|---|---|---|
o(n) recommended | none | Little-o is simply the letter o. |
O(n \log n) | none | Big-O. |
\mathcal{O}(n) | none | Calligraphic big-O, a common style. |
\Theta(n) | none | Theta, the tight bound. |
Write o inside math mode, that is between $…$ for inline math or in a \[ … \] or equation block for display math. It is part of core LaTeX math, so no extra package is required.
$f(n) = o(g(n))$Open this example in the live preview: it renders as you type, with no compiler and no signup.
\bot\models\mathsf{NP}\mathsf{P}\mathcal{O}\Omega\Theta\oplus\land\lor\neg\mid\lfloor x \rfloor\lceil x \rceilComputer science symbols in LaTeX: the full table or search all 350+ LaTeX symbols.
Use o in math mode; it needs no extra package. For example, $f(n) = o(g(n))$.
None: o is built into LaTeX, so no extra package is required.
Do not use \circ (a ring operator) for little-o, and \mathcal{o} does not exist: calligraphic letters are capitals only.