If f(x)=x2+4x and g(x)=3x5, how do you find (f(g(x)) and g(f(x))?

1 Answer
Feb 19, 2015

It might be better if we think of the functions as having different parameters, so

If f(a)=a2+4a
and g(b)=3b5,

then
f(g(x)) simply means re-writing the f(a) equation with a replaced by g(x):
f(g(x))
=(g(x)2+4(g(x))
=(3x5)2+4(3x5)
=9x218x+5

Similarly
g(fx))
=3(x2+4x)5 (by replacing b with f(x))
=3x2+12x