Canonical: https://knowlpedia.com/shared-foundations/domain/

# Domain

The set of allowed inputs of a function

A **domain** is the set of inputs of a function: if \(f:A\to B\) is a [function](https://knowlpedia.com/shared-foundations/function/), then its domain is the set \(A\).

## Remarks

Changing the domain (for example by taking a [restriction](https://knowlpedia.com/shared-foundations/restriction-of-a-function/)) produces a new function, even if the output rule looks the same. The elements of the domain appear as the first components of [ordered pairs](https://knowlpedia.com/shared-foundations/ordered-pair/) in the [graph](https://knowlpedia.com/shared-foundations/graph-of-function/) of \(f\).

## Examples

- For \(f:\mathbb{R}\to\mathbb{R}\) defined by \(f(x)=x^2\), the domain is \(\mathbb{R}\) (the [real numbers](https://knowlpedia.com/shared-foundations/real-numbers/)).
- For the inclusion map \(i:S\to A\) with \(S\subseteq A\), the domain is \(S\).
