I am asking because i think we divided by x here for whatever reason since the other side is equal to 0 and it wont affect the equation in any meaningful way.
Letting $y=ux$ we have $$\begin{align} (x-ux) dx + x(udx + x du) &= 0 \\ dx+ x du &= 0\\ \frac{dx}x+du&=0\\ \ln |x| + u &= c\\ x\ln |x|+ y &= cx. \end{align}$$
I got $x/2 = y + c$ instead
The thing I don't understand though is how this is legal, because if it is it means there is an infinite number of solutions possible as we could also multiply both sides by anything.