What two numbers equal -45 while multiplying and -12 while adding?
\((x+y)=-12\\ xy = -45\\ y=-12-x\\ x y = x(-12-x)=-45\\ x(12+x) = 45\\ x^2 + 12x -45 = 0\\ (x+15)(x-3) = 0\\ x=-15 \text{ or }x=3 \\ y=3 \text{ or }y=-15\\ \text{so we see that the two numbers are }-3 \text{ and }15\)
.Another means:
x+y = 12 so x = -12-y
x*y=-45 Sub x=12-y in to this
(-12-y)y =-45
-y^2-12y +45 = 0
y^2+12y-45=0 now use quadratic formula to find x = -15 and 3