Let M(x,y) = y2cosx - 3x2y - 2x and N(x,y) = 2ysinx - x3 + lny.
Since ∂M/∂y = ∂N/∂x = 2ycosx - 3x2, the equation Mdx + Ndy = 0 is exact
So, there exists a function f(x,y) such that ∂f/∂x = M and ∂f/∂y = N.
Integrate ∂f/∂x = M with respect to x to get f(x,y) = y2sinx - x3y - x2 + g(y).
So, ∂f/dy = 2ysinx - x3 + g'(y) = N. Thus, g'(y) = lny.
g(y) = ∫lnydy. Integrate by parts to get g(y) = ylny - y
So, f(x,y) = y2sinx - x3y - x2 + ylny - y
Solutions: y2sinx - x3y - x2 + ylny - y = c, where c is an arbitrary constant.
Note: the given problem is not an "initial value problem" as no initial value is given!