If the discriminant of the quadratic equation ax2+bx+c is zero, then its roots will be
The roots of a quadratic function are given by x=−b±√b2−4ac2a
D=b2−4ac is called the discriminant
As D=0
x=−b2a is the only root
Hence, the roots of the equation are real and equal when discriminant is zero.