Composition and inverse · Exercise-COMPOSITION-AND-INVERSE-025
Step-by-step solved exercise: Relations and functions
List all valid laws of function composition.
Composition and inverse · Exercise-COMPOSITION-AND-INVERSE-025
List all valid laws of function composition.
Composition is associative: \(\displaystyle h\circ(g\circ f)\) and \(\displaystyle (h\circ g)\circ f\) give the same rule.
The identity acts on the left: \(\displaystyle \operatorname{id}\circ f=f\).
And it acts on the right: \(\displaystyle f\circ\operatorname{id}=f\).
Hence the three laws of associativity and neutral elements are valid, while \(\displaystyle f\circ g=g\circ f\) is not valid in general.
\(\displaystyle h\circ(g\circ f)=(h\circ g)\circ f\) · \(\displaystyle \operatorname{id}\circ f=f\) · \(\displaystyle f\circ\operatorname{id}=f\)