p(x-y)+(-x+y)(2q-p)
=p(x-y)-(x-y)(2q-p)
=(x-y)(p-2q+p)
=2(x-y)(p-q)
m^2(x-y)^2+mn(x-y)
=m(x-y)[m(x-y)+n]
=m(x-y)(mx-my+n)
y(x-y)-4(y-x)
=(x-y)(x+4)
x(1-x)+x^2(x-1)-x^3(x-1)
=x(x-1)(-1+x-x^2)
=-x(x-1)(x^2-x+1)
p(x-y)+(-x+y)(2q-p)
=p(x-y)-(x-y)(2q-p)
=(x-y)(p-2q+p)
=2(x-y)(p-q)
m^2(x-y)^2+mn(x-y)
=m(x-y)[m(x-y)+n]
=m(x-y)(mx-my+n)
y(x-y)-4(y-x)
=(x-y)(x+4)
x(1-x)+x^2(x-1)-x^3(x-1)
=x(x-1)(-1+x-x^2)
=-x(x-1)(x^2-x+1)