4. a) The arrow diagram for g o f should have the set X on the left and the set Z on the right. To determine where to place the arrows, start at each element of X and trace a path to decide which element of Z is the correct image.
b) Recall that in the arrow diagram of a one-to-one function there are never two arrows from different elements of the domain pointing to the same element of the co-domain.