Fiveable

🔋Electromagnetism II Unit 10 Review

QR code for Electromagnetism II practice questions

10.2 Boundary conditions for magnetic fields

10.2 Boundary conditions for magnetic fields

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
🔋Electromagnetism II
Unit & Topic Study Guides

Boundary conditions at material interfaces

Boundary conditions describe how magnetic field components behave when crossing from one material into another. Without them, you can't solve for field distributions in any realistic geometry involving different media. These conditions follow directly from Maxwell's equations applied to the interface between two regions with different electromagnetic properties.

Normal component of B

The normal component of B\mathbf{B} is always continuous across any material interface:

B1n=B2nB_{1n} = B_{2n}

This comes from Gauss's law for magnetism, B=0\nabla \cdot \mathbf{B} = 0. Apply the divergence theorem to a thin pillbox straddling the interface: the flux entering one face must equal the flux leaving the other. Since magnetic monopoles don't exist, there's no "magnetic charge" at the surface to create a discontinuity.

This holds universally, regardless of what materials sit on either side.

Tangential component of H

The tangential component of H\mathbf{H} can be discontinuous if a surface current density K\mathbf{K} exists at the interface. The general condition is:

n^×(H2H1)=K\hat{n} \times (\mathbf{H}_2 - \mathbf{H}_1) = \mathbf{K}

where n^\hat{n} is the unit normal pointing from region 1 into region 2. In scalar form for a specific tangential direction:

H2tH1t=KH_{2t} - H_{1t} = K

If no surface current is present (K=0\mathbf{K} = 0), the tangential component of H\mathbf{H} is continuous: H1t=H2tH_{1t} = H_{2t}.

This condition is derived by applying Ampère's circuital law to a narrow rectangular loop straddling the boundary. As the loop height shrinks to zero, only the tangential H\mathbf{H} components and the enclosed surface current survive.

Magnetic permeability μ

Magnetic permeability μ\mu relates B\mathbf{B} and H\mathbf{H} within a linear material:

B=μH=μ0μrH\mathbf{B} = \mu \mathbf{H} = \mu_0 \mu_r \mathbf{H}

where μr\mu_r is the relative permeability. The permeability of free space is μ0=4π×107 H/m\mu_0 = 4\pi \times 10^{-7} \text{ H/m}.

Permeability directly connects the two boundary conditions. Since B1n=B2nB_{1n} = B_{2n} and B=μH\mathbf{B} = \mu \mathbf{H}, you get a relationship between the normal components of H\mathbf{H}:

μ1H1n=μ2H2n\mu_1 H_{1n} = \mu_2 H_{2n}

So while BnB_n is continuous, HnH_n generally is not. Similarly, if HtH_t is continuous (no surface current), then BtB_t jumps:

B1tμ1=B2tμ2\frac{B_{1t}}{\mu_1} = \frac{B_{2t}}{\mu_2}

Ferromagnetic materials (μr1\mu_r \gg 1) dramatically amplify B\mathbf{B}, while diamagnetic materials (μr\mu_r slightly less than 1) weakly oppose applied fields.

Boundary conditions in magnetostatics

In magnetostatics, all fields are time-independent. There are no time-varying electric fields and no displacement currents. The relevant Maxwell's equations reduce to:

  • B=0\nabla \cdot \mathbf{B} = 0 (Gauss's law for magnetism)
  • ×H=J\nabla \times \mathbf{H} = \mathbf{J} (Ampère's law, no displacement current term)

Ampère's law at boundaries

To derive the tangential boundary condition, construct a thin rectangular Amperian loop with its long sides parallel to the interface, one in each medium. As the loop height Δh0\Delta h \to 0:

  1. The contributions from the short sides vanish (they scale with Δh\Delta h).

  2. The remaining line integrals give H2tΔlH1tΔlH_{2t} \Delta l - H_{1t} \Delta l.

  3. The enclosed current becomes KΔlK \Delta l, where KK is the surface current density threading the loop.

This yields:

H2tH1t=KH_{2t} - H_{1t} = K

With no surface current, H1t=H2tH_{1t} = H_{2t}.

Magnetic field discontinuity

The discontinuity in tangential H\mathbf{H} is controlled entirely by the surface current density K\mathbf{K}. In vector form:

n^×(H2H1)=K\hat{n} \times (\mathbf{H}_2 - \mathbf{H}_1) = \mathbf{K}

The cross product means the discontinuity in H\mathbf{H} is perpendicular to both n^\hat{n} and K\mathbf{K}. Physically, the surface current "absorbs" the difference in tangential field between the two sides.

Surface currents can originate from:

  • Free currents: actual charge flow on a thin conducting sheet
  • Bound currents: magnetization discontinuities at the surface of a magnetized material, where Kb=M×n^\mathbf{K}_b = \mathbf{M} \times \hat{n}

Surface current density K

The surface current density K\mathbf{K} has units of A/m and represents current per unit width flowing along the interface. It's a true surface quantity, distinct from the volume current density J\mathbf{J} (A/m²).

You can think of K\mathbf{K} as the limiting case of a volume current J\mathbf{J} confined to a layer of vanishing thickness δ\delta:

K=limδ0Jδ\mathbf{K} = \lim_{\delta \to 0} \mathbf{J} \cdot \delta

Surface currents are central to magnetic shielding analysis and appear whenever you model thin conducting shells or idealized current sheets.

Boundary conditions in magnetodynamics

When fields vary with time, you need the full Maxwell's equations. The electric and magnetic fields become coupled through Faraday's law and the Ampère-Maxwell law, and the boundary conditions must account for this coupling.

Faraday's law at boundaries

Apply Faraday's law ×E=Bt\nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t} to a thin rectangular loop straddling the interface, similar to the Ampère's law derivation. As the loop height shrinks to zero, the flux of Bt\frac{\partial \mathbf{B}}{\partial t} through the loop vanishes (the area goes to zero), giving:

E1t=E2tE_{1t} = E_{2t}

The tangential component of E\mathbf{E} is continuous across any interface. A discontinuity would imply an infinite EMF around an infinitesimal loop, which is unphysical.

Normal component of B, 8.1 Induced Emf and Magnetic Flux – Douglas College Physics 1207

Displacement current at boundaries

The Ampère-Maxwell law includes the displacement current density:

JD=Dt=ϵEt\mathbf{J}_D = \frac{\partial \mathbf{D}}{\partial t} = \epsilon \frac{\partial \mathbf{E}}{\partial t}

At a boundary, the normal component of the total current (conduction plus displacement) must be continuous to avoid unbounded charge accumulation. For the displacement field D\mathbf{D}, the boundary condition on the normal component is:

D2nD1n=σfD_{2n} - D_{1n} = \sigma_f

where σf\sigma_f is the free surface charge density. If no free surface charge exists, D1n=D2nD_{1n} = D_{2n}.

Electromagnetic boundary conditions vs. electrostatic

In electrostatics, you only deal with E\mathbf{E} and D\mathbf{D}, and the boundary conditions come from Gauss's law and the curl-free nature of E\mathbf{E}.

In the full electromagnetic case, you must simultaneously satisfy boundary conditions on all four field quantities:

ConditionEquation
Normal B\mathbf{B}B1n=B2nB_{1n} = B_{2n}
Tangential H\mathbf{H}n^×(H2H1)=K\hat{n} \times (\mathbf{H}_2 - \mathbf{H}_1) = \mathbf{K}
Tangential E\mathbf{E}E1t=E2tE_{1t} = E_{2t}
Normal D\mathbf{D}D2nD1n=σfD_{2n} - D_{1n} = \sigma_f
The coupling between E\mathbf{E} and B\mathbf{B} through Faraday's law and the Ampère-Maxwell law means these conditions are no longer independent of each other. Satisfying one constrains the others.

Magnetic fields at perfect conductor boundaries

A perfect conductor has σ\sigma \to \infty, which forces all fields inside it to zero. The boundary conditions at its surface follow from this constraint combined with Maxwell's equations.

Vanishing tangential E and normal B

At the surface of a perfect conductor:

  • Tangential E\mathbf{E}: Et=0E_t = 0. Since E=0\mathbf{E} = 0 inside, and tangential E\mathbf{E} must be continuous, it must also vanish just outside the surface.
  • Normal B\mathbf{B}: Bn=0B_n = 0. Since B=0\mathbf{B} = 0 inside, and normal B\mathbf{B} must be continuous, it vanishes at the outer surface as well.

These two conditions together mean that E\mathbf{E} is purely normal and B\mathbf{B} is purely tangential at the surface of a perfect conductor.

Surface charge and current densities

The fields that can be nonzero just outside the surface are supported by surface sources:

  • A surface charge density σ\sigma supports the discontinuity in normal E\mathbf{E}:

σ=ϵ0En\sigma = \epsilon_0 E_n

  • A surface current density K\mathbf{K} supports the discontinuity in tangential H\mathbf{H}:

K=n^×H\mathbf{K} = \hat{n} \times \mathbf{H}

Since H=0\mathbf{H} = 0 inside, the full external tangential H\mathbf{H} is "absorbed" by the surface current.

Magnetic shielding with perfect conductors

When an external magnetic field is applied to a perfect conductor, surface currents are induced that exactly cancel the field inside. The mechanism:

  1. A time-varying external B\mathbf{B} induces an E\mathbf{E} field (Faraday's law).
  2. The induced E\mathbf{E} drives surface currents on the conductor.
  3. These currents produce their own B\mathbf{B} that opposes and cancels the external field inside.

For a static field applied before the conductor becomes perfect, the field is "frozen in." A perfect conductor maintains whatever flux was present when it became perfectly conducting. Superconductors (Type I) go further: the Meissner effect actively expels all flux, regardless of the field history.

Magnetic fields at ferromagnetic boundaries

Ferromagnetic materials have μr1\mu_r \gg 1 (often 10310^3 to 10510^5), which profoundly affects how field lines behave at their surfaces.

High permeability μ effects

The boundary conditions remain the same as for any interface, but the large permeability ratio creates dramatic consequences. Combining B1n=B2nB_{1n} = B_{2n} with B=μH\mathbf{B} = \mu \mathbf{H}:

μ1H1n=μ2H2n\mu_1 H_{1n} = \mu_2 H_{2n}

If region 2 is a ferromagnet with μ2μ1\mu_2 \gg \mu_1, then H2nH1nH_{2n} \ll H_{1n}. The H\mathbf{H} field inside the ferromagnet is almost entirely tangential.

For the tangential components (assuming no surface current):

H1t=H2t    B1tμ1=B2tμ2H_{1t} = H_{2t} \implies \frac{B_{1t}}{\mu_1} = \frac{B_{2t}}{\mu_2}

So B2tB1tB_{2t} \gg B_{1t}. The B\mathbf{B} field inside the ferromagnet is strongly enhanced in the tangential direction.

Refraction of field lines: At a ferromagnetic boundary, magnetic field lines bend sharply toward the surface normal in the low-μ\mu region and become nearly tangential inside the high-μ\mu material. The refraction law is tanθ1tanθ2=μ1μ2\frac{\tan \theta_1}{\tan \theta_2} = \frac{\mu_1}{\mu_2}, where θ\theta is measured from the normal.

Tangential H and normal B continuity

To summarize the conditions at a ferromagnetic boundary (no surface currents):

  • B1n=B2nB_{1n} = B_{2n} (normal B\mathbf{B} continuous)
  • H1t=H2tH_{1t} = H_{2t} (tangential H\mathbf{H} continuous)
  • H1n/H2n=μ2/μ1H_{1n} / H_{2n} = \mu_2 / \mu_1 (derived consequence)
  • B2t/B1t=μ2/μ1B_{2t} / B_{1t} = \mu_2 / \mu_1 (derived consequence)

Note that the normal component of B\mathbf{B} is continuous, not B2n=μ2B1nB_{2n} = \mu_2 B_{1n}. That incorrect relation would violate B=0\nabla \cdot \mathbf{B} = 0.

Normal component of B, Inductance | Physics

Ferromagnetic shielding applications

Ferromagnetic shielding works differently from perfect conductor shielding. Rather than inducing opposing currents, a high-μ\mu shell provides a low-reluctance path that "attracts" field lines into the shell material, diverting them away from the interior.

The shielding effectiveness depends on:

  • The relative permeability μr\mu_r of the material
  • The shell thickness relative to its radius
  • The frequency of the field (at higher frequencies, eddy currents contribute additional shielding)

Common shielding materials include mu-metal (μr105\mu_r \approx 10^5) and soft iron. Applications range from protecting sensitive magnetometers to shielding CRT displays and transformer cores.

Boundary value problems in magnetostatics

Solving for the magnetic field distribution in a region with specified boundary conditions is a boundary value problem. These problems are the practical payoff of understanding boundary conditions: they let you calculate actual field configurations in realistic geometries.

Uniqueness theorem for magnetic fields

The uniqueness theorem guarantees that if you specify the correct boundary conditions and sources, there is exactly one solution for the magnetic field in a given region. Specifically, the solution to:

×H=J,B=0\nabla \times \mathbf{H} = \mathbf{J}, \quad \nabla \cdot \mathbf{B} = 0

is unique once you fix either the tangential H\mathbf{H} or the normal B\mathbf{B} on all bounding surfaces. This is analogous to the uniqueness theorem in electrostatics and is what justifies using any valid solution method (guessing, symmetry arguments, separation of variables) since the answer you find must be the answer.

Solving Laplace's equation with boundary conditions

In current-free regions, ×H=0\nabla \times \mathbf{H} = 0, so H\mathbf{H} can be written as the gradient of a scalar potential. The magnetic scalar potential ϕm\phi_m then satisfies Laplace's equation:

2ϕm=0\nabla^2 \phi_m = 0

The solution procedure:

  1. Identify the geometry and choose an appropriate coordinate system (Cartesian, cylindrical, spherical).
  2. Write the general solution to Laplace's equation using separation of variables.
  3. Apply boundary conditions (continuity of BnB_n and HtH_t at interfaces, behavior at infinity, symmetry constraints) to determine the unknown coefficients.
  4. Reconstruct H=ϕm\mathbf{H} = -\nabla \phi_m and then B=μH\mathbf{B} = \mu \mathbf{H}.

Numerical methods like finite element analysis (FEA) handle geometries where analytical solutions aren't feasible.

Magnetic scalar potential approach

The magnetic scalar potential is defined by:

H=ϕm\mathbf{H} = -\nabla \phi_m

This is valid only in regions free of conduction currents (J=0\mathbf{J} = 0), since ×H=J\nabla \times \mathbf{H} = \mathbf{J} and the curl of a gradient is always zero.

The boundary conditions translate to conditions on ϕm\phi_m:

  • Continuity of tangential H\mathbf{H} means ϕm\phi_m is continuous across the interface.
  • Continuity of normal B\mathbf{B} becomes μ1ϕmn1=μ2ϕmn2\mu_1 \frac{\partial \phi_m}{\partial n}\bigg|_1 = \mu_2 \frac{\partial \phi_m}{\partial n}\bigg|_2.

This is directly analogous to the electrostatic potential problem with different dielectrics, making the mathematical machinery of Laplace's equation (Green's functions, image methods, multipole expansions) fully available.

Reflection and transmission of waves at boundaries

When an electromagnetic wave hits an interface between two media, part of the wave reflects and part transmits. The boundary conditions on E\mathbf{E} and H\mathbf{H} at the interface determine exactly how the wave energy splits.

Fresnel equations for magnetic fields

The Fresnel equations give the reflection and transmission coefficients for the field amplitudes. For the magnetic field at an interface between media with wave impedances η1\eta_1 and η2\eta_2:

Normal incidence:

rH=η1η2η1+η2,tH=2η1η1+η2r_H = \frac{\eta_1 - \eta_2}{\eta_1 + \eta_2}, \quad t_H = \frac{2\eta_1}{\eta_1 + \eta_2}

where η=μ/ϵ\eta = \sqrt{\mu / \epsilon} is the intrinsic impedance of the medium. Note that the magnetic field reflection coefficient has the opposite sign from the electric field reflection coefficient.

For oblique incidence, the coefficients depend on polarization (s-polarization vs. p-polarization) and involve the angles of incidence and transmission through Snell's law: n1sinθi=n2sinθtn_1 \sin\theta_i = n_2 \sin\theta_t.

Normal incidence vs. oblique incidence

At normal incidence (θi=0\theta_i = 0), there's no distinction between s- and p-polarization. The reflection and transmission coefficients depend only on the impedance ratio η2/η1\eta_2 / \eta_1. The reflected and transmitted waves propagate along the interface normal.

At oblique incidence, the problem splits into two independent polarization cases:

  • s-polarization (TE): E\mathbf{E} is perpendicular to the plane of incidence. The magnetic field has components both parallel and perpendicular to the interface.
  • p-polarization (TM): H\mathbf{H} is perpendicular to the plane of incidence. The electric field has components both parallel and perpendicular to the interface.

Each polarization has its own Fresnel coefficients, and they behave differently as a function of angle.

Brewster's angle for magnetic waves

Brewster's angle θB\theta_B is the incidence angle at which the reflection coefficient for p-polarized light vanishes. For non-magnetic media (μ1=μ2=μ0\mu_1 = \mu_2 = \mu_0):

tanθB=n2n1\tan\theta_B = \frac{n_2}{n_1}

At this angle, the reflected and transmitted rays are perpendicular to each other (θr+θt=90°\theta_r + \theta_t = 90°), and the reflected wave is purely s-polarized.

For magnetic media where μ1μ2\mu_1 \neq \mu_2, a Brewster's angle can also exist for s-polarization. The generalized condition is:

tanθB=n2n1μ1n22μ2n12μ1n22μ2n12(μ1/μ2)\tan\theta_B = \frac{n_2}{n_1}\sqrt{\frac{\mu_1 n_2^2 - \mu_2 n_1^2}{\mu_1 n_2^2 - \mu_2 n_1^2 \cdot (\mu_1/\mu_2)}}

In practice, for most optical materials where μμ0\mu \approx \mu_0, only the p-polarization Brewster's angle is observed. The magnetic Brewster's angle becomes relevant for metamaterials or at microwave frequencies where engineered magnetic responses are possible.

2,589 studying →