Problem: Solve $\sin(x)\cos(2y)\;dx+\cos(x)\sin(2y)\;dy=0$ with $y(0)=\frac{\pi}2$
My Steps
- $\sin(x)\cos(2y)\;dx+\cos(x)\sin(2y)\;dy=0$
- $\bigg(\frac{\sin(x)}{\cos(x)}\bigg)dx+\bigg(\frac{sin(2y)}{cos(2y)}\bigg)dy=0$
- $\tan(x)dx+\tan(2y)dy=0$
- $\int\frac{\sin(x)}{\cos(x)}dx+\int\frac{\sin(2y)}{\cos(2y)}dy=0$
- Let $u=\cos(x)$
$du=-\sin(x)$
$-du=\sin(x)$
let $u=\cos(2y)$
$du=-2\sin(2y)$
$-\frac{du}{2}=\sin(2y)$ - $-\int\frac1udu-\frac12\int\frac1udu=0$
However, Claimed Answer Was $$\boxed{-\ln(\cos(x))-\frac12\ln(\cos(2y)=c}$$
No matter what I try here I don't get the above answer. I keep getting an expression with secant functions. What did I do wrong? How should I continue?
Edit: The answer I got was $\cos(2y)=c\cdot\sec^2(x)$.
I got this my adding $\ln(\cos(x))$ to both sides giving me
$$-\frac12\ln(\cos(2y)=c+\ln(\cos(x))$$
I then multiply both sides by $-2$, which I get;
$\ln(\cos(2y)=c+(-2\ln(\cos(x)))$, where $c$ is a constant so it stays the same even though multiplied by $-2$.
$e^{\ln(\cos(2y)}=e^{(c+\ln(\cos^-2(x))}$ I get $\cos(2y)=c\cdot\sec^2(x)$, That is my answer which is completely wrong, so I stopped here.
You're saying the answer $\cos(2y)=c \cdot \sec^2x$ is wrong. This is the correct answer. Remember that $\sec x = \frac{1}{\cos x}.$
Another way to arrive at their answer would be take your original result: $$ \begin{align} -\ln(\cos x)-\frac{1}{2} \cdot \ln(\cos2y) &= c_0 \\ 2\ln(\cos x)+\ln (\cos2y) &= c_1 \\ \ln(\cos^2 x \cdot \cos2y) &= c_1 \\ \exp(\ln(\cos^2 x \cdot \cos2y)) &= \exp(c_1) \\ \cos^2 x \cdot \cos2y &= c_2. \end{align}$$