Composition and inverse · Exercise-COMPOSITION-AND-INVERSE-007
Step-by-step solved exercise: Relations and functions
Is \(\displaystyle g\circ f=f\circ g\) always true?
Composition and inverse · Exercise-COMPOSITION-AND-INVERSE-007
Is \(\displaystyle g\circ f=f\circ g\) always true?
Take \(\displaystyle f(x)=x+1\) and \(\displaystyle g(x)=2x\) on \(\displaystyle \mathbb{R}\).
Then \(\displaystyle (g\circ f)(x)=g(x+1)=2x+2\).
And \(\displaystyle (f\circ g)(x)=f(2x)=2x+1\).
Since they differ, composition does not commute in general.
No, in general it does not commute