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

Step-by-step solved exercise: Relations and functions

List all valid laws of function composition.

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

Step-by-step solution

  1. Composition is associative: \(\displaystyle h\circ(g\circ f)\) and \(\displaystyle (h\circ g)\circ f\) give the same rule.

    \[\displaystyle h\circ(g\circ f)=(h\circ g)\circ f\]
  2. The identity acts on the left: \(\displaystyle \operatorname{id}\circ f=f\).

    \[\displaystyle \operatorname{id}\circ f=f\]
  3. And it acts on the right: \(\displaystyle f\circ\operatorname{id}=f\).

    \[\displaystyle f\circ\operatorname{id}=f\]
  4. Hence the three laws of associativity and neutral elements are valid, while \(\displaystyle f\circ g=g\circ f\) is not valid in general.

Answer

\(\displaystyle h\circ(g\circ f)=(h\circ g)\circ f\) · \(\displaystyle \operatorname{id}\circ f=f\) · \(\displaystyle f\circ\operatorname{id}=f\)

🎯 Build my path to this exercise