Little o in LaTeX (o(n))
- LaTeX command
o(n)- Package
- No package needed: built into LaTeX
- Mode
- Text and math mode
Where it is used
Strict asymptotic upper bound: f(n) = o(n) means f(n)/n tends to 0 as n grows.
Little o expresses that one function is negligible against another, as in \log n = o(n) or n = o(n^2). It is strictly stronger than big O: every o(g) function is O(g), but n is O(n) without being o(n). Analysts use it constantly in Taylor expansions, such as \sin x = x + o(x) as x \to 0, so always state the limit point when it is not infinity. Since it is just an italic letter o, there is no special command; make sure readers do not mistake it for a zero, and keep it lowercase to avoid colliding with big O.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Little o: $o(n)$
\[ \log n = o(n) \quad \text{since} \quad \lim_{n\to\infty} \frac{\log n}{n} = 0 \]
\end{document}Related symbols
All علوم الحاسوب →Frequently asked questions
- How do I write Little o in LaTeX?
- Type o(n) in math mode, for example $\log n = o(n) \quad \text{since} \quad \lim_{n\to\infty} \frac{\log n}{n} = 0$. It works in plain LaTeX without loading any package.
- Which package do I need for o(n)?
- None. o(n) is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use o(n) in text mode, or only in math mode?
- Both. o(n) compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf
يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي
- أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
- ارفع صورة وحولها إلى LaTeX بسلاسة
- احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث