document.write( "Question 31419: if f(x) = x-1 and g(x) = x^2 +1 find:
\n" ); document.write( "1. g(5)
\n" ); document.write( "2. f(g(5))
\n" ); document.write( "3. f(g(x))
\n" ); document.write( "4. g(f(x))
\n" ); document.write( "5. find all values of x for which f(g(x)) = g(f(x))
\n" ); document.write( "

Algebra.Com's Answer #18171 by mukhopadhyay(490)\"\" \"About 
You can put this solution on YOUR website!
1. g(5) = 5^2+1 = 26
\n" ); document.write( "2. f(g(5)) = f(26) = 26-1 = 25
\n" ); document.write( "3. f(g(x)) = f(x^2+1) = x^2+1-1 = x^2
\n" ); document.write( "4. g(f(x)) = g(x-1) = (x-1)^2+1 = x^2-2x+1+1 = x^2-2x+2
\n" ); document.write( "5. find all values of x for which f(g(x)) = g(f(x)):
\n" ); document.write( "f(g(x)) = g(f(x))
\n" ); document.write( "=>x^2 = x^2-2x+2
\n" ); document.write( "=>2x = 2
\n" ); document.write( "=>x = 1\r
\n" ); document.write( "\n" ); document.write( "For x=1, f(g(x)) = g(f(x))
\n" ); document.write( "
\n" );