2.
a) | b) |
a) f is not a function since the element 2 does not have
an image (there is no arrow from 2).
Alternatively, f is not a function since the element 1 has two arrows
coming out of it that point to two different elements (a and b).
b) g is a function since each element of X is related to exactly one element of Y (it does not matter that they are all related to the same element).