More about Composition of Functions
f[g(x)] is generally not equal to g[f(x)].
For example, consider f(x) = 2x and g(x) = x - 3.
f[g(x)] = 2(x - 3) = 2x - 6
g[f(x)] = (2x) - 3 = 2x - 3
f[g(x)] is not equal to g[f(x)].
Additional Links for Composition of Functions