Dirac Delta
Dirac Delta
Examples:
Multiple zeroes of the argument
Endpoint zeroes of the argument
Green functions -- see Tools of the Trade
Mega-Application
Green function for the Laplace operator
*** Change the dimensions to the inverse of the dimension of the integration variable
**** Add vanhoys little delta perturbation at the center of a square well.
Continuous mass and charge distributions are common in physics. Often, as models, point charges
and point masses need to be combined with continuous distributions of mass or charge. The Dirac
delta function is introduced to represent a finite chunk packed into a zero width bin or into zero
volume. To begin, the defining formal properties of the Dirac delta are presented. A few applications
are presented near the end of this handout. The most significant example is the identification of the
Green function for the Laplace problem with its applications to electrostatics.
Contact: tank@[Link]
Dirac, P(aul). A. M. (1902-1984) English physicist whose calculations
predicted that particles should exist with negative energies. This led him to
suggest that the electron had an "antiparticle." This antielectron was
discovered subsequently by Carl Anderson in 1932, and came to be called
the positron. Dirac also developed a tensor version of the Schrödinger
equation, known as the Dirac equation, which is relativistically correct. For
his work on antiparticles and wave mechanics, he received the Nobel Prize
in physics in 1933.
[Link] © 1996-2006 Eric W. Weisstein
Defining Property: The Dirac delta function ( x x0 ) is defined by the values of its integral.
b
1 if x0 (a, b)
( x x ) dx 0 if
a
0
x0 [a, b]
and ( x x0 ) 0 for x x0 [DD.1]
where the integration limits run in the positive sense (b > a). It follows that:
b
f ( x0 ) if x0 (a, b)
f ( x) ( x x ) dx 0
a
0
if x0 [a, b]
[DD.2]
NOTE: The defining properties require that the integration limits run in the positive sense. (b > a)
Comparison of the Dirac and Kronecker Deltas
In a sum, the Kronecker delta km is defined by its action in sums over an integer index.
kupper
f (m) if klower m kupper
f (k ) km
k klower 0 if m [klower , kupper ]
When the terms of a sum over integers contain a Kronecker delta as a factor, the action of summing
over a range of integers k by steps of 1 is to yield a result equal to the value of the one term for
which k = m with Kronecker evaluated as one. That is: the entire sum over k evaluates to the one
term in which the summation free index is equal to m, the other index of the Kronecker delta. This
action is equivalent to the definition that km = 1 for k = m and km = 0 for k m.
The Dirac delta function ( x x0 ) is defined by its action (the sifting property).
b
f ( x0 ) if x0 (a, b)
a
f ( x) ( x x0 ) dx
0 if x0 [a, b]
When an integrand contains a Dirac delta as a factor, the action of integrating in the positive sense
( x x0 ) dx f ( x) ( x x )
d
f ( x) ( x x0 ) dx
b
proof: f ( x)
a
0 a
a
dx dx
Recall that (b x0 ) = 0 and (a x0 ) = 0 as
f ( x) ( x x ) dx
a
0
x0 a
f ( x0 u ) (u ) du
x0 b
f ( x0 u ) (u ) du
x0 a
f ( x0 ) if x0 ( a, b)
f ( x0 u ) (u ) du
x0 b 0 if x0 [ a, b]
b b
f ( x) ( x x ) dx f ( x) ( x x ) dx f ( x )
a
0
a
0 0
Note that the condition that b > a ensures that (x0 – a) > (x0 – b). That is: the integration limits run
in the positive sense.
Scaling Property: The final basic identity involves scaling the argument of the Dirac delta. A
change of integration variable u = k x quickly establishes that:
b f ( x0 )
if x0 (a, b)
f ( x) (k x x0 ) dx |k | [DD.4]
a 0 if x0 [a, b]
f ( x) (k x x ) dx
a
0
kb
(1/ k ) f ( k x0 / k ) if k x0 (k a, k b)
f (u / k ) (u k x ) 1/ k du
ka
0
0 if k x0 [k a, k b]
Note: If k < 0, the limits of the integral run in the negative sense after the change of variable.
Returning the limits to the positive sense is equivalent to dividing by |k| rather than by k .
kb u
Advanced Scaling Property: The advanced scaling applies to a Dirac deltas with a function as its
argument. As always, the functions f(x) and g(x) are continuous and continuously differentiable.
f ( x ) / dg if x0 (a, b)
b
f ( x) g ( x) g ( x0 ) dx dx
0
x x0 [DD.5]
a
0 if x0 a, b
dg
Using the absolute value | dx | is equivalent to returning the limits to positive order in the local of the
dg
argument zero after a change of variable in that case that dx < 0. Clearly functions g(x)) with first
dg
order zeroes are to be used. If g(x) has a second order zero (g(xo ) = 0 and dx = 0 at xo), the
expression is undefined. The advanced scaling property is to be established in a problem, but it can
be motivated by approximating the delta's argument around each zero using a Taylor’s series as:
dg dg
g ( x) g ( x0 ) dx ( x x0 ) . Hence dx plays the role of k in the simple scaling property.
x x0 x x0
Multiple argument zeroes: In the case that the function g(x) is equal to g(x0) for several values of x
in the interval (a,b), the integral found by applying the advanced scaling rule to a small region about
each zero and summing the contributions from each zero in the interval (a,b).
b
f ( x) g ( x) g ( x ) dx
dg
0 f ( x j ) / dx
a x j g ( x j ) g ( x0 ) x x j
x j ( a ,b )
As the integration variable x is incremented positively and the delta is even, the procedure above
provides positive weight to the value of f(x) at each root of g(x) - g(xo).
Anchor Step: Identify the set of values of the integration variable for which the argument of the
delta function is zero. Identify the subset of these values that lie in the range of the integration.
Consider I f ( x) ( x 2 2) dx . The argument of the delta function has zeroes for x 2 .
Restrict your attention to the subset of those values that lie in the integration range. In this case the
two values, x 2 , are in the range. The integral can be evaluated considering the small regions
about x 2 and the contributions evaluated using the advanced scaling rule.
2 2
I f ( x) ( x 2 2) dx 2 f ( x) ( x 2 2) dx 2 f ( x) ( x 2 2) dx
This form is chosen to emphasize the action of the delta function. It provides net integrated weight to
the factor in the integrand that it multiplies values in infinitesimal neighborhoods of the zeroes of its
argument. The delta function has value zero outside these infinitesimal regions, and so the behavior
and value of f(x) outside these regions is of no consequence.
dg ( x) dg ( x)
Advanced scaling 2x 2 2 for x 2 .
dx dx
1 1
2 dg ( x) 2 dg ( x)
I f ( x) ( x 2 ) dx f ( x) ( x 2) dx
2 dx 2 dx
f ( 2 ) f ( 2 )
I For any continuous f(x).
2 2 2 2
FOUNDATION: The anchor step is crucial. Complete the anchor step first. Prepare an explicit list
of the values of the integration variable that lie in the range of integration for which the argument of
the delta function is zero. Proceed only after this step is complete and documented.
b
df ( x)
f ( x) dx ( x x0 ) dx
d
Derivative Property: if x0 (a, b)
a
dx x x0
b
Scaling Property: f ( x) (k x x ) dx (1/ k )
a
0 f ( x0 ) if x0 (a, b)
f ( x) g ( x) g ( x ) dx
dg
Advanced Scaling: 0 f ( x0 ) / dx if x0 (a, b)
a x x0
f ( x) g ( x) g ( x ) dx
dg
Multiple zeroes: 0 f ( x j ) / dx
a x j g ( x j ) g ( x0 ) 0 x x j
x j ( a , b )
1
b
df ( x j ) dg
Derivative Prop II: f ( x)
d
g ( x) g ( x0 ) dx
dx dx
*
a
dx x j g ( x j ) g ( x0 ) 0 x x j
x j ( a ,b )
WARNING: The scaling aspects are the most problematic for those only recently introduced to
Dirac deltas. Be sure to include the simple scaling factor | k |-1 or the advanced scaling factor |dg/dx |-1
evaluated at each zero of the delta’s argument. Be attentive; make the absolute value explicit even
when it is not needed.
Endpoint argument zeros: If the argument of the delta function vanishes for an endpoint value of x
(= a or b), the contribution to the integral is usually one-half the value that would be computed for
an interior point. This result can be based on the 1 Dn ( x) representation of the delta function
discussed below. A digression on endpoint behavior follows.
Deltas on the boundary: The zero of the argument can appear on the boundary in 3D cases.
Consider the space to be stacked coordinates ‘cubes’. If the zero is on a face on an included
cube, expect a relative weight of one-half. If the boundary zero is on the edge of an included
cube, expect a relative weight of one-fourth. If the boundary zero is at a corner of the
integration volume, expect a weight of one-eighth. Consider the solid angle inc about the
zero that is included in the integration range. The relative weight expected is inc/4
A related issue arises for coordinates that have ranges bounded by finite values. In
spherical coordinates, possible examples are ( - 2) and (r – 0). In such cases, the
The Dirac delta function ( x x0 ) is zero everywhere except at the zero of its argument where it
explodes huge positive. It manages this undefined act so as to have an area of 1 under its curve.
Bizarre as it is, the Dirac delta is not an ordinary function, but rather it has (many) representations as
the limits of families of functions. Such things are distributions rather than functions. These
families consist of well-defined function that exhibit singular behavior (blow up; have infinities)
only in the limit in which they become the Dirac Delta.
n
0 for x 1
2n
1
Dn ( x) n for 1 x 1
2n 2n
0 for x 1
2n -1/2n +1/2n
In the limit that n , the action of the sequence of functions 1 Dn ( x) approaches the behavior
specified for the Dirac delta.
n
0 for x 1
n
nn x
2
for 1 x 0
n
2
Dn ( x)
nn x
2
for 0 x 1
n
0 for x 1 -1/n +1/n
n
In the limit n , the action of the sequence of functions 2 Dn ( x) approaches the behavior
specified for the Dirac delta.
n x
2
n
3
Dn ( x) e
See: [Link]/
In the limit that n , the sequence of functions 3 Dn ( x) becomes tall and narrow, and its action
approaches the behavior specified for the Dirac delta.
n sin(n x)
4
Dn ( x) sinc(nx)
x
sin(x)
sinc(x) = /x
See: [Link]/
sinc: pronounced ‘sink’
Our sixth representation is as the derivative of the Heaviside function (the unit step function).
0 for x x0 d x x0
x x0 ( x x0 )
1 for x x0 dx
3.0
sin 2 (n x)
2.5
n
7
Dn ( x) sinc 2 (nx) 2
n x
2.0
1.5
sin(x) 1.0
sinc(x) = /x
0.5
See: [Link]/
-1.5 -1.0 -0.5 0.0 0.5 1.0 1.5
In the limit that n , the sequence of functions Dn ( x) becomes tall and narrow, and its action
7
3.0
n 2.5
8
Dn ( x)
1 n 2 x 2 2.0
1.5
1.0
0.5
See: [Link]/
-1.5 -1.0 -0.5 0.0 0.5 1.0 1.5
In the limit that n , the sequence of functions 8 Dn ( x) becomes tall and narrow, and its action
approaches the behavior specified for the Dirac delta.
The 1 Dn ( x) sequence can be used to illustrate the action of such a sequence in the limit of large n on
a function described by its Taylor’s series expansion. It is assumed that x0 lies between a and b.
b x0 1 2 n x0 1 2 n
f ( x ) df ... dx
f ( x) x xo 2!1 ddx f x x xo
2
Dn ( x) dx f ( x) n dx n
1 2
x0 1 2 n
o dx xo
2
a x0 1 2 n o
12 n 12 n
12 n 12 n
xo 2! dx 2 xo 2! dx 2 x 3!
xo o
Exercise: Given that the sinc distribution 4 Dn ( x) , is a representation of the delta function, show
that the sinc-squared sequence 7 Dn ( x) is also a representation of the delta function. Use
L’Hospital’s rule as needed.
Beware: The n dimensional Dirac delta n (r r0 ) is often represented as: (r r0 ) . The
dimensionality must be assumed to be the dimensionality of the argument of the delta. The
integration weight for zeroes of the argument on the boundary of the integration region
must be according to the rules for endpoint or boundary zeroes.
The two and three-dimensional Dirac delta function have straight forward representations in terms of
the 1D deltas in Cartesian coordinates.
2 ([ x, y ],[ x0 , y0 ]) ( x x0 ) ( y y0 ) and 3 (r r0 ) ( x x0 ) ( y y0 ) ( z z0 )
b
1 if x0 (a, b)
It is apparent from the definition: ( x x0 ) dx that the delta function has the
a 0 if x0 [a, b]
-1
dimensions of (length) , the inverse of the dimension of x.
A delta function of some other argument (u) has the dimensions of u -1. For reasons similar to those
dictating developing a gradient in which each term has the same dimension, it is convenient and
appropriate in the case of a locally orthonormal coordinate system to associate the metric scale
factors with each factor representing a multi-dimensional Dirac delta.
( 0 ) ( 0 )
volume charge density (r ) in spherical coordinates.
r r sin
The delta functions are useful for representing surface charge densities that coincide with constant
coordinate surfaces and line charges that lie along coordinate orbits. If the line or surface charges do
not fit the coordinate system nicely and naturally, parameterize the line or surface using standard
techniques. A volume integral delta function approach would be difficult in such cases.
Examples:
(q1 q10 ) (q2 q20 ) (q3 q30 )
Point charge q at (q10;q20,q30): (r ) q
h1 (q1 , q2 , q3 ) h2 (q1 , q2 , q3 ) h3 (q1 , q2 , q3 )
( q2 a )
Surface charge on a q2 surface: (r ) (q1 , q3 )
h2 (q1 , q2 , q3 )
Exercise: Verify that a delta function has dimensions equal to the inverse of those of its argument.
u0
Base your reasoning on the defining property: u0
(u u0 ) du 1 .
-1
Exercise: Verify that each factor above has dimension (length) given that each delta function has
dimensions equal to the inverse of those of its argument.
In cylindrical coordinates, the dimensionally organized representation for the 3D Dirac delta is:
Consider any linear driven differential equation Lˆ x(t ) f (t ) where L̂ represents the linear
differential operator (derivatives with respect to t) and f(t) is the driving function. If one can solve
the problem: Lˆ G (t , t ') (t t ') , then a formal solution to Lˆ x(t ) f (t ) is:
x(t ) G (t , t ') f (t ') dt ' as
Lˆ G(t , t ') f (t ') dt ' Lˆ[G(t , t ')] f (t ') dt ' (t t ') f (t ') dt ' f (t ) .
The general search for Green functions is to be postponed, but one rather advanced, important
example is to be studied. The case of the Laplace equation in three dimensions takes the form:
2G (r , rs ) 3 r rs
The symbol rs is a source position and r is the field position. The Laplacian is a second order
differential operator that acts of the field position variables in r . The Green function is to be
deduced from facts previously established. The study of vector calculus has yielded the following
information:
1
r rs
r r 3
r rs
and V
F nˆ dA F dV
V
s
where the surface integration is over the surface V that encloses the integration volume for the
volume integration V . Adding the vector calculus magic 2 ,
r rs 1 1
V 3 nˆ dA V r r dV V dV or
2
r rs s r rs
r rs
The surface integral on the right was studied in gruesome detail in the vector calculus handout.
r rs
r rs
r rs
V 3 nˆ dA V
r rs
3
r rs
dV and 3 0 for r rs . Although the divergence
r rs
vanishes everywhere except perhaps at the point r rs , the surface integral gives a non-zero value if
rs V no matter how small the volume is chosen. A small spherical surface centered on rs can be
chosen in which case the evaluation is relatively simple (See the exercise below.).
r rs 1
3 ˆ
n dA V r rs
2
dV 4 if rs V
V
r rs
1
But wait! The integrand 2 vanishes everywhere except at the point r rs and the integral
r rs
over any volume that contains that point is – 4. The conclusion is that
1 3 1
2 4 (r rs ) and hence that G (r , rs ) .
r rs 4 r rs
Exercise: Transform to a set of spherical coordinated centered on rs so that r represents r rs for
this exercise. Compute ( r r 3 ) nˆ d A over a spherical surface of radius R centered on the origin
directly as a surface integral; do not use Gauss's theorem. Does the result depend on R. Considering
the R dependence of the result, describe the region responsible for the net value of the integral?
Application to electrostatics:
0 1
E 0
o E 2
o 2 (r rs )
4 r rs
1
and 0 so,
2
A Green function for the Laplace equation is:
4 r rs o
(r ) 3 3
1 0 (rs )
(r ) o d rs V 4 o r rs d rs [DD.9]
0 s
V 4 r r
s
Similarly, in magnetostatics, B 0 J and A B . Using the identity
( ) ( ) 2 and choosing A 0 , the relations combine to give 2 A 0 J which
following the development above means:
0 J (rs ) 3
A(r ) d rs [DD.10]
V 4 r r
s
To finish, one computes the negative gradient of the to yield:
(r ) (r r ) 3
E (r ) s
3 d rs
s
[DD.11]
V
4 o r rs
With slightly more effort, the curl of the vector potential A(r ) yields:
J (r ) (r r ) 3
B (r ) 0 s
3 d rs [DD.12]
V
4 r rs
For currents that are confined to a filamentary path, the last equation becomes:
I d (r r )
B (r ) 0 3 [DD.13]
V
4 r rs
The expression is recognized as the Law of Biot and Savart.
Digression: A point about the theory of electromagnetism – Skip this discussion!
The divergence A can be chosen to be zero because it has not direct physical interpretation. The
curl A is B , but A is just A . In fact, A can be set to any value (function of position).
One must not change A . The Helmholtz theorem provides the justification for this assertion.
Again from vector calculus, this is equivalent to saying that the gradient of any scalar function can
be added to A without changing the physics.
A ' A recall that 0
The process of adjusting A is called setting the gauge and, although it is a frightening procedure,
it is 100% analogous to adding an arbitrary constant to to make the potential absolute. The gauge
choice A 0 is called the Coulomb (or electrostatic) gauge, and it is a standard choice for static
**** 2D Delta (Lea): 2 [ln( )] 2 [2] ( ) where ( x x0 ) iˆ ( y y0 ) ˆj
a
An arbitrary function cab be represented as: f ( x) an n ( x) . The Dirac delta is not a well-
n
Project out the coefficient bm by pre-multiplication by m* ( x) and applying the inner product
procedure, integration of the product over the range of x yields:
*
m ( x) ( x x0 ) w( x) dx m* ( x0 ) bn m* ( x) n ( x) w( x) dx bm m* ( x) m ( x) w( x) dx
n
m* ( x0 ) w( x0 )
bm
m ( x) m ( x) dx
*
1
The Lorenz gauge is often identified incorrectly as the Lorentz gauge.
WARNING: The rapid extreme rapid variation of the delta means that its spectrum is infinitely
broad. No finite number of terms is adequate. The relation above is useful formally where a sum
over all the eigenfunctions can be imagined.
Fourier series example: The delta will be centered on zero so that, as an even function, it will have
only constant and cosine character. For a period of , it follows that co = 1/2 and an = 1/ for all n.
** One must include the sine terms to represent (t – to) for to
25 + 1 Term Expansion: f[t_] = ((1/2) + Sum[Cos[n t],{n,1,25}])/Pi;
Fourier Trig Plot[f[t],{t,-Pi/2, Pi/2}, PlotRange All]
Fourier series represent periodic function so the delta repeats period after period. This can lead to
unpleasant outcomes if the recurrence behavior is not appropriate for the application.
200
Hermite (QSHO) example: ( x 1) m* (1 ) m ( x) where m ( x) is the simple harmonic
m0
( x 1) m* (1 ) m ( x) .
m0
1
n ( x) e½ x H n ( x)
2
2n n !
td[n_,x_] = Exp[-x^2] HermiteH[n,1] HermiteH[n,x]/(2^n n! Sqrt[Pi])
dd[x_] =Sum[td[n,x],{n,0,200}];
Plot[dd[x],{x,-2,2}, PlotRange -> All]
NIntegrate[dd[x],{x,-1,2}] = 1.00338
The function is small and oscillatory except in a small neighborhood of 1. The net area under the
curve is close to 1. It's approaching a (x - 1).
60
40
20
Integrate[delta2Legendre[x], {x, 0.18, 0.22}] = 0.948105 200 terms; narrow integration range
Legendre polynomial example: 501 terms
150
100
50
e eik x dk 2 ( x x )
n ik ( x xo ) ik ( x xo ) *
dk
1
e e
ik xo
5
Dn ( x xo ) dk o
2 n
*
( x x0 ) m* ( x0 ) m ( x) ( x xo ) 21 eik xo eik x dk
m
Develop the Green function for the damped, driven oscillator by using the difference of the
responses to a positive step followed by an equal magnitude negative step.
See is a second approach follows by taking a formal derivative of the step function response.
Plot[xr[t],{t,0,20}]
1.5
1.25
0.75
0.5
0.25
5 10 15 20
10
5 10 15 20
-5
Make dt shorter and amp greater until impulse response remains ‘fixed as dt is decreased.
(r )
It works, but it is not cylindrically symmetric. For that, J z (r , ) I [DD.14]. This
2
Ampere’s Law is B 0 J so [ B]z 0 J z . In cylindrical coordinates,
1 F F F F 1 r F Fr ˆ
F z rˆ r z ˆ k
r z z r r r
1 r B Br (r )
so 0 J z ( r , ) 0 I . There can be no dependence in a
r r 2 r
r d r B (r ) r
r B (r ) r B (r ) dr r B (r ) (2 ) 1 0 I (r ) dr
r 0 0 dr r 0 0
We conclude that:
0 (r )
B(r ) 0 I ˆ (r )
2 r
Finally, the limit that 0 can be taken. The final result for a super thin wire carrying a current I
I
along the z axis is: B (r ) 0 ˆ .
2 r
Sample Calculations:
8
SC1.) sin x x 7 2 dx sin(7 2) 1 . The zero is at x = 7/2 which is in the integration range.
3
The argument of the delta function is simple so a direct application of the defining property
evaluates the rest of the integrand for x = 7/2.
Mathematica: Integrate[ Sin[Pi x] DiracDelta[x - 7/2],{x,3,8}] = -1
2 cos( ) 1
SC2.) cos 3 d . The zero occurs for = which is inside the
0 |3| 3
integration range. The argument of the delta has a constant scaling factor 3. The result is the inverse
of the absolute value of the scaling factor times the remainder of the integrand evaluated for = .
Integrate[ Cos[theta] DiracDelta[3(theta - Pi)],{theta,0,2 Pi}] = -1/3
in range. The argument of the delta is a function g(x) = x2 so the advanced scaling rule directs that
the inverse of | dg/dx | = |2x| evaluated at the zero, x = 2 , multiplies the value of the remainder of
the integrand evaluated at x = 2 .
1 (
2 2 ex
2
x 2 2 dx 2 2 e
2
/2 2 )2 / 2
e
|2 2 |
0
d x 2 2
4 x dx dx dx
4
2 d (4 x )
SC4.) (8 x 3 ) 1 . The zero at x = 2 is in the range
0 x2
x2
0 to 4. The delta has a simple argument so the result is the negative of the derivative of the
remainder of the integrand evaluated at x = 2.
Integrate[4 x^(-2)D[ DiracDelta[x- 2],x],{x,0,4}] = 1
2.25
SC5.) 0.25
cos( x) sin x dx . The argument of the delta has zeros for all integer values of x.
The integers 1 and 2 are in the range 0.25 to 2.25. The argument is a function, and advanced scaling
directs that the inverse of | dg/dx | = | cos(x)| evaluated at each zeros multiplies the value of the
remainder of the integrand evaluated at the corresponding zero. The process is simplified by noting
that | cos(x) | = + whenever sin(x) = 0.
2.25 cos(1) cos(2) cos(1) cos(2)
0.25
cos( x ) sin x dx
cos( ) cos(2 )
0.03952
Cos1 Cos2
Integrate[Cos[x] DiracDelta[Sin[Pi x]],{x,.25,2.25}] = = 0.0395199…
5
SC6.) 0
cos( x) x 1 x 4 dx = 0. One or the other of the delta function is always zero so the
result must be zero. For example when the leftmost delta has a zero of its argument, the rightmost
delta has a value of zero. That rightmost delta is a factor in the remainder of the integrand so the net
value is zero. Construct an argument supporting this interpretation based in the 1Dn(x) representation
of the delta function. The use of a product of deltas should not be necessary and should be avoided.
x
4
x 2 4 dx x 2 4 dx
4
SC7. 3 d d x3 dx . There are times when chaining
4 dx 4
together too many rules is confusing. Integrate the original problem by parts. The delta vanishes at
dx x 2 4 3 x 2 dx .
4 4
the endpoints. Now apply the rules to: 4
x 2 4 dx
d x3
4
x 2 4 3 x 2 dx 3 x 2 3 x 2
4 1 1
Using advanced scaling, 4 | 2x | x 2
| 2 x | x 2
6.
If you did not locate the zeroes and check to ensure that they were in the integration range, do so
now.
Integrate[x^3 D[ DiracDelta[x^2- 4],x],{x,-4,4}] = -6
WARNING: The scaling aspects are the most problematic for those only recently introduced to
Dirac deltas. Be sure to include the simple scaling factor | k |-1 or the advanced scaling factor |dg/dx |-1
evaluated at each zero of the delta’s argument. Be attentive; make the absolute value explicit even
when it is not needed.
Sample Applications
SA1.) A portion of an infinite plane with
z
surface charge density 0 is shown at right.
Find the electric field E ( x, y, z ) due to this
y
plane using Gauss' Law in differential form. x
Briefly explain what you are doing, and
remember to specify E ( x , y, z ) for z < 0 and
z > 0.
a Ez a
Ez (a) Ez (a ) dz 0
( z 0) dz Ez (a) 0
a z a 0
0
Combining this with the symmetry result, Ez(a) = - Ez(- a) where a is an arbitrary and positive.
Ez (a) Ez (a) so Ez ( z ) 0
0 2 for z 0
0
0
SA2.) Two views of a portion of an infinite charged slab are shown below: it extends infinitely far
in the x and y directions, but is limited to d z d in the z direction.
The slab's charge density is uniform with value 0 . Using Gauss' Law, find the E field inside and
outside the slab.
.
E
In Cartesian coordinates with z dependence only, E / 0 z ( z ) 0 .
z
Ez o
For – d < z < d, 0 Ez ( z ) o z 0 E0 . By symmetry, Ez(0) = 0. The field cannot choose
z
between +z and –z at z = 0 because the charge distribution is symmetric about the plane z = 0 so Eo =
0.
Ez ( z ) o z 0 for – d < z < d
Ez ( z )
For |z| > d, the charge density is zero so 0 0 or Ez is constant in those regions.
z
Matching at the boundaries, the planes z = - d and z = d, it follows that:
Only a z component is caused so that is all there is due to the specified charge distribution.
Problems
( 0 )
1.) Integrate the cylindrical delta 3 (r r0 ) (r r0 ) ( z z0 ) over all space to
r
verify that its integral is one.
2.) Integrate the spherical delta 3 (r r0 ) over all space to verify its integral is one.
3.) I claim that a thin spherical shell of uniform surface charge density can be represented by the
volume charge density (r ) (r R) . Integrate this charge density over all space to find the
net charge. Integrate the charge density over the volumes r >(R+ and r<(R- . Does the charge
density represent a thin spherical shell of radius R with uniform surface charge density ?
4.) The Fourier integral form is closely related to the sinc form.
n
1 ik ( x xo )
Compute 5 Dn ( x xo )
2
e
n
dk . Be cautious. The integral is with respect to k. The
factor ( x xo ) is a constant during the integration. Describe the relation between representations
four and five.
5.) Work with 2 Dn ( x) , the triangular representation. Carefully determine the slope of 2Dn(x)
-1
d 2 Dn ( x xo )
between n and 0. Find a graphical representation for . Express the result in terms
dx
of 1 Dn ( x xa ) for a few values of xa. Replace each 1 Dn ( x xa ) by (x-xa). Compute the integral of
b
d 2 Dn ( x x0 ) d 2 Dn ( x x0 )
f ( x)
a
dx
dx using the expression for
dx
in terms of a factor times
f ( x) dx dx x0
0
dx
in the limit n large. (Review the definition of the
a 0 if x0 [a, b]
6.) I claim that a thin line of uniform charge density linear can be represented by the volume
( 0 ) ( 0 )
charge density (r ) in spherical coordinates. Describe the line of
r r sin
charge. For example, let and be /2. Integrate this charge density over volume of a sphere of
radius R centered on the origin. Does the resulting net charge agree with expectations?
7.) In the study of electrostatics, the polarization charge density associated with a polarized
dielectric is often represented by two contributions: a volume distributed charge density
pol P and, on the surface, a surface charge density pol P nˆ where the outward directed
normal is chosen at the surface and P is the polarization density of the dielectric. Consider a
polarization density P that is uniform in the bulk of a cube of dielectric of side L centered on the
origin with its faces parallel to the Cartesian coordinate planes. The polarization density is in the x
direction and has magnitude P0 in the inner regions of the block, and it falls linearly to zero in a
L
thickness /n of the faces at x L . Prepare equations to represent P everywhere in the cube.
2
L
Compute pol P throughout the cube. What is the total charge in the slab of thickness /n at
x L ? …. at x L ? In the limit n gets very large, use delta functions to represent pol
2 2
where appropriate. Compare the result with pol P nˆ . The conclusion is that pol P nˆ
corresponds to the term in pol P that could result from the derivative of a (Heaviside) step-
8.) Proving the Scaling Property: Adopt the 1Dn(x – xo) representation and plot 1Dn(k[x – xo])
where k is a constant. Find the net area under the curve for 1Dn(k[x – xo]). Begin by plotting 1Dn(x –
xo) and 1Dn(k[x – xo]) for n = 9 and k = 3. Argue that the result establishes the scaling property.
(k[x – xo]) | k |-1 (x – xo)
9.) Advanced Scaling Property: Prove the advanced scaling property. As always, the functions f(x)
and g(x) are assumed continuous and continuously differentiable.
b
f ( x0 ) / g ( x0 ) if x0 (a, b)
f ( x) g ( x) g ( x ) dx
dg
where g ( x) dx
x0 [a, b]
0
a
0 if
10.) Consider the electric field due to a uniformly charges sphere of radius n-1 and total charge Q.
Compute the divergence of the electric field for r < n-1 and for r > n-1. Take the limit that n
with constant charge to develop a 3D delta function. Reduce to an identity for div ( r / r 3 ). Recall
that div ( r / r 3 ) = - 2 1 r .
11.) Consider the magnetic field due to a long straight wire with uniform current density, total
current Io and radius r = n-1. Compute the curl of the magnetic field for r < n-1 and for r > n -1. Take
the limit that n while maintaining constant current Io. Compare with the definition of a 2D delta
function. Evaluate curl of kˆ r / r 2 using deltas as appropriate.
n2 e n r
2 2
12.) Show that Yukawa
D (r )
(3)
is sequence that represents 3 (r ) in spherical
2 r
n
2
n2 e n r r '
2
3
D (r r ') (r r ') .
Yukawa (3)
coordinates. Hence
2 r r '
n
n3 nr
13.) Show that gamma
D (r )
(3)
e is sequence that represents 3 (r ) in spherical coordinates.
8
n
More Alternatives:
1 sin( n 12 x)
?
Dn ( x)
2 sin( 12 x)
See: [Link]/
d ( x)
14.) Show that x ( x) .
dx
1
15.) Show that (( x a )( x b)) ( x a) ( x b) . (Manogue – Oregon State)
a b
1 d2
16.) Argue that 2 x ( x) . (Manogue – Oregon State)
2 dx
17.) Advanced Scaling Property II: Argue that (g(x) - g(xo)) dx ( x x0 )) , and that the
dg
xo
18.) Argue that (x2 - 4) = ((x - 2)(x + 2)) ((-4)(x + 2)) + (4(x - 2)).
n3 ( x 2 n) 2 / 4 for 2 n x 1 n
17
Dn ( x) (2 n n3 x 2 ) 2 / 4 for 1 n x 1 n
n3 ( 2 x ) 2 / 4 for 1 n x 2 n
n
d 2 17
Show that 2 Dn ( x) n {½ n [(x + 3/2n) - (x + 1/2n)] - ½ n [(x + 1/2n) - (x + 3/2n)] } so that
dx
f ( x0 3 2 n ) f ( x0 1 2 n) f ( x0 1 2 n) f ( x0 3 2 n)
2
d2 f
f ( x) dx
d 1 1
2 x x0 dx n
2 n 1
n 2
dx
x0
d2
Use integration by parts to formally evaluate f ( x)
dx 2
x x0 dx . Compare the results and
discuss your findings.
20
20. Evaluate x 5) x 7) dx . Justify your result first by focusing on the region around the
0
argument zero of each delta and treating the other delta function as just a function in that region.
Generate a second justification by preparing a sketch using the 1Dn(x) (tall rectangle) model of the
delta function for n = 4. Sketch he product function 1Dn(x -5) 1Dn(x - 7). Comment.
m 20
21. Evaluate
m 1
m5 m7 .
22. Provide a justification for each evaluation. As a step, identify the values of the integration
variable for which argument zeroes occur. Note the ones that are in the range of the integration.
2
a.) 3 2 cos 3 d ; b.) 2 2 e x
2
x 2 2 dx ,
2
/2
Evaluate:
0 0
d x 2
4 x
4 2.25
c.) 2
dx dx ; d.) cos( x) sin x dx
0 0.25
b.) The Heaviside (unit-step) function (x – xo) is zero for x < xo and equals one for x > xo. Describe
the derivative of (x – xo). Express F(x) defined in part a.) in terms of a Heaviside function.
24. Gauss’s Law has the form E (r ) . For a problem with spherical symmetry, the electric
field has the form E (r ) Er (r ) r and, of course, (r ) (r ) . Substituting, it follows that:
r r
r 2 E (r ) r 2 (r )
a.) Use the equation above to find Er for all r given the charge density:
o (r R)
(r )
0 (r R)
Argue that Er(r = 0) should be zero. Give an alternative representation in terms of the total charge of
the sphere qtot and eliminate o. Validate your final result by choosing a spherical surface with radius
r just greater than R and verifying that E n dA qenc where qenc = 4 3R .
3
b.) One might decide to integrate from to r. The equation would be:
qtotal
which is difficult to interpret unless one assumes the result that, as r , Er + O(r -3)
4 r 2
where qtotal is the total charge of the distribution and (r) 0 for r > R, a finite positive value.* The
term O(r -3) represents terms of order r -3 and higher; that is: the higher multi-poles with contributions
that vanish as fast as r -3 or faster as r . Show that the equation becomes:
(r ) Er (r )
qtotal
(r) ( r) dr .
r 2
2
r r 4
* At great distances from a charge distribution of finite extent, the field due to the distribution
approaches that of a point charge with the total charge of the distribution plus contributions that
vanish as fast as r -3 or faster as r . See the multi-poles handout for more detail. For the case just
25. Gauss’s Law has the form E (r ) . For a problem with spherical symmetry, the electric
field has the form E (r ) Er (r ) r and, of course, (r ) (r ) . Substituting, it follows that:
r r
r 2 E (r ) r 2 (r )
a.) In problem 3, it was shown that (r ) (r R) represented the charge density for a uniform
spherical shell of surface charge density and radius R centered o the origin. Find Er for all r given
b.) One might decide to integrate from to r. The equation would be:
qtotal
which is difficult to interpret unless one assumes the result that, as r , Er + O(r -3)
4 r 2
where qtotal is the total charge of the distribution and (r) 0 got r > K, some finite positive value.*
The term O(r -3) represents terms of order r -3 and higher; that is: contributions that vanish as fast as
* At great distances from a charge distribution of finite extent, the field due to the distribution
approaches that of a point charge with the total charge of the distribution plus contributions that
vanish as fast as r -3 or faster as r . See the multipoles handout for more detail. For the case just
above there are no contributions of the form O(r -3).
2
26.) Evaluate: a.) 0
cos 0.75 d
2
b.) 3 2 cos 3 d ;
0
d x 2
4 x
4
2
d.) dx dx
0
2.25
e.) cos( x) sin x dx
0.25
1 2
f.) 0
x x 2 dx ,
5
g.) cos( x) x 1 x 4 dx
0
d x 3
cos( x 3) cos x dx
5 4 1.75
d.)
5
x 2 2 x 2 8 dx , e.) 0
x3 dx dx f.)
0.25
d x 3
cos( x 3) cos x dx .
5 4 0.25
e x 2 x 2 4 dx ; e.) sin( x)
2
/2
d.) 8 dx dx ; f.)
5 0 0.25
2 2
29. Evaluate: a.) 0
sin 2 0.75 d b.) 4 2
0
cos 4 d ;
d x 2
c.) 2 2 e x 4 x
2 4
x 2 2 dx , 2
2
/2
d.) dx dx
0 0
cos( x 6) sin x dx
2.25 1 2
e.) 0.25
f.) 0
x x 2 dx
30. The Green function for the Laplace operators. ***** ADD uniformly charged sphere, …
References:
2. K. F. Riley, M. P. Hobson and S. J. Bence, Mathematical Methods for Physics and Engineering,
2nd Ed., Cambridge, Cambridge UK (2002).
*********************************************************************************
***** New extensive edit
Proposed New Evaluation Rule: In the case that the argument of the delta function is itself a
function and it is possible to choose that function as the new integration variable, this proposed
method might work.
b u (b )
f ( x) (u ( x) u ( x0 )) dx g (u ) (u u ( x0 )) du
a u(a)
Let {x1, …. , xj, …} be the set of values for which u(x) - u(xo) = 0 causing the delta function explode.
f ( xi )
f ( x) (u ( x) u ( x0 )) dx g[u ( xi )]
b
a
xi
f ( xi )
where the sum is over the values xi the corresponding to the zeros of the delta function argument. In
the original expression, the delta function provides positive weight to the value of f(x) at each value
xi. Hence the sign of f(xi) is to be assigned to the contribution at that zero of the argument of the delta
function. The factor of f(xi) divided by its own absolute value supplies that sign.
Exercise: Solve for the form of g(u) that results after the change of variable discussed above. Does
your result support the claim that the relation above is just a restatement of the advanced scaling
property? Explain.