Composition and inverse · Exercise-COMPOSITION-AND-INVERSE-021
Step-by-step solved exercise: Relations and functions
In general, if \(\displaystyle f:A\to B\) and \(\displaystyle g:C\to D\), what condition makes \(\displaystyle g\circ f\) well defined?
Step by step with comments, a check and common mistakes.
Step-by-step solution
Composition is defined by \(\displaystyle (g\circ f)(x)=g(f(x))\).
\[\displaystyle (g\circ f)(x)=g(f(x))\]
To evaluate \(\displaystyle g\) at \(\displaystyle f(x)\), the value \(\displaystyle f(x)\) must belong to the domain of \(\displaystyle g\), which is \(\displaystyle C\).
\[\displaystyle f(x)\in C\]
Since \(\displaystyle f(x)\in B\) for every \(\displaystyle x\in A\), it is enough that \(\displaystyle B\subseteq C\).
\[\displaystyle B\subseteq C\]
Therefore the right condition is \(\displaystyle B\subseteq C\), not equality of the sets.