Lecture 4
Lecture 4
M. Siddikov
Marat.Siddikov@usm.cl
Today’s plan:
Electrostatic fields
−Electrostatic fields in medium. Border
conditions
−Numerical methods
Magnetostatic fields
−Law of Biot-Savart
−Law of Ampere
−Vector and scalar potentials
Electrostatics in brief
⃗ = εr ε0 E
⋆“electric displacement field” D ⃗, Caution
so Note that in general ∇ × D ⃗ ̸= 0 near the
border of two dielectrics (εr ̸= const).
∇ · D = ρ,
For this reason we define potential ϕ as
∇×E =0 E = −∇ϕ, NOT as D ⃗ = −∇ϕ
⋆χ = εr − 1 - electric susceptibility
⋆P⃗ = ε0 χ E
⃗ -polarization density (dipole
moment per volume)
Electrostatics inside dielectrics
!
(B)
(A) m−1 (B) m−1 βm
αm a = αm a + m+1
a
! !
(B) (C )
(B) m−1 βm m−1 βm
αm b + m+1 = −E0 δm,1 b + m+1
b b
Simple analytical solutions like in previous problems are possible only for very simple
geometries.
In realistic problems we end up with complicated geometries which cannot be solved
analytically
Now we’ll discuss some numerical methods which allow to construct numerical so-
lutions for arbitrary geometry.
Electrostatics - Numerical methods
(we’ll discuss very basic introduction from Applyˆ Gauss theorem:
ˆ
Sec. 2.12 of Jackson; actually it is a very 1
dV ρψi = ∇ψi · ∇ϕ dV −
large topic) ε0
˛
Different methods, we’ll see just one of
− dS ψi ∇ϕ
them (Galerkin-style method)
Assume Dirichlet boundary conditions
ϕ|S = 0 (we’ll see Neumann b.c. later) The last term is zero since ψi |S = 0
Poisson equation: Let’s expandXϕ over ψi :
ϕ(r ) = αi ψi (r ) (1)
ρ(r )
∆ϕ(r ) = −
ε0
ˆ ˆ
⇒Assume now we have arbitrary complete 1
dV ρψi = αk ∇ψi · ∇ψk dV
set of function ψi (r ), such that ψi |S = 0 ε0
| {z } | {z }
(we do NOT impose any other conditions Ri Mik
on ψi !)
⇒Got linear matrix
X equation
ˆ ˆ ⇒ Mik αk = Ri
1
⇒ ψi ∆ϕ dV = − dV ρψi k
⇒ αi = M −1 ik Rk
ε0
ψi ∆ϕ = ∇ (ψi ∇ϕ) − ∇ψi · ∇ϕ so can use (1) to reconstruct ϕ(r ). Usually
can cut full (infinite) sum (1) and work
with finite set of functions.
Electrostatics - Numerical methods
Choice of functions ψi : Rectangular grid is very simple, might
Consider arbitrary discrete grid with be ineffective (require too many nodes N)
nodes r i in the region of interest if the body has sharp borders/angles
introduce functions ψi (r ) = f (r − r i ), In numerical analysis there are special
where f (0) = 1 but vanishes very rapidly techniques how to add nodes in a sys-
as a function of r − r i tematic and efficient way (see e.g. mesh-
Example from Jackson: ing techniques for Finite Element Anaylisis
use rectangular grid with step h in all (FEA) in Google)
dimensions Increase number of nodes near sharp
Choose f (r ) as borders, where field should change rapidly:
1 − |rh| , |r | ≤ h
f (r ) =
0, |r | > h
In lab setup current usually flows in a thin conducting wire. In this case can split
volume integral into transverse and longitudinal parts,
ˆ ˆ ˆ
d 3 r ′ → dℓ dS⊥ ,
so ˆ ˛
3 ′ ′
d r j r (...) ≈ dℓ I (ℓ) (...)
where ˆ
dℓ
dS ⊥ · j r ′
I (ℓ) =
dℓ
is the current in the conductor.
Magnetostatics
. So far we wrote everything for magnitude.
Now rewrite everything for vectors:
Biot-Savart law
ˆ
⃗ (r ) = µ0 I d⃗
ℓ1 × r̂ 12
B =
Lorentz’ force acting on charge q in elec- 4π 2
r12
tromagnetic field
|{z}
const
ˆ ⃗
µ0 j (r 1 ) × r̂ 12
⃗ =q E
F ⃗ + ⃗v × B
⃗ = d 3 r1 2
4π
|{z} r12
Force acting on a thin wire with electric const
⃗ := rot A
B ⃗
∇ (∇ · A) − ∆A⃗ = µ0⃗j (1)
Electro- & Magnetostatics (comparison)
Electrostatics in brief Magnetostatics in brief
ρ ⃗ = µ0⃗j
rotB
⃗ = −∆ϕ =
∇·E ,
ε0
⃗ =0⇒E
∇×E ⃗ = −∇ϕ. ⃗ ≡∇·B =0⇒B
divB ⃗
⃗ = rotA
∇ (∇ · A) − ∆A = µ0⃗j (1)
where r< = min(r , r ′ ), r> = max(r , r ′ ). Recall that we can add solution of
∆Ghomog (r , r ′ ) = 0 in order
to meet boundary
conditions,
so the full result is
′
X γℓ δℓ ∗
ℓ ℓ
r̂ ′
G (r , r ) = Cℓ r> + ℓ+1 r< + ℓ+1 Yℓm (r̂ ) Yℓm
ℓm
r> r<
ˆ
µ0 I
Aφ = r ′2 dr ′ sin θ′ dθ′ dφ′ ×
Example
. problem 4πa
δ(r ′ − a)
Evaluate the magnetic field created by a × sin θ′ cos φ′ δ(cos θ′ )
|r − r ′ |
current I flowing inside a circular ring of
radius a, as shown in the Figure.
r − r ′ 2 = r 2 + r ′2 −
ˆ
µ0 aI
Aφ = dϕ′ cos φ′ ×
4π
−1/2
× r 2 + a2 − 2ar sin θ cos φ′
First evaluate potential A
Easier to work in spherical coordinates:
(Mathematica: lengthy expression, in-
The only nonzero component j φ ⇒only cludes elliptic functions)
Aφ ̸= 0 Magnetic field: B = rotA
1 ∂
j φ (r ) = Jφ (− sin φx̂ + cos φŷ ) Br = (sin θAφ ) ,
r sin θ ∂θ
I 1 ∂
Jφ = δ(r − a)δ (θ − π/2) = Bθ = − (r Aφ ) , Bφ = 0
a r ∂r
I
= sin θδ(r − a)δ (cos θ) This gives formal solution for A, B.
a
Example problem Useful expression:
Now we will try to find an approximate
result for the case when a ≪ r . cos ϕ′ ≡ e iφ + e −iφ /2
Main tool: Green function expansion ˆ
over spherical harmonics: ⇒ dφ′ → π (δm,1 + δm,−1 )
1
G =− = Aφ = 2πµ0 aI × (1)
4π|r − r ′ |
∗ π ℓ
∗ ′
ℓ 1 Yℓ,1 (r̂ ) Yℓ,1 , 0 r<
1 X Yℓm (r̂ ) Yℓm r̂
X
r< × 2
=− r> 2ℓ + 1 r>
r> 2ℓ + 1 r> ℓ
ℓm
∗ π
where r< = min(r , a), r> = max(r , a) Yℓ,1 2
, 0 is just some number,
ˆ
0,
µ0 I ℓ = even
Aφ = r ′2 dr ′ sin θ′ dθ′ dφ′ ×
π n+1 3
Γ(n+ 2 )
q
a ∗ 2ℓ+1 (−1)
Yℓ,1 ,0 = 4πℓ(ℓ+1) Γ(n+1)Γ( 3 )
,
2
× sin θ′ cos φ′ δ(cos θ′ )δ(r ′ − a) 2
for ℓ = 2n + 1
∗ ′ ℓ
1 X Yℓm (r̂ ) Yℓm r̂ r<
× = and Yℓ,1 (r̂ ) ∼ Pℓ1 (cos θ) e iφ .
r> 2ℓ + 1 r>
ℓm
ˆ In (1) the dominant contribution comes
= µ0 aI dφ′ cos φ′ × from ℓ = 1, so Aφ ∼ 1/r 2 .
Now we’ll revisit general multipole ex-
∗ pansion for magnetic fields and try to un-
π
ℓ
1 X Yℓm (r̂ ) Yℓm 2 , 0 r<
× derstand why there is no ℓ = 0 term
r> 2ℓ + 1 r>
Multipolar expansion ´
Derivation similar to electrostatic case Lemma: d 3 r 1 j (r 1 ) = 0
(just replace ρ → j ):
ˆ (obvious for closed current loop)
µ0 j (r 1 ) general proof: let’s choose some smooth
Apart (r ) = − d 3r 1 ,
4π |r − r 1 | function f (r ) and assume j (r ) vanishes at
∞:
r ˆ ˛
r2 r1 · r
|r − r 1 | = r 1 + 12 − 2 2 d 3 r ∇ · (f j ) = f j · dS = 0
r r
r12 (r 1 · r )2
r1 · r ∇ · (f j ) = f ∇ · j + (j · ∇) f
≈r 1− 2 + 2 −
r 2r 2r 4
∇ · j = 0 static charge conservation
ˆ
ˆ
µ0 ⇒ d 3 r (j · ∇) f (r ) = 0
Apart (r ) = − d 3 r 1 j (r 1 ) ×
4πr
Let’s choose f (r ) = ri (one of the com-
r2 3(r 1 · r )2
r1 · r
× 1 + 2 − 12 + + ... ponents in Cartesian ref. frame, e.g. x, y
r 2r 2r 4 or z) ˆ
⇒ d 3 r ji (r ) = 0
µ0 µ0
A(r ) = m×r = m × r̂ , Demonstrate that for a closed plain
4πr 3 4πr 3
r contour with infinitely thin wire with
r̂ ≡ current I inside, the magnetic moment is
r ˆ
1 given by m = I × area
m≡ d 3 r 1 r 1 × j (r 1 )
2
µ0 Please let me know you ideas how we
B = rotA = [3r̂ (r̂ · m) − m] can prove this?
4πr 3
Similarly we can analyze higher order
terms in multipolar expansion (quadrupole
etc). Usually those terms are negligibly
small.
Magnetic dipole contribution More formal proof:
Let’s evaluate m ·a where a is constant
Demonstrate that for a closed plain fixed vector. ˆ
contour with inifinitely thin wire with 1
m·a ≡ d 3 r 1 a · [r 1 × j (r 1 )] =
current I inside it the magnetic moment 2
˛
is given by m = I × area I
ˆ = dℓ1 · [a × ℓ1 ]
1 2
m≡ d 3 r 1 r 1 × j (r 1 ) =
2 Can apply Stokes’ theorem for circula-
˛
=
I
ℓ1 × dℓ1 ˆ
tion of vector field
2 I
m·a = dS · rot [a × ℓ1 ]
1 2
Geometry: ℓ1 × dℓ1 = da n ⊥
2 rot [a × ℓ1 ] = ∇ℓ × [a × ℓ1 ] =
= a (∇ℓ · ℓ1 ) − (a · ∇ℓ ) ℓ = 2a
| {z } | {z }
3 a
ˆ
m · a = I dS · a
´ Since a = const and contour is plain,
dS · a = S n ⊥ · a
where da is the area of the triangle; n ⊥ is m · a = I S n⊥ · a
normal to the plane of the contour
⇒Full integration yields the area inside the Since a is arbitrary, conclude that m =
whole contour, Q.E.D IS n ⊥ , Q.E.D.
Magnetic dipole contribution
1 1X
m= q r 0 (t) × v (t) = m= qi r 0i (t) × v i (t) =
2 2
i
q q X qi
= µr 0 (t) × v (t) = L = µi r 0i (t) × v i (t)
2µ 2µ 2µi
i
dV B · a = − dV ∇ · (a × A) = (obviously, r̂ ≡ n)
˛ Let’s focus on surface ´ integral over ori-
= − dS · (a × A) = entation of n̂, c ℓm = dΩ Yℓm (n) n
˛ Components of n =
= dS a · (n × A) (sin θ cos ϕ, sin θ sin ϕ, cos θ), linear
combinations of Y1m :
where dS = dS n
Since aˆ is arbitrary,
˛ conclude that
dV B = dS (n × A)
¸ ´
R 2 dΩ ˆ
dS ≡
µ0 j (r 1 )
A(r ) = d 3r 1 ,
4π |r − r 1 |
ˆ ˛ ˆ
µ0 j (r 1 ) -In view of orthonormality only ℓ = 1
dV B = dS n × d 3 r 1 might contribute.
4π |r − r 1 |
Magnetic dipole contribution
Evaluating coefficients c ℓm with Mathematica & resumming, get
∗
r̂ ′ c ℓm
X Yℓm
∼ r̂ ′
2ℓ + 1
ℓm
′
Inside the sphere r< =ˆ r , r> = R ˆ
4µ0 2µ0
dV B = d 3 r 1 r 1 × j (r 1 ) = m
3 3
Q.E.D.
Note that if we used “direct” magnetic dipole contribution, we’d get different result:
µ0
B dipole = [3r̂ (r̂ · m) − m]
4πr 3
⃗ = µr µ0⃗j
rotB
⃗ ≡∇·B =0
divB
⃗ = 1 B
H ⃗ −M⃗
µ0
⋆Magnetization M:⃗ magnetic dipole mo-
ment per unit volume; M⃗ ∼ B
⃗ for linear
dia/paramagnetics
−will not consider them here ...
−In isotropic dia/paramagnetic materials
M⃗ ∼ B, ⃗ so µr µ0 H⃗ = B⃗ (differ by a
const)
Border conditions . Evaluate the circulation
around a small contour
of length ℓ and negligible
Ampere’s law
width
⃗ = 1 B⃗ −M ⃗ ˛
H
µ0 rotH ⃗ ⃗l ≈ H (1) − H (2) ℓ
⃗ = 0 ⇒ 0 = H·d
|| ||
⇒∇×H ⃗ = ⃗J f
(1) (2)
⃗ =0
divB H|| = H||
NOTE: For magentized materials, need
⃗f ,
to add ficticious surface current K
Assume that we consider a border of
two diamagentic materials. Write out the (1) (2) ⃗f × n
H|| − H|| = K ⃗
border conditions for the magentic field.
Assume there is no “free” currents. . Evaluate the flux of mag-
netic field through the rect-
angular parallelepiped
of area S and negligible height.
˛
divB⃗ = 0 ⇒ 0 = B·d ⃗ S⃗ ≈ B (1) − B (2) S
⊥ ⊥
(1) (2)
B⊥ = B⊥
Magnetic fields
Magnetostatics in the medium Control question
⃗ = ⃗j
rotH Assume that inside paramagnetic
material there is a homogeneous
magnetic field B ⃗ 0 . There are two cavities
⃗ ≡∇·B =0
divB inside it:
⃗ = εr ε0 E
⋆“electric displacement field” D ⃗ (a) inifitely long needle-shaped cavity
whose axis is collinear to the direction of
the field.
Border conditions
(b) inifitely thin wafer-shaped cavity
normal to the direction of the field.
(1) (2) (1) (2)
H|| = H|| ⇔ B|| /µ(1)
r = B|| /µr(2) Evaluate the electric field inside the
cavities
(1) (2)
B⊥ = B⊥
Caution
Note that in general ∇ · H ⃗ ̸= 0 near the
border of two magnetic materials
(µr ̸= const). For this reason we can’t
⃗ →H
replace B ⃗ everywhere.
Scalar magnetic potential
In absence of charges/currents electro-
and magnetostatics practically coincide:
A hollow sphere with internal radius a
divE = 0, rotE = 0, (1) and external radius b is made of
divB = 0, rotB = 0. (2) paramagentic material with (relative)
permeability µ > 1. The sphere is
Potential ϕ: reduces (1) to very simple immered into the homogeneous magentic
Laplace equation field B 0 . Evaluate the magnetic field
(1, 2) have similar form⇒ can try to inside and outside the sphere. Note that
introduce ΦM , B ≡ ∇ΦM if µ ≫ 1, then field inside is significantly
smaller than outside (“magentic
⇒ divB ≡ ∆ΦM = 0 shielding”)
ΦM is unambigously defined only in ab-
sence of currents
ΦM =static magnetic potential
nevetheless helps significantly in some
problems
Caution: We should use either A or ΦM
in all parts of the problem, but not both!
Scalar magnetic potential Expect no φ-dependence, so for m ̸= 0
. all aℓm , bℓm = 0
At r → ∞ solution
should reduce
to
B 0 = B0 ẑ = B0 r̂ cos θ − θ̂ sin θ
At r → 0 solution should remain finite
P αℓ
−B0 r cos θ + ℓ ℓ+1 Pℓ (cos θ), r > b
r
P γℓ
ΦM = ℓ
ℓ β ℓ r + Pℓ (cos θ), r ∈ (a, b)
r ℓ+1
P ℓ
ℓ δℓ r Pℓ (cos θ), r <a
Can introduce both ΦM and A since have For border conditions take into account
no currents that
Easier to use scalar magnetic potential ∂ΦM
ΦM instead of vector potential A (just sin- B⊥ ≡ Br = ,
∂r
gle function)
1 ∂ΦM
Assume axis z points in direction of B 0 , B|| ≡ Bθ = ,
r ∂θ
use spherical coords.
General solution of Laplace: Each Pℓ is independent, so need to im-
X ℓ bℓm
pose border conditions separately on each
ΦM = aℓm r + ℓ+1 Yℓm (θ, φ) P
r term in the sum ℓ .
ℓm
|m|
Yℓm ∼ Pℓ (cos θ) e imφ