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