Find gof and fog if 1:R → R and g: R → R are given by f(x) = cosx and g(x) = 3x2 show that gof ≠ fog.
f(x) = cosx
g(x) = 3x2
gof(x) = g[f(x)]
= g[cosx]
= 3cos2x
fog(x) = f[g(x)]
= f[3x2]
= cos3x2
fog ≠ gof