Composition and inverse · Exercise-COMPOSITION-AND-INVERSE-017
Step-by-step solved exercise: Relations and functions
If \(\displaystyle f\colon A\to B\), why is \(\displaystyle f\circ\mathrm{id}_A=f\)?
Composition and inverse · Exercise-COMPOSITION-AND-INVERSE-017
If \(\displaystyle f\colon A\to B\), why is \(\displaystyle f\circ\mathrm{id}_A=f\)?
Let \(\displaystyle x\in A\). Then \(\displaystyle (f\circ\mathrm{id}_A)(x)=f(\mathrm{id}_A(x))\).
Since \(\displaystyle \mathrm{id}_A(x)=x\), the expression becomes \(\displaystyle f(x)\).
So \(\displaystyle f\circ\mathrm{id}_A\) agrees with \(\displaystyle f\) at every point.
Hence \(\displaystyle f\circ\mathrm{id}_A=f\), without requiring \(\displaystyle f\) to be bijective.
Because \(\displaystyle \mathrm{id}_A\) leaves each \(\displaystyle x\) fixed, so \(\displaystyle f(\mathrm{id}_A(x))=f(x)\)