\(=\left(x+y\right)^3-\left(x+y\right)=\left(x+y\right)\left(x^2+2xy+y^2-1\right)\)
\(x^3-x+3x^2+3xy^2+y^3-y\)
\(=\left(x+y\right)^3-\left(x+y\right)\)
\(=\left(x+y\right)\left(x+y+1\right)\left(x+y-1\right)\)
= (x3 + 3x2y + 3xy2 + y3) - (x+y)
= (x + y)3 - (x + y)
= (x + y).[(x+y)2 - 1 ]
= (x + y).(x + y - 1).(x + y + 1)