How to determine the zeros of a polynomial by factoring