Given the quadratic power of x plus the quadratic power of 2 x plus y minus 6y plus 10, for 0, find the value of X and y

Given the quadratic power of x plus the quadratic power of 2 x plus y minus 6y plus 10, for 0, find the value of X and y


x^2+2x+y^2-6y+10=0
To sort out the known formula:
(x^2-2x+1)+(y^2+6y+9)=0
(x-1)^2+(y+3)^2=0
Since the square of any number is nonnegative, then:
Only when X-1 and y + 3 are equal to zero can (x-1) ^ 2 + (y + 3) ^ 2 = 0 hold
That is: x = 1, y = - 3