$\sin(x)\cos(2y)\,dx + \cos(x)\sin(2y)\,dy = 0$ with initial conditions $y(0)=\frac{\pi}{2}$
I got that the general family of solutions was $\log|\cos x|=-\frac{1}{2}\log|\cos 2y|+C$
When I put in the initial conditions, I got $C=0$
When I substituted in the $C$ I got $1=\cos^2(x)\cos(2y)$.
The correct answer is $-1=\cos^2(x)\cos(2y)$.
$$\log|\cos x|=-\frac{1}{2}\log|\cos 2y|+C\qquad \text{OK}$$ The condition $y(0)=\frac{\pi}{2}$ implies $C=0$ $$2\log|\cos x|+\log|\cos 2y|=0$$ $$\cos^2(x)\:|\cos(2y)|=1$$ $$\cos^2(x)\cos(2y)=\pm 1$$ The condition $y(0)=\frac{\pi}{2}\quad \to \quad \cos(2y)=-1\quad$ implies : $$\cos^2(x)\cos(2y)=-1$$