Example · High school

The graph of $f(x) = x^2$.

Terms

TermThis exampleWhy
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

All examples · All distinctions · All definitions · Notation