El profesor se sorprenderá mucho al ver tu solución correcta😉
a*x^2 + b*x + c = 0
D = b^2 - 4 * a * c =
(2*y)^2 - 4 * (1) * (-y^2) = 8*y^2
x1 = (-b + sqrt(D)) / (2*a)
x2 = (-b - sqrt(D)) / (2*a)
/ ___\ / ___\ x1 = \-1 + \/ 2 /*re(y) + I*\-1 + \/ 2 /*im(y)
/ ___\ / ___\ x2 = \-1 - \/ 2 /*re(y) + I*\-1 - \/ 2 /*im(y)
x2 = (-sqrt(2) - 1)*re(y) + i*(-sqrt(2) - 1)*im(y)
suma
/ ___\ / ___\ / ___\ / ___\ \-1 + \/ 2 /*re(y) + I*\-1 + \/ 2 /*im(y) + \-1 - \/ 2 /*re(y) + I*\-1 - \/ 2 /*im(y)
=
/ ___\ / ___\ / ___\ / ___\ \-1 + \/ 2 /*re(y) + \-1 - \/ 2 /*re(y) + I*\-1 + \/ 2 /*im(y) + I*\-1 - \/ 2 /*im(y)
producto
// ___\ / ___\ \ // ___\ / ___\ \ \\-1 + \/ 2 /*re(y) + I*\-1 + \/ 2 /*im(y)/*\\-1 - \/ 2 /*re(y) + I*\-1 - \/ 2 /*im(y)/
=
2 2 im (y) - re (y) - 2*I*im(y)*re(y)
im(y)^2 - re(y)^2 - 2*i*im(y)*re(y)