# Why does integrating a complex exponential give the delta function?

How come, when we integrate a complex exponential from $-\infty$ to $\infty$, we get a scaled delta function?

Specifically, why do we say that the integral converges for $x \neq 0$ to $0$? Doesn’t it just continue to oscillate?
Thanks!

The integral is not meant to be taken in the space of functions; it is meant to be taken over the space of distributions.

If I write $[f(x)]$ when I mean to view $f(x)$ as a distribution rather than a function, then this integral is saying

(note that $\delta(x)$ is a distribution, not a function, so I don’t need to put brackets around it)

Two distributions are equal if and only if they have the same value when convolved with test functions. The above equation is asserting, for every test function $f(x)$, you have

What the test functions are precisely can vary with context; in this case they are probably meant to be the rapidly decreasing functions (aka Schwartz functions).

IIRC, distributions coming from functions of two variables satisfy

(note the change of order of the integration variables)

Consequently, The above equation is asserting

Note, in particular, that the inner integral is that of ordinary functions, and the integrand is integrable.