Ta có:\(\left|x+1\right|+\left|x^2+x-2\right|\ge0\)
\(\Rightarrow x^3-1\ge0\)
\(\Leftrightarrow x\ge1\)
\(\Rightarrow pt\Leftrightarrow x+1+x^2+x-2=x^3-1\)
\(\Leftrightarrow x^2+2x-1=x^3-1\)
\(\Leftrightarrow x\left(x^2-x-2\right)=0\)
\(\Leftrightarrow x\left(x+1\right)\left(x-2\right)=0\)
Mà \(x\ge1\Rightarrow x=2\)