Exercise :
If $f(x) = e^{-|x|}$, show that for its derivatives, it is : $f''(x)-f(x) = -2\delta(x)$, in the sense of distributions.
Attempt :
I am completely at a loss on how to handle such an exercise as we haven't studied distributions for more than 1-2 lessons, but I know that :
The function $f(x)$ is continuous and differentiable in $\mathbb R \setminus \{0\} = \mathbb R^*$, with derivative :
$$f'(x) = \begin{cases} -e^{-x}, & x>0 \\ e^x, & x<0\end{cases}$$
How would I proceed with modeling the derivatives now in the sense of distributions to prove the equation asked?
To be mentioned, the function $\delta(x)$ is the famous Dirac-delta function, such that:
$$\delta(x) = \begin{cases} +\infty & x=0, \\ 0 & x \neq 0 \end{cases}$$
$\delta$ is the distribution defined by $\langle \varphi,\delta \rangle = \varphi(0)$ for any test function $\varphi$.
Thus we want to show that for any test function $\varphi$, $$ \langle f''-f,\varphi \rangle = -2\varphi(0). $$ The derivative of a distribution is defined by $\langle f', \varphi \rangle = -\langle f,\varphi' \rangle $, mimicking the integration by parts formula. So we want to show that $$ \langle f,\varphi''-\varphi \rangle = -2\varphi(0). $$ Everything here is a function, so we can expand the pairing to its definition on functions, namely $$ \langle f,\varphi''-\varphi \rangle = \int_{-\infty}^{\infty} f(x)(\varphi''(x)-\varphi(x)) \, dx = \int_{-\infty}^0 e^{x} (\varphi''(x)-\varphi(x)) \, dx + \int_0^{\infty} e^{-x} (\varphi''(x)-\varphi(x)) \, dx. $$ Everything here is smooth on the intervals of integration, so we can integrate by parts on the first term in each: $$ \int_{-\infty}^0 e^{x} (\varphi''(x)-\varphi(x)) \, dx + \int_0^{\infty} e^{-x} (\varphi''(x)-\varphi(x)) \, dx = \left[ e^{x}\varphi'(x) \right]_{-\infty}^0 + \left[ e^{-x}\varphi'(x) \right]_0^{\infty} + \int_{-\infty}^0 e^{x} (-\varphi'(x)-\varphi(x)) \, dx + \int_0^{\infty} e^{-x} (\varphi'(x)-\varphi(x)) \, dx \\ = 0 + \int_{-\infty}^0 e^{x} (-\varphi'(x)-\varphi(x)) \, dx + \int_0^{\infty} e^{-x} (\varphi'(x)-\varphi(x)) \, dx, $$ and then integrating by parts again, $$ \int_{-\infty}^0 e^{x} (-\varphi'(x)-\varphi(x)) \, dx + \int_0^{\infty} e^{-x} (\varphi'(x)-\varphi(x)) \, dx = [-e^x\varphi(x)]_{-\infty}^0 + [e^{-x}\varphi(x)]_0^{\infty} + \int_{-\infty}^0 e^x(\varphi(x)-\varphi(x)) \, dx + \int_0^{\infty} e^{-x}(+\varphi(x)-\varphi(x)) \, dx \\ = -2\varphi(0), $$ as required.