Suppose A and B be the two non-empty sets. Now, the function ‘f’ from set A to B is a rule or method or correspondence which associates the elements of set A to the elements of set B such that:
(i) the all elements of set A are associated to elements in set B.
(ii) an element of set A is associated to the unique element in set B.