Formula use:
a^3+b^3=\left(a+b\right)\left(a^2-ab+b^2\right)
a^3-b^3=\left(a-b\right)\left(a^2+ab+b^2\right)
Explanation
Given expression is: x^3+27
Factorize
x^3+27
\rightarrow\left(x\right)^3+\left(3\right)^3
\rightarrow\left(x+3\right)\left(x^2-3.x+3^2\right)
\therefore\left(x+3\right)\left(x^2-3x+9\right)
Ans: \left(x+3\right)\left(x^2-3x+9\right)