I've got the following polynomial $$ x^3-6x^2-2x+40 $$ and I want to find its roots. The only option I see at the moment is to compute all the divisors of $40$ and their inverse, and manually check if it's result is $0$. This works, because $4$ is a zero and now we can divide the polynomial by the factor $x-4$, resulting in a second degree polynomial (which is easier to solve).
I was wondering if there's any other method/idea to manually find the roots of this polynomial?
Hint: This can give some information about the possible location of roots, to help eliminate what you actually have to test. (Note: everything here refers to real roots and real zeroes.)
Write your polynomial as the function $$p(x) = x^3-6x^2-2x+40$$ and note that its derivative $$p'(x) = 3x^2 -12x-2$$ has exactly two distinct real zeroes $d_0<d_1$ given by $2\pm\frac16\sqrt{42}$. So, moving from left to right, the graph of $p$ rises to the left of $d_0$, falls between $d_0$ and $d_1$, and rises again to the right of $d_1$.
Then the possibilities depend on the values of $y_j \equiv p(d_j)$:
otherwise $y_0>0$, and we have that