document.write( "Question 153155: Find two real numbers that have a sum of 8 and a product of 2. \n" ); document.write( "
Algebra.Com's Answer #112674 by nerdybill(7384)\"\" \"About 
You can put this solution on YOUR website!
Find two real numbers that have a sum of 8 and a product of 2.
\n" ); document.write( ".
\n" ); document.write( "Let x = one of two real numbers
\n" ); document.write( "and y - second of two real numbers
\n" ); document.write( ".
\n" ); document.write( "Since we have two unknowns, we'll need two equations.
\n" ); document.write( ".
\n" ); document.write( "From:\"that have a sum of 8\" we get equation 1:
\n" ); document.write( "x + y = 8
\n" ); document.write( ".
\n" ); document.write( "From:\"product of 2\" we get equation 2:
\n" ); document.write( "xy = 2
\n" ); document.write( ".
\n" ); document.write( "Solving equation 1 for y:
\n" ); document.write( "x + y = 8
\n" ); document.write( "y = 8-x
\n" ); document.write( ".
\n" ); document.write( "Plug the above into equation 2 and solve for x:
\n" ); document.write( "xy = 2
\n" ); document.write( "x(8-x) = 2
\n" ); document.write( "8x-x^2 = 2
\n" ); document.write( "0 = x^2 - 8x + 2
\n" ); document.write( "Since, we can't factor, we must use the quadratic equation.
\n" ); document.write( "x = {7.742, 0.258}
\n" ); document.write( "y = (0.258, 7.742)
\n" ); document.write( ".
\n" ); document.write( "Answer: the two numbers are 7.742 and 0.258
\n" ); document.write( ".
\n" ); document.write( "Details of quadratic solution follows:\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%2B-8x%2B2+=+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=%28-8%29%5E2-4%2A1%2A2=56\".
\n" ); document.write( "
\n" ); document.write( " Discriminant d=56 is greater than zero. That means that there are two solutions: \"+x%5B12%5D+=+%28--8%2B-sqrt%28+56+%29%29%2F2%5Ca\".
\n" ); document.write( "
\n" ); document.write( " \"x%5B1%5D+=+%28-%28-8%29%2Bsqrt%28+56+%29%29%2F2%5C1+=+7.74165738677394\"
\n" ); document.write( " \"x%5B2%5D+=+%28-%28-8%29-sqrt%28+56+%29%29%2F2%5C1+=+0.258342613226059\"
\n" ); document.write( "
\n" ); document.write( " Quadratic expression \"1x%5E2%2B-8x%2B2\" can be factored:
\n" ); document.write( " \"1x%5E2%2B-8x%2B2+=+1%28x-7.74165738677394%29%2A%28x-0.258342613226059%29\"
\n" ); document.write( " Again, the answer is: 7.74165738677394, 0.258342613226059.\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%2B-8%2Ax%2B2+%29\"
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" );