Dirac
Dirac delta function
Calling Sequence
Parameters
Description
Examples
References
Dirac(x)
Dirac(n, x)
Dirac([x1,x2,...,xk])
Dirac([n1,n2,...,nk], [x1,x2,...,xk])
The above represents: the one-dimensional Dirac delta function, the nth derivative of that Dirac function, the k-dimensional Dirac function in Cartesian coordinates, and the partial derivative of order n1 w.r.t. x1 ... nk w.r.t. xk of that k-dimensional function.
x
-
algebraic expression understood to be real
n
non-negative integer
[x1, x2, ..., xk]
list of algebraic expressions, used when representing a multidimensional Dirac
[n1, n2, ..., nk]
list of algebraic expressions having for domain the non-negative integers, used when representing a multidimensional Dirac
The Dirac command allows for a compact representation of an n-dimensional Dirac delta function, defined in terms of the product of one-dimensional Dirac functions by
Dirac⁡x1,x2,...,xk=Dirac⁡x1⁢Dirac⁡x2⁢...⁢Dirac⁡xk
where the arguments of the Dirac functions on the right-hand side are understood to be real. To obtain the representations on the left or right-hand sides respectively use the combine and expand commands.
In the one-dimensional case, the Dirac 'function' represents a distribution, that is, an object defined not by establishing the relation between the values of the function and those of its argument, but by establishing the rule for integrating its product with sufficiently regular functions. The Dirac function is then defined through
∫−∞∞Dirac⁡x⁢f⁡xⅆx=f⁡0
By a sufficiently regular function, it is meant one that does not vary significantly over an interval of infinitesimal length epsilon around x = 0, or, more strictly, a function that is infinitely differentiable in some open neighborhood of 0.
More generally, and for arbitrary real integration limits a and b,
∫abDirac⁡x−x0⁢f⁡xⅆx=f⁡x0if x0 belongs to the open interval ]a,b[f⁡x02if x0=a, or x0=b, and⁢a<b0otherwise
where by open interval ]a, b[, it is meant the set of real numbers lying between and excluding the endpoints a and b, with a < b.
An explicit, formal, definition of the Dirac delta function is given by its integral representation, constructed as an inverse fourier transform:
FunctionAdvisor(integral_form, Dirac(x));
Dirac⁡x=∫−∞∞ⅇI⁢_k1⁢xⅆ_k12⁢π,with no restrictions on ⁡x
Some possible alternative representations for the Dirac(x) delta function are
piecewise(And(-epsilon/2 < x, x < epsilon/2), 1/epsilon, abs(x) > epsilon/2, 0);
1ε−ε2<x∧x<ε20ε2<x
1/(2*epsilon)*exp(-abs(x)/epsilon);
ⅇ−xε2⁢ε
1/(Pi)*epsilon/(x^2+epsilon^2);
επ⁢ε2+x2
1/(Pi)*sin(x/epsilon)/x;
sin⁡xεπ⁢x
where in all these formulas epsilon represents a sufficiently small real number. In practical applications, as soon as epsilon becomes negligible compared to the distances involved in the problem, it becomes impossible to distinguish between these alternative representations and the usual definition of Dirac as a distribution. In the opposite case, the use of Dirac in the formulation of a problem may be inconvenient, and replacing Dirac(x) by any of these alternative or analogous but more regular representations, with an extremely small epsilon but not strictly zero, may be appropriate.
Some basic properties of the Dirac function are
'Dirac(-x)' = Dirac(-x);
Dirac⁡−x=Dirac⁡x
Dirac(c*x) = 1/abs(c)*Dirac(x);
Dirac⁡c⁢x=Dirac⁡xc
and, more generally:
Dirac(g(x)) = Sum(1/abs(D(g)(rho[j]))*Dirac(x-rho[j]),j = 1 .. N);
Dirac⁡g⁡x=∑j=1N⁡Dirac⁡x−ρjD⁡g⁡ρj
where rho[j] represents any real and simple zero of g(x) and N is the number of zeros (roots). Note: if g(x) has multiple zeros (hence g' at rho[j] is equal to 0 for some j), the expression Dirac(g(x)) is meaningless.
The following identity is relevant
g(x)*Dirac(x-x0) = g(x0)*Dirac(x-x0);
g⁡x⁢Dirac⁡x−x0=g⁡x0⁢Dirac⁡x−x0
so that taking x0=0 we see that the equation x⁢u⁡x=0 has for solution u⁡x=c⁢Dirac⁡x, where c is an arbitrary constant.
A relevant formula in applications in physics is the fourier transform of Dirac(x)
Int(Dirac(x-x0)*exp(-I*x*p), x = -infinity .. infinity) = inttrans[fourier](Dirac(x-x0), x, p);
∫−∞∞Dirac⁡x−x0⁢ⅇ−I⁢x⁢pⅆx=ⅇ−I⁢x0⁢p
Derivatives of the Dirac function are denoted by the two-argument Dirac function. In the one-dimensional case, the first argument denotes the order of the derivative. For example, diff(Dirac(x), x$n) is automatically represented by Dirac(n, x) for any integer n.
Starting with the definition of Dirac(x) and integrating by parts, the derivative of Dirac(x) is defined as
∫−∞∞Dirac⁡1,x⁢f⁡xⅆx=−D⁡f⁡0
and is an odd function of x
'Dirac(1,-x)' = Dirac(1,-x);
Dirac⁡1,−x=−Dirac⁡1,x
also satisfying
x*Dirac(1,x) = -Dirac(x);
x⁢Dirac⁡1,x=−Dirac⁡x
More generally,
∫−∞∞Dirac⁡n,x⁢f⁡xⅆx=−1n⁢Dn⁡f⁡0
where n represents a non-negative integer.
An explicit, formal, definition of the derivative of the Dirac delta function is given by its integral representation:
FunctionAdvisor(integral_form, Dirac(n,x));
Dirac⁡n,x=∫−∞∞ⅇI⁢_k1⁢x⁢I⁢_k1nⅆ_k12⁢π,with no restrictions on ⁡n,x
In the multidimensional case, Dirac is still a function of two arguments, each one being a list, both lists having the same number of operands, the first one containing non-negative integers representing the differentiation order with respect to each of the operands of the second list. This is a natural generalization of the one-dimensional case. In both cases, the differentiation order could also be represented by an arbitrary algebraic expression, whose domain is supposed to be the non-negative integers.
The Heaviside function is the anti-derivative of Dirac in that
ⅆⅆxHeaviside⁡x=Dirac⁡x
These functions are frequently used in the context of integral transforms, for example, laplace, mellin, or fourier, or theoretical physics, for example, in quantum mechanics - see ref.[1] at the end.
One-dimensional case: basic property related to definite integrals
Int⁡Dirac⁡x⁢f⁡x,x=−∞..∞
∫−∞∞Dirac⁡x⁢f⁡xⅆx
value⁡
f⁡0
diff⁡Dirac⁡x,x
Dirac⁡1,x
The relation with Heaviside upon indefinite integration
int⁡Dirac⁡x,x
Heaviside⁡x
diff⁡,x
Dirac⁡x
Note that this relation does not fix the value of Heaviside at zero.
Multidimensional case: basic properties
Dirac⁡x,y,z
expand⁡
Dirac⁡x⁢Dirac⁡y⁢Dirac⁡z
combine⁡
Int⁡Int⁡Int⁡`*`⁡,f⁡x,y,z,`=`⁡x,`-`⁡∞..∞,`=`⁡y,`-`⁡∞..∞,`=`⁡z,`-`⁡∞..∞
∫−∞∞∫−∞∞∫−∞∞Dirac⁡x,y,z⁢f⁡x,y,zⅆxⅆyⅆz
f⁡0,0,0
The derivative of the multidimensional Dirac
diff⁡,x,y,y,z
Dirac⁡1,2,1,x,y,z
Dirac⁡1,x⁢Dirac⁡2,y⁢Dirac⁡1,z
Cohen-Tannoudji, C.; Diu, B.; and Laloe, F. Quantum Mechanics, Appendix II. Paris: Hermann, 1977.
See Also
Heaviside
inttrans[fourier]
inttrans[laplace]
inttrans[mellin]
Download Help Document