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 poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث