I am trying to answer the following question from a past exam paper:
Let $A = $ {$1,2,3$}, $B = $ {$2,3,4$}, and $C = $ {$1,2,3,4$}, consider the following functions:
$f: A \to B$
$f(x) = x + 1$
$g: A \to C$
$g(x) = x$
$h: C \to A$
$h(1) = 2$, $h(2) = 3$, $h(3) = 2$, $h(4) = 1$
The question is: which of the following are / are not defined. If they are defined, find their domain, codomain and range. If they are not defined, state why.
$f \circ g$
$f \circ h$
$h \circ f$
$g \circ h$
I am struggling to understand functions, and wondered if someone might be willing to go through the process of answering one of the above so I can understand how it is done. I have tried searching, but can not find an example that I can understand. Thank you!