Ta có \(x^4+10x^3+32x^2+40x+16=\left(x^4+2x^3\right)+\left(8x^3+16x^2\right)+\left(16x^2+32x\right)+\left(8x+16\right)\)
\(=x^3\left(x+2\right)+8x^2\left(x+2\right)+16x\left(x+2\right)+8\left(x+2\right)\)
\(=\left(x+2\right)\left(x^3+8x^2+16x+8\right)=\left(x+2\right)\left(x+2\right)\left(x^2+6x+4\right)\)
\(=\left(x+2\right)^2\left(x^2+6x+4\right)\)