Rewrite $ x^6-y^2 $ as:
$$ \color{blue}{ x^6-y^2 = (x^3)^2 - (y)^2 } $$Now we can apply the difference of squares formula.
$$ I^2 - II^2 = (I - II)(I + II) $$After putting $ I = x^3 $ and $ II = y $ , we have:
$$ x^6-y^2 = (x^3)^2 - (y)^2 = ( x^3-y ) ( x^3+y ) $$