You can
put this solution on YOUR website!Find two real numbers that have a sum of 8 and a product of 2.
.
Let x = one of two real numbers
and y - second of two real numbers
.
Since we have two unknowns, we'll need two equations.
.
From:"that have a sum of 8" we get equation 1:
x + y = 8
.
From:"product of 2" we get equation 2:
xy = 2
.
Solving equation 1 for y:
x + y = 8
y = 8-x
.
Plug the above into equation 2 and solve for x:
xy = 2
x(8-x) = 2
8x-x^2 = 2
0 = x^2 - 8x + 2
Since, we can't factor, we must use the quadratic equation.
x = {7.742, 0.258}
y = (0.258, 7.742)
.
Answer: the two numbers are 7.742 and 0.258
.
Details of quadratic solution follows:
| Solved by pluggable solver: SOLVE quadratic equation with variable |
Quadratic equation (in our case ) has the following solutons:
![x[12] = (b+-sqrt( b^2-4ac ))/2\a](/cgi-bin/plot-formula.mpl?expression=x%5B12%5D+=+%28b%2B-sqrt%28+b%5E2-4ac+%29%29%2F2%5Ca&x=0003)
For these solutions to exist, the discriminant should not be a negative number.
First, we need to compute the discriminant : .
Discriminant d=56 is greater than zero. That means that there are two solutions: .
![x[1] = (-(-8)+sqrt( 56 ))/2\1 = 7.74165738677394](/cgi-bin/plot-formula.mpl?expression=x%5B1%5D+=+%28-%28-8%29%2Bsqrt%28+56+%29%29%2F2%5C1+=+7.74165738677394&x=0003)
![x[2] = (-(-8)-sqrt( 56 ))/2\1 = 0.258342613226059](/cgi-bin/plot-formula.mpl?expression=x%5B2%5D+=+%28-%28-8%29-sqrt%28+56+%29%29%2F2%5C1+=+0.258342613226059&x=0003)
Quadratic expression can be factored:

Again, the answer is: 7.74165738677394, 0.258342613226059.
Here's your graph:
 |
|