I have been stuck on this for hours now:
Let $f,g: [0,1] \to [0,1]$ be continuous such that $f \circ = g \circ f$. Show that there exists $x \in [0,1]$ such that $f(x)=g(x)$
My attempt: It is easy to proof that $f,g$ have both a fix point in the interval $[0,1]$. That means there exist $a,b \in [0,1]$ such that $f(a)=a$ and $g(b)=b$. Now we also know that $$f(g(x))=g(f(x)), \text{ for all } x $$ So I can make use of that and say for example that: $$f(g(b))=g(f(b))=f(b) $$ Which shows that $f(b)$ is yet another fix point of $g$. Similarly, by the same argument I'd get: $$f(g(a))=g(f(a))=g(a) $$ and therefore $g(a)$ is yet another fix point of $f$. While this seems great and all but I am very unsure if my next steps are correct:
Define $h: [0,1] \to [0,1]$ such that $h(x)=g(x)-f(x)$. Of course $h$ is continuous, because $f,g$ are. Then I'd obtain: $$h(a)=g(a)-f(a)=g(a)-a \geq 0 \\h(b)=g(b)-f(b)=b-g(f(b))... $$ Where I am not quite sure if those two inequalities are right at all or just misleading me.