Solution
= Solution
For $x>0$, substitute $v=y/x$. Then $y'=v+xv'$, and cancellation reduces the <differential equation> to $v'+2v=e^{-2x}$. Multiplication by the <integrating factor> $e^{2x}$ gives $(e^{2x}v)'=1$. Therefore
$$
\boxed{y(x)=x(x+C)e^{-2x},\qquad C\in\mathbb R.}
$$
Direct substitution gives $y'+2y-y/x=xe^{-2x}$ and verifies the result. Dividing by $x$ is legitimate on the stated positive domain.