Ta có: \(x^2+y^2+2xy+x+y-6\)
\(=\left(x+y\right)^2+x+y-6\)
\(=\left(x+y\right)^2+x+y-9+3\)
\(=\left[\left(x+y\right)^2-3^2\right]+\left(x+y+3\right)\)
\(=\left(x+y-3\right)\left(x+y+3\right)+\left(x+y+3\right)\)
\(=\left(x+y+3\right)\left(x+y-2\right)\)
ta có : x2 + y2 + 2xy + x + y - 6
= ( x + y ) 2 + x + y - 6
= ( x + y ) 2 + x + y - 9 + 3
=[ ( x + y )2 - 32 ] + ( x + y + 3 )
= ( x + y - 3 ) ( x + y + 3 ) + ( x + y + 3 )
= ( x + y + 3 ) ( x + y - 2)