If f and g are functions such that $f \circ (f \circ g) = f \circ(g \circ f)$, then $f = g$.
I am really confuse at this question and unable to identify if the function is true or false. Can anyone please show me how to prove this statement or disprove by providing counterexample? Thanks
Just take two different functions $f,g$, which commute, i.e., with $f\circ g=g\cdot f$. An example would be $f(x)=x$, $g(x)=\frac{1}{x}$.