I have a few questions about continuous functions $f$ and $g$ that satisfy the condition
$$f\circ g=g\circ f\tag{1}$$
(1) Is there an interesting (graphical) intuition about what this condition implies? I have to think a lot to come up with an example that isn't inverse functions. Is there some insight that would permit coming up with examples easier?
(2) Given a function such as $f(x)=1+2x$ how do we find a $g$ that together with $f$ satisfies $(1)$?
(3) If we impose the additional condition that $0\leq f,g\leq 1$ for all $x\in [0,1]$, what are some examples in which
(3a) $f(1)\neq g(1)$?
(3b) in particular, $f(1)$ and $g(1)$ are in $(0,1)$ and $f(1)\neq g(1)$?
Here are examples I came up with that aren't inverses.
$f(x)=\sqrt{x}$, $g(x)=x^4$, $f(g(x))=g(f(x))=x^2$
Here we have a case of (3a)
$f(x)=x$, $g(x)=1-x$, $f(g(x))=g(f(x))=1-x$
I haven't been able to come up with a case (3b).
Some Context
This question came up while solving a problem in Chapter 22, "Infinite Sequences", from Spivak's Calculus.
The task there was to prove that if
- $f$ and $g$ are continuous functions on $[0,1]$
- $f\circ g=g\circ f$
- $0\leq f(x),g(x)\leq 1$ for all $x\in [0,1]$
- $f$ increasing
then $f$ and $g$ have a common fixed point.
I was able to prove this, but even so I don't feel like I have a good feel for what the assumptions mean.
Hence, my questions.



Fairly obvious examples include
I think anything which is homogeneous fits the bill. As soon as you go into polynomials it starts to fail, so $f(x)=ax+b$ and $g(x)=cx+d$ fail since $f(g(x))=a(cx+d)+b\neq g(f(x))=c(ax+b)+d$ unless $ad+b=cb+d$.