\(x^6-y^6=\left(x^3\right)^2-\left(y^3\right)^2=\left(x^3-y^3\right)\left(x^3+y^3\right)\)
\(=\left(x-y\right)\left(x^2+xy+y^2\right)\left(x+y\right)\left(x^2-xy+y^2\right)\)
\(x^6-y^6=\left(x^2\right)^3-\left(y^2\right)^3=\left(x^2-y^2\right)\left(x^4-x^2y^2+y^4\right)\)