1.5: The Dirac Delta Function #
1.5.1: The Divergence of \( \vu{r} / r^2 \) #
Consider the vector function
\[\vec{v} = \frac{1}{r^2} \vu{r} \tagl{1.83}\]At every location, v is directed radially outward (Fig. 1.44); if ever there was a function that ought to have a large positive divergence, this is it. And yet, when you actually calculate the divergence (using Eq. 1.71), you get precisely zero:
\[\div \vec{v} = \frac{1}{r^2} \pdv{}{r} \left( r^2 \frac{1}{r^2} \right) = \frac{1}{r^2} \pdv{}{r} (1) = 0 \tagl{1.84}\](You will have encountered this paradox already, if you worked Prob. 1.16.) The plot thickens when we apply the divergence theorem to this function. Suppose we integrate over a sphere of radius R, centered at the origin (Prob. 1.38b); the surface integral is
\[\begin{aligned} \oint \vec{v} \cdot \dd \vec{a} & = \int \left( \frac{1}{R^2} \vu{r} \right) \cdot (R^2 \sin \theta \dd \theta \dd \phi \vu{r}) \\ & = \left( \int_0 ^\pi \sin \theta \dd \theta \right) \left( \int_0 ^{2 \pi} \dd \phi \right) = 4 \pi \end{aligned} \tagl{1.85}\]But if we really believe \( \eqref{1.84} \), then the volume integral \( \int \div \vec{v} \dd \tau \) must be zero. What the heck is going on here??
The source of the problem is obviously the point \( r = 0 \) , where v blows up (and where, in Eq. 1.84, we have unwittingly divided by zero). It is quite true that \( \div \vec{v} = 0 \) everywhere except the origin, but right at the origin the situation is more complicated. Notice that the surface integral (Eq. 1.85) is independent of R; if the divergence theorem is right (and it is), we should get \( \int (\div \vec{v}) \dd \tau = 4 \pi \) for any sphere centered at the origin, no matter how small. Evidently the entire contribution must be coming from the point \( r = 0 \) ! Thus, \( \div \vec{v} \) has the bizarre property that it vanishes everywhere except at one point, and yet its integral (over any volume containing that point) is \( 4 \pi \) . No ordinary function behaves like that. (On the other hand, a physical example does come to mind: the density (mass per unit volume) of a point particle. It’s zero except at the exact location of the particle, and yet its integral is finite-namely, the mass of the particle.) What we have stumbled on is a mathematical object known to physicists as the Dirac delta function. It arises in many branches of theoretical physics. Moreover, the specific problem at hand (the divergence of the function \( \vu{r} / r^2 \) ) is not just some arcane curiosity - it is, in fact, central to the whole theory of electrodynamics. So it is worthwhile to pause here and study the Dirac delta function with some care.
1.5.2: The One-Dimensional Dirac Delta Function #
The one-dimensional Dirac delta function, \( \delta(x) \), can be pictured as an infinitely high, infinitesimally narrow “spike,” with area 1 (Fig 1.45). That is to say:
\[\delta(x) = \begin{cases} 0, & \qquad \text{ if } x \neq 0 \\ \infty , & \qquad \text{ if } x = 0 \end{cases} \tagl{1.86}\]and
\[\int_{-\infty} ^{\infty} \delta(x) \dd x = 1 \tagl{1.87}\]Technically, \( \delta(x) \) is not a function at all, since its value is not finite at x = 0; in the mathematical literature it is known as a generalized function, or distribution. It is, if you like, the limit of a sequence of functions, such as rectangles \( R_n(x) \) of height \( n \) and width \( 1/n \), or isosceles triangles \( T_n(x) \) of height \( n \) and base \( 2/n \) (Fig 1.46)
If \( f(x) \) is some “ordinary” function (let’s just say continuous, just to be safe), then the product \( f(x) \delta(x) \) is zero everywhere except at x = 0. It follows that
\[f(x) \delta(x) = f(0) \delta(x) \tagl{1.88}\]This is probably the most important fact about the delta function! Since the product is zero anyway except at x = 0, we may as well replace f(x) by the value it assumes at the origin. In particular,
\[\int_{-\infty} ^{\infty} f(x) \delta(x) \dd x = f(0) \int_{-\infty} ^{\infty} \delta(x) \dd x = f(0) \tagl{1.89}\]Under an integral, then, the delta function “picks out” the value of f(x) at a particular point. Of course, the limits of integration need not be all space, as long as the origin is included. We can also shift the spike from x = 0 to some other point, x = a, as well (Fig 1.47)
\[\delta(x - a) = \begin{cases} 0, & \text{ if } x \neq a \\ \infty , & \text{ if } x = a \end{cases} \quad \text{ with } \quad \int_{-\infty} ^{\infty} \delta(x - a) \dd x = 1 \tagl{1.90} \]Equation \( \eqref{1.88} \) becomes
\[f(x) \delta(x - a) = f(a) \delta(x - a)\]and \( \eqref{1.89} \) generalizes to
\[\int_{-\infty} ^{\infty} f(x) \delta(x - a) \dd x = f(a) \tagl{1.92}\]Example 1.14 #
Evaluate the integral
\[\int_0 ^3 x^3 \delta(x-2) \dd x \]Although \( \delta(x) \) itself is not a legitimate function, integrals over \( \delta \) are perfectly acceptable. In fact, it’s best to think of the delta function as something that is always intended for use under an integral sign. In particular, two expressions involving delta functions are considered equal if
\[\int_{-\infty} ^{\infty} f(x) D_1 (x) \dd x = \int_{-\infty} ^{\infty} f(x) D_2 (x) \dd x \tagl{1.93}\]for all (“ordinary”) functions f(x).
Example 1.15 #
Show that
\[\delta(kx) = \frac{1}{|k||}\delta(x)\]where k is any (nonzero) constant. (In particular, \( \delta(-x) = \delta(x). \))
For an arbitrary test function f(x), consider the integral
\[\int_{-\infty} ^{\infty} f(x) \delta(kx) \dd x\]Changing variables, we let \( y \equiv kx \) so that \( x = y/k \) and \( \dd x = 1 / k \dd y \). If k is positive, the integration still runs from \( -\infty \) to \( \infty \), but if k is negative, then \( x = \infty \) implies \( y = -\infty \), and vice versa, so the order of the limits is reversed. Restoring the “proper” order costs a minus sign. Thus
\[\int_{-\infty} ^{\infty} f(x) \delta(kx) \dd x + \pm \int_{-\infty} ^{\infty} f(y/k) \delta(y) \frac{dy}{k} = \pm \frac{1}{k} f(0) = \frac{1}{|k|} f(0) \](where here the lower signs apply when k is negative, and we account for this neatly by putting absolute value bars around the final k.) Under the integral sign, then, \( \delta(kx) \) serves the same purpose as \( (1/|k|)\delta(x) \):
\[\int_{-\infty} ^{\infty} f(x) \delta(kx) \dd x = \int_{-\infty} ^{\infty} f(x) \left[ \frac{1}{|k|} \delta(x) \right] \dd x\]According to our criterion \( \eqref{1.93} \), therefore, \( \delta(kx) \) and \( (1/|k|)\delta(x) \) are equal.
The Three-Dimensional Delta Function #
It is easy to generalize the delta function to three dimensions:
\[\delta ^3 (\vec{r}) = \delta(x) \delta(y) \delta(z) \tagl{1.96}\]This three-dimensional delta function is zero everywhere except at (0, 0, 0), where it blows up. Its volume integral is 1.
\[\int_{\text{all space}} \delta ^3 (\vec{r}) \dd \tau = \int_{-\infty} ^{\infty} \dd x \int_{-\infty} ^{\infty} \dd y \int_{-\infty} ^{\infty} \dd z \delta(x) \delta(y) \delta(z) = 1 \tagl{1.97}\]And, generalizing \( \eqref{1.92} \)
\[\int_{\text{all space}} f(\vec{r}) \delta^3(\vec{r} - \vec{a}) \dd \tau = f(\vec{a}) \tagl{1.98}\]As in the one-dimensional case, integration with \( \delta \) picks out the value of the function f at the location of the spike.
We are now in a position to resolve the paradox introduced in Sect. 1.5.1. As you will recall, we found that the divergence of \( \vu{r}/r^2 \) is zero everywhere except at the origin, and yet its integral over any volume containing the origin is a constant (to wit: \( 4\pi \) ). These are precisely the defining conditions for the Dirac delta function; evidently
\[\div \left( \frac{\vu{r}}{r^2} \right) = 4 \pi \delta^3(\vec{r}) \tagl{1.99}\]More generally,
\[\div \left( \frac{\vu{\gr}}{\gr^2} \right) = 4 \pi \delta^3(\gr) \tagl{1.100}\]where, as always, \( \vec{\gr} \) is the separation vector \( \vec{\gr} \equiv \vec{r} - \vec{r’} \). Note that differentiation here is with respect to \( \vec{r} \), while \( \vec{r’} \) is held constant. Incidentally, since
\[\grad \left( \frac{1}{\gr} \right) = - \frac{\vu{\gr}}{\gr ^2} \](from Problem 1.13), it follows that
\[\laplacian \frac{1}{\gr} = - 4 \pi \delta^3 (\vec{\gr}) \tagl{1.102}\]Example 1.16 #
Evaluate the integral
\[J = \int_V (r^2 + 2) \div \left( \frac{\vu{r}}{r^2} \right) \dd \tau\]where \( V \) is a sphere of radius R centered at the origin.
Solution 1 Use \( \eqref{1.99} \) to rewrite the divergence, and \( \eqref{1.98} \) to do the integral:
\[J = \int_V (r^2 + 2) 4 \pi \delta ^3(\vec{r}) \dd \tau = 4 \pi (0 + 2) = 8 \pi\]This one-line solution demonstrates something of the power and beauty of the delta function, but I would like to show you a second method, which is much more cumbersome but serves to illustrate the method of integration by parts (Sect. 1.3.6).
Solution 2
Using Eq 1.59, we transfer the derivative from \( \vu{r}/r^2 \) to \( (r^2 + 2) \)
\[J = - \int_V \frac{\vu{r}}{r^2} \cdot [\grad(r^2 + 2)] \dd \tau + \oint_S (r^2 + 2) \frac{\vu{r}}{r^2} \cdot \dd \vec{a}\]The gradient is
\[\grad(r^2 + 2) = 2 r \vu{r}\]so the volume integral becomes
\[\int \frac{2}{r} \dd \tau = \int \frac{2}{r} r^2 \sin \theta \dd r \dd \theta \dd \phi = 8 \pi \int_0 ^R r \dd r = 4 \pi R^2\]Meanwhile on the boundary of the sphere (where r = R)
\[\dd \vec{a} = R^2 \sin \theta \dd \theta \dd \phi \vu{r}\]so the surface integral is
\[\int(R^2 + 2) \sin \theta \dd \theta \dd \phi = 4 \pi (R^2 + 2)\]which, all together makes
\[J = -4 \pi R^2 + r \pi (R^2 + 2) = 8 \pi\]In proper mathematical jargon, “sphere” denotes the surface, and “ball” the volume it encloses. But physicists are (as usual) sloppy about this sort of thing, and I use the word “sphere” for both the surface and the volume. Where the meaning is not clear from the context, I will write “spherical surface” or “spherical volume.” The language police tell me that the former is redundant and the latter an oxymoron, but a poll of my physics colleagues reveals that this is (for us) the standard usage.