Try letting and see how that goes.
Find a first integral and thus a general solution of the differential equation
sinxy + xycosxy + x^2cosxy(dy/dx)=0
I divided throught by x^2cosxy but I couldn't use integrating factor. I don't know what a first integral is.