document.write( "Question 304776: how do i write this function to solve it
\n" ); document.write( "f(x)=-3x+9
\n" ); document.write( "g(x)=8x+7
\n" ); document.write( "find f(g(x))
\n" ); document.write( "this is what i did but did not get the right answer: -3x+9(8x+7) i also tried it like this: (-3x+9)(8x+7)
\n" ); document.write( "

Algebra.Com's Answer #218249 by TX911(36)\"\" \"About 
You can put this solution on YOUR website!
you would write it as:\r
\n" ); document.write( "\n" ); document.write( "-3(8x+7)+9\r
\n" ); document.write( "\n" ); document.write( "-24x-21+9\r
\n" ); document.write( "\n" ); document.write( "-24x-12\r
\n" ); document.write( "\n" ); document.write( "Remember, for a composite function where f(g(x)), you simply compose the functions by substituting g(x) in anywhere you see an x in the \"f\" function.\r
\n" ); document.write( "\n" ); document.write( "f(x) is -3x+9 and g(x) is 8x+7. So again, for f(x): -3(insert g(x) here) +9 and then simplify. \r
\n" ); document.write( "\n" ); document.write( "Hope this helps
\n" ); document.write( "
\n" );