TITLE: Dirac delta and non-test functions
QUESTION [7 upvotes]: Normalization of the delta function (distribution) is often informally written as an integral
$$\int_{-\infty}^{+\infty} \delta(x) \, dx = 1$$
An attempt to write this formally would be expression like $\delta[1] = 1$. However, the constant function $f(x) = 1$ has no compact support, therefore it is not a test function. Is there a precise way to translate such integral expression into the language of distributions?
Also, a related problem occurs with expressions like $\delta[\chi_{[a,b]}]$, where $\chi_{[a,b]}$ is a characteristic function over $[a,b] \subset \mathbb{R}$ (defined such that $\chi_{[a,b]}(x) = 1$ for $x \in [a,b]$ and $\chi_{[a,b]}(x) = 0$ for $x \notin [a,b]$). Informally, this would correspond to the integral
$$\int_a^b \delta(x) \, dx$$
and, intuitively, one would like to get result $1$ for $0 \in [a,b]$ and $0$ otherwise. However, $\chi_{[a,b]}$ is not a test function (since it has discontinuities at $a$ and $b$), so we again have a formal problem as the one mentioned above.

REPLY [7 votes]: You can see the Dirac not only as a distribution, but also as an element of the dual of continuous functions : a Radon measure. 
This point of view gives sense to $\delta[1]$.
And if a measure $\mu$ is absolutely continuous in respect to the Lebesgue measure,
$$\mu( \phi ) = \int_{\mathbb{R}} \phi(x) d\mu(x) = \int_{\mathbb{R}} \phi(x) \mu(x) dx$$
(the first equality is Riesz representation theorem)
This gives, by abuse of notation (as $\delta$ is not absolutely continuous in respect to the Lebesgue measure)
$$\delta( 1 ) = \int_{\mathbb{R}} 1 d\delta(x) = \int_{\mathbb{R}} \delta(x) dx$$
For $\chi_{[a,b]}$, I'm not sure what could be the correct point of view.