\(3,x\left(x-1\right)-y\left(1-x\right)=\left(x+y\right)\left(x-1\right)\\ 4,x^3+6x^2y+12xy^2+8y^3=\left(x+2y\right)^3\\ 5,x^2-2xy+y^2-xz+yz=\left(x-y\right)^2-z\left(x-y\right)=\left(x-y-z\right)\left(x-y\right)\\ 6,x^2-y^2-x+y=\left(x-y\right)\left(x+y\right)-\left(x-y\right)=\left(x-y\right)\left(x+y-1\right)\\ 9,x^3+x^2-xy+xy+y^2+y^3\\ =x^2\left(x+1\right)+y^2\left(x+1\right)=\left(x^2+y^2\right)\left(x+1\right)\\ 10,x^2-6\left(x+3\right)-9\\ =x^2-6x-18-9\\ =x^2-6x-27=\left(x-9\right)\left(x+3\right)\)
10: \(x^2-6\left(x+3\right)-9\)
\(=x^2-6x-18-9\)
\(=x^2-6x-27\)
\(=\left(x-9\right)\left(x+3\right)\)