How this calculation works
A positive leading coefficient puts the negative region between two real roots. A negative leading coefficient reverses that pattern.
Locate real roots and test the sign between rootsA worked example
x²−5x+6 is negative strictly between 2 and 3.
Good to know
Enter a nonzero quadratic coefficient.
Reference: OpenStax Algebra and Trigonometry (opens in a new tab) ↗
Use the roots to divide the number line
The default polynomial x² − 5x + 6 factors as (x − 2)(x − 3). Its roots divide the number line into three intervals. At x = 1 both factors are negative and their product is positive. At x = 2.5 the factors have opposite signs and the product is negative. At x = 4 both are positive.
The solution to x² − 5x + 6 < 0 is therefore the open interval (2,3). The endpoints are excluded because the polynomial equals zero there and the inequality is strict. The SVG marks both endpoints with open circles and highlights the interval where the product is negative.
Combine opening direction with the discriminant
With two distinct real roots, a positive leading coefficient gives negative values between the roots. A negative leading coefficient reverses the signs, producing negative values outside them. A zero discriminant gives a repeated root, so the graph touches the axis without crossing it.
For a positive leading coefficient and a repeated root, the strict negative solution is empty. For a negative coefficient, every real x except that root works. With a negative discriminant, the polynomial has one sign everywhere, determined by its leading coefficient. The Quadratic root sum and product calculator helps check root arithmetic, while a full sign test remains necessary to choose the correct interval.
A few questions, answered
Does this solve a less-than-or-equal inequality?
It solves the strict relation f(x) < 0. A non-strict inequality would include any real roots at which f(x) = 0.
Can the quadratic coefficient be zero?
The tool requires a nonzero quadratic coefficient. A zero value would reduce the expression to a linear or constant inequality.