The discriminant D = b2 – 4ac reveals the nature of the roots that the equation has. It is determined from the coefficients of the equation.
If D = 0, the roots are equal, real and rational
If D > 0, and also a perfect square, the roots are real, distinct and rational
If D > 0, but not a perfect square, the roots are real, distinct and irrational