# How do you use the difference of two cubes formula to factor x^6-y^3?

${x}^{6} - {y}^{3} = {\left({x}^{2}\right)}^{3} - {y}^{3}$
color(blue)(a^3 - b^3 = (a-b)(a^2 +ab+b^2)
Hence ${\left({x}^{2}\right)}^{3} - {y}^{3} = \left({x}^{2} - y\right) \left({\left({x}^{2}\right)}^{2} + {x}^{2} y + {y}^{2}\right)$
 =color(green)( (x^2 - y)(x^4 +x^2y + y^2)