x\(^2\)-2xy+y\(^2\)-6x+6y
=(x-y)\(^2\)-6(x+y)
=-6(x+y)+(x-y)\(^2\)
\(x^2-2xy+y^2-6x+6y=\left(x-y\right)^2-6\left(x-y\right)=\left(x-y\right)\left(x-y-6\right)\)
x^2-2xy+y^2-6x+6y
=(x-y)^2-6(x-y)
=(x-y)(x-y-6)
x^2-2xy+y^2-6x+6y
=(x-y)^2 -6(x-y)
=(x-y)(x-y-6)