\(\left(x+1\right)\left(x^2-x+1\right)=x^3+1\\ \left(x-3\right)\left(x^2+3x+9\right)=x^3-27\\ \left(x-2\right)\left(x^2+2x+4\right)=x^3-8\)
\(\left(x+1\right)\left(x^2-x+1\right)=x^3+1\)
\(\left(x-3\right)\left(x^2+3x+9\right)=x^3-27\)
\(\left(x-2\right)\left(x^2+2x+4\right)=x^3-8\)