= Domain of a function
{title2=$\operatorname{dom}f$}
{wiki}
= Domains of a function
{synonym}
The <domain of a function> $f:X\to Y$ is the specified <set> $X$ of allowed <inputs>. A <function> must assign a value to every member of that <set>. Its <codomain> $Y$ separately specifies where the <outputs> are allowed to lie.
The formula alone need not determine the domain. The rule $x\mapsto x^2$ on the <real numbers> and its <restriction> to the <nonnegative real numbers> have different allowed <inputs>. The first is not <injective>, while the second is. Similarly, the real-valued rule $x\mapsto1/x$ excludes zero from its <domain of a function>.
Changing a formula by cancellation can alter where it is defined. The principle <preserve the domain when simplifying a function> records why an extension across a cancelled denominator is a separate operation.
Back to article page