I am solving ordinary differential equation in $S'$ (dual to Schwartz space) given as:
$y' + ay = \delta$, where $\delta$ is a Dirac delta function.
The general solution of homogenous equation is $Ce^{-ax}$, where $C$ is a constant.
I actually started solving it via Fourier transform, but it is not probably efficient and I got for $x \lt 0$ a zero solution. But according to my textbook the solution is:
$y(x) = \begin{cases} (C+1)e^{-ax}, & x \gt 0 \\[2ex] Ce^{-ax}, & x \lt 0 \end{cases}$
And no matter how long I am staring at it, I don't understand. My textbook solves it via fundamental solution of the equation given as this in general: $Lu =f$, where $L$ is an ordinary differential operator. And then I suppose is used the gluing of the solution (which I don't know how to proceed, nor I found any good example on the internet).
Can anyone help me to understand this?
The solution to $$y'+ay=0$$ is in the following form: $$y(x)=C\exp(-ax)$$ So we could solve it for both $x<0$ and $x>0$: $$y_{+}(x)=C_{+}\exp(-ax)$$ $$y_{-}(x)=C_{-}\exp(-ax)$$ Now let's apply the $\int_{-\epsilon}^{\epsilon}\mathrm{d}x$ operator on both sides of the differential equation (with $\epsilon > 0$): $$\int_{-\epsilon}^{\epsilon}\mathrm{d}x\,\left(y'(x)+ay(x)\right)=\int_{-\epsilon}^{\epsilon}\mathrm{d}x \delta(x)$$ $$y_{+}(\epsilon)-y_{-}(-\epsilon)+a\int_{-\epsilon}^{\epsilon}\mathrm{d}x \,y(x)=1$$ $$C_{+}\exp(-a\epsilon)-C_{-}\exp(a\epsilon)+a\int_{-\epsilon}^{\epsilon}\mathrm{d}x \,y(x)=1$$ And if we let $\epsilon \to 0+0$, we get that $$C_{+}-C_{-}=1$$ Alternatively, we can apply fourier transform to both sides: $$(i \omega) \hat{f}(\omega)+a \hat{f}(\omega)=\frac{1}{\sqrt{2 \pi}}$$ $$\hat{f}(\omega)=\frac{1}{\sqrt{2 \pi}} \frac{1}{a + i \omega}$$ And applying inverse fourier transform we get that: $$f(x)=\exp(-ax)u(x)$$ And I think this is what you get. And this is correct, because it's just a particular solution, and you can also add the general solution to it to get that $$y(x)=\exp(-ax)(C+u(x))$$