$g\circ f$ injective and $f\circ g$ surjective

function-and-relation-compositionfunctions

Let $f,g:\mathbb{R}\to\mathbb{R}$ such that $g\circ f$ is injective and $f\circ g$ is surjective. Prove that $f$ and $g$ are bijective.

What I have done:

$g\circ f=\text{injective}\Rightarrow f=\text{injective}$

$f\circ g=\text{surjective}\Rightarrow f=\text{surjective}$

$\Rightarrow f=\text{bijective}$

Now, how do I prove that g is bijective?

Best Answer

If $f$ is bijective, then in particular $f^{-1}$ is bijective, so then it follows that if $g\circ f$ is injective, so is $g \circ f \circ f^{-1} = g$. In the same manner, if $f\circ g$ is surjective then so is $f^{-1}\circ f \circ g = g$.

Related Question