The teacher will be very surprised to see your correct solution 😉
a*x^2 + b*x + c = 0
D = b^2 - 4 * a * c =
(4)^2 - 4 * (1) * (9) = -20
x1 = (-b + sqrt(D)) / (2*a)
x2 = (-b - sqrt(D)) / (2*a)
___ x1 = -2 - I*\/ 5
___ x2 = -2 + I*\/ 5
x2 = -2 + sqrt(5)*i
sum
___ ___ -2 - I*\/ 5 + -2 + I*\/ 5
=
-4
product
/ ___\ / ___\ \-2 - I*\/ 5 /*\-2 + I*\/ 5 /
=
9
9
x1 = -2.0 - 2.23606797749979*i
x2 = -2.0 + 2.23606797749979*i
x2 = -2.0 + 2.23606797749979*i