If $f\circ g = g\circ f$ then $f = g$?

117 Views Asked by At

Is it true or there's an error in my understanding?

$$f\circ g = g\circ f \iff f=g?$$

2

There are 2 best solutions below

4
On BEST ANSWER

Any pair of (integer) power functions have this property. $$(x^n)^m =(x^m)^n$$

10
On

Well:

$$f(x) = x, g(x) = x^2$$

Then

$$f(g) = x^2 = g(f)$$

Therefore, it is not true.