\(\left(x-1\right)^3=x-1\)
\(\Leftrightarrow\left(x-1\right)^3-\left(x-1\right)=0\)
\(\Leftrightarrow\left(x-1\right)\left[\left(x-1\right)^2-1\right]=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x-1=0\\\left(x-1\right)^2-1=0\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x=1\\\left(x-1\right)^2=1\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x=1\\\left[{}\begin{matrix}x-1=1\\x-1=-1\end{matrix}\right.\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=1\\\left[{}\begin{matrix}x=2\\x=0\end{matrix}\right.\end{matrix}\right.\)
Vậy S = {0; 1; 2}