\(a,\Rightarrow x^3-3x^2+3x-1+3x^2-12x+1=0\\ \Rightarrow x^3-9x=0\\ \Rightarrow x\left(x-3\right)\left(x+3\right)=0\\ \Rightarrow\left[{}\begin{matrix}x=0\\x=3\\x=-3\end{matrix}\right.\\ b,\Rightarrow x^3-1=x^3-9x^2+2x^2+6\\ \Rightarrow7x^2=7\Rightarrow x^2=1\Rightarrow\left[{}\begin{matrix}x=1\\x=-1\end{matrix}\right.\)