Let $X,Y,Z$ be topological spaces and $f:X \rightarrow Y,g:Y\rightarrow Z$ are both continuos and $g \circ f$ is a homeomorphism. Prove that if $g$ is injection then $f,g$ are both homeomorphism.
There are any ways to prove $f,g$ are bijection ? I have tried to prove it but I didn't find the solution.