Jackson

Part 3/3. 2D Green’s functions for the Helmholtz (wave equation) operator.

September 20, 2025 math and physics play , , , , , , , , ,

[Click here for a PDF version of this post]

Having found the 1D and 3D Green’s function for the wave equation (Helmholtz) operator, we are now ready to attempt the harder 2D case again.

2D Green’s function.

Our starting place is
\begin{equation}\label{eqn:helmholtzGreens:680}
G(\Br) = -\inv{(2 \pi)^2} \int \frac{e^{j \Bp \cdot \Br}}{\Bp^2 – k^2} d^2 p.
\end{equation}
With a change of variables to polar coordinates, letting
\begin{equation}\label{eqn:helmholtzGreens:700}
\begin{aligned}
\Bp &= p \lr{ \cos\phi, \sin\phi } \\
\Br &= \Abs{\Br} \Be_2,
\end{aligned}
\end{equation}
we can make the integral explicit
\begin{equation}\label{eqn:helmholtzGreens:720}
G(\Br) = -\inv{(2 \pi)^2} \int_0^\infty \frac{p dp}{p^2 – k^2} \int_0^{2 \pi} d\phi e^{j p \Abs{\Br} \sin\phi}.
\end{equation}
Unlike the 3D case, where the angular dependence could be trivially evaluated, we are no longer so lucky. What on earth can we do with the \( \phi \) integral? Just like Hilter’s lament about “undoable integrals in Jackson”, we are faced with the same enemy. As it turns out, due to the cylindrical symmetry of the problem, we are also staring down the gun of Bessel functions. Both Mathematica and Grok point out that we can evaluate integrals of this form, like so:
\begin{equation}\label{eqn:helmholtzGreens:740}
\int_0^{2 \pi} d\phi e^{j a \sin\phi} = 2 \pi J_0(a).
\end{equation}

From [2] we have two representations of \( J_n \), a series representation and integral representation
\begin{equation}\label{eqn:helmholtzGreens:760}
J_n(z) = \sum_{m=0}^\infty \frac{(-1)^m (z/2)^{2m + n}}{(n + m)!m!} = \inv{\pi} \int_0^\pi \cos(n \theta – z \sin\theta) d\theta.
\end{equation}

In particular, this means that
\begin{equation}\label{eqn:helmholtzGreens:800}
J_0(z) = \sum_{m=0}^\infty \frac{(-1)^m (z/2)^{2m}}{(m!)^2} = J_0(z) = \inv{\pi} \int_0^\pi \cos(z \sin\theta) d\theta.
\end{equation}
This is a damped sine like function, as illustrated in fig. 4.

fig. 4. Bessel function of zeroth order.

 

In section 6.9, both of these are derived from a generating function representation of the Bessel functions, and one of the intermediate steps in that construction has
\begin{equation}\label{eqn:helmholtzGreens:840}
J_n(z) = \inv{2\pi} \int_{-\pi}^\pi e^{-j(n\theta – z \sin\theta)} d\theta,
\end{equation}
where the \( [-\pi, \pi] \) range was the result of a contour integration using a unit circle parameterization, which could have also used \( [0, 2 \pi] \). That means, sure enough, that we have
\begin{equation}\label{eqn:helmholtzGreens:860}
J_0(z) = \inv{2\pi} \int_{0}^{2\pi} e^{j z \sin\theta} d\theta,
\end{equation}
as claimed by both Grok and Mathematica.

This means that the evaluation of the Green’s function is now reduced to the limit of one final integral
\begin{equation}\label{eqn:helmholtzGreens:880}
G(\Br) = -\inv{2 \pi} \int_0^\infty \frac{p J_0(p \Abs{\Br} ) dp}{p^2 – \lr{k + j \epsilon}^2},
\end{equation}
where we’ve also displaced the problematic pole by a small imaginary amount as before. Grok incorrectly claimed that this was an even integral, and then argued that the end result is a Hankel function (that may be the case, but it’s reasoning to get there was clearly wrong.) Mathematica, on the other hand, can evaluate this integral
\begin{equation}\label{eqn:helmholtzGreens:900}
G(\Br) = -\inv{2 \pi} K_0\lr{\frac{\Abs{\Br}}{\sqrt{\frac{1}{(\epsilon – j k)^2}}}}, \epsilon \neq 0.
\end{equation}
It’s not clear to me why Mathematica writes the argument as 1 over a reciprocal root. Perhaps that has something to do with the branch cut that Mathematica uses for it’s square root function? If I plug in representitive numeric values, it simplifies in the expected way, as illustrated in fig. 5.

fig. 5. Mathematica weird Bessel argument.

The take away appears to be that the limiting form of the 2D Green’s function, for \( k > 0 \), is
\begin{equation}\label{eqn:helmholtzGreens:920}
G(\Bx, \Bx’) = -\inv{2 \pi} K_0\lr{-j k \Abs{\Bx – \Bx’} }.
\end{equation}
A peek at [1] shows that \( K_0 \) can be expressed in terms of a Hankel function of the first kind (order 0) \( H_0^{(1)}(z) = J_0(z) + j Y_0(z) \), plotted in fig. 6.

fig. 6. Hankel function of the first kind (order 0).

For real positive \( \alpha \), we have
\begin{equation}\label{eqn:helmholtzGreens:940}
K_0(-j \alpha) = \frac{j\pi}{2} H_0^{(1)}(\alpha),
\end{equation}
so
\begin{equation}\label{eqn:helmholtzGreens:960}
\boxed{
G(\Bx, \Bx’) = -\frac{j}{4} H_0^{(1)}(k \Abs{\Bx – \Bx’}).
}
\end{equation}

References

[1] M. Abramowitz and I.A. Stegun. Handbook of mathematical functions with formulas, graphs, and mathematical tables, volume 55. Dover publications, 1964.

[2] F.W. Byron and R.W. Fuller. Mathematics of Classical and Quantum Physics. Dover Publications, 1992.

Dipole and Quadropole electrostatic potential moments and coefficents

November 5, 2016 math and physics play , , , ,

<a href=”https://peeterjoot.com/archives/math2016//momentCoeffiecients.pdf”>[Click here for a PDF of this post with nicer formatting]</a>

In class Thursday we calculated the \( q_{1,1} \) coefficient of the electrostatic moment, as covered in [1] chapter 4. Let’s verify the rest, as well as the tensor sum formula for the quadropole moment, and the spherical harmonic sum that yields the dipole moment potential.

The quadropole term of the potential was stated to be

\begin{equation}\label{eqn:momentCoeffiecients:120}
\inv{4 \pi \epsilon_0} \frac{4 \pi}{5 r^3} \sum_{m=-2}^2 \int (r’)^2 \rho(\Bx’) Y_{lm}^\conj(\theta’, \phi’) Y_{lm}(\theta, \phi)
=
\inv{2} \sum_{ij} Q_{ij} \frac{x_i x_j}{r^5},
\end{equation}

where

\begin{equation}\label{eqn:momentCoeffiecients:140}
Q_{i,j} = \int \lr{ 3 x_i’ x_j’ – \delta_{ij} (r’)^2 } \rho(\Bx’) d^3 x’.
\end{equation}

Let’s verify this. First note that

\begin{equation}\label{eqn:momentCoeffiecients:160}
Y_{l,m} = \sqrt{\frac{2 l + 1}{4 \pi} \frac{(l-m)!}{(l+m)!}} P_l^m(\cos\theta) e^{i m \phi},
\end{equation}

and
\begin{equation}\label{eqn:momentCoeffiecients:180}
P_l^{-m}(x) =
(-1)^m \frac{(l-m)!}{(l+m)!} P_l^m(x),
\end{equation}

so
\begin{equation}\label{eqn:momentCoeffiecients:200}
\begin{aligned}
Y_{l,-m}
&= \sqrt{\frac{2 l + 1}{4 \pi} \frac{(l+m)!}{(l-m)!} }
P_l^{-m}(\cos\theta)
e^{-i m \phi} \\
&=
(-1)^m
\sqrt{\frac{2 l + 1}{4 \pi} \frac{(l-m)!}{(l+m)!} }
P_l^m(x)
e^{-i m \phi} \\
&=
(-1)^m Y_{l,m}^\conj.
\end{aligned}
\end{equation}

That means

\begin{equation}\label{eqn:momentCoeffiecients:220}
\begin{aligned}
q_{l,-m}
&=
\int (r’)^l \rho(\Bx’)
Y^\conj_{l,-m}(\theta’, \phi’)
d^3 x’ \\
&=
(-1)^m
\int (r’)^l \rho(\Bx’)
Y_{l,m}(\theta’, \phi’)
d^3 x’ \\
&=
(-1)^m q_{lm}^\conj.
\end{aligned}
\end{equation}

In particular, for \( m \ne 0 \)

\begin{equation}\label{eqn:momentCoeffiecients:320}
(r’)^l Y_{l, m}^\conj (\theta’, \phi’) r^l Y_{l, m}(\theta, \phi)
+ (r’)^l Y_{l, -m}^\conj (\theta’, \phi’) r^l Y_{l, -m}(\theta, \phi)
=
(r’)^l Y_{l, m}^\conj (\theta’, \phi’) r^l Y_{l, m}(\theta, \phi)
+ (r’)^l Y_{l, m} (\theta’, \phi’) r^l Y_{l, m}^\conj(\theta, \phi) ,
\end{equation}

or
\begin{equation}\label{eqn:momentCoeffiecients:340}
(r’)^l Y_{l, m}^\conj (\theta’, \phi’) r^l Y_{l, m}(\theta, \phi)
+ (r’)^l Y_{l, -m}^\conj (\theta’, \phi’) r^l Y_{l, -m}(\theta, \phi)
=
2 \textrm{Re} \lr{ (r’)^l Y_{l, m}^\conj (\theta’, \phi’) r^l Y_{l, m}(\theta, \phi) }.
\end{equation}

To verify the quadropole expansion formula in a compact way it is helpful to compute some intermediate results.

\begin{equation}\label{eqn:momentCoeffiecients:360}
\begin{aligned}
r Y_{1, 1}
&= -r \sqrt{\frac{3}{8 \pi}} \sin\theta e^{i\phi} \\
&= -\sqrt{\frac{3}{8 \pi}} (x + i y),
\end{aligned}
\end{equation}

\begin{equation}\label{eqn:momentCoeffiecients:380}
\begin{aligned}
r Y_{1, 0}
&= r \sqrt{\frac{3}{4 \pi}} \cos\theta \\
&= \sqrt{\frac{3}{4 \pi}} z,
\end{aligned}
\end{equation}

\begin{equation}\label{eqn:momentCoeffiecients:400}
\begin{aligned}
r^2 Y_{2, 2}
&= -r^2 \sqrt{\frac{15}{32 \pi}} \sin^2\theta e^{2 i\phi} \\
&= – \sqrt{\frac{15}{32 \pi}} (x + i y)^2,
\end{aligned}
\end{equation}

\begin{equation}\label{eqn:momentCoeffiecients:420}
\begin{aligned}
r^2 Y_{2, 1}
&= r^2 \sqrt{\frac{15}{8 \pi}} \sin\theta \cos\theta e^{i\phi} \\
&= \sqrt{\frac{15}{8 \pi}} z ( x + i y ),
\end{aligned}
\end{equation}

\begin{equation}\label{eqn:momentCoeffiecients:440}
\begin{aligned}
r^2 Y_{2, 0}
&= r^2 \sqrt{\frac{5}{16 \pi}} \lr{ 3 \cos^2\theta – 1 } \\
&= \sqrt{\frac{5}{16 \pi}} \lr{ 3 z^2 – r^2 }.
\end{aligned}
\end{equation}

Given primed coordinates and integrating the conjugate of each of these with \( \rho(\Bx’) dV’ \), we obtain the \( q_{lm} \) moment coeffients. Those are

\begin{equation}\label{eqn:momentCoeffiecients:460}
q_{11}
= -\sqrt{\frac{3}{8 \pi}} \int d^3 x’ \rho(\Bx’) (x – i y),
\end{equation}

\begin{equation}\label{eqn:momentCoeffiecients:480}
q_{1, 0}
= \sqrt{\frac{3}{4 \pi}} \int d^3 x’ \rho(\Bx’) z’,
\end{equation}

\begin{equation}\label{eqn:momentCoeffiecients:500}
q_{2, 2}
= – \sqrt{\frac{15}{32 \pi}} \int d^3 x’ \rho(\Bx’) (x’ – i y’)^2,
\end{equation}

\begin{equation}\label{eqn:momentCoeffiecients:520}
q_{2, 1}
= \sqrt{\frac{15}{8 \pi}} \int d^3 x’ \rho(\Bx’) z’ ( x’ – i y’ ),
\end{equation}

\begin{equation}\label{eqn:momentCoeffiecients:540}
q_{2, 0}
= \sqrt{\frac{5}{16 \pi}} \int d^3 x’ \rho(\Bx’) \lr{ 3 (z’)^2 – (r’)^2 }.
\end{equation}

For the potential we are interested in

\begin{equation}\label{eqn:momentCoeffiecients:560}
\begin{aligned}
2 \textrm{Re} q_{11} r^2 Y_{11}(\theta, \phi)
&= 2 \frac{3}{8 \pi} \int d^3 x’ \rho(\Bx’) \textrm{Re} \lr{ (x’ – i y’)( x + i y) } \\
&= \frac{3}{4 \pi} \int d^3 x’ \rho(\Bx’) \lr{ x x’ + y y’ },
\end{aligned}
\end{equation}

\begin{equation}\label{eqn:momentCoeffiecients:580}
q_{1, 0} r Y_{1,0}(\theta, \phi)
= \frac{3}{4 \pi} \int d^3 x’ \rho(\Bx’) z’ z,
\end{equation}

\begin{equation}\label{eqn:momentCoeffiecients:600}
\begin{aligned}
2 \textrm{Re} q_{22} r^2 Y_{22}(\theta, \phi)
&= 2 \frac{15}{32 \pi} \int d^3 x’ \rho(\Bx’) \textrm{Re} \lr{
(x’ – i y’)^2
(x + i y)^2
} \\
&= \frac{15}{16 \pi} \int d^3 x’ \rho(\Bx’) \textrm{Re} \lr{
((x’)^2 – 2 i x’ y’ -(y’)^2)
(x^2 + 2 i x y -y^2)
} \\
&= \frac{15}{16 \pi} \int d^3 x’ \rho(\Bx’) \lr{
((x’)^2 -(y’)^2) (x^2 -y^2)
+ 4 x x’ y y’
},
\end{aligned}
\end{equation}

\begin{equation}\label{eqn:momentCoeffiecients:620}
\begin{aligned}
2 \textrm{Re} q_{21} r^2 Y_{21}(\theta, \phi)
&= 2 \frac{15}{8 \pi} \int d^3 x’ \rho(\Bx’) z \textrm{Re} \lr{ ( x’ – i y’ ) (x + i y) } \\
&= \frac{15}{4 \pi} \int d^3 x’ \rho(\Bx’) z \lr{ x x’ + y y’ },
\end{aligned}
\end{equation}

and
\begin{equation}\label{eqn:momentCoeffiecients:640}
q_{2, 0} r^2 Y_{20}(\theta, \phi)
= \frac{5}{16 \pi} \int d^3 x’ \rho(\Bx’) \lr{ 3 (z’)^2 – (r’)^2 } \lr{ 3 z^2 – r^2 }.
\end{equation}

The dipole term of the potential is

\begin{equation}\label{eqn:momentCoeffiecients:660}
\begin{aligned}
\inv{ 4 \pi \epsilon_0 } \frac{4 \pi}{3 r^3}
\lr{
\frac{3}{4 \pi} \int d^3 x’ \rho(\Bx’) \lr{ x x’ + y y’ }
+
\frac{3}{4 \pi} \int d^3 x’ \rho(\Bx’) z’ z
} \\
&=
\inv{ 4 \pi \epsilon_0 r^3}
\Bx \cdot \int d^3 x’ \rho(\Bx’) \Bx’ \\
&=
\frac{\Bx \cdot \Bp}{ 4 \pi \epsilon_0 r^3},
\end{aligned}
\end{equation}

as obtained directly when a strict dipole approximation was used.

Summing all the terms for the quadrople gives

\begin{equation}\label{eqn:momentCoeffiecients:680}
\begin{aligned}
\inv{ 4 \pi \epsilon r^5 } \frac{ 4 \pi }{5}
\Bigl(
&\frac{15}{16 \pi} \int d^3 x’ \rho(\Bx’) \lr{
((x’)^2 -(y’)^2) (x^2 -y^2)
+ 4 x x’ y y’
} \\
&+
\frac{15}{4 \pi} \int d^3 x’ \rho(\Bx’) z z’ \lr{ x x’ + y y’ } \\
&+
\frac{5}{16 \pi} \int d^3 x’ \rho(\Bx’) \lr{ 3 (z’)^2 – (r’)^2 } \lr{ 3 z^2 – r^2 }
\Bigr) \\
=
\inv{ 4 \pi \epsilon r^5 }
\int d^3 x’ \rho(\Bx’)
\inv{4}
\Bigl(
&3
\lr{
((x’)^2 -(y’)^2) (x^2 -y^2)
+ 4 x x’ y y’
} \\
&+
12
z z’ \lr{ x x’ + y y’ } \\
&+
\lr{ 3 (z’)^2 – (r’)^2 } \lr{ 3 z^2 – r^2 }
\Bigr).
\end{aligned}
\end{equation}

The portion in brackets is

\begin{equation}\label{eqn:momentCoeffiecients:700}
\begin{aligned}
3
&\lr{
((x’)^2 -(y’)^2) (x^2 -y^2)
+ 4 x x’ y y’
} \\
+
12
& z z’ \lr{ x x’ + y y’ } \\
+
&\lr{ 2 (z’)^2 – (x’)^2 – (y’)^2} \lr{ 2 z^2 – x^2 -y^2 } \\
=
x^2 &\lr{
3 (x’)^2 – 3(y’)^2

\lr{ 2 (z’)^2 – (x’)^2 – (y’)^2}
} \\
+
y^2 &\lr{
-3 (x’)^2 + 3 (y’)^2

\lr{ 2 (z’)^2 – (x’)^2 – (y’)^2}
} \\
+
2 z^2 &\lr{
2 (z’)^2 – (x’)^2 – (y’)^2
} \\
+
&12{ x x’ y y’ + x x’ z z’ + y y’ z z’ } \\
=
2 x^2 &\lr{
2 (x’)^2 – (y’)^2 – (z’)^2
} \\
+
2 y^2 &\lr{
2 (y’)^2 – (x’)^2 – (z’)^2
} \\
+
2 z^2 &\lr{
2 (z’)^2 – (x’)^2 – (y’)^2
} \\
+
&12{ x x’ y y’ + x x’ z z’ + y y’ z z’ }.
\end{aligned}
\end{equation}

The quadopole sum can now be written as
\begin{equation}\label{eqn:momentCoeffiecients:720}
\inv{2}
\inv{ 4 \pi \epsilon r^5 }
\int d^3 x’ \rho(\Bx’)
\biglr{
x^2 \lr{ 3 (x’)^2 – (r’)^2 }
+y^2 \lr{ 3 (y’)^2 – (r’)^2 }
+z^2 \lr{ 3 (z’)^2 – (r’)^2 }
+
3 \lr{
x y x’ y’
+y x y’ x’
+x z x’ z’
+z x z’ x’
+y z y’ z’
+z y z’ y’
}
},
\end{equation}

which is precisely \ref{eqn:momentCoeffiecients:120}, the quadropole potential stated in the text and class notes.

<h1>References</h1>

[1] JD Jackson. <em>Classical Electrodynamics</em>. John Wiley and Sons, 2nd edition, 1975.