Let A = {1, 2, 3}, B = {2, 3, 4}, then which of the following is a function from A to B ?
{(1, 3), (2, 2), (3, 3)}
{(1, 3), (2, 2), (3, 3)}
we have
R = {(1, 3), (2, 2), (3, 3)}
We observe that each element of the given set has appeared as first component in one and only one ordered pair of R.
So, R = {(1, 3), (2, 2), (3, 3)} is a function.