a) \(x^2-xz-9y^2+3yz\)
\(=\left(x^2-9y^2\right)-\left(xz-3yz\right)\)
\(=\left[x^2-\left(3y\right)^2\right]-z\left(x-3y\right)\)
\(=\left(x-3y\right)\left(x+3y\right)-z\left(x-3y\right)\)
\(=\left(x-3y\right)\left(x+3y-z\right)\)
b) \(x^3-x^2-5x+125\)
\(=\left(x^3+125\right)-\left(x^2+5x\right)\)
\(=\left(x^3+5^3\right)-x\left(x+5\right)\)
\(=\left(x+5\right)\left(x^2-5x+5^2\right)-x\left(x+5\right)\)
\(=\left(x+5\right)\left(x^2-5x+5^2-x\right)\)
\(=\left(x+5\right)\left(x^2-6x+25\right)\)
c) \(x^3+2x^2-6x-27\)
\(=\left(x^3-27\right)-\left(2x^2-6x\right)\)
\(=\left(x^3-3^3\right)-2x\left(x-3\right)\)
\(=\left(x-3\right)\left(x^2+3x+3^2\right)-2x\left(x-3\right)\)
\(=\left(x-3\right)\left(x^2+3x+3^2-2x\right)\)
\(=\left(x-3\right)\left(x^2+x+9\right)\)
e) \(4x^4+4x^3-x^2-x\)
\(=4x^3\left(x+1\right)-x\left(x+1\right)\)
\(=\left(x+1\right)\left(4x^3-x\right)\)
f) \(x^6-x^4-9x^3+9x^2\)
\(=x^4\left(x^2-1\right)-9x^2\left(x-1\right)\)
\(=x^4\left(x-1\right)\left(x+1\right)-9x^2\left(x-1\right)\)
\(=\left(x-1\right)\left[x^4\left(x+1\right)-9x^2\right]\)
\(=\left(x-1\right)\left(x^5+x^4-9x^2\right)\)