Define functions and verify to get the desired result.
Let f(x)=x2 and g(x)=x+1
(fog)(x)=f(g(x))
=f(x+1)
=(x+1)2
=x2+2x+1…(1)
(gof)(x)=g(f(x))
=g(x2)
=x2+1…(2)
Comparing (1) and (2), we get
(fog)(x)≠(gof)(x)
Therefore, the composition of function f and g is not commutative.
Hence, the given statement is false.