A quadratic equation can be solved using the discriminant. The roots of the quadratic equation: x1=2aD−b x2=2a−D−b where D = b^2 - 4*a*c - it is the discriminant. Because a=1 b=2 c=5 , then
D = b^2 - 4 * a * c =
(2)^2 - 4 * (1) * (5) = -16
Because D<0, then the equation has no real roots, but complex roots is exists.