document.write( "Question 1194123: given the functions f(x)=x+2 and g(x)=x^2, determine all values of x for which f(g(x))=g(f(x)). \n" ); document.write( "
Algebra.Com's Answer #826235 by ikleyn(52781)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "given the functions f(x)=x+2 and g(x)=x^2, determine all values of x for which f(g(x))=g(f(x)).
\n" ); document.write( "~~~~~~~~~~~~~~~~~\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "Left side of this equation is\r\n" );
document.write( "\r\n" );
document.write( "    f(g(x)) = g(x) + 2 = x^2 + 2.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Right side of this equation is\r\n" );
document.write( "\r\n" );
document.write( "    g(f(x)) = (f(x))^2 = (x+2)^2 = x^2 + 4x + 4.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "So, this equation  f(g(x))=g(f(x))  takes the form\r\n" );
document.write( "\r\n" );
document.write( "    x^2 + 2 = x^2 + 4x + 4.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Cancel the terms x^2 in both sides; keep the term with x in right side; collect constant terms in left side\r\n" );
document.write( "\r\n" );
document.write( "    2 - 4 = 4x\r\n" );
document.write( "\r\n" );
document.write( "      -2  = 4x\r\n" );
document.write( "\r\n" );
document.write( "      -1/2  =  x.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "ANSWER.  x = -1/2.\r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "Solved.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );