document.write( "Question 216335: let f(x)=2x^2+3x-5 g(x)=4 solve for fog and gof \n" ); document.write( "
Algebra.Com's Answer #163492 by jsmallt9(3758)\"\" \"About 
You can put this solution on YOUR website!
\"f%28x%29=2x%5E2%2B3x-5\"
\n" ); document.write( "\"g%28x%29=4\"

\n" ); document.write( "To solve for fog (pronounced \"f of g\") and gof (\"pronounced g of f\") it helps to understand function notation well. When you are given a formula (or rule) for a function (like \"f%28x%29=2x%5E2%2B3x-5\") it is important to understand the role of \"x\". It is simply a place-holder. It represents whatever input you provide to the function. And the rule illustrates what the particular function will do with its input in determining the output for that input.

\n" ); document.write( "So when you see \"f%28x%29=2x%5E2%2B3x-5\" it shows you what that function f will do with its input, \"x\". It will square it, multiply that by 2, add 3 times the input and then subtract 5. The function f will do this to any input you give it.
\n" ); document.write( "\"f%28x%29=2x%5E2%2B3x-5\"
\n" ); document.write( "\"f%28q%29=2q%5E2%2B3q-5\"
\n" ); document.write( "\"f%28z%29=2z%5E2%2B3z-5\"
\n" ); document.write( "\"f%289%29=2%289%29%5E2%2B3%289%29-5\"
\n" ); document.write( "\"f%284x%2B3%29=2%284x%2B3%29%5E2%2B3%284x%2B3%29-5\"
\n" ); document.write( "For \"g%28x%29+=+4\", since there is no \"x\" in the rule, the function g ignores the input! It simply returns a 4 no matter what input is given to the function!
\n" ); document.write( "\"g%28y%29+=+4\"
\n" ); document.write( "\"g%28q%29+=+4\"
\n" ); document.write( "\"g%28x%5E2-3x%2B99%29+=+4\"
\n" ); document.write( "etc.
\n" ); document.write( "

\n" ); document.write( "So now we are in position to figure out your problem. fog (\"f of g\") is another way of saying f(g(x)). Since g(x) = 4, f(g(x)) = f(4). And we saw above what f does to its input. It squares it, multiplies that by 2, etc. This is what it will do to 4:
\n" ); document.write( "\"f%284%29=2%284%29%5E2%2B3%284%29-5\"
\n" ); document.write( "Now all we have to do is go through the Order of Operations (aka PEMDAS) to simplify it:
\n" ); document.write( "\"f%284%29=2%2816%29%2B3%284%29-5\"
\n" ); document.write( "\"f%284%29=32%2B12-5\"
\n" ); document.write( "\"f%284%29=39\"
\n" ); document.write( "So fog = f(g(x)) = f(4) = 39

\n" ); document.write( "gof (\"g of f\") is another way of saying g(f(x)). Now, as we saw above, the g function totally ignores its input and simply returns 4 all the time. So gof = g(f(x)) = 4!
\n" ); document.write( "
\n" ); document.write( "
\n" );