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