Formula use:
a^3-b^3=\left(a-b\right)\left(a^2+ab+b^2\right)
\left(a-b\right)^2=\left(a^2-2ab+b^2\right)
Explanation
Given expression is: x^3-\left(y-z\right)^3
Factorize
x^3-\left(y-z\right)^3
\rightarrow\{x-\left(y-z\right)\}\{\left(x\right)^2+x.\left(y-z\right)+\left(y-z\right)^2\}
\rightarrow\left(x-y-z\right)\{x^2+xy-xz+\left(y^2-2yz+z^2\right)\}
\therefore\left(x-y-z\right)\left(x^2+xy-xz+y^2-2yz+z^2\right)
Ans: \left(x-y-z\right)\left(x^2+xy-xz+y^2-2yz+z^2\right)