(1)x方+2xy+y方+x+y-2
=(x+y)²+(x+y)-2
=(x+y+2)(x+y-1)
(2)x方+xy-2y方+2x+7y-3
=(x+2y)(x-y)+2x+7y-3
=(x+2y-1)(x-y+3)