Composition and inverse · Exercise-COMPOSITION-AND-INVERSE-002

Step-by-step solved exercise: Relations and functions

If \(\displaystyle f\colon A\to B\) and \(\displaystyle g\colon B\to C\), from which set to which set does \(\displaystyle g\circ f\) go?

Step by step with comments, a check and common mistakes.

Step-by-step solution

  1. The composition \(\displaystyle g\circ f\) has two stages: first \(\displaystyle f\), then \(\displaystyle g\).

    \[\displaystyle (g\circ f)(x)=g(f(x))\]
  2. \(\displaystyle f\) takes elements from its domain \(\displaystyle A\), so the domain of \(\displaystyle g\circ f\) is \(\displaystyle A\).

    \[\displaystyle \operatorname{dom}(g\circ f)=A\]
  3. \(\displaystyle g\) outputs elements in its codomain \(\displaystyle C\), so the codomain of \(\displaystyle g\circ f\) is \(\displaystyle C\).

    \[\displaystyle g\circ f\colon A\to C\]
  4. Therefore \(\displaystyle g\circ f\) goes from \(\displaystyle A\) to \(\displaystyle C\).

    \[\displaystyle A\to C\]

Answer

From \(\displaystyle A\) to \(\displaystyle C\)

🎯 Build my path to this exercise