First Order ODE/x y' = y + 2 x exp (- y over x)

Theorem
The first order ordinary differential equation:


 * $(1): \quad x \dfrac {\d y} {\d x} = y + 2 x e^{-y/x}$

is a homogeneous differential equation with solution:


 * $e^{y / x} = \ln x^2 + C$

Proof
Let:
 * $\map M {x, y} = y + 2 x e^{-y/x}$
 * $\map N {x, y} = x$

Put $t x, t y$ for $x, y$:

Thus both $M$ and $N$ are homogeneous functions of degree $1$.

Thus, by definition, $(1)$ is a homogeneous differential equation.

By Solution to Homogeneous Differential Equation, its solution is:
 * $\ds \ln x = \int \frac {\d z} {\map f {1, z} - z} + C$

where:
 * $\map f {x, y} = \dfrac {y + 2 x e^{-y / x} } x$

Thus: