the terms are written incorrect, lets arrange it first
x^3 - x + 8x^2 - 8
then bracket the similar terms
(x^3 - x) + (8x^2 - 8)
take out common factor of each term
x(x^2-1) + 8 (x^2-1)
then group them
we get
(x+8)(x^2-1)
further factorization
(x+8)(x+1)(x-1)