a: \(x^2-9-x^2\left(x^2-9\right)\)
\(=\left(x^2-9\right)-x^2\left(x^2-9\right)\)
\(=\left(x^2-9\right)\left(1-x^2\right)\)
\(=\left(1-x\right)\left(1+x\right)\left(x-3\right)\left(x+3\right)\)
b: \(x^2\left(x-y\right)+y^2\left(y-x\right)\)
\(=x^2\left(x-y\right)-y^2\left(x-y\right)\)
\(=\left(x-y\right)\left(x^2-y^2\right)\)
\(=\left(x-y\right)\left(x-y\right)\left(x+y\right)=\left(x-y\right)^2\cdot\left(x+y\right)\)
c: \(x^3+27+\left(x+3\right)\left(x-9\right)\)
\(=\left(x+3\right)\left(x^2-3x+9\right)+\left(x+3\right)\left(x-9\right)\)
\(=\left(x+3\right)\left(x^2-3x+9+x-9\right)\)
\(=\left(x+3\right)\left(x^2-2x\right)=x\left(x-2\right)\left(x+3\right)\)
d: \(x^2+5x+6\)
\(=x^2+2x+3x+6\)
\(=x\left(x+2\right)+3\left(x+2\right)=\left(x+2\right)\left(x+3\right)\)
e: \(3x^2-4x-4\)
\(=3x^2-6x+2x-4\)
\(=3x\left(x-2\right)+2\left(x-2\right)\)
\(=\left(x-2\right)\left(3x+2\right)\)
g: \(x^4+64y^4\)
\(=x^4+16x^2y^2+64y^4-16x^2y^2\)
\(=\left(x^2+8y^2\right)^2-\left(4xy\right)^2\)
\(=\left(x^2+8y^2-4xy\right)\left(x^2+8y^2+4xy\right)\)
h: \(a^2+b^2+2a-2b-2ab\)
\(=a^2-2ab+b^2+2a-2b\)
\(=\left(a-b\right)^2+2\left(a-b\right)=\left(a-b\right)\left(a-b+2\right)\)
i: \(\left(x+1\right)^2-2\left(x+1\right)\left(y-3\right)+\left(y-3\right)^2\)
\(=\left(x+1-y+3\right)^2\)
\(=\left(x-y+4\right)^2\)
k: \(x^2\left(x+1\right)-2x\left(x+1\right)+\left(x+1\right)\)
\(=\left(x+1\right)\left(x^2-2x+1\right)\)
\(=\left(x+1\right)\left(x-1\right)^2\)