Domain in LaTeX (\text{dom}(f))

dom(f)\text{dom}(f)
LaTeX command
\text{dom}(f)
Package
Add to your preamble:\usepackage{amsmath}
Mode
Text and math mode

Where it is used

Domain of f, the set of inputs on which the function is defined.

Convex analysis uses it heavily: \operatorname{dom} f = \{x \mid f(x) < \infty\} is the effective domain of an extended-valued convex function. \text{dom} prints upright but can pick up italics in a theorem environment and lacks operator spacing; \operatorname{dom} avoids both problems. In a signature f\colon A \to B, A is already the domain, so \text{dom}(f) is most useful when the domain is implicit or partial, as with unbounded operators on Hilbert spaces. Some texts use D(f) or D_f instead, so match the convention of your field.

Minimal compilable example

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

dom(f)={x∈Rn∣f(x)<∞}\text{dom}(f) = \{x \in \mathbb{R}^n \mid f(x) < \infty\}
\documentclass{article}
\usepackage{amssymb,amsmath}
\begin{document}
Domain: $\text{dom}(f)$

\[ \text{dom}(f) = \{x \in \mathbb{R}^n \mid f(x) < \infty\} \]
\end{document}

Related symbols

All الدوال والتعيين →

Frequently asked questions

How do I write Domain in LaTeX?
Type \text{dom}(f) in math mode, for example $\text{dom}(f) = \{x \in \mathbb{R}^n \mid f(x) < \infty\}$. Load amsmath first with \usepackage{amsmath}.
Which package do I need for \text{dom}(f)?
\text{dom}(f) needs amsmath: add \usepackage{amsmath} to your preamble before the document starts.
Can I use \text{dom}(f) in text mode, or only in math mode?
Both. \text{dom}(f) compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
Math poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

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

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

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