Ta có: x+y+1=0
nên x+y=-1
Ta có: \(N=x^2\left(x+y\right)-y^2\left(x+y\right)+x^2-y^2+2\left(x+y\right)+3\)
\(=\left(x+y\right)\left(x^2-y^2\right)+\left(x^2-y^2\right)+2\left(x+y\right)+3\)
\(=\left(x^2-y^2\right)\left(x+y+1\right)+2\left(x+y\right)+3\)
\(=\left(x^2-y^2\right)\cdot0+2\cdot\left(-1\right)+3\)
=-2+3=1