$x^{2} d y-2 x y d x=x^{4} \cos\, x d x$
$\left(\frac{dy}{dx} = \frac{x^4 \ cos\, x+2xy}{x^2}\right)$
$\Rightarrow d y / d x-2 y / x=x^{2} \cos \,x$
I.F. $= e ^{\int-2 / x d x}=e^{-2 \log x}=1 / x^{2}$
Therefore, the general solution is
$\left(y(\frac{1}{x^2}) = \int \frac{1}{x^2}(x^2 \ cos\, x)dx = sin\,x + c\right)$
$\therefore y = x ^{2}(\sin\, x + c )$
$=x^{2} \sin\, x+c x^{2}$