a: Ta có: \(\left(x-3\right)^2-x\left(x+5\right)=9\)
\(\Leftrightarrow x^2-6x+9-x^2-5x=9\)
\(\Leftrightarrow x=0\)
b: Ta có: \(\left(x+2\right)\left(x^2-2x+4\right)-x\left(x^2+2\right)=15\)
\(\Leftrightarrow x^3+8-x^3-2x=15\)
\(\Leftrightarrow2x=-7\)
hay \(x=-\dfrac{7}{2}\)