a) x4 + 3x3 - 7x2 - 27x - 18
= x4 + x3 + 2x3 + 2x2 - 9x2 - 9x - 18x - 18
= x3 . (x + 1) + 2x2 . (x + 1) - 9x . (x + 1) - 18(x + 1)
= (x + 1)(x3 + 2x2 - 9x - 18)
= (x + 1)[x2 .(x + 2) - 9.(x + 2)]
= (x + 1)(x + 2)(x2 - 32)
= (x + 1)(x + 2)(x + 3)(x - 3)
b) x4 + 3x3 + 3x2 + 3x + 2
= x4 + x3 + 2x3 + 2x2 + x2 + x + 2x + 2
= x3 (x + 1) + 2x2 . (x + 1) + x(x + 1) + 2(x + 1)
= (x + 1)(x3 + 2x2 + x + 2)
= (x + 1)[x2 .(x + 2) + (x + 2)]
= (x + 1)(x + 2)(x2 + 1)
\(x^4+3x^3-7x^2-27x-18\)
\(=\left(x^4+x^3\right)+\left(2x^3+2x^2\right)-\left(9x^2+9x\right)-\left(18x-18\right)\)
\(=x^3\left(x+1\right)+2x^2\left(x+1\right)-9x\left(x+1\right)-18\left(x+1\right)\)
\(=\left(x+1\right)\left(x^3+2x^2-9x-18\right)\)
\(=\left(x+1\right)\left[\left(x^3-3x^2\right)+\left(5x^2-15x\right)+\left(6x-18\right)\right]\)
\(=\left(x+1\right)\left[x^2\left(x-3\right)+5x^2\left(x-3\right)+6\left(x-3\right)\right]\)
\(=\left(x+1\right)\left(x-3\right)\left(x^2+5x+6\right)\)
\(=\left(x+1\right)\left(x-3\right)\left(x+2\right)\left(x+3\right)\)
\(=\left(x+1\right)\left(x+2\right)\left(x+3\right)^2\)