DSolve[a*x^3*Cos[x] - y[x]^2 + x*y[x]*Derivative[1][y][x] == 0,y[x],x]