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

  1. Composition is defined by \(\displaystyle (g\circ f)(x)=g(f(x))\).

    \[\displaystyle (g\circ f)(x)=g(f(x))\]
  2. 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\]
  3. Since \(\displaystyle f(x)\in B\) for every \(\displaystyle x\in A\), it is enough that \(\displaystyle B\subseteq C\).

    \[\displaystyle B\subseteq C\]
  4. Therefore the right condition is \(\displaystyle B\subseteq C\), not equality of the sets.

Answer

\(\displaystyle B\subseteq C\)

🎯 Build my path to this exercise