Find the solution of the cubic equation of one variable: x3-x2-x-2 = 0 (3 is cubic, 2 is quadratic)

Find the solution of the cubic equation of one variable: x3-x2-x-2 = 0 (3 is cubic, 2 is quadratic)

Factorization
X3-x2-x-2=x^3-8-(x^2+x-6)=(x-2)(x^2+2x+4)-(x-2)(x+3)=(x-2)(x^2-x+1)=0
Then X-2 = 0 or x ^ 2-x + 1 = 0 gives x = 2