I have to solve the following differential equation:
$$(\cos^2x + y \sin 2x) \frac{dy}{dx} + y^2 =0$$
using an integrating factor. An integrating factor that is a function of just $x$ or just $y$ won't work, so we need to find an integrating factor which is a function of both $x$ and $y$.
I have followed the instructions from this other post Finding integrating factor when IF will be a function of x and y which suggests looking for a separable solution:
$$u(x,y)=e^{\int G(x) dx} e^{\int F(y) dy}$$
where $G(x)=\frac{\delta u/\delta x}{u}$ and $F(y)=\frac{\delta u/\delta y}{u}$. However, I get stuck at this point:
$$G(x)(\cos^2 x + y \sin 2x) - F(y) y^2 = 2y + 2 \sin 2x - 2y \cos 2x$$
and I can't find a solution for $G(x)$ and $F(y)$ that would work.
Any ideas? Thanks in advance!