\(x^3+9x^2+6x-16\)
\(=x^3+x^2-2x+8x^2+8x-16\)
\(=x\left(x^2+x-2\right)+8\left(x^2+x-2\right)\)
\(=\left(x^2+x-2\right)\left(x+8\right)\)
\(=\left(x^2-x+2x-2\right)\left(x+8\right)\)
\(=\left[x\left(x-1\right)+2\left(x-1\right)\right]\left(x+8\right)\)
\(=\left(x-1\right)\left(x+2\right)\left(x+8\right)\)