document.write( "Question 1181193: Find the number in the interval [ - 2, 2 ] so that the difference of the
\n" ); document.write( "number from its square is maximized.
\n" ); document.write( "

Algebra.Com's Answer #811080 by ikleyn(53751)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "Find the number in the interval [ - 2, 2 ] so that the difference of the
\n" ); document.write( "number from its square is maximized.
\n" ); document.write( "~~~~~~~~~~~~~~~~~~~~\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "            The solution given by  Edwin in his post is  ONLY  PART  of the FULL  solution,  and being the part, only, \r
\n" ); document.write( "\n" ); document.write( "            IT  DOES  NOT  GIVE  the full solution.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "            His solution for the local minimum/maximum should be supplemented by the end-behavior analysis \r
\n" ); document.write( "\n" ); document.write( "            of the function  f(x) = x^2 - x.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "This end-behavior analysis gives the values\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "    (a)  at x = -2,  f(-2) = (-2)^2 - (-2) = 4 + 2 = 6;\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "    (a)  at x =  2,  f(2)  =   2^2  -   2  = 4 - 2 = 2.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "So, the answer is:  in the interval [-2,2],  the number which provides the maximum of the function f(x) = x^2 - x, is the value of x= -2.\r\n" );
document.write( "
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "As you see,  the correct answer is totally different from that by  Edwin.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "                            For better understanding,  see the plot below.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "              \r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "     Plot y = \"x%5E2\" (red),  y = x (green)  and  the difference y = \"x%5E2+-+x\" (blue)\r\n" );
document.write( "
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );