Dirac - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Dirac

Dirac delta function

 

Calling Sequence

Parameters

Description

Examples

References

Calling Sequence

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.

Parameters

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

Description

• 

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

Diracx1,x2,...,xk=Diracx1Diracx2...Diracxk

  

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

Diracxfxⅆx=f0

  

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,

abDiracxx0fx&DifferentialD;x=fx0if x0 belongs to the open interval ]a,b[fx02if x0=a, or x0=b, anda<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));

Diracx=&ExponentialE;I_k1x&DifferentialD;_k12π&comma;with no restrictions on x

(1)
• 

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<xx<ε20ε2<x

(2)

1/(2*epsilon)*exp(-abs(x)/epsilon);

&ExponentialE;xε2ε

(3)

1/(Pi)*epsilon/(x^2+epsilon^2);

επε2+x2

(4)

1/(Pi)*sin(x/epsilon)/x;

sinxεπx

(5)
  

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);

Diracx=Diracx

(6)

Dirac(c*x) = 1/abs(c)*Dirac(x);

Diraccx=Diracxc

(7)
  

and, more generally:

Dirac(g(x)) = Sum(1/abs(D(g)(rho[j]))*Dirac(x-rho[j]),j = 1 .. N);

Diracgx=j=1NDiracxρjDgρj

(8)
  

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);

gxDiracxx0=gx0Diracxx0

(9)
  

so that taking x0=0 we see that the equation xux=0 has for solution ux=cDiracx, 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);

Diracxx0&ExponentialE;−Ixp&DifferentialD;x=&ExponentialE;−Ix0p

(10)
• 

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

Dirac1&comma;xfx&DifferentialD;x=Df0

  

and is an odd function of x

'Dirac(1,-x)' = Dirac(1,-x);

Dirac1&comma;x=Dirac1&comma;x

(11)
  

also satisfying

x*Dirac(1,x) = -Dirac(x);

xDirac1&comma;x=Diracx

(12)
  

More generally,

Diracn&comma;xfx&DifferentialD;x=−1nDnf0

  

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));

Diracn&comma;x=&ExponentialE;I_k1xI_k1n&DifferentialD;_k12π&comma;with no restrictions on n&comma;x

(13)
• 

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

&DifferentialD;&DifferentialD;xHeavisidex=Diracx

• 

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.

Examples

One-dimensional case: basic property related to definite integrals

IntDiracxfx&comma;x=..

Diracxfx&DifferentialD;x

(14)

value

f0

(15)

diffDiracx&comma;x

Dirac1&comma;x

(16)

The relation with Heaviside upon indefinite integration

intDiracx&comma;x

Heavisidex

(17)

diff&comma;x

Diracx

(18)

Note that this relation does not fix the value of Heaviside at zero.

Multidimensional case: basic properties

Diracx&comma;y&comma;z

Diracx&comma;y&comma;z

(19)

expand

DiracxDiracyDiracz

(20)

combine

Diracx&comma;y&comma;z

(21)

IntIntInt`*`&comma;fx&comma;y&comma;z&comma;`=`x&comma;`-`&infin;..&infin;&comma;`=`y&comma;`-`&infin;..&infin;&comma;`=`z&comma;`-`&infin;..&infin;

Diracx&comma;y&comma;zfx&comma;y&comma;z&DifferentialD;x&DifferentialD;y&DifferentialD;z

(22)

value

f0&comma;0&comma;0

(23)

The derivative of the multidimensional Dirac

Diracx&comma;y&comma;z

Diracx&comma;y&comma;z

(24)

diff&comma;x&comma;y&comma;y&comma;z

Dirac1&comma;2&comma;1&comma;x&comma;y&comma;z

(25)

expand

Dirac1&comma;xDirac2&comma;yDirac1&comma;z

(26)

combine

Dirac1&comma;2&comma;1&comma;x&comma;y&comma;z

(27)

References

  

Cohen-Tannoudji, C.; Diu, B.; and Laloe, F. Quantum Mechanics, Appendix II. Paris: Hermann, 1977.

See Also

Heaviside

inttrans[fourier]

inttrans[laplace]

inttrans[mellin]