4

For any two functions $f(x)$ and $g(x)$ we are given $f \circ g = g \circ f$. What does this imply?

I found that $f(x) = g(x)$, $f(x) = g^{-1}(x)$ and $ f(x) = x \ (\neq g(x))$ are some of the solutions. However, are they the only functions satisfying this? If so, how can we prove it?

Clarification : $f \circ g$ denotes the composition of $f$ and $g$, i.e, $f(g(x))$

David Mitra
  • 74,748
Henry
  • 5,549
  • 2
    http://math.stackexchange.com/questions/11431/when-functions-commute-under-composition may be of interest to you. – sTertooy May 10 '16 at 15:27

2 Answers2

2

They are not the only functions satisfying that, for example, $f(x)=2x, g(x)=3x$ satisfies it too.

Siong Thye Goh
  • 149,520
  • 20
  • 88
  • 149
0

There are lots of other examples. In particular, suppose

$f(x) = x$ when $x \ge 0$ and $f(x) < 0 $ when $x<0$

$g(x) = x$ when $x \le 0$ and $g(x) > 0 $ when $x>0$

The idea here is that each of $f$ and $g$ is the identity function on a part of the domain that's mapped to itself by the other.

Ethan Bolker
  • 95,224
  • 7
  • 108
  • 199