Addition and multiplication on Z, Q, R and
C
Subtraction on these sets is not
commutative. For example, 3 - 2 is not the same as 2 - 3.
whereas
are not the same for all values of x (substitute x = 1 for example), so the functions fg and gf are not the same.