document.write( "Question 77762This question is from textbook
\n" ); document.write( ": Solve equation
\n" ); document.write( "x^2+2x+5=0
\n" ); document.write( "value of k that completes the square
\n" ); document.write( "x^2+10x+k
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #55747 by jim_thompson5910(35256)\"\" \"About 
You can put this solution on YOUR website!
To solve for x, we need to use the quadratic formula:\r
\n" ); document.write( "\n" ); document.write( "\n" ); document.write( "\n" ); document.write( " \n" ); document.write( "\n" ); document.write( "
Solved by pluggable solver: SOLVE quadratic equation with variable
Quadratic equation \"ax%5E2%2Bbx%2Bc=0\" (in our case \"1x%5E2%2B2x%2B5+=+0\") has the following solutons:
\n" ); document.write( "
\n" ); document.write( " \"x%5B12%5D+=+%28b%2B-sqrt%28+b%5E2-4ac+%29%29%2F2%5Ca\"
\n" ); document.write( "
\n" ); document.write( " For these solutions to exist, the discriminant \"b%5E2-4ac\" should not be a negative number.
\n" ); document.write( "
\n" ); document.write( " First, we need to compute the discriminant \"b%5E2-4ac\": \"b%5E2-4ac=%282%29%5E2-4%2A1%2A5=-16\".
\n" ); document.write( "
\n" ); document.write( " The discriminant -16 is less than zero. That means that there are no solutions among real numbers.

\n" ); document.write( " If you are a student of advanced school algebra and are aware about imaginary numbers, read on.

\n" ); document.write( "
\n" ); document.write( " In the field of imaginary numbers, the square root of -16 is + or - \"sqrt%28+16%29+=+4\".
\n" ); document.write( "
\n" ); document.write( " The solution is \"x%5B12%5D+=+%28-2%2B-+i%2Asqrt%28+-16+%29%29%2F2%5C1+=++%28-2%2B-+i%2A4%29%2F2%5C1+\"
\n" ); document.write( "
\n" ); document.write( " Here's your graph:
\n" ); document.write( "\"graph%28+500%2C+500%2C+-10%2C+10%2C+-20%2C+20%2C+1%2Ax%5E2%2B2%2Ax%2B5+%29\"

\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "So our answer is \r
\n" ); document.write( "\n" ); document.write( "\"x=-1%2B2i\" or \"x=-1-2i\"\r
\n" ); document.write( "\n" ); document.write( "The value of k that completes the square will be equal to the square of half of 10, which looks like this\r
\n" ); document.write( "\n" ); document.write( "\"k=%2810%2F2%29%5E2\"\r
\n" ); document.write( "\n" ); document.write( "\"k=5%5E2\"\r
\n" ); document.write( "\n" ); document.write( "\"k=25\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "So our polynomial becomes\r
\n" ); document.write( "\n" ); document.write( "\"x%5E2%2B10x%2B25\"\r
\n" ); document.write( "\n" ); document.write( "Notice how it can be factored to \"%28x%2B5%29%28x%2B5%29=%28x%2B5%29%5E2\" which is a perfect square
\n" ); document.write( "
\n" );