Let $y=\frac z {x^2}$. This would give a very simple equation
0
Bumbble Comm
On
You can proceed this way:
$$(x^2D^2 +4xD+2)y=e^x$$$$x^2y''+2xy'+2xy'+2y=e^x$$$$(x^2y')'+(2xy)'=e^x$$$$(x^2y'+2xy)'=e^x$$$$(x^2y)''=e^x$$
Integrate twice.
Related Questions in ORDINARY-DIFFERENTIAL-EQUATIONS
Hint
Let $y=\frac z {x^2}$. This would give a very simple equation