Bài 3:
\(B=x^4-4x^3-2x^2+12x+9\)
\(=x^4-3x^3-x^3+3x^2-5x^2+15x-3x+9\)
\(=\left(x-3\right)\left(x^3-x^2-5x-3\right)\)
\(=\left(x-3\right)\left(x^3-3x^2+2x^2-6x+x-3\right)\)
\(=\left(x-3\right)^2\cdot\left(x+1\right)^2\)
\(=\left(x^2-2x-3\right)^2\)
Bài 3:
\(B=x^4-4x^3-2x^2+12x+9=\left(x^4+x^3\right)-\left(5x^3+5x^2\right)+\left(3x^2+3x\right)+\left(9x+9\right)=\left(x^3-5x^2+3x+9\right)\left(x+1\right)=\left[\left(x^3+x^2\right)-\left(6x^2+6x\right)+\left(9x+9\right)\right]\left(x+1\right)=\left(x^2-6x+9\right)\left(x+1\right)^2=\left(x-3\right)^2\left(x+1\right)^2=\left[\left(x-3\right)\left(x+1\right)\right]^2\)