Electrodynamics Mathematical Concepts
Electrodynamics Mathematical Concepts
Soryu
January 20, 2026
1 Mathematical Foundations
1.1 Vector Operations
1.1.1 Norm and Normalization
For a vector A = (Ax , Ay , Az ) in R3 , the (Euclidean) norm or magnitude is defined as
q
∥A∥ = A2x + A2y + A2z .
A
 = , ∥Â∥ = 1,
∥A∥
provided that A ̸= 0.
A · B = Ax Bx + Ay By + Az Bz .
Geometrically,
A · B = ∥A∥ ∥B∥ cos θ,
where θ is the angle between A and B.
x̂ ŷ ẑ
A × B = Ax Ay Az .
Bx By Bz
1
1.2 Scalar and Vector Fields
1.2.1 Scalar Field
A scalar field assigns a real number to each point in space:
ϕ(x, y, z) ∈ R.
1.3.2 Divergence
For a vector field A,
∂Ax ∂Ay ∂Az
∇·A= + + .
∂x ∂y ∂z
1.3.3 Curl
For a vector field A,
x̂ ŷ ẑ
∂ ∂ ∂
∇×A= ∂x ∂y ∂z .
Ax Ay Az
Equivalently, in Cartesian coordinates,
∂Az ∂Ay ∂Ax ∂Az ∂Ay ∂Ax
∇×A= − , − , − .
∂y ∂z ∂z ∂x ∂x ∂y
1.3.4 Laplacian
Action on a scalar field For a scalar field ϕ(r), the Laplacian is defined as
∇2 ϕ = ∇ · (∇ϕ).
Action on a vector field For a vector field A, the vector Laplacian is defined by
∇2 A = ∇(∇ · A) − ∇ × (∇ × A).
Theorem (Cartesian Coordinates) In Cartesian coordinates, the vector Laplacian acts componentwise:
∇2 A = (∇2 Ax , ∇2 Ay , ∇2 Az ) .
2
1.4 Essential Vector Identities
For scalar fields ϕ, ψ and vector fields A, B, the following vector identities are frequently used in electromag-
netism.
Linearity
∇(ϕ + ψ) = ∇ϕ + ∇ψ,
∇ · (A + B) = ∇ · A + ∇ · B,
∇ × (A + B) = ∇ × A + ∇ × B.
Product Rules
∇(ϕψ) = ϕ ∇ψ + ψ ∇ϕ,
∇ · (ϕA) = ϕ (∇ · A) + A · (∇ϕ),
∇ × (ϕA) = ∇ϕ × A + ϕ (∇ × A).
Second-Order Identities
∇ · (∇ × A) = 0, ∇ × (∇ϕ) = 0.
Gauss’ Theorem
For a volume V with boundary surface S,
" ˚
A · dS = (∇ · A) dV.
S V
Stokes’ Theorem
For a surface S with boundary curve C,
˛ ¨
A · dl = (∇ × A) · dS.
C S
3
2 Maxwell’s Equations
4
• ΦE — Electric flux, measured in V·m (or N·m²/C), defined as
¨
ΦE = E · dS.
S
• ID — Displacement current, representing the effect of a time-varying electric field, measured in amperes
(A), defined as ¨
dΦE d
ID = ε0 = ε0 E · dS.
dt dt S
3 Electromagnetism Laws
3.1 Coulomb’s Law
The electric field at point r due to a point charge q at r′ is
1 q
E(r) = · (r − r′ ).
4πε0 |r − r′ |3
Right-Hand Rule
The direction of B follows the right-hand rule:
µ0 I dl′ × (r − r′ )
dB(r) = .
4π |r − r′ |3
5
3.4 Faraday’s Law
A time-varying magnetic flux through a closed loop induces an electromotive force (EMF) in the loop.
Mathematically,
dΦB
E =− ,
dt
where ΦB is the magnetic flux through the loop:
¨
ΦB = B · dA.
S
Lenz’s Law
The direction of the induced EMF (and current) is such that it opposes the change in magnetic flux that
produces it. Mathematically, the negative sign in Faraday’s law expresses Lenz’s law.
Physical interpretation:
- If the magnetic flux through a loop increases, the induced current generates a magnetic field that
opposes the increase.
- If the magnetic flux decreases, the induced current generates a magnetic field that tries to maintain it.
which states that the rate of change of charge in a volume equals the net current flowing out.
6
3.6 Electromagnetic Wave Equation
In free space, the electric and magnetic fields satisfy the wave equations:
∂2E ∂2B
∇2 E − µ 0 ε 0 = 0, ∇2 B − µ0 ε0 = 0.
∂t2 ∂t2
A plane wave solution propagating in the direction of the wave vector k is
1
E(r, t) = E0 ei(k·r−ωt) , B(r, t) = k̂ × E(r, t),
c
where:
• k is the wave vector, pointing in the direction of propagation, with magnitude |k| = 2π/λ,
• ω is the angular frequency, related to the speed of light by ω = c|k|,
√
• c = 1/ µ0 ε0 is the speed of light in vacuum.
Quantum Correspondence
In quantum mechanics, an electromagnetic wave can be viewed as a stream of photons, for which
H = ℏω, p = ℏk,
where H is the photon energy, p its momentum, and ℏ is the reduced Planck constant.
The electric part acts in the direction of E, while the magnetic part is always perpendicular to the velocity
v and the magnetic field B.
7
4 Applications
4.1 Electric Field of a Uniformly Charged Sphere
Consider a sphere of radius R uniformly filled with charge density ρ. The total charge is
˚
4πR3
Q= ρ dV = ρ · .
V 3
4πr3
Qenc = ρ · .
3
Gauss’ law gives
Qenc 1 4πr3
E(r) (4πr2 ) = = ρ .
ε0 ε0 3
Therefore,
ρ
E(r) = r (r < R)
3ε0
which increases linearly from the center.
Summary
ρ
r, r < R,
3ε0
E(r) = 1 Q
, r > R.
4πε0 r2
8
Electric Field Diagram
+Q E(r)
E(r)
ρ
E(r) = r
3ε0
1 Q
E(r) =
4πε0 r2
r
R
4.1.1 Verification
p
Consider a uniformly charged sphere with total charge Q and charge density ρ. Let r = x2 + y 2 + z 2 .
1 Q 1 Q
E(r) = 3
r= (xx̂ + yŷ + zẑ)
4πε0 r 4πε0 r3
Divergence Verification
Outside the sphere (r ≥ R)
Q x Q y Q z
Ex = , Ey = , Ez = .
4πε0 r3 4πε0 r3 4πε0 r3
9
∂ x −3 ∂ −3 −3 x2
= r + x (r ) = r − 3 .
∂x r3 ∂x r5
where,
∂ −3 ∂ 2 3 3x
(r ) = (x + y 2 + z 2 )−3/2 = − (x2 + y 2 + z 2 )−5/2 · 2x = − 5 .
∂x ∂x 2 r
Similarly,
∂ y y2 ∂ z z2
3
= r−3 − 3 5 , 3
= r−3 − 3 5 .
∂y r r ∂z r r
Add the three components:
Q −3
∇·E= (r − 3x2 /r5 ) + (r−3 − 3y 2 /r5 ) + (r−3 − 3z 2 /r5 ) = 3r−3 − 3r2 /r5 = 0 (r ̸= 0).
4πε0
Curl Verification
We verify that the electric field of a uniformly charged sphere is irrotational (∇ × E = 0) using Cartesian
coordinates.
Q p
Eout = (xx̂ + yŷ + zẑ), r= x2 + y 2 + z 2 .
4πε0 r3
Compute the curl in Cartesian coordinates:
x̂ ŷ ẑ
∂ ∂ ∂
∇×E= ∂x ∂y ∂z .
Ex Ey Ez
10
Inside the sphere (r < R) The electric field is linear in r:
ρ
Ein = (xx̂ + yŷ + zẑ).
3ε0
Compute the x-component of the curl:
∂Ez ∂Ey ∂ ρ ∂ ρ
(∇ × E)x = − = z− y = 0.
∂y ∂z ∂y 3ε0 ∂z 3ε0
Similarly, the other components vanish:
(∇ × E)y = 0, (∇ × E)z = 0.
Therefore, inside the sphere:
∇ × Ein = 0.
Conclusion: The electric field of a uniformly charged sphere is irrotational everywhere, consistent with
Faraday’s law in electrostatics.
λρ2 L λ
E(ρ)(2πρL) = ⇒ E(ρ) = ρ, (ρ < a) .
ε0 2πε0 a2
Outside the cylinder (ρ ≥ a) The enclosed charge is the total charge of the cylinder:
Qenc = λL.
Gauss’ law:
λL λ
E(ρ)(2πρL) = ⇒ E(ρ) = , (ρ ≥ a) .
ε0 2πε0 ρ
Summary
λ
ρ, ρ < a,
2πε0 a2
E(ρ) =
λ ,
ρ ≥ a.
2πε0 ρ
11
4.2.2 Field in Cartesian Coordinates
Inside the cylinder (ρ < a)
λ
E(x, y) = (xx̂ + yŷ).
2πε0 a2
∇·E=0 (ρ ̸= 0),
consistent with Gauss’ law outside the cylinder.
∂Ey ∂Ex
(∇ × E)x = (∇ × E)y = 0, (∇ × E)z = − = 0.
∂x ∂y
Conclusion: The electric field of a uniformly charged cylinder of radius a is radial, satisfies Gauss’ law
inside and outside, and is irrotational everywhere, consistent with electrostatics.
12
4.3 Electric Field of an Infinite Uniformly Charged Slab
Consider an infinite slab of thickness 2a, extending infinitely in the x- and z-directions. The slab occupies
the region
−a ≤ y ≤ a.
The volume charge density is uniform:
ρ = constant.
By translational symmetry in x and z, the electric field depends only on y. By reflection symmetry about
the plane y = 0, the electric field must be parallel to the y-axis. Thus,
Qenc = ρ(2yA).
Outside the slab (y > a) The enclosed charge is the total charge of the slab:
Qenc = ρ(2aA).
Outside the slab (y < −a) By symmetry, the electric field reverses direction:
ρa
E(y) = − ŷ, (y < −a) .
ε0
Summary
ρ
y ŷ, |y| < a,
ε0
ρa
E(y) = ŷ, y > a,
ε0
ρa
−
ŷ, y < −a.
ε0
13
4.3.2 Divergence Verification
Since
E = (0, Ey (y), 0),
the divergence is
∂Ey
∇·E= .
∂y
Thus,
µ0 J
B(ρ) = ρ, (ρ < a) .
2
14
Outside the cylinder (ρ ≥ a) The enclosed current is the total current:
Ienc = I.
Summary
µ0 J
ρ ϕ̂, ρ < a,
2
B(ρ) =
µ I
0 ϕ̂, ρ ≥ a.
2πρ
µ0 J µ0 J
Bx = − y, By = x, Bz = 0.
2 2
The divergence is
∂Bx ∂By ∂Bz
∇·B= + + .
∂x ∂y ∂z
Since Bz = 0 and all components are independent of z, we have
∂Bz
= 0.
∂z
Compute the remaining terms:
∂Bx ∂ µ0 J
= − y = 0,
∂x ∂x 2
∂By ∂ µ0 J
= x = 0.
∂y ∂y 2
Therefore,
∇ · B = 0, (ρ < a) .
15
Outside the cylinder (ρ ≥ a) For ρ ≥ a, the magnetic field components are
µ0 I y µ0 I x
Bx = − , By = , Bz = 0.
2π x2 + y 2 2π x2 + y 2
Again,
∂Bx ∂By
∇·B= + .
∂x ∂y
Compute each derivative explicitly:
∂Bx µ0 I ∂ y µ0 I −2xy µ0 I xy
=− 2 2
= − 2 2 2
= ,
∂x 2π ∂x x + y 2π (x + y ) π (x + y 2 )2
2
∂By µ0 I ∂ x µ0 I −2xy µ0 I xy
= = =− .
∂y 2π ∂y x2 + y 2 2π (x2 + y 2 )2 π (x2 + y 2 )2
Adding the two terms,
µ0 I xy µ0 I xy
∇·B= 2 2 2
− = 0, (ρ ̸= 0).
π (x + y ) π (x + y 2 )2
2
Conclusion: The magnetic field is divergence-free both inside and outside the cylinder, consistent with
Gauss’ law for magnetism,
∇ · B = 0.
µ0 J µ0 J
Bx = − y, By = x, Bz = 0.
2 2
The curl is
x̂ ŷ ẑ
∂ ∂ ∂
∇×B= .
∂x ∂y ∂z
Bx By Bz
Since Bz = 0 and all components are independent of z, we have
(∇ × B)x = 0, (∇ × B)y = 0.
The z-component is
∂By ∂Bx
(∇ × B)z = − .
∂x ∂y
Compute each term explicitly:
∂By ∂ µ0 J µ0 J
= x = ,
∂x ∂x 2 2
∂Bx ∂ µ0 J µ0 J
= − y =− .
∂y ∂y 2 2
Therefore,
µ0 J µ0 J
(∇ × B)z = − − = µ0 J.
2 2
Hence,
∇ × B = µ0 J ẑ, (ρ < a) .
16
Outside the cylinder (ρ ≥ a) For ρ ≥ a, the magnetic field components are
µ0 I y µ0 I x
Bx = − , By = , Bz = 0.
2π x2 + y 2 2π x2 + y 2
Again,
(∇ × B)x = (∇ × B)y = 0,
and
∂By ∂Bx
(∇ × B)z = − .
∂x ∂y
Compute:
∂By µ0 I (x2 + y 2 ) − 2x2 µ0 I y 2 − x2
= = ,
∂x 2π (x2 + y 2 )2 2π (x2 + y 2 )2
∂Bx µ0 I (x2 + y 2 ) − 2y 2 µ0 I x2 − y 2
=− 2 2 2
=− .
∂y 2π (x + y ) 2π (x2 + y 2 )2
Thus,
µ0 I y 2 − x2 µ0 I x2 − y 2
(∇ × B)z = − − = 0, (ρ ̸= 0).
2π (x2 + y 2 )2 2π (x2 + y 2 )2
Therefore,
∇ × B = 0, (ρ > a) .
Conclusion: The magnetic field of a uniformly current-carrying infinite cylinder is azimuthal, divergence-
free everywhere, and satisfies Ampère’s law in differential form:
∇ × B = µ0 J.
J = J ẑ.
By translational symmetry in x and z, the magnetic field depends only on y. By reflection symmetry
about the plane y = 0, the magnetic field must be parallel to the x-axis. Thus,
Ienc = J · (2yL).
Therefore,
B(y) = µ0 Jy x̂, (|y| < a) .
17
Outside the slab (y > a) The enclosed current is the total current:
Ienc = J(2aL).
Outside the slab (y < −a) Using the right-hand rule, the magnetic field reverses direction:
Summary
µ0 Jy x̂, |y| < a,
B(y) = µ0 Ja x̂, y > a,
− µ Ja x̂, y < −a.
0
∇·B=0
18
Outside the slab (|y| > a) Since Bx is constant,
∂Bx
= 0,
∂y
hence
∇ × B = 0, (|y| > a) .
where
1 ±q (r − r± )
E± (r) = .
4πε0 |r − r± |3
Dipole Approximation (r ≫ d)
Define the electric dipole moment
p = qd ẑ.
To leading order in d/r, the electric field of the dipole is
1 1
E(r) = 3(p · r̂)r̂ − p .
4πε0 r3
1 2p cos θ 1 p sin θ
Er = , Eθ = , Eϕ = 0 .
4πε0 r3 4πε0 r3
m = Iπa2 ẑ.
The magnetic field is the superposition of the fields generated by the current elements of the loop. In the
far-field region (r ≫ a), the loop can be treated as a magnetic dipole.
Dipole Approximation (r ≫ a)
To leading order in a/r, the magnetic field of a magnetic dipole is
µ0 1
B(r) = 3(m · r̂)r̂ − m .
4π r3
19
Spherical Coordinate Components
Using m = mẑ and
ẑ = cos θ r̂ − sin θ θ̂,
the magnetic field components in spherical coordinates are
µ0 2m cos θ µ0 m sin θ
Br = , Bθ = , Bϕ = 0 .
4π r3 4π r3
Remark: The magnetic field of a small current loop has the same angular dependence as the electric field
of an electric dipole, with the replacement
1 µ0
p ←→ m.
4πε0 4π
20