SOLUTION: If f(x)=2x^2+3 and g(x)=x-5 find: a. (f o g)(3) b. (g o f)(3) I am unsure as to where the (3) goes in this problem. I do know that the (3) will replace the x in the problem. My

Algebra ->  Functions -> SOLUTION: If f(x)=2x^2+3 and g(x)=x-5 find: a. (f o g)(3) b. (g o f)(3) I am unsure as to where the (3) goes in this problem. I do know that the (3) will replace the x in the problem. My       Log On


   



Question 515560: If f(x)=2x^2+3 and g(x)=x-5 find:
a. (f o g)(3)
b. (g o f)(3)
I am unsure as to where the (3) goes in this problem. I do know that the (3) will replace the x in the problem. My question is "How do I put a (3) in when I start with 2x^2?" This is how I started the problem:
(f o g)(3)=(f o g)*(3)=2*(x-5)^2+3. Would you please help me solve both of these problems step by step. Your guidance will be greatly appreciated.
Respectfully,
TLM

Answer by drcole(72) About Me  (Show Source):
You can put this solution on YOUR website!
When you write (f o g)(x), you mean the composition of f after g, or f(g(x)) (notice that f is to the left of g, just like in (f o g)(x)). In other words, first you plug x into g(x), then you plug the result from g(x) into the function f. In this case, we have
f%28x%29+=+2x%5E2+%2B+3 and g%28x%29+=+x+-+5
and we are asked to compute (f o g)(3) and (g o f)(3).
For (f o g)(3), you are first plugging 3 into g(x):
g%283%29+=+3+-+5+=+-2
Now you take g(3) = -2 and plug that result into f:
f%28g%283%29%29+=+f%28-2%29+=+2%2A%28%28-2%29%5E2%29+%2B+3+=+2+%2A+4+%2B+3+=+8+%2B+3+=+11
For (g o f)(3), the situation is reversed: you are computing g(f(3)) (notice how the order changed), so you first plug 3 into f(x):
f%283%29+=+2+%2A+%283%5E2%29+%2B+3+=+2+%2A+9+%2B+3+=+18+%2B+3+=+21
and then take f(3) = 21 and plug that result into g:
g%28f%283%29%29+=+g%2821%29+=+21+-+5+=+16
So (f o g)(3) = 11, while (g o f)(3) = 16. Now, we could have gotten the same answer by plugging the actual formula for g(x) into f(x) and vice versa, like you started to do, and you may be asked to do that on an exam (you have the correct formula for (f o g)(x)). That said, if you just need to compute the composition at some value of x, like x = 3, using the method above is usually the easiest way to go.