Solve $x^2(xdx+ydy)+2y(xdy-ydx)=0$ Solve $x^2(xdx+ydy)+2y(xdy-ydx)=0$
My Attempts 
$$x^2(xdx+ydy)+2y(xdy-ydx)=0$$
$$\dfrac {xdx+ydy}{xdy-ydx}=-\dfrac {2y}{x}$$
Put $x=r\cos (\theta)$ and $y=r\sin (\theta)$
So, $r^2=x^2+y^2$ and $\tan (\theta)=\dfrac {y}{x}$
Now,
$$x^2+y^2=r^2$$
Differentiating both sides,
$$2xdx+2ydy=2rdr$$
$$xdx+ydy=rdr$$

Starting from
$$x^2(xdx+ydy)+2y(xdy-ydx)=0$$
an alternative method is to multiply all terms by $\dfrac{2}{x^2}$ so that
$$2(xdx+ydy)+{4y}\left(\frac{xdy-ydx}{x^2}\right)=0$$
which is equivalent to
$$d(x^2+y^2)+4yd\left(\frac{y}{x}\right)=0$$
where we can then convert to polar coordinates. Letting $r^2=x^2+y^2,\tan(\theta)=\dfrac{y}{x},y=r\sin(\theta)$
$$d(r^2)+4r\sin(\theta)d(\tan(\theta))=0$$
hence
$$2r\,dr+4r\sin(\theta)\sec^2(\theta)\,d\theta=0$$
or
$$dr=-2\sec(\theta)\tan(\theta)\,d\theta$$
which is a separable equation and can be solved through integration.
