Solve the ODE $\cot (x^2+y^2)dy+xdx+ydy=0$ Solve the ODE $\cot (x^2+y^2)dy+xdx+ydy=0$
i am trying to solving integrating combination
since given that 
$\cot (x^2+y^2)dy+xdx+ydy=0$
then $\cot (x^2+y^2)dy+d(xy)=0$ is it correct way ? and we can apply integration from here? can any one help me this problem

Using polar coordinates, we see that
\begin{align}
dx =&\ \cos\theta dr -r\sin\theta d\theta,\\
dy =&\ \sin\theta dr + r\cos\theta d\theta
\end{align}
then we see that
\begin{align}
\cot(x^2+y^2)dy +xdx+ydy = (\cot(r^2)\sin\theta+r) dr+r\cot(r^2)\cos\theta d\theta =0.
\end{align}
Hence it follows
\begin{align}
\frac{d\theta}{dr} = - \frac{\cot(r^2)\sin\theta+ r}{r\cot(r^2)\cos\theta} = -\frac{\tan\theta}{r}-\tan(r^2)\sec\theta.
\end{align}
Lastly, using the fact that
\begin{align}
\frac{d (\sin\theta)}{dr} = \cos\theta\frac{d\theta}{dr} = -\frac{\sin\theta}{r}-\tan(r^2)
\end{align}
then we have obtain a linear equation
\begin{align}
u'+\frac{1}{r}u=-\tan(r^2) \ \ &\implies\ \ \frac{d}{dr}(ru) = -r\tan(r^2)\\
&\implies\  u= \frac{1}{2r}\log|\cos(r^2)|+\frac{c}{r}.
\end{align}
Finally, we have that
\begin{align}
\sin \theta =\frac{1}{2r}\log|\cos(r^2)|+\frac{c}{r} \ \implies \ y = \frac{1}{2}\log|\cos(x^2+y^2)|+C
\end{align}
