Find the general solution of the ODE
\begin{equation*}
x y' = y - x e^{\frac{y}{x}}
\end{equation*}
and solve the initial value problem $\ y(1) = -2\ $.
Solution
Since it is homogeneous equation we plug $y=ux$ and then
\begin{equation*}
u'x^2+ux=ux -xe^{u}\implies u'=-e^{u}\implies x^{-1}dx=-e^{-u}du\implies
\ln x = e^{-u}+\ln C\implies u =-\ln \ln (Cx)\implies y=-x\ln \ln (Cx).
\end{equation*}
As $x=1$, $y=-2$, $u=-2$ we get $\ln \ln C=2$, and $y= -x \ln (e^2+\ln x)$.