Dirac delta function
The Dirac delta or Dirac's delta is a mathematical construct introduced by the British theoretical physicist Paul Dirac.  Informally, it is a function representing an infinitely sharp peak bounding unit area: a function (x) that has the value zero everywhere except at x = 0 where its value is infinitely large in such a way that its total integral  is 1. It is a continuous analogue of the discrete Kronecker delta. In the context of signal processing it is often referred to as the unit impulse function. Note that the Dirac delta is not strictly a function.  While for many purposes it can be manipulated as such, formally it can be defined as a distribution that is also a measure.

# Overview
A Dirac function can be of any size in which case its 'strength' A is defined by duration multiplied by amplitude. The graph of the delta function is usually thought of as following the whole x-axis and the positive y-axis. (This informal picture can sometimes be misleading, for example in the limiting case of the sinc function.)
Despite its name, the delta function is not truly a function. One reason for this is because the functions f(x) = (x) and g(x) = 0 are equal everywhere except at x = 0 yet have integrals that are different.  According to Lebesgue integration theory, if f and g are functions such that f = g almost everywhere, then f is integrable if and only if g is integrable and the integrals of f and g are identical.  Rigorous treatment of the Dirac delta requires measure theory or the theory of distributions.
The Dirac delta is very useful as an approximation for a tall narrow spike function (an impulse). It is the same type of abstraction as a point charge, point mass or electron point. For example, in calculating the dynamics of a baseball being hit by a bat, approximating the force of the bat hitting the baseball by a delta function is a helpful trick. In doing so, one not only simplifies the equations, but one also is able to calculate the motion of the baseball by only considering the total impulse of the bat against the ball rather than requiring knowledge of the details of how the bat transferred energy to the ball.
The Dirac delta function was named after the Kronecker delta, since it can be used as a continuous analogue of the discrete Kronecker delta.

# Definitions
The Dirac delta can be loosely thought of as a function on the real line which is zero everywhere except at the origin, where it is infinite,
and which is also constrained to satisfy the identity
This heuristic definition should not be taken too seriously though.  The Dirac delta is not a function, as no function has the above properties. Moreover there exist descriptions of the delta function which differ from the above conceptualization. For example, \textrm{sinc}(x/a)/a (where sinc is the sinc function) behaves as a delta function in the limit of a\rightarrow 0, yet this function does not approach zero for values of x  outside the origin, rather it oscillates between 1/x  and -1/x   more and more rapidly as a  approaches infinity.
The defining characteristic
where f is a suitable test function, cannot be achieved by any function, but the Dirac delta function can be rigorously defined either as a distribution or as a measure.
In terms of dimensional analysis, this definition of \delta(x) implies that \delta(x) has dimensions reciprocal to those of dx.

# The delta function as a measure
As a measure, \delta (A)=1 if 0\in A, and \delta (A)=0 otherwise.  Then,
=  f(0)
for all continuous f.

# The delta function as a probability density function
As a distribution, the Dirac delta is a linear functional on the space of test functions and is defined by
for every test function \phi \ . It is a distribution with compact support (the support being {0}).  Because of this definition, and the absence of a true function with the delta function's properties, it is important to realize the above integral notation is simply a notational convenience, and not a garden-variety (Riemann or Lebesgue) integral.
Thus, the Dirac delta function may be interpreted as a probability density function. Its  characteristic function is then just unity, as is the moment generating function,
so that all moments are zero. The cumulative distribution function is the Heaviside step function.
Equivalently, one may define \delta : \mathbb{R} \ni \xi \longrightarrow \delta ( \xi )\in \delta(\mathbb{R})  as a distribution   \delta ( \xi ) whose indefinite integral is the function
usually called the Heaviside step function or commonly the unit step function. That is, it satisfies the integral equation
\int^{x}_{-\infin} \delta (t) dt = h(x) \equiv \frac{1+{\rm sgn}(x)}{2}
for all real numbers x.

# Delta function of more complicated arguments
A helpful identity is the scaling property (\alpha is non-zero),
=\int_{-\infty}^\infty \delta(u)\,\frac{du}{|\alpha|}
=\frac{1}{|\alpha|}
and so
The scaling property may be generalized to:
where xi are the real roots of g(x) (assumed simple roots). Thus, for example
In the integral form the generalized scaling property may be written as
\int_{-\infty}^\infty f(x) \, \delta(g(x)) \, dx
= \sum_{i}\frac{f(x_i)}{|g'(x_i)|}
In an n-dimensional space with position vector \mathbf{r}, this is generalized to:
\int_V f(\mathbf{r}) \, \delta(g(\mathbf{r})) \, d^nr
= \int_{\partial V}\frac{f(\mathbf{r})}{|\mathbf{\nabla}g|}\,d^{n-1}r
where the integral on the right is over \partial V, the n-1  dimensional surface defined by g(\mathbf{r})=0.
The integral of the time-delayed Dirac delta is given by:
(the sifting property). The delta function is said to "sift out" the value at t=T\,.
It follows that the convolution:
means that the effect of convolving with the time-delayed Dirac delta is to time-delay f(t)\, by the same amount.

# Fourier transform
Using Fourier transforms, one finds that
and therefore:
which is a statement of the orthogonality property for the Fourier kernel.  Equating these non-converging improper integrals to \delta(x) is not mathematically rigorous.  However, they behave in the same way under a definite integral.  That is,
\int_{-\infty}^\infty F(f) \left(\int_{-\infty}^\infty e^{-i 2\pi f t} dt\right) df &= F(0)
\end{align}
according to the definition of the Fourier transform.  Therefore, the bracketed term is considered equivalent to the Dirac delta function.

# Laplace transform
The direct Laplace transform of the delta function is:
a curious identity using Euler's formula  2 \cos(as)=e^{-ias}+e^{ias}  allows us to find the Laplace inverse transform for the cosine

# Distributional derivatives
As a tempered distribution, the Dirac delta distribution is infinitely differentiable. Let U be an open subset of Euclidean space Rn and let S(U) denote the Schwartz space of smooth, rapidly decaying real-valued functions on U. Let a be a point of U and let a be the Dirac delta distribution centred at a. If  = (1, ..., n) is any multi-index and  denotes the associated mixed partial derivative operator, then the th derivative a of a is given by
That is, the th derivative of a is the distribution whose value on any test function  is the th derivative of  at a (with the appropriate positive or negative sign). This is rather convenient, since the Dirac delta distribution a applied to  is just (a). For the =1 case this means
The first derivative of the delta function is referred to as a doublet (or the doublet function).  Its schematic representation looks like that of a(t) and -a(t) superposed.

# Representations of the delta function
The delta function can be viewed as the limit of a sequence of functions
\delta (x) = \lim_{a\to 0} \delta_a(x),
where \delta_a(x) is sometimes called a nascent delta function. This limit is in the sense that
for all continuous f.
The term approximate identity has a particular meaning in harmonic analysis, in relation to a limiting sequence to an identity element for the convolution operation (also on groups more general than the real numbers, e.g. the unit circle). There the condition is made that the limiting sequence should be of positive functions.
Some nascent delta functions are:
Note: If (a, x) is a nascent delta function which is a probability distribution over the whole real line (i.e. is always non-negative between - and +)
then another nascent delta function (a, x) can be built from its characteristic function as follows:
where
is the characteristic function of the nascent delta function (a, x). This result is related to the localization property of the continuous Fourier transform.

# The Dirac comb
A so-called uniform "pulse train" of Dirac delta measures, which is known as a Dirac comb, or as the shah distribution, creates a sampling function, often used in digital signal processing (DSP) and discrete time signal analysis.