Little o in LaTeX (o(n))

o(n)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.

log⁡n=o(n)sincelim⁡n→∞log⁡nn=0\log n = o(n) \quad \text{since} \quad \lim_{n\to\infty} \frac{\log n}{n} = 0
\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.
Math poweredAI로 LaTeX 작성

최고의 AI LaTeX 편집기, Overleaf 대안

Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움

  • AI로 아름다운 TikZ 다이어그램 생성
  • 이미지를 업로드하고 LaTeX로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기