\(a,xy+1-x-y\)
\(=\left(xy-y\right)+\left(1-x\right)\)
\(=y\left(x-1\right)- \left(x-1\right)\)
\(=\left(x-1\right)\left(y-1\right)\)
\(b,ax+ay-3x-3y\)
\(=a\left(x+y\right)-3\left(x+y\right)\)
\(=\left(x+y\right)\left(a-3\right)\)
\(c,x^3-2x^2+2x-4\)
\(=x^2\left(x-2\right)+2\left(x-2\right)\)
\(=\left(x^2+2\right)\left(x-2\right)\)
\(d,x^2+ab+ax+bx\)
\(=\left(x^2+ax\right)+\left(ab+bx\right)\)
\(=x\left(a+x\right)+b\left(a+x\right)\)
\(=\left(a+x\right)\left(b+x\right)\)
\(e,16-x^2+2xy-y^2\)
\(=4^2-\left(x^2-2xy+y^2\right)\)
\(=4^2-\left(x-y\right)^2\)
\(=\left(4-x+y\right)\left(4+x-y\right)\)
\(f,ax^2+ax-bx^2-bx-a+b\)
\(=\left(ax^2-bx^2\right)+\left(ax-bx\right)-\left(a-b\right)\)
\(=x^2\left(a-b\right)+x\left(a-b\right)-\left(a-b\right)\)
\(=\left(a-b\right)\left(x^2+x-1\right)\)