x2-y2+2x+2y
= (x2-y2)+(2x+2y)
= (x+y)(x-y)+2(x+y)
= (x+y)(x-y+2)
Ta có : x2 - y2 + 2x + 2y
= x2 + 2x + 1 - y2 + 2y - 1
= (x2 + 2x + 1) - (y2 - 2y + 1)
= (x + 1)2 - (y - 1)2
= (x + 1 - y + 1)(x + 1 + y - 1)
= (x - y + 2)(x + y)
Cách 2 :
x2 - y2 + 2x + 2y
= (x - y)(x + y) + 2(x + y)
= (x - y + 2)(x + y)
Ta có : x2 - y2 + 2x + 2y
= x2 + 2x + 1 - y2 + 2y - 1
= (x2 + 2x + 1) - (y2 - 2y + 1)
= (x + 1)2 - (y - 1)2
= (x + 1 - y + 1)(x + 1 + y - 1)
= (x - y + 2)(x + y)