The teacher will be very surprised to see your correct solution 😉
a*x^2 + b*x + c = 0
D = b^2 - 4 * a * c =
(-5)^2 - 4 * (1) * (30) = -95
x1 = (-b + sqrt(D)) / (2*a)
x2 = (-b - sqrt(D)) / (2*a)
____ 5 I*\/ 95 x1 = - - -------- 2 2
____ 5 I*\/ 95 x2 = - + -------- 2 2
x2 = 5/2 + sqrt(95)*i/2
sum
____ ____ 5 I*\/ 95 5 I*\/ 95 - - -------- + - + -------- 2 2 2 2
=
5
product
/ ____\ / ____\ |5 I*\/ 95 | |5 I*\/ 95 | |- - --------|*|- + --------| \2 2 / \2 2 /
=
30
30
x1 = 2.5 + 4.87339717240448*i
x2 = 2.5 - 4.87339717240448*i
x2 = 2.5 - 4.87339717240448*i