Question 3.6.3: Determine the magnetic field of a bipolar cylindrical magnet...
Determine the magnetic field of a bipolar cylindrical magnet that is polarized perpendicular to its axis (Fig. 3.40). Assume that the length of the cylinder is much greater than its diameter. This justifies a 2D analysis.

Learn more on how we answer questions.
We solve a 2D boundary-value problem. Choose a coordinate system with the magnetization along the x-axis, which gives
M = Msx^
= Ms[cos(Φ)r^–sin(Φ)Φ^]. (3.264)
Because there are no current sources we can represent H in terms of a magnetic scalar potential
H = – ∇ φm, (3.265)
where
∇2φm = 0 (3.266)
(Section 3.4). Let φm(1) (r,Φ) and φm(2) (r,Φ)denote the solutions to Eq. (3.266) inside and outside the magnet, respectively. From symmetry, these solutions must be even functions of Φ,
φm(i)(r,Φ)=φm(i)(r,−Φ) (i = 1, 2). (3.267)
They must also be well behaved at r = 0 and r = ∞, respectively,
φm(1) (0,Φ) < ∞, (3.268)
φm(2) (∞,Φ) < ∞. (3.269)
The general forms for φm(1) (r,Φ) and φm(2) (r,Φ) compatible with these conditions are
φm(1)(r,Φ)=n=1∑∞anrn cos(nΦ) (r ≤ a), (3.270)
and
φm(2)(r,Φ)=n=1∑∞bnr−n cos(nΦ) (a ≤ r), (3.271)
which follow from Eq. (3.263). The coefficients an and bn are determined from the boundary conditions imposed at the surface of the magnet (r = a). Specifically, the potential φm (r, Φ) and the normal component of B must be continuous at this surface, that is,
Eq. (3.263): φ(r,Φ) = a0+b0ln(r)+n=1∑∞(anrn+bnr−n)(cnsin(nΦ)+dncos(nΦ))
φm(1)(a,Φ)=φm(2)(a,Φ), (3.272)
and
[−∇φm(1)(a,Φ)+M]⋅r^ =–∇φm(2)(a,Φ)⋅r^, (3.273)
respectively. These conditions yield the following expression for φm(2) (r,Φ):
φm(2)(r,Φ)=2Msra2 cos(Φ) (a < r).
Outside the magnet B = μ0H, and therefore
Br(r,Φ)= μ02Msra2 cos(Φ) (a < r), (3.274)
and
BΦ(r,Φ)= μ02Msra2 sin(Φ) (a < r), (3.275)
Also, because B = ∇ × A we have
A(r,Φ) = 2μ0Msra2sin(Φ)z^ (a < r). (3.276)
Calculations: We demonstrate the use of Eqs. (3.274) and (3.275) with some sample calculations. Consider a cylinder with a radius a = 2.5 mm, and a magnetization Ms=4.3×105 (A/m) (Br = 5400 G). The fields Br(r, Φ) and BΦ(r, Φ) are computed for r = 3.8 mm and 0 ≤ Φ ≤ π (Fig. 3.41). Notice that Br(r, Φ) peaks at Φ = 0. This shows that the radial field component peaks at the center of the north pole as expected.
