x^2(x+1)-y(xy+x)
=x^2(x+1)-xy(y+1)
=x((x(x+1)-y(y+1))
=x(x^2+x-y^2-y)
=x((x-y)(x+y)+(x-y))
=x(x-y)(x+y+1)