Formally, a function g : A → B is surjective if and only if for all b in B , there exists an element a in A such that f ( a ) = b .
The equation given by f ( x ) = x 2 is a counterexample for both injective and surjective functions.
A bijective function is a function that is both injective and surjective.
The composition of injective functions is injective and the compositions of surjective functions is surjective, thus the composition of bijective functions is bijective.
That is, let f:A→B f : A → B and g:B→C. g : B → C .
If f,g are injective, then so is g∘f.
If no two domain components point to the same value in the co-domain, the function is injective.
A function is Surjective if each element in the co-domain points to at least one element in the domain.
If a function has both injective and surjective properties.