document.write( "Question 266090: Please help, solve by completing square\r
\n" ); document.write( "\n" ); document.write( "x^2-4x-1=0
\n" ); document.write( "

Algebra.Com's Answer #195527 by dabanfield(803)\"\" \"About 
You can put this solution on YOUR website!
x^2-4x-1=0\r
\n" ); document.write( "\n" ); document.write( "Rewrite as:\r
\n" ); document.write( "\n" ); document.write( "x^2 - 4x = 1\r
\n" ); document.write( "\n" ); document.write( "We need to add a constant to both sides so that the left side becomes a perfect suqare of the form (x+a)^2.\r
\n" ); document.write( "\n" ); document.write( "Since the middle term is -4x we know that the constant needs to be -4/2 = -2 which when squared is (-2)^2 = 4. So we add 4 to both sides of the equation above:\r
\n" ); document.write( "\n" ); document.write( "x^2 - 4x + 4 = 1 + 4
\n" ); document.write( "(x-2)^ = 5\r
\n" ); document.write( "\n" ); document.write( "Taking the square root of both sides above we have x-2 = sqrt(5) or x-2 = -sqrt(5) so\r
\n" ); document.write( "\n" ); document.write( "x = 2+sqrt(5) or x = 2-sqrt(5)
\n" ); document.write( "
\n" );