to prevent non-real answers for the quadratic equation, ensure that the value of b^2 - 4ac (also known as the discriminant) is greater than zero. If b^2 - 4ac is less than zero the overall result will be non-real (the value within the square root is negative).