Answer
$(x+1)(x^2-x+1)$
Work Step by Step
We have to factor the polynomial:
$$p(x)=x^3+1.$$
We will use the formula for the decomposition of $a^3+b^3$:
$$a^3+b^3=(a+b)(a^2-ab+b^2).$$
In our case $a=x$ and $b=1$. We have:
$$x^3+1=x^3+1^3=(x+1)(x^2-x+1).$$