
176 CHAPTER 4. LINEAR PDES OF PHYSICS
see what the various orders contribute to the overall answer. This approach
is equivalent to the multipole expansion discussed in standard electromagnetic
texts such as Griffiths [Gri99]. So, a functional operator T is formed to Taylor
expand f to order n about a specified point r1 =d.Theconvert( ,polynom)
command is included to remove the order of term which would otherwise appear.
>
T:=(n,d)->convert(taylor(f,r1=d,n),polynom):
The current density vector can be resolved into the Cartesian components
J
x
= J sin(φ1), J
y
= J cos(φ1), and J
z
= 0. At the observation point (cho-
sen in the x-z plane), the J
x
contribution to
A will add up to zero, but the J
y
contribution will not. But since, our choice of observation point in the x-z plane
was arbitrary and there is complete rotational symmetry about the z-axis, the
resultant component J
y
will yield the φ component of
A. A functional operator
A is created to perform the volume integration in (4.10) using J
y
and the Taylor
expansion of f and taking spherical polar coordinates. The volume element is
r1
2
sin(θ1) dθ1 dφ1 dr1 . The angular coordinate θ1 ranges from 0 to π, while
φ1 varies from 0 to 2π. The order n, the radial distance d about which Taylor
expansion is taking place, and the lower and upper limits, d1andd2, of the r1
integration must be specified. Again the result is simplified.
>
A:=(n,d,d1,d2)->simplify((mu[0]/(4*Pi))*int(int(int(T(n,d)
*J*cos(phi1)*r1ˆ2*sin(theta1),theta1=0..Pi),r1=d1..d2),
phi1=0..2*Pi),symbolic):
First, let’s take the observation point P to be outside the sphere, i.e., r>a.
Since r1 ≤ a,thenr1 /r < 1 and we can Taylor expand f about r1 =d=0. The
limits of the r1 integration are d1=0 and d2=a. Making uses of the operator
A with the above arguments, the vector potential is evaluated in Out to order
n= 1, 2, and 3 and the result assigned.
>
Out:=seq(A||n=A(n,0,0,a),n=1..3); assign(Out):
Out := A1 =0, A2 =
1
20
µ
0
sin(θ) a
2
Qω
πr
2
, A3 =
1
20
µ
0
sin(θ) a
2
Qω
πr
2
For n = 1, the so-called monopole contribution A1 to the vector potential is 0,
a well-known general result. For n = 2, there is a non-zero dipole contribution
A2 .Forn = 3 (and higher), there is no additional contribution to the vector
potential, indicating that outside the sphere the vector potential (and hence,
the magnetic field) is that of a “pure” magnetic dipole. The vector potential
Aout outside the sphere is now expressed in spherical polar coordinates, having
only a φ component.
>
Aout:=VectorField(<0,0,A2>,’spherical’[r,theta,phi]);
Aout :=
1
20
µ
0
sin(θ) a
2
Qω
πr
2
e
φ
Now, consider P to be inside the sphere, i.e., r<a.Forr1 <r, we can again
Taylor expand f about r1 = 0, the integration being from r1 =0 to r. But for
r1 >r, f is Taylor expanded about r1 =∞,ther1 integration being from r to
a. Adding the two contributions,
A inside the sphere is calculated for n =1, 2,