The book "Introduction to Quantum Mechanics (Second edition)" by Griffiths says the following on pg 103:
$$|A|^2 \int\limits_{-\infty}^\infty e^{i(p-p')x/h}=|A|^2 2\pi h\delta(p-p')$$
Here $\delta$ is the delta function. How is this true? If $p\neq p'$, then the above formula says that the integral $\int\limits_{-\infty}^\infty e^{i(p-p')x/h}=0$. However, I think that the integral is not well-defined, as opposed to $0$.