I am studying quantum mechanics right now, and I learned that momentum eigenstates are plane waves, that is
$$ \langle x \vert p\rangle = e^{ipx} $$
and
$$ \langle p' \vert p\rangle = \int_{-\infty}^{\infty} e^{i(p-p')x}dx = \delta(p-p') $$
This makes sense when thinking about Fourier transforms, but I'm confused how to think of this integral. If I were to think of this integral as $\sum e^{i(p-p')x}\Delta x$, then I would end up with a bunch of imaginary components in the sum, and I don't see how that ends up being a delta function.