Bijective function

A function is called bijective if it is both injective and surjective.
A bijection basically means that there is a one-to-one correspondence between all elements of the domain and the codomain: For every unique element in , there is a unique element in .
|220x220

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

set equality can be defined via bijectivity

If two sets have the same cardinality, there is a bijection between them, and vice versa.

A bijection can also be composed of injections and surjections, e.g.: