b) \(\left(x-1\right)\left(x^2+x+1\right)-x\left(x-3\right)\left(x+3\right)=8\)
\(\Rightarrow x^3-1-x\left(x^2-9\right)=8\)
\(\Rightarrow x^3-1-x^3+9x=8\)
\(\Rightarrow9x=9\Rightarrow x=1\)
c) \(\left(x^2+2\right)\left(x-4\right)-\left(x+2\right)\left(x^2+4x+4\right)=-16\)
\(\Rightarrow x^3-4x^2+2x-8-\left(x+2\right)\left(x+2\right)^2=-16\)
\(\Rightarrow x^3-4x^2+2x-8-\left(x+2\right)^3=-16\)
\(\Rightarrow x^3-4x^2+2x-8-\left(x^3+6x^2+12x+8\right)=-16\)
\(\Rightarrow x^3-4x^2+2x-8-x^3-6x^2-12x-8=-16\)
\(\Rightarrow-10x^2-10x-16=-16\)
\(\Rightarrow10x^2+10x=0\)
\(\Rightarrow10x\left(x+1\right)=0\Rightarrow\left[{}\begin{matrix}x=0\\x+1=0\end{matrix}\right.\Rightarrow\left[{}\begin{matrix}x=0\\x=-1\end{matrix}\right.\)