Big Theta in LaTeX (\Theta(n))

Θ(n)\Theta(n)
LaTeX command
\Theta(n)
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Tight asymptotic bound: f(n) = Theta(n) means f is bounded above and below by constant multiples of n.

Theta is the right claim when you have proved matching upper and lower bounds: binary search is \Theta(\log n), and the Master Theorem's middle case yields \Theta(n^{\log_b a} \log n). Formally, f \in \Theta(g) exactly when f \in O(g) and f \in \Omega(g). Many papers write O where \Theta is meant; reviewers in theory venues notice, so use \Theta when tightness is the point. The capital \Theta is upright by default; do not confuse it with lowercase \theta, which usually names an angle or a parameter vector, and avoid \vartheta, a variant of the lowercase letter.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

∑i=1ni=Θ(n2)\sum_{i=1}^{n} i = \Theta(n^2)
\documentclass{article}
\begin{document}
Big Theta: $\Theta(n)$

\[ \sum_{i=1}^{n} i = \Theta(n^2) \]
\end{document}

Related symbols

All 컴퓨터 과학 →

Frequently asked questions

How do I write Big Theta in LaTeX?
Type \Theta(n) in math mode, for example $\sum_{i=1}^{n} i = \Theta(n^2)$. It works in plain LaTeX without loading any package.
Which package do I need for \Theta(n)?
None. \Theta(n) is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \Theta(n) in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\Theta(n)$ in running text.
Math poweredAI로 LaTeX 작성

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

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

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