Let $f$ be a function from $B$ to $C$ and $g$ be a function from $A$ to $B$, such that $f \circ g$ is one-to-one.
a) Prove that $g$ is one-to-one
b) Prove that if $g$ is onto, then $f$ is one-to-one
I'm needing some help with this problem. For a, could I assume that $f$ is one-to-one in order to prove that $g$ is one-to-one. Such that:
Assume $f(w) = f(z) ⇒ w = z$ and $f \circ g$ is $1-1$ where $f \circ g(x) = f \circ g(y)$.
$f(g(x)) = f(g(y))$ from $f \circ g(x) = f \circ g(y)$
and based off $f(w) = f(z) ⇒ w = z$, we can say $g(x) = g(y)$
then $x = y$
therefore g is one-to-one
For part b, this is as far as I understand to go:
Assume $g$ is onto and $f \circ g$ is one-to-one
Then $g(x) = g(y)$ and $g(w) = g(y)$
$x = y$ and $w = y$