Formula use:
a^3-b^3=\left(a-b\right)\left(a^2+ab+b^2\right)
Explanation
Given expression is: 8x^3-y^3
Factorize
8x^3-y^3
\rightarrow\left(2x\right)^3-\left(y\right)^3
\therefore\left(2x-y\right)\left(4x^2+2xy+y^2\right)
Ans: \left(2x-y\right)\left(4x^2+2xy+y^2\right)