a: \(4\left(2-x\right)^2+xy-2y\)
\(=4\left(x-2\right)^2+y\left(x-2\right)\)
\(=\left(x-2\right)\left(4x-8+y\right)\)
b: \(3a^2x-3a^2y+abx-aby\)
\(=3a^2\left(x-y\right)+ab\left(x-y\right)\)
\(=\left(x-y\right)\left(3a^2+ab\right)=a\left(3a+b\right)\left(x-y\right)\)
c: \(x\left(x-y\right)^3-y\left(y-x\right)^2-y^2\left(x-y\right)\)
\(=x\left(x-y\right)^3-y\left(x-y\right)^2-y^2\left(x-y\right)\)
\(=\left(x-y\right)\left[x\left(x-y\right)^2-y\left(x-y\right)-y^2\right]\)
\(=\left(x-y\right)\left[x\left(x-y\right)^2-xy\right]\)
\(=\left(x-y\right)\cdot x\cdot\left[\left(x-y\right)^2-y\right]\)
d: \(2ax^3+6ax^2+6ax+18a\)
\(=2ax^2\left(x+3\right)+6a\left(x+3\right)\)
\(=\left(x+a\right)\left(2a\cdot x^2+6a\right)\)
\(=2a\left(x+a\right)\left(x^2+3\right)\)
e: \(x^2y-xy^2-3x+3y\)
\(=xy\left(x-y\right)-3\left(x-y\right)\)
=(x-y)(xy-3)