SOLUTION: what numbers multiply to make -10 but add to make 5

Algebra ->  Equations -> SOLUTION: what numbers multiply to make -10 but add to make 5      Log On


   



Question 1139463: what numbers multiply to make -10 but add to make 5
Found 2 solutions by Edwin McCravy, rothauserc:
Answer by Edwin McCravy(20065) About Me  (Show Source):
You can put this solution on YOUR website!
what numbers multiply to make -10
x%2Ay+=+-10
but add to make 5?
x%2By+=+5
So we have this system of two equations in two unknowns:

system%28x%2Ay=-10%2Cx%2By=5%29

Solve the second one for y by subtracting x from both sides:

matrix%282%2C1%2C%0D%0A%0D%0Ax%2By=5%2C%0D%0Ay=5-x%29

Substitute (5-x) for y in x∙y = -10

matrix%283%2C1%2C%0D%0Ax%2Ay=-10%2C%0D%0Ax%2A%285-x%29=-10%2C%0D%0A5x-x%5E2=-10%29

Get 0 on the right by adding 10 to both sides of the equation:

matrix%281%2C1%2C%0D%0A%0D%0A5x-x%5E2%2B10=0%29

Get the left side in descending order:

-x%5E2%2B5x%2B10=0

Multiply through by -1 to make the leading term positive:
(Change all the signs):

x%5E2-5x-10=0

That doesn't factor so we must use the quadratic formula:

x+=+%28-b+%2B-+sqrt%28+b%5E2-4ac+%29%29%2F%282a%29+

a=1, b=-5, c=-10

x+=+%28-%28-5%29+%2B-+sqrt%28%28-5%29%5E2-4%281%29%28-10%29+%29%29%2F%282%281%29%29+

x+=+%285+%2B-+sqrt%2825%2B40+%29%29%2F2+

x+=+%285+%2B-+sqrt%2865+%29%29%2F2+

So there are two solutions for x:

x+=+%285+%2B+sqrt%2865+%29%29%2F2+ and x+=+%285+-+sqrt%2865+%29%29%2F2+

We find y for each solution using y=5-x

y=5-%285+%2B+sqrt%2865+%29%29%2F2+ and y=5-%285+-+sqrt%2865+%29%29%2F2+

y=10%2F2-%285+%2B+sqrt%2865+%29%29%2F2+ and y=10%2F2-%285+-+sqrt%2865+%29%29%2F2+

y=%2810-%285+%2B+sqrt%2865+%29%29%29%2F2+ and y=%2810-%285+-+sqrt%2865+%29%29%29%2F2+

y=%2810-5+-+sqrt%2865+%29%29%2F2+ and y=%2810-5+%2B+sqrt%2865+%29%29%2F2+

y=%285+-+sqrt%2865+%29%29%2F2+ and y=%285+%2B+sqrt%2865+%29%29%2F2+

There really aren't two solutions, it's just a matter of which one
we call x and which one we call y.

Answer: %285+%2B+sqrt%2865+%29%29%2F2+ and %285+-+sqrt%2865+%29%29%2F2+ 

Checking:

Multiply them: 

%28%285+%2B+sqrt%2865+%29%29%2F2%29%28%285+-+sqrt%2865+%29%29%2F2%29+

%2825+-+65+%29%2F4+

%28-40%29%2F4

-10  <-- that checks!

Add them: 

%28%285+%2B+sqrt%2865+%29%29%2F2%29%2B%28%285+-+sqrt%2865+%29%29%2F2%29+

%285%2Bsqrt%2865%29%2B5-sqrt%2865%29+%29%2F2+

10%2F2

5  <-- that also checks!

Edwin

Answer by rothauserc(4718) About Me  (Show Source):
You can put this solution on YOUR website!
I assume that x and y are Real numbers
:
1) x + y = 5
:
2) xy = -10
:
solve equation 1 for x and substitute in equation 2
:
x = 5 - y
:
(5-y)y = -10
:
5y -y^2 = -10
:
y^2 -5y -10 = 0
:
use quadratic formula
:
y = (-(-5) + square root((-5)^2 - 4 * 1 * (-10)))/(2*1)) = 6.5311
:
y = (-(-5) - square root((-5)^2 - 4 * 1 * (-10)))/(2*1)) = -1.5333
:
there are two solutions
:
******************************************
if y = 6.5311, x = 5 - 6.5311 = -1.5311
:
if y = -1.5311, x = 5 - (-1.5311) = 6.5311
******************************************
: