We know that $(f(f(a)) = g(g(a))$ for some $a \in A$. I've tried and tried, both with a finite and infinite $A$, but I can't seem to find a counterexample wherein $f$ and $g$ are not the same. Apologies for the simple question, but I'd appreciate a nudge.
2026-03-31 23:32:52.1774999972
Suppose $f$ and $g$ are both functions from $A$ to $A$. If $f \circ f = g \circ g$, does it follow that $f = g$?
159 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
4
Take $$A=\{1,2\},\qquad f(1)=1,\ f(2)=2,\qquad g(1)=2,\ g(2)=1.$$
If you want $A$ infinite take $A=\mathbb Z$, $f(x)=x$, $g(x)=-x$.