Show that, if $y^2=x^k f(x)$, then $\displaystyle 2xy\frac{dy}{dx}=ky^2+x^{k+1}\frac{df}{dx}$.
(i) By setting $k=1$ in this result, find the solution of the differential equation $$2xy\frac{dy}{dx}=y^2+x^2-1$$ for which $y=2$ when $x=1$. Describe geometrically this solution.
(ii) Find the solution of the differential equation $$2x^2y\frac{dy}{dx}=2\ln(x)-xy^2$$ for which $y=1$ when $x=1$.