SOLUTION: please help me solve this: if f(x)=x^2+2x+2,find two functions g for which (f°g)(x)=x^2-4x+5.

Algebra ->  Coordinate Systems and Linear Equations  -> Lessons -> SOLUTION: please help me solve this: if f(x)=x^2+2x+2,find two functions g for which (f°g)(x)=x^2-4x+5.      Log On


   



Question 1144347: please help me solve this: if f(x)=x^2+2x+2,find two functions g for which (f°g)(x)=x^2-4x+5.
Answer by greenestamps(13200) About Me  (Show Source):
You can put this solution on YOUR website!


f%28x%29+=+x%5E2%2B2x%2B2+=+%28x%5E2%2B2x%2B1%29%2B1+=+%28x%2B1%29%5E2%2B1



Therefore

g%28x%29+=+x-3
f%28x%29+=+%28x%2B1%29%5E2%2B1

It takes some experience with this kind of problem to see how the above process works.

Here is another way to solve the problem.

The given function f(x) contains a term in x^2; that means somewhere along the way the function f has to square the input. So as above we can write f(x) as

f%28x%29+=+x%5E2%2B2x%2B2+=+%28x%5E2%2B2x%2B1%29%2B1+=+%28x%2B1%29%5E2%2B1

Then since f(x) is quadratic and f(g(x)) is also quadratic, we know that g(x) must be linear.

So let g(x) = ax+b. Then



Then since f(g(x)) = x^2-4x+5, equating coefficients gives us

(1) a%5E2=1
(2) 2ab%2B2a+=+-4
(3) b%5E2%2B2b%2B2+=+5

(1) gives us a=1

Substituting a=1 in (2) gives us
2b%2B2+=+-4
2b+=+-6
b+=+-3

And now we know the linear function g(x) is ax+b = x-3.

ANSWER:
f%28x%29+=+%28x%2B1%29%5E2%2B1
g%28x%29+=+x-3