I want to find the fundamental solution of this ODE: $$- u^{\prime\prime} + k^2 u=0, -\infty<x<\infty, k\neq 0$$ I know that it is: $$\Gamma(x,\epsilon) = \frac{e^{k|x-\epsilon|}}{2k}$$, but I don’t know how to obtain it.
We know that for $x\neq \epsilon$ $$-\Gamma^{\prime\prime}(x,\epsilon) + k^2 \Gamma(x,\epsilon) =0$$, so we can say that for $x\neq \epsilon$ We have: $$ \Gamma(x,\epsilon) = Ae^{k(x-\epsilon)} + Be^{-k(x-\epsilon)}$$ Can anyone please show me how can I compute A and B?
Thanks.
Write
$$u'u''=k^2uu'$$ and integrate to get
$$u'^2=k^2u^2\pm c^2.$$
This is a separable equation,
$$\frac{u'}{\sqrt{\dfrac{k^2}{c^2}u^2\pm1}}=c^2$$
which integrates as
$$\frac ck\text{arcosh}\frac{ku}c=\pm cx+c'$$ or
$$\frac ck\text{arsinh}\frac{ku}c=\pm cx+c'.$$
Finally,
$$u=\frac ck\cosh(\pm kx+c'')$$ or
$$u=\frac ck\sinh(\pm kx+c'').$$
You can convince yourself that this covers all cases of
$$ae^{kx}+be^{-kx}.$$
Needless to say, by the theory of linear ODE with constant coefficients, the solution is an arbitrary linear combination of exponentials with parameters equal to the roots of the characteristic equation
$$\lambda^2-k^2=0.$$
As you are looking for the fundamental solution, $a$ and $b$ remain free parameters.