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