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