Properties of functions

Injective function

Injective function

A function is called a one-to-one or injective function if it maps distinct elements of $A$ to distinct elements of $B$.

Example of a Injective mapping

Alternatively: is one-to-one if for all elements in , if then .

Link to original

Surjective function

Surjective function

A function is called onto or a surjective function if every element $b$ in $B$ can be obtained as $b = f(a)$ for some $a$ in $A$. To summarise, the entire codomain must be mapped to the domain.

Example of a Surjective mapping

In general, this might not be the case. If is an function, we know that for every , we have . If the range of can be a proper subset of (which is the codomain), then it is not onto.

Link to original

Bijection

Bijection (function)

A function is called a bijection if it is both an [[Injective function|injective]] and [[Surjective function|surjective]] function.

Example of a Bijection mappingExample of neither
injective or surjective mapping
Link to original

Inverse Functions

Inverse (function)

Bijections always come in pairs, if is a bijection, then there is a function , it is called the inverse of , defined by:

This also means is also a bijection, so we have:

For example, let Odd and Even be the sets of odd and even natural numbers, respectively. Define a function by . Then is a bijection and its inverse is defined as .

Link to original

Identity Function

Identity function

For every set , its identity function is defined for all as: $$ \text{id}_A(a) = a $$

is also a bijection and its inverse is itself.

Link to original

Characteristic function

Characteristic function

Let be a set. For every subset , its characteristic function, is defined for all by: $$ f_A(x) = \begin{cases} 1, &\text{if } x \in A, \\ 0, &\text{if } x \notin A \end{cases} $$

If then can be represented by an infinite 0-1 sequence.

For example, given , .

Link to original