Determine whether the given differential equation is exact. If it is exact, solve it

Determine whether the given differential equation is exact. If it is exact, solve it.
(x−y3+y2sinx)dx = (3xy2+2ycosx)dy