Derivation of delta-function forcing

$$ y'' + py' + qy = \delta(x) $$

For $x<0$ or $x>0$, $y(x)$ satisfies $$ y'' + py' + qy = 0. $$

At $x=0$, we integrate from $-\epsilon$ to $\epsilon$ and take the limit as $\epsilon\to 0$ to get $$ \lim_{\epsilon\to 0} [y']_{-\epsilon}^\epsilon + p(0) \lim_{\epsilon\to 0}[y]_{-\epsilon}^\epsilon + \lim_{\epsilon\to 0}\int_{-\epsilon}^\epsilon qy\,dx = 1. $$ We assume $y$ to be continuous at $x=0$ since otherwise the ODE does not make sense. This means that the second and third term vanish.

$$ \lim_{\epsilon\to0} [y']_{-\epsilon}^\epsilon = 1. $$