(x-y)^2+2(x-y)-8
=(x-y)^2+2(x-y)+1-9
=(x-y+1)^2-3^2
=(x-y+1-3)(x-y+1+3)
=(x-y+4)(x-y-2)
其实这个可以用十字相乘法直接得出来的,把-8分解成-4×2.