MathematicsDiscrete MathematicsEasy

Domain (function)

Also known as:Input SetSource Set

The domain of a function is the complete set of all possible input values (x-values) for which the function is defined and produces a valid output. For a function f: A → B, the domain is the set A. Identifying the domain is a critical first step in analysing any function, as inputs outside the domain can lead to undefined expressions such as division by zero or square roots of negative numbers.

Key Formula

Domain(f) = { x ∈ ℝ | f(x) is defined }

LaTeX: \text{Domain}(f) = \{ x \in \mathbb{R} \mid f(x) \text{ is defined} \}

SymbolMeaningUnit
fThe function being analysedmapping
xInput variablereal number
Set of all real numbersset

Worked Example

Problem

Find the domain of f(x) = (x + 3) / (x² − 4).

Solution

Step 1: Identify restrictions. The denominator cannot be zero. — x² − 4 = 0 — (x − 2)(x + 2) = 0 — x = 2 or x = −2 Step 2: Exclude these values from ℝ. — Domain = ℝ \ {−2, 2} Step 3: Write in interval notation. — Domain = (−∞, −2) ∪ (−2, 2) ∪ (2, +∞)

Answer

Domain = ℝ \ {−2, 2} = (−∞, −2) ∪ (−2, 2) ∪ (2, +∞).

Common Function Types and Their Domains

Function TypeExampleRestrictionDomain
Polynomialf(x) = x² + 3NoneAll real numbers (−∞, +∞)
Rationalf(x) = 1/(x−2)Denominator ≠ 0ℝ \ {2}
Square Rootf(x) = √(x−3)Radicand ≥ 0[3, +∞)
Logarithmf(x) = log(x+1)Argument > 0(−1, +∞)
Trigonometricf(x) = tan(x)cos(x) ≠ 0ℝ \ {π/2 + nπ}

Interactive Tools

Desmos Graphing Calculator

Graph functions and visually identify their domains.

Open Tool

Wolfram Alpha — Domain Finder

Automatically compute the domain of any function.

Open Tool

Khan Academy — Domain and Range

Step-by-step guide to finding function domains.

Open Tool
Diagram showing the domain and codomain of a function

Wikimedia Commons, CC BY-SA

Related Terms

From Latin "dominium" (right of ownership, territory), from "dominus" (master, lord). In mathematics, the term "domain" to mean the set of valid inputs came into common usage in the 19th century with the formalization of function theory.

domainfunctiondiscrete-mathematicsinputreal-analysis