From Wikipedia I found this about the delta-function
$$\delta(x)=\begin{cases}\infty,\:\:x=0\\0,\:\:x\neq 0\end{cases}$$
$$\int_\limits{-\infty}^{\infty}\delta(x)dx=1$$
I tried to prove that $$\int_\limits{-\infty}^{\infty}\delta(x)dx=1$$.
$\int_\limits{-\infty}^{\infty}\delta(x)dx=\int_\limits{-\infty}^{0}\delta(x)+\int_\limits{0}^{+\infty}\delta(x)$
However, I do not see how these integrals are going to yield $1$ as a result.
Question:
How do I prove $\int_\limits{-\infty}^{\infty}\delta(x)dx=1$?
Thanks in advance!
Usually a way to get a feeling about this $\delta(x)$ "function" is to consider a sequence of functions $\delta_n(x)$ such that $$\lim_n\delta_n(x)=\delta(x)= \begin{cases} 0,&x\ne 0\\\\ \infty,&x=0 \end{cases} $$ For example a sequence of rectangle functions $\delta_n(x):=n$ for $x\in[-1/2n,1/2n]$ and $\delta_n(x)=0$ for $x\notin[-1/2n,1/2n]$ would work. The pointwise limit of this sequence is indeed $\lim_n\delta_n(x)=\delta(x)$. For each $n$ we have $$\int^{\infty}_{-\infty}\delta_n(x)\,dx=\int^{1/2n}_{-1/2n}n\,dx=1$$ So the integral makes sense and it is well defined for each element of the sequence $\{\delta_n(x)\}$. However if one is to interpret the "integral" $$\int^{\infty}_{-\infty}\delta(x)\,dx$$ in the usual sense of Lebesgue for instance this integral would normally be zero since $\delta(x)$ is zero except at a single point $x=0$. In the language of measure theory a single point turns out to be a set of measure zero (a single point has no length unlike an interval) thus the contribution to integral at this single point is zero. However the "integral" above is defined to actually represent the following $$\int^{\infty}_{-\infty}\delta(x)\,dx=\lim_n\int^{\infty}_{-\infty}\delta_n(x)\,dx=1$$ Therefore as mentioned in comments above this "integral" should not be interpreted as an integral in the usual sense. And of course such a "function" $\delta(x)$ is not a proper function.