Composition and inverse · Exercise-COMPOSITION-AND-INVERSE-009
Step-by-step solved exercise: Relations and functions
Let \(\displaystyle f\colon A\to B\) and \(\displaystyle h\colon B\to A\) satisfy \(\displaystyle h\circ f=\mathrm{id}_A\). What can be said about \(\displaystyle f\)?
Step by step with comments, a check and common mistakes.
Step-by-step solution
Suppose \(\displaystyle f(a)=f(a')\) with \(\displaystyle a,a'\in A\).
\[\displaystyle f(a)=f(a')\]
Apply \(\displaystyle h\) to both sides: \(\displaystyle h(f(a))=h(f(a'))\).
\[\displaystyle h(f(a))=h(f(a'))\]
By hypothesis \(\displaystyle h\circ f=\mathrm{id}_A\), so \(\displaystyle a=a'\).
\[\displaystyle a=h(f(a))=h(f(a'))=a'\]
Hence \(\displaystyle f\) is injective.
Comment: Surjectivity does not follow: \(\displaystyle B\) may have more elements than \(\displaystyle A\).