I have seen some physics books giving an approximate representation, $f_{\text{appx}}(x)$, of a function $f(x)$ where,
$$f_{\text{appx}}(x) =\sum_{n=1}^{N} \alpha_n \delta(x-x_n)$$
and
$$\alpha_n = \int_{\infty}^{} f(x)\delta(x-x_n)\, dx=f(x_n)$$
which appears to me that the Dirac delta, $\delta(x-x_n)$, is being used as the basis functions. I have a few questions regarding this.
- Wouldn't the summation $\sum_{n=1}^{N} \alpha_n \delta(x-x_n)$ become $+\infty$ when $x=x_n$?.
- The approximated function $f_{\text{appx}}(x) $ doesn't seem to be square integrable and the norm of the error i.e. $\left \| f(x)-f_{\text{appx}}(x) \right \|$ would be infinite. In this case how is the approximation valid?.
In looking at Griffiths' book Introduction to Quantum Mechanics, 1st Ed., p. 52-53, he talks about the fact that scattering states aren't normalizable; perhaps your physics book is talking about scattering states?
Perhaps more relevantly, on pages 101 and 102 of the same, Griffiths uses the delta functions as a basis because they are the eigenfunctions of the position operator, and they're complete. He has the following footnotes on page 102 that might clarify for you what's going on: