Für \(x\ne0\) ist die DGL äquivalent zu \(y+xy^\prime=x\mathrm e^{-x}\). Es folgt$$\begin{aligned}\frac{\mathrm d}{\mathrm dx}\,xy&=\frac{\mathrm d}{\mathrm dx}\,-(x+1)\mathrm e^{-x}\\xy&=-(x+1)\mathrm e^{-x}+C\\y&=\frac{-(x+1)\mathrm e^{-x}+C}x.\end{aligned}$$Bestimme \(C\) aus \(y(1)=0\).