Surjective (onto) function

A function is called surjective if
In words: every element in the codomain is the image of at least one element in the domain.

(a surjective not injective function)

“existence”

EXAMPLE

is not injective, because and it is not surjective, because (negative real numbers are not in the codomain).
is injective, but not surjective because we canot reach negative numbers.
is not injective but surjective ( has a solution for all ).
is bijective.


is a bijection
is not a function, since is not defined.
is a bijection
is a bijection
is a bijection (it’s a 90 degree rotation). Also, and vice versa.

\begin{align*}
(x_{1}, y_{1}), (x_{2}, y_{2}) \in \mathbb{R}^{2}: & h_{2}(x_{1}, y_{1}) = h_{2}(x_{2}, y_{2}) \
& \iff (x_{1} - y_{1}, x_{1} + y_{1}) = (x_{2} - y_{2}, x_{2} + y_{2}) \
& \iff \begin{cases}
x_{1} - y_{1} = x_{2} - y_{2} \
x_{1} + y_{1} = x_{2} + y_{2}
\end{cases} \
& \iff \begin{cases}
x_{1} = x_{2} \
y_{1} = y_{2}
\end{cases} \
& \iff (x_{1}, y_{1}) = (x_{2}, y_{2})
\end{align*}

Surjectivity: For every , we can find a such that :

\begin{align*}
(a,b) \in \mathbb{R}^{2}: & h_{2}(x,y) = (a,b) \
& \iff (x-y, x+y) = (a,b) \
& \iff \begin{cases}
x - y = a \
x + y = b
\end{cases} \
& \iff \begin{cases}
x = \frac{a+b}{2} \
y = \frac{b-a}{2}
\end{cases} \
& \iff (x,y) = \left( \frac{a+b}{2}, \frac{b-a}{2} \right)
\end{align*}

→ $h_{2}$ is bijective.
Link to original