
William W. answered 02/23/19
Math and science made easy - learn from a retired engineer
Since f(g(x)) will need to produce an x4 term, f(x) must have an x2 term (because (x2)2 = x4. Based on that, lets figure out what the result of that first term would be if we square g(x).
(g(x))2 = (x2 + x - 1)2 = x4 + 2x3 - x2 - 2x + 1
That gives us both the first and second terms of f(g(x)) so let's look at the third term. I would need to have an additional -2x2 to get the correct third term of f(g(x)) meaning I must need to multiply g(x) by -2.
-2(g(x)) = -2(x2 + x - 1) = -2x2 - 2x + 2
Adding that to the result of squaring g(x) = (x4 + 2x3 - x2 - 2x + 1) + (-2x2 - 2x + 2) or:
x4 + 2x3 - 3x2 - 4x + 3
That is everything except I need to add 3 more. So f(x) = x2 - 2x + 3