a: Ta có: \(\left(x-3\right)^3-\left(x-3\right)\left(x^2+3x+9\right)+9\left(x+1\right)^2=4\)
\(\Leftrightarrow x^3-9x^2+27x-27-x^3+27+9x^2+18x+9=4\)
\(\Leftrightarrow45x=-5\)
hay \(x=-\dfrac{1}{9}\)
b: Ta có: \(x\left(x-5\right)\left(x+5\right)-\left(x+2\right)\left(x^2-2x+4\right)=17\)
\(\Leftrightarrow x^3-25x-x^3-8=17\)
\(\Leftrightarrow-25x=25\)
hay x=-1