x-y-x^2+2xy-y^2+2=x-y-(x^2-2xy+y^2)+2
=(x-y)-(x-y)^2+2
=[1+(x-y)][2-(x-y)] (应用十字相乘法分解因式)
=(1+x-y)(2-x+y).