If the polynomial is irreducible look at the discriminant.