\(\left(x-1\right)^3-2\left(x+1\right)^2=\left(2x+1\right)\left(1-3x\right)-2x\left(1-x\right)\)
\(\Leftrightarrow x^3-3x^2+3x-1-2x^2-4x-2=2x-6x^2+1-3x-2x+2x^2\)
\(\Leftrightarrow x^3-5x^2-x-3=-4x^2-3x+1\)
\(\Leftrightarrow x^3+x^2+2x-4=0\)
\(\Leftrightarrow x^3-x^2+2x^2-2x+4x-4=0\)
\(\Leftrightarrow\left(x-1\right)\left(x^2+2x+4\right)=0\)
=>x-1=0
hay x=1