Composition of functions from R to R is not commutative. For instance f(x) = x2 and g(x) = x + 1 do not commute:
g(f(x)) = x2 + 1