In this problem $f,g$ are functions $f : X \rightarrow Y$ and $g : Y \rightarrow Z$
a) Show that if $f$ and $g$ are injective, so is $g \circ f$
b) Show that if $f$ and $g$ are surjective, so is $g \circ f$
c) Explain that if $f$ and $g$ are bijective, so is $g \circ f$, and show that $(g \circ f)^{-1} = (f^{-1}) \circ (g^{-1})$
I think I did a) and b) correct. Would like some feedback on them. But as for part c), I struggle and would like some hint on how to do it. This is where I'm at:
a) Take a $x_1$ and a $x_2$, where $x_1 \neq x_2$. Since $f$ is injective, $f(x_1) \neq f(x_2)$. If we let $y_1 = f(x_1)$ and $y_2 = f(x_2)$, and since $g$ is injective, $g(y_1) \neq g(y_2)$, showing that $g(f(x_1)) \neq g(f(x_2))$ and therefore $g \circ f$ must be injective.
b) Since $f$ is surjective, for all $y$ there is a $x$ such that $y=f(x)$. And since $g$ is surjective, for all $z$ there is a $y'$ such that $g(y')=z$. If we let $y=y'$ then for all $z$ there is a $x$ such that $g(f(x))=z$, showing that $g \circ f$ is surjective.
c) It is clear that $g \circ f$ must be bijective if both $f$ and $g$ is bijective, since we have already showed this for injective and surjective functions.
Here comes what I couldn't figure out...
If we take a random $x$, then $(g(f(x)))^{-1}$ = $(g(y))^{-1} = g^{-1}(y)$ for some $y$. But as for the "right side" $(f^{-1}) \circ (g^{-1})$, it seems to become something that is not an equality... I would like to show that an element of the "left side" is in the "right side", and vice versa...
Thanks in advance!
I discovered that this was partially answered by Injectiveness and surjectiveness of $f$ and of $g$, respectively, of the composition $g\circ f$. , but this question did not answer part c) of this, which was my main concern. I received good help with part c) in answers that did follow. I am grateful for that.