Factor
Set up the search. For a monic quadratic , the factorisation is with and . Here and , so two numbers are needed with product and sum .
Use the signs to prune the list. A negative product means the two numbers have opposite signs. A small positive sum means the positive one is larger in magnitude — by exactly .
Test the opposite-sign pairs of .
The pair and works: ✓ and ✓.
Write the factorisation.
Verify by expanding. ✓, confirmed at every integer from to ✓. The discriminant is a perfect square, which guarantees in advance that integer factors exist.
Read off the roots and the sign behaviour. The zeros are and . Because the parabola opens upward, exactly on and is positive outside. The vertex sits at the midpoint , where the value is — the minimum.
Need to solve a different problem like this? Open the solver →