$f(x) = x^2$, as a function $f : \reals \to [0, \infty)$
The graph of $f(x) = x^2$.
Terms
| Term | This example | Why |
|---|---|---|
| domain | $\reals$ | |
| codomain | $[0, \infty)$ | The codomain of $f$ is $[0, \infty)$, because $f$ is declared as a function from $\reals$ to $[0, \infty)$. |
| range (image) | $f(\reals) = [0, \infty)$ | |
| image | $f([-1, 2]) = [0, 4]$ | |
| preimage | $f^{-1}(\setdef{4}) = \setdef{-2, 2}$ | |
| surjective | ✓ | $f$ is surjective, because every number in the codomain $[0, \infty)$ is the square of a real number. |
| injective | ✗ | $f$ is not injective, because $f(-2) = f(2) = 4$. |
Distinctions using this example
- Domain vs. Range vs. Codomain vs. Image vs. Preimage: This is the same rule as $x \mapsto x^2$ on $\reals$, but with the smaller codomain $[0, \infty)$, which equals the range.
All examples · All distinctions · All definitions · Notation