Polynomial factorization and finding intercepts