x^2+y^2+xz-yz-2xy
=(x-y)^2+z(x-y)=(x-y)(x-y+z)
なぜ(x-y)^2+z(x-y)から(x-y)(x-y+z)になるのか教えて下さい