The following formula is often used: $$\int_{-\infty}^{+\infty}e^{ikx}dk = \delta(x).$$
This is equivalent to $$\int_{-\infty}^{+\infty}\left( \int_{-\infty}^{+\infty}e^{ikx}f(x)dx\right)dk = 2 \pi f(0).$$
How is the second equality proved? When I try to google the question, many answers make use of the "inverse Fourier transform." However, in order to show that the inverse Fourier transform takes the form that it does, the preceding equality must be used, so this is circular.
How can the second equality be proved (without using the inverse Fourier transform)? I should add that $f(x)$ goes to zero "sufficiently fast" (square integrable), and so the integral in parentheses in the second equality is a real number.