a) \(\left(x-1\right)^3+3\left(x+1\right)^2=\left(x^2-2x+4\right)\)
\(\Leftrightarrow x^3+9x+2=x^3+8\)
\(\Leftrightarrow x^3+9x=x^3+8-2\)
\(\Leftrightarrow x^3+9x=x^3+6\)
\(\Leftrightarrow x^3+9x=x^3+6x-x^3\)
\(\Leftrightarrow\frac{2}{3}\)
b) \(x^2-4=8\left(x-2\right)\)
\(\Leftrightarrow x^2-4=8x-16\)
\(\Leftrightarrow x^4-4=8x-16+16\)
\(\Leftrightarrow x^2+12=8x\)
\(\Leftrightarrow x^2+12=8x-8x\)
\(\Leftrightarrow x^2-8x+12=0\)
\(\Rightarrow\orbr{\begin{cases}x=2\\x=6\end{cases}}\)