\(\left(x+1\right)\left(x^2-x+1\right)-x\left(x^2-3\right)=4\\ \Leftrightarrow x^3+1-x^3+3x=4\\ \Leftrightarrow3x=1-4=-3\\ \Leftrightarrow x=-3:3=-1\)
(x + 1) (x2 - x + 1) - x (x2 - 3) = 4
= x3 + 1 - x3 + 3x => 4
= 3x = 1 - 4 => -3
= x = -3 : 3 = -1