Skip to content

Maxwell's Equations | Physics - Wyatt's Notes

Maxwell’s equations are the foundation of classical electromagnetism. In SI units:

Integral Form:

\oint_S \mathbf{E} \cdot d\mathbf{A} = \frac{Q_{\mathrm{enc}}{\varepsilon_0} \quad \mathrm{(Gauss's\ Law)}}

SBdA=0(Gausss Law for Magnetism)\oint_S \mathbf{B} \cdot d\mathbf{A} = 0 \quad \mathrm{(Gauss's\ Law\ for\ Magnetism)}

CEdl=dΦBdt(Faradays Law)\oint_C \mathbf{E} \cdot d\mathbf{l} = -\frac{d\Phi_B}{dt} \quad \mathrm{(Faraday's\ Law)}

CBdl=μ0Ienc+μ0ε0dΦEdt(AmpereMaxwell Law)\oint_C \mathbf{B} \cdot d\mathbf{l} = \mu_0 I_{\mathrm{enc} + \mu_0 \varepsilon_0 \frac{d\Phi_E}{dt} \quad \mathrm{(Ampere{-}Maxwell\ Law)}}

Differential Form:

E=ρε0(Gausss Law)\nabla \cdot \mathbf{E} = \frac{\rho}{\varepsilon_0} \quad \mathrm{(Gauss's\ Law)}

B=0(Gausss Law for Magnetism)\nabla \cdot \mathbf{B} = 0 \quad \mathrm{(Gauss's\ Law\ for\ Magnetism)}

×E=Bt(Faradays Law)\nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t} \quad \mathrm{(Faraday's\ Law)}

×B=μ0J+μ0ε0Et(AmpereMaxwell Law)\nabla \times \mathbf{B} = \mu_0 \mathbf{J} + \mu_0 \varepsilon_0 \frac{\partial \mathbf{E}}{\partial t} \quad \mathrm{(Ampere{-}Maxwell\ Law)}

Where ρ\rho is the charge density, J\mathbf{J} is the current density, ε0\varepsilon_0 is the permittivity Of free space, and μ0\mu_0 is the permeability of free space.

1.2 Derivation from Integral to Differential Form

Section titled “1.2 Derivation from Integral to Differential Form”

Gauss’s Law. Apply the divergence theorem to the integral form:

SEdA=V(E)dV=1ε0VρdV\oint_S \mathbf{E} \cdot d\mathbf{A} = \int_V (\nabla \cdot \mathbf{E})\, dV = \frac{1}{\varepsilon_0}\int_V \rho\, dV

Since this holds for any volume VV: E=ρ/ε0\nabla \cdot \mathbf{E} = \rho / \varepsilon_0.

Faraday’s Law. Apply Stokes’ theorem:

CEdl=S(×E)dA=SBtdA\oint_C \mathbf{E} \cdot d\mathbf{l} = \int_S (\nabla \times \mathbf{E}) \cdot d\mathbf{A} = -\int_S \frac{\partial \mathbf{B}}{\partial t} \cdot d\mathbf{A}

Since this holds for any surface SS: ×E=B/t\nabla \times \mathbf{E} = -\partial \mathbf{B}/\partial t.

Gauss’s Law for Magnetism. By the divergence theorem:

SBdA=V(B)dV=0\oint_S \mathbf{B} \cdot d\mathbf{A} = \int_V (\nabla \cdot \mathbf{B})\, dV = 0

Since VV is arbitrary: B=0\nabla \cdot \mathbf{B} = 0. This expresses the absence of magnetic monopoles.

Ampere-Maxwell Law. Apply Stokes’ theorem:

CBdl=S(×B)dA=μ0SJdA+μ0ε0ddtSEdA\oint_C \mathbf{B} \cdot d\mathbf{l} = \int_S (\nabla \times \mathbf{B}) \cdot d\mathbf{A} = \mu_0 \int_S \mathbf{J} \cdot d\mathbf{A} + \mu_0 \varepsilon_0 \frac{d}{dt}\int_S \mathbf{E} \cdot d\mathbf{A}

Since SS is arbitrary: ×B=μ0J+μ0ε0E/t\nabla \times \mathbf{B} = \mu_0 \mathbf{J} + \mu_0 \varepsilon_0\, \partial \mathbf{E}/\partial t.

Taking the divergence of the Ampere-Maxwell law:

(×B)=0=μ0J+μ0ε0t(E)\nabla \cdot (\nabla \times \mathbf{B}) = 0 = \mu_0 \nabla \cdot \mathbf{J} + \mu_0 \varepsilon_0 \frac{\partial}{\partial t}(\nabla \cdot \mathbf{E})

Using Gauss’s law: J+ρt=0\nabla \cdot \mathbf{J} + \frac{\partial \rho}{\partial t} = 0.

This is the continuity equation, expressing conservation of charge.

At an interface between two linear media (labelled 1 and 2) with surface normal n^\hat{\mathbf{n}} Pointing from 2 into 1, Maxwell’s equations impose four boundary conditions.

Normal component of D\mathbf{D}. Apply Gauss’s law for D\mathbf{D} to a thin pillbox Straddling the interface:

DdA=σfA    D1nD2n=σf\oint \mathbf{D} \cdot d\mathbf{A} = \sigma_f A \implies D_{1n} - D_{2n} = \sigma_f

Tangential component of E\mathbf{E}. Apply Faraday’s law to a rectangular loop Perpendicular to the interface. As the loop height Δh0\Delta h \to 0The flux through the Loop vanishes:

Edl=0    E1t=E2t\oint \mathbf{E} \cdot d\mathbf{l} = 0 \implies E_{1t} = E_{2t}

In vector form: n^×(E1E2)=0\hat{\mathbf{n}} \times (\mathbf{E}_1 - \mathbf{E}_2) = \mathbf{0}.

Normal component of B\mathbf{B}. Apply Gauss’s law for B\mathbf{B} to a pillbox:

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

Tangential component of H\mathbf{H}. Apply Ampere’s law for H\mathbf{H} to a loop Perpendicular to the interface:

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

Where Kf\mathbf{K}_f is the free surface current density.

Summary (no free charges or currents, σf=0\sigma_f = 0, Kf=0\mathbf{K}_f = \mathbf{0}):

FieldNormal componentTangential component
E\mathbf{E}ε1E1n=ε2E2n\varepsilon_1 E_{1n} = \varepsilon_2 E_{2n}E1t=E2tE_{1t} = E_{2t}
D\mathbf{D}D1n=D2nD_{1n} = D_{2n}D1t/ε1=D2t/ε2D_{1t}/\varepsilon_1 = D_{2t}/\varepsilon_2
B\mathbf{B}μ1B1n=μ2B2n\mu_1 B_{1n} = \mu_2 B_{2n}B1t/μ1=B2t/μ2B_{1t}/\mu_1 = B_{2t}/\mu_2
H\mathbf{H}μ2H1n=μ1H2n\mu_2 H_{1n} = \mu_1 H_{2n}H1t=H2tH_{1t} = H_{2t}

The electric field is a force landscape: at every point in space, it assigns a vector representing the force that a positive test charge would experience at that location. Near a positive charge, the field points outward — the “hill” slopes away from the source. Near a negative charge, the field points inward — the “valley” slopes toward the source. The field lines are the contour lines of this landscape, and their density indicates the strength of the force.

Gauss’s law says that the total “outflow” of the electric field through any closed surface equals the enclosed charge divided by the permittivity of free space. Physically, charge is a source (or sink) of field lines. Faraday’s law says that a changing magnetic field creates a circulating electric field — the force landscape twists and swirls when the magnetic environment changes. The beauty of Maxwell’s equations is that they unify electricity and magnetism into a single field description: changing electric fields create magnetic fields (Ampere-Maxwell law) and changing magnetic fields create electric fields (Faraday’s law), allowing electromagnetic waves to propagate through empty space as self-sustaining oscillations of the field landscape.

1.5 Worked Example: Deriving the Electromagnetic Wave Equation

Section titled “1.5 Worked Example: Deriving the Electromagnetic Wave Equation”

Problem. Starting from Maxwell’s equations in free space (ρ=0\rho = 0, J=0\mathbf{J} = \mathbf{0}), Derive the wave equations for E\mathbf{E} and B\mathbf{B} And show that the wave speed is c=1/μ0ε0c = 1/\sqrt{\mu_0 \varepsilon_0}.

Solution

In free space, Maxwell’s equations reduce to:

E=0,B=0\nabla \cdot \mathbf{E} = 0, \quad \nabla \cdot \mathbf{B} = 0

×E=Bt,×B=μ0ε0Et\nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t}, \quad \nabla \times \mathbf{B} = \mu_0 \varepsilon_0 \frac{\partial \mathbf{E}}{\partial t}

Take the curl of Faraday’s law:

×(×E)=t(×B)=μ0ε02Et2\nabla \times (\nabla \times \mathbf{E}) = -\frac{\partial}{\partial t}(\nabla \times \mathbf{B}) = -\mu_0 \varepsilon_0 \frac{\partial^2 \mathbf{E}}{\partial t^2}

Apply the vector identity ×(×E)=(E)2E\nabla \times (\nabla \times \mathbf{E}) = \nabla(\nabla \cdot \mathbf{E}) - \nabla^2 \mathbf{E}. Since E=0\nabla \cdot \mathbf{E} = 0:

2E=μ0ε02Et2-\nabla^2 \mathbf{E} = -\mu_0 \varepsilon_0 \frac{\partial^2 \mathbf{E}}{\partial t^2}

2E=μ0ε02Et2\boxed{\nabla^2 \mathbf{E} = \mu_0 \varepsilon_0 \frac{\partial^2 \mathbf{E}}{\partial t^2}}

An identical calculation, taking the curl of the Ampere-Maxwell law, yields:

2B=μ0ε02Bt2\boxed{\nabla^2 \mathbf{B} = \mu_0 \varepsilon_0 \frac{\partial^2 \mathbf{B}}{\partial t^2}}

Comparing with the standard wave equation 2F=1v22Ft2\nabla^2 \mathbf{F} = \frac{1}{v^2}\frac{\partial^2 \mathbf{F}}{\partial t^2} The wave speed is:

c=1μ0ε02.998×108 m/sc = \frac{1}{\sqrt{\mu_0 \varepsilon_0}} \approx 2.998 \times 10^8\ \mathrm{m}/s

\blacksquare

1.6 Worked Example: Gauss’s Law for a Line Charge

Section titled “1.6 Worked Example: Gauss’s Law for a Line Charge”

Problem. An infinitely long line charge has linear charge density λ\lambda. Use Gauss’s law to find the electric field at a distance rr from the line.

Solution

By symmetry, the electric field is radial and depends only on rr. Choose a cylindrical Gaussian surface of radius rr and length LL coaxial with the line charge.

The electric flux through the curved surface is: EdA=E2πrL\oint \mathbf{E} \cdot d\mathbf{A} = E \cdot 2\pi r L

The flux through the end caps is zero (field is perpendicular to the normal).

The enclosed charge is: Qenc=λLQ_{\text{enc}} = \lambda L

Applying Gauss’s law: E2πrL=λLε0E \cdot 2\pi r L = \frac{\lambda L}{\varepsilon_0}

E=λ2πε0rE = \frac{\lambda}{2\pi \varepsilon_0 r}

\blacksquare

Common mistake. Forgetting that the Gaussian surface must have the symmetry of the charge distribution. For a line charge, a cylinder is the appropriate choice.

1.7 Worked Example: Faraday’s Law and Induced EMF

Section titled “1.7 Worked Example: Faraday’s Law and Induced EMF”

Problem. A circular loop of radius 0.1 m is placed in a magnetic field that varies as B(t)=B0sin(ωt)B(t) = B_0 \sin(\omega t) where B0=0.5B_0 = 0.5 T and ω=100\omega = 100 rad/s. Find the induced EMF in the loop.

Solution

The magnetic flux through the loop is: ΦB=BA=B0sin(ωt)πr2\Phi_B = B \cdot A = B_0 \sin(\omega t) \cdot \pi r^2

By Faraday’s law, the induced EMF is: E=dΦBdt=B0πr2ωcos(ωt)\mathcal{E} = -\frac{d\Phi_B}{dt} = -B_0 \pi r^2 \omega \cos(\omega t)

Substituting values: E=0.5×π×(0.1)2×100×cos(100t)\mathcal{E} = -0.5 \times \pi \times (0.1)^2 \times 100 \times \cos(100t)

E=1.57cos(100t) V\mathcal{E} = -1.57 \cos(100t) \text{ V}

The maximum induced EMF is Emax=1.57|\mathcal{E}_{\text{max}}| = 1.57 V.

\blacksquare

Intuition. The induced EMF is proportional to the rate of change of magnetic flux. When the field is changing fastest (at t=0t = 0), the induced EMF is maximum. When the field reaches its peak (no change), the induced EMF is zero.

1.8 Worked Example: Ampere’s Law for a Solenoid

Section titled “1.8 Worked Example: Ampere’s Law for a Solenoid”

Problem. A solenoid has n=1000n = 1000 turns per meter and carries a current I=2I = 2 A. Find the magnetic field inside the solenoid.

Solution

By symmetry, the magnetic field inside a long solenoid is uniform and parallel to the axis. Choose a rectangular Amperian loop with one side inside the solenoid (length ll) and one side outside.

The line integral of B\mathbf{B} around the loop is: Bdl=Bl\oint \mathbf{B} \cdot d\mathbf{l} = B l

(The contribution from the outside is zero because B0B \approx 0 outside.)

The enclosed current is: Ienc=nlII_{\text{enc}} = n l I

Applying Ampere’s law: Bl=μ0nlIB l = \mu_0 n l I

B=μ0nI=4π×107×1000×2=8π×1042.51×103 TB = \mu_0 n I = 4\pi \times 10^{-7} \times 1000 \times 2 = 8\pi \times 10^{-4} \approx 2.51 \times 10^{-3} \text{ T}

\blacksquare

Common mistake. Using the total number of turns instead of turns per meter. The formula uses n=N/Ln = N/L, not NN.

Mistake 1: Confusing the sources of electric and magnetic fields Electric fields are produced by electric charges (E=ρ/ε0\nabla \cdot \mathbf{E} = \rho/\varepsilon_0), while magnetic fields are produced by currents and changing electric fields (×B=μ0J+μ0ε0E/t\nabla \times \mathbf{B} = \mu_0 \mathbf{J} + \mu_0\varepsilon_0 \partial\mathbf{E}/\partial t). There are no magnetic monopoles (B=0\nabla \cdot \mathbf{B} = 0). Students sometimes assume magnetic fields are produced by magnetic charges analogous to electric charges.

Mistake 2: Forgetting the displacement current term in Ampere’s law The original Ampere’s law ×B=μ0J\nabla \times \mathbf{B} = \mu_0 \mathbf{J} is inconsistent with the continuity equation. Maxwell’s addition of the displacement current μ0ε0E/t\mu_0\varepsilon_0 \partial\mathbf{E}/\partial t fixes this and predicts electromagnetic waves. Omitting this term leads to incorrect predictions for time-varying fields, such as the charging of a capacitor.

Mistake 3: Confusing integral and differential forms The integral form of Gauss’s law EdA=Qenc/ε0\oint \mathbf{E} \cdot d\mathbf{A} = Q_{\text{enc}}/\varepsilon_0 applies to specific symmetric configurations, while the differential form E=ρ/ε0\nabla \cdot \mathbf{E} = \rho/\varepsilon_0 is the general statement. Students often apply the integral form without verifying that the symmetry assumptions (spherical, cylindrical, or planar) are satisfied.

flowchart TD
A[1_Maxwell S Equations] --> B[Key Concepts]
A --> C[Core Principles]
A --> D[Practical Applications]
B --> E[Fundamental definitions]
C --> F[Design patterns]
D --> G[Real-world usage]
  • Magnetostatics: Magnetostatics is the static limit of Maxwell’s equations where time derivatives vanish, describing steady currents and magnetic fields.

  • Electrodynamics: Electrodynamics extends Maxwell’s equations to time-varying fields, with Faraday’s law and the displacement current.

  • The Wave Equation: Electromagnetic waves are solutions to Maxwell’s equations in free space, with speed c=1/μ0ε0c = 1/\sqrt{\mu_0 \varepsilon_0}.

  • Calculus

  • Linear Algebra

  • Vector Calculus