a) \(x^2-2x-y^2+2y\)
\(=\left(x^2-y^2\right)-\left(2x-2y\right)\)
\(=\left(x-y\right)\left(x+y\right)-2\left(x-y\right)\)
\(=\left(x-y\right)\left(x+y-2\right)\)
b) \(2x+2y-x^2-xy\)
\(=2\left(x+y\right)-x\left(x+y\right)=\left(x+y\right)\left(2-x\right)\)
x2-y2 -2x+2y=(x+y)(x-y)-2(x-y)=(x-y)(x-y-2)
2(x+y)-x(x+y)=(x+y)(2-x)
a) x^2-2x-y^2+2y
=x(x-2)-y(y-2)
=(x-y)(x-2)
b) 2x + 2y - x^2 -xy
= 2(x+y) - x(x+y)
= (2 - x)(x+y)