I am solving the differential equation $$xy'^2 - 2yy' - x = 0$$
My attempt:
We divide both sides with $x$, obtaining:
$$y'^2 - 2y'y/x - 1 = 0$$
Then, let $t = y'$. We find:
$$\begin{cases} y' = t \\y/x = \frac{t^2 - 1}{2t}\end{cases}$$
From the second equation, we find: $$dy = dx \frac{t^2-1}{2t} + x\frac{t^2+1}{2t^2}dt$$
From the first equation, we have $ dy = tdx$
Hence:
$$tdx = dx \frac{t^2-1}{2t} + x\frac{t^2+1}{2t^2}dt$$
By rearranging, we find:
$$(t- \frac{t^2-1}{2t})dx = x \frac{t^2+1}{2t}dt$$
or
$$\frac{dx}{x} = dt$$
Hence:
$$\ln|x| = t + c$$
Or:
$$x = ce^t$$
And thus:
$$y = c\frac{t^2-1}{2t}e^t$$
Hence, the solution in parametric equations is:
$$\begin{cases} x = ce^t \\y = c\frac{t^2-1}{2t}e^t\end{cases}$$
Can someone verify whether this is correct? The answer my book gives is $$2cy - c^2x^2 + 1 = 0$$ so there is probably an easier method, but I would like to know whether my approach (and solution) is correct too. Thanks in advance.
Edit: I know I have to check the case $x = 0$ separately (as I divided by $x$), but first I want to know whether my solution is correct.