Breaks ax² + bx + c into a product of linear factors. With whole-number coefficients and a perfect-square discriminant the roots are rational, so the factors have whole-number coefficients; otherwise the roots are shown as decimals.
This breaks into a product of linear factors. The quadratic formula gives the two roots, and the factors are built from them.
and are the roots of . When a root is a fraction , the factor can be multiplied by and written as , which keeps every coefficient whole.
If the discriminant is a perfect square then in the quadratic formula is a whole number, so the roots are rational. With whole-number coefficients as well, the factorization comes out in whole numbers. Otherwise the roots are irrational, no whole-number factorization exists, and the roots are shown as decimals.
Take . Here , a perfect square. The roots are , which is and . Rewriting them as and gives .
A negative discriminant means the expression cannot be split into linear factors over the real numbers.
With equal to 0 this is not a quadratic, so nothing is calculated.