a: \(A=x^3y-12xy-x^2y\)
\(=xy\cdot x^2-xy\cdot12-xy\cdot x\)
\(=xy\left(x^2-x-12\right)\)
\(=xy\left(x^2-4x+3x-12\right)\)
\(=xy\left[x\left(x-4\right)+3\left(x-4\right)\right]\)
\(=xy\left(x-4\right)\left(x+3\right)\)
c: \(C=\left(x+1\right)\left(x+2\right)\left(x+3\right)\left(x+4\right)-120\)
=(x+1)(x+4)(x+2)(x+3)-120
\(=\left(x^2+5x+4\right)\left(x^2+5x+6\right)-120\)
\(=\left(x^2+5x\right)^2+10\left(x^2+5x\right)+24-120\)
\(=\left(x^2+5x\right)^2+10\left(x^2+5x\right)-96\)
\(=\left(x^2+5x+16\right)\left(x^2+5x-6\right)\)
\(=\left(x^2+5x+16\right)\left(x+6\right)\left(x-1\right)\)
d: \(D=x^5-x^4+x^2-1\)
\(=\left(x^5-x^4\right)+\left(x^2-1\right)\)
\(=x^4\left(x-1\right)+\left(x-1\right)\left(x+1\right)\)
\(=\left(x-1\right)\left(x^4+x+1\right)\)