The initial-value problem
$$\begin{cases}(ye^{xy} + cos(x))dx + (xe^{xy})dy = 0\\y(\dfrac{\pi}{2}) = 0\end{cases}$$
From my calculations it seems the integrating factor depends on y and x, but I am unsure how to find the correct integrating factor.
Please help