using tow codes make a composite function wtih equation fx x
using tow codes make a composite function wtih equation f(x) x^2+ x and g(x) = 3x
f(g(-2))
f(f(3))
g(f(1))
Solution
we have f(x) = x2+x and g(x) = 3x.
Hence
f(g(-2)) = f[ 3*-2] = f(-6) = (-6)2 + (-6) = 36 - 6 = 30
f(f(3)) = f [ 32+3 ] = f (12) = 122 + 12 = 144 +12 = 156
g(f(1)) = g[ 12+1] = g(2) = 3*2 = 6.
