greatest common factor of -x^3-x^2+x
-x3 - x2 + x can be factored as x(-x2 - x + 1) or as -x(x2 + x - 1)
So, either -x or x is the greatest common factor, depending upon which one is positive.