The differential equation is,
$$\frac{dy}{dx}=x^2-2x^2y$$
I have calculated $μ(x)$ as $μ(x)=e^{2x^3/3}$
thus
$$y=e^{-2x^3/3}\int x^2e^{2x^3/3}\,dx$$
After this I have been having a bit of trouble solving for $y$. I have tried integration by parts but it hasn't helped, probably due to a mistake on my part.
$dy/dx + 2x^2y = x^2$
Then $2x^2$ is P(x) so the integrating factor $v(x) = e^{\int2x^2 dx}$
$= e^{\frac{2}{3}x^3}$
$e^{\frac{2}{3}x^3}(dy/dx + 2x^2y) = e^{\frac{2}{3}x^3}x^2$
$d/dx(e^{\frac{2}{3}x^3}y) = e^{\frac{2}{3}x^3}x^2$......left side is $d/dx(vy)$
$e^{\frac{2}{3}x^3}y = \int e^{\frac{2}{3}x^3}x^2 dx$
$e^{\frac{2}{3}x^3}y = \frac{e^{\frac{2}{3}x^3}}{2} + C$
$y = \frac{1}{2} + \frac{C}{e^{\frac{2}{3}x^3}}$
$y = \frac{1}{2} + Ce^{\frac{-2}{3}x^3}$
As others have pointed out, this equation is separable so this method isn't usual, never mind correct.