How do I prove that if A is set and each of f and g is a function from A to A, then f o g = g o f?
Edit: If this is not true how can I prove that it is false using sets?
How do I prove that if A is set and each of f and g is a function from A to A, then f o g = g o f?
Edit: If this is not true how can I prove that it is false using sets?
You won't, because it's not true. For instance let $A=\mathbb Z$, $f(n)=2n$, $g(n)=n^2$. Then $$ f\circ g(n)=2n^2,\ \ g\circ f(n)=4n^2. $$
If $A$ has at most two elements, it is easy to show that the statement is true, by checking the few possibilities.
If $A$ has at least three elements, pick $a,b,c \in A$ distinct. Define $f(a)=b, f(b)=c, f(c)=a$ and $f(x)=x$ otherwise. Also define $g(a)=b, g(b)=a, g(c)=c$ and $g(x)=x$ otherwise. Show that they are bijections but $$f \circ g(c) = a \neq b =g \circ f(c)$$