TExcelTAD
Home › Electromagnetic Theory: Maxwell's Equations to Waves › Electromagnetic Theory: Introduction

Electromagnetic Theory: Introduction

A 30 cm30\ \text{cm} cable carries a 1 MHz1\ \text{MHz} clock without trouble, yet the same cable at 1 GHz1\ \text{GHz} rings, reflects and radiates. A coil that is an ideal inductor at 50 Hz50\ \text{Hz} loses half its power to eddy currents at 100 kHz100\ \text{kHz}. A printed-circuit trace that was "just a wire" becomes an antenna. Circuit theory cannot explain any of this, because circuit theory assumes that voltages and currents are the same everywhere along a wire at the same instant. Electromagnetic theory drops that assumption: it describes the fields that fill the space around conductors, how they are created by charges and currents, how they store energy, and how they travel as waves.

This course takes you from Coulomb's law to Maxwell's equations and on to the engineering results built on them: capacitance and inductance of real geometries, magnetic circuits, skin effect, plane waves and reflection, transmission lines and the Smith chart, waveguides, antennas, and the numerical methods that engineers use when no formula exists.

The map

Section You will be able to Labs and tools
Getting started work in Cartesian, cylindrical and spherical coordinates; use gradient, divergence and curl and the two integral theorems as engineering tools figures, SymPy, NumPy
Electrostatics find E\mathbf{E}, D\mathbf{D} and VV for charge distributions, use Gauss's law, handle conductors and dielectrics, compute capacitance coulomb, field-lines, Python
Boundary-value problems solve Laplace's and Poisson's equations by separation of variables, images and finite differences, and check a numerical solution against an exact one NumPy solvers
Steady currents relate J\mathbf{J}, σ\sigma and E\mathbf{E}, use the continuity equation, find the resistance of any shape Python, ee-netlist
Magnetostatics use Biot–Savart and Ampère, the vector potential, forces and torques, magnetic materials, magnetic circuits and inductance force-on-wire, ee-netlist, SciPy
Time-varying fields apply Faraday's law, motional EMF and displacement current; read Maxwell's equations in both forms; work with phasor fields induction, Python
Plane waves describe waves in lossless and lossy media, skin depth, polarisation, power flow, reflection and refraction ee-em-wave, wave, FDTD in NumPy
Transmission lines use the telegrapher's equations, Z0Z_0, Γ\Gamma, VSWR, input impedance, the Smith chart and bounce diagrams ee-transmission-line, skrf, ngspice
Waveguides, cavities and radiation find TE and TM cutoff frequencies, cavity resonances, and the fields and radiation resistance of dipoles ee-antenna-pattern, Python
Computational electromagnetics write a 1-D and 2-D FDTD solver, know what FEM, MoM and BEM do, test mesh convergence and validate NumPy

The mathematics is linked, not repeated: vector calculus is in Calculus (Stewart), partial differential equations in Differential Equations and numerical solvers in Numerical Methods. School-level fields and induction are in Oscillations, Waves and Fields and Electromagnetism and Modern Physics; the EE refresher is Charge and Electric Field. Circuit ideas (phasors, impedance, resonance) come from Circuit Theory. Antennas, link budgets and RF design continue in Communications, RF Engineering & Antennas, and EMC and signal integrity in EMC, Signal Integrity & Advanced Electromagnetics.

The four field quantities and their sources

charge rho_vC/m^3 current JA/m^2 DC/m^2 EV/m HA/m BT = Wb/m^2 div D curl H D = eps E B = mu H dB/dt drivescurl E dD/dt addsto curl H

Electromagnetics uses four vector fields. The electric field intensity E\mathbf{E} (V/m) is the force per unit charge. The electric flux density D\mathbf{D} (C/m2^2) counts the charge that produces it. The magnetic field intensity H\mathbf{H} (A/m) counts the current that produces it, and the magnetic flux density B\mathbf{B} (T) is what pushes on moving charges. In a simple material they are linked by two constitutive relations with the permittivity ε\varepsilon and permeability μ\mu:

D=εE=εrε0E,B=μH=μrμ0H\mathbf{D} = \varepsilon \mathbf{E} = \varepsilon_r \varepsilon_0 \mathbf{E}, \qquad \mathbf{B} = \mu \mathbf{H} = \mu_r \mu_0 \mathbf{H}

In statics the electric and magnetic halves of the diagram are separate: charges make E\mathbf{E}, steady currents make H\mathbf{H}. When fields change in time, the two dashed couplings switch on. A changing B\mathbf{B} creates a circulating E\mathbf{E} (Faraday), and a changing D\mathbf{D} acts like a current that creates a circulating H\mathbf{H} (Maxwell's displacement current). Each field then sustains the other, and the pair can leave its sources behind as a wave. That is the whole course in one picture: Maxwell's four equations,

∇⋅D=ρv,∇⋅B=0,∇×E=−∂B∂t,∇×H=J+∂D∂t\nabla \cdot \mathbf{D} = \rho_v, \qquad \nabla \cdot \mathbf{B} = 0, \qquad \nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t}, \qquad \nabla \times \mathbf{H} = \mathbf{J} + \frac{\partial \mathbf{D}}{\partial t}

which you will build one at a time from experiments and then use as a single system in Maxwell's Equations.

When is a circuit not enough?

Circuit theory is the low-frequency limit of field theory. It works when a signal's wavelength λ\lambda is much longer than the circuit, so that the signal is effectively the same everywhere at once. A common engineering rule is to treat a conductor as lumped if its length ℓ\ell is below about λ/10\lambda/10 (stricter designs use λ/20\lambda/20), and as a distributed transmission line otherwise. The phase delay across the conductor is

ϕ=360∘⋅ℓλ,λ=vpf,vp=cεr\phi = 360^\circ \cdot \frac{\ell}{\lambda}, \qquad \lambda = \frac{v_p}{f}, \qquad v_p = \frac{c}{\sqrt{\varepsilon_r}}

for a non-magnetic insulator. Solid-polyethylene coax has εr≈2.25\varepsilon_r \approx 2.25, so vp≈0.667 cv_p \approx 0.667\,c, a velocity factor of two thirds.

Given: a 30 cm30\ \text{cm} coaxial cable with εr=2.25\varepsilon_r = 2.25; signals at 1 MHz1\ \text{MHz} and 1 GHz1\ \text{GHz}.

Find: the wavelength in the cable and the phase delay along it, and decide lumped or distributed.

Solve:

vp=2.998×108 m/s2.25=1.999×108 m/sf=1 MHz:λ=199.9 m,ϕ=360∘⋅0.30 m199.9 m=0.54∘(lumped)f=1 GHz:λ=0.1999 m,ϕ=360∘⋅1.501=540∘(distributed)\begin{aligned} v_p &= \frac{2.998 \times 10^8\ \text{m/s}}{\sqrt{2.25}} = 1.999 \times 10^8\ \text{m/s} \\ f = 1\ \text{MHz}: \quad \lambda &= 199.9\ \text{m}, \quad \phi = 360^\circ \cdot \frac{0.30\ \text{m}}{199.9\ \text{m}} = 0.54^\circ \quad \text{(lumped)} \\ f = 1\ \text{GHz}: \quad \lambda &= 0.1999\ \text{m}, \quad \phi = 360^\circ \cdot 1.501 = 540^\circ \quad \text{(distributed)} \end{aligned}

Check: the one-way delay is ℓ/vp=1.50 ns\ell/v_p = 1.50\ \text{ns}, independent of frequency; it matters only when it is a noticeable part of a period (1 ns1\ \text{ns} at 1 GHz1\ \text{GHz}, 1000 ns1000\ \text{ns} at 1 MHz1\ \text{MHz}). Power lines are the extreme case the other way: at 50 Hz50\ \text{Hz} a 1000 km1000\ \text{km} line (in air, λ≈6000 km\lambda \approx 6000\ \text{km}) is already a sixth of a wavelength, and power engineers do use the distributed model for long lines.

In Python

The constants and the check above, plus Maxwell's famous result that the speed of light follows from two static measurements, ε0\varepsilon_0 (from capacitors) and μ0\mu_0 (from forces between currents):

python · try it yourself
import numpy as np
from scipy import constants as k

eps0, mu0 = k.epsilon_0, k.mu_0
c = 1 / np.sqrt(mu0 * eps0)
print(f"eps0 = {eps0:.6e} F/m, mu0 = {mu0:.6e} H/m")
print(f"1/sqrt(mu0*eps0) = {c:.6e} m/s")
print(f"eta0 = sqrt(mu0/eps0) = {np.sqrt(mu0 / eps0):.3f} Ohm")
print(f"mu0/(4*pi*1e-7) - 1 = {mu0 / (4e-7 * np.pi) - 1:.1e}")

vp = c / np.sqrt(2.25)                       # solid-PE coax
length = 0.30                                # m
print(f"\nvelocity factor {vp / c:.3f}, delay {length / vp * 1e9:.2f} ns")
print(" f (Hz)    lambda (m)   l/lambda   phase (deg)  model")
for f in [50, 1e6, 1e8, 1e9, 5e9]:
    lam = vp / f
    frac = length / lam
    model = "lumped" if frac < 0.1 else "distributed"
    print(f"{f:8.0e}  {lam:11.4g}  {frac:9.3g}  {360 * frac:11.4g}  {model}")
eps0 = 8.854188e-12 F/m, mu0 = 1.256637e-06 H/m
1/sqrt(mu0*eps0) = 2.997925e+08 m/s
eta0 = sqrt(mu0/eps0) = 376.730 Ohm
mu0/(4*pi*1e-7) - 1 = 5.4e-10

velocity factor 0.667, delay 1.50 ns
 f (Hz)    lambda (m)   l/lambda   phase (deg)  model
   5e+01    3.997e+06   7.51e-08    2.702e-05  lumped
   1e+06        199.9     0.0015       0.5404  lumped
   1e+08        1.999       0.15        54.04  distributed
   1e+09       0.1999        1.5        540.4  distributed
   5e+09      0.03997       7.51         2702  distributed

Since the 2019 revision of the SI, μ0\mu_0 is a measured constant rather than exactly 4π×10−7 H/m4\pi \times 10^{-7}\ \text{H/m}, but the two differ by about 5 parts in 101010^{10} (the CODATA 2018 value printed above). This course uses μ0=4π×10−7 H/m\mu_0 = 4\pi \times 10^{-7}\ \text{H/m}, ε0=8.854×10−12 F/m\varepsilon_0 = 8.854 \times 10^{-12}\ \text{F/m}, c=2.998×108 m/sc = 2.998 \times 10^8\ \text{m/s} and η0≈376.7 Ω\eta_0 \approx 376.7\ \Omega (often rounded to 120π≈377 Ω120\pi \approx 377\ \Omega).

Interactive: a wave in free space

The ee-em-wave lab shows a plane wave at 100 MHz100\ \text{MHz}, the middle of the FM broadcast band. Its readouts give λ=2.998 m\lambda = 2.998\ \text{m} and, for the same frequency, the depth to which the wave penetrates copper: the skin depth δ=6.609 μm\delta = 6.609\ \mu\text{m}. Those two numbers frame most of the course: fields fill metres of space around a circuit, but they enter a good conductor only by micrometres. Move the frequency slider and watch both scale, λ∝1/f\lambda \propto 1/f and δ∝1/f\delta \propto 1/\sqrt{f}.

zxyEpeak 10.0 V/mHpeak 26.5 mA/m (x eta0)travels in +z; lambda = 3.00 m (2 wavelengths shown)yxE at z = 0, seen from behindlinear01/e101 delta2 delta3 delta4 delta5 delta|E|/|E surface|into copper at 100 MHz:skin depth delta = 6.61 umgood-conductor formula: 6.61 umsigma/(omega eps) = 1.04e+10

How field problems are solved

  1. Model. Choose the simplest geometry and material model that answers the question: an infinite line instead of a long wire, a perfect conductor instead of copper, a lossless line instead of a real cable.
  2. Exact solution. Use symmetry (Gauss, Ampère), a known solution (images, separation of variables) or a circuit model (capacitance, inductance, Z0Z_0). These give formulas you can reason with.
  3. Numerical solution. When the geometry is too irregular, solve the field equations on a grid: finite differences, FDTD, finite elements or the method of moments. A numerical solver is only trusted after it reproduces an exact case and its answer stops changing as the mesh is refined.
  4. Measure. Compare with a measurement (capacitance meter, LCR meter, scope, vector network analyser) within the measurement uncertainty (Measurement Uncertainty).

Conventions used in this course

  • Vectors are bold: E\mathbf{E}, H\mathbf{H}; unit vectors carry a hat: x^\hat{\mathbf{x}}, ρ^\hat{\boldsymbol{\rho}}, ϕ^\hat{\boldsymbol{\phi}}, r^\hat{\mathbf{r}}, θ^\hat{\boldsymbol{\theta}}, and n^\hat{\mathbf{n}} is a surface normal. Cylindrical coordinates are (ρ,ϕ,z)(\rho, \phi, z) and spherical coordinates (r,θ,ϕ)(r, \theta, \phi), with θ\theta measured from the zz axis.
  • Charge densities are ρv\rho_v (C/m3^3), ρs\rho_s (C/m2^2) and ρℓ\rho_\ell (C/m); surface current density is K\mathbf{K} (A/m). Voltage and potential are VV (school books often write UU); EMF is E\mathcal{E}.
  • Phasors. Time-harmonic fields use ejωte^{j\omega t} and peak phasors: E(t)=Re⁡{E~ ejωt}\mathbf{E}(t) = \operatorname{Re}\{\tilde{\mathbf{E}}\, e^{j\omega t}\}, so time-averaged powers carry a factor 12\frac{1}{2}. (The circuit courses used rms phasors, which drop that factor.) A wave travelling in +z+z varies as e−γze^{-\gamma z} with γ=α+jβ\gamma = \alpha + j\beta.
  • Worked examples use Given / Find / Solve / Check, with units on every quantity.
  • Code. Python runs in your browser (NumPy, SciPy, SymPy, Matplotlib, and skrf for transmission-line work). Grids are kept small so every example finishes in seconds. Transmission-line decks run in ngspice 42.

Safety

Field theory is mostly paper, Python and simulation, and the hands-on parts of this course stay low voltage: a bench supply set to at most 24 V24\ \text{V} DC with its current limit on, function generators, and low-power RF from a signal generator into a matched load. Two topics are calculation only: high-voltage electrostatics (breakdown, corona, large capacitors) and exposure to strong radio-frequency fields. Never open microwave ovens or transmitters, never look into a waveguide or a horn that may be fed, and treat the exposure limits in Poynting's Theorem as numbers to calculate with, not to test.

Practice

  1. At what frequency does a 15 cm15\ \text{cm} PCB trace on FR-4 (effective εr≈3.4\varepsilon_r \approx 3.4 for a microstrip) reach λ/10\lambda/10?
  2. Which of E\mathbf{E}, D\mathbf{D}, H\mathbf{H}, B\mathbf{B} has units of tesla, and which of coulombs per square metre?
  3. Show that μ0/ε0\sqrt{\mu_0/\varepsilon_0} has units of ohms.
Answer
  1. vp=2.998×108/3.4=1.626×108 m/sv_p = 2.998 \times 10^8/\sqrt{3.4} = 1.626 \times 10^8\ \text{m/s}; λ/10=0.15 m\lambda/10 = 0.15\ \text{m} means λ=1.5 m\lambda = 1.5\ \text{m}, so f=1.626×108/1.5≈108 MHzf = 1.626 \times 10^8/1.5 \approx 108\ \text{MHz}.
  2. B\mathbf{B} is in tesla; D\mathbf{D} is in C/m2^2.
  3. H/m=Ω⋅s/m\text{H/m} = \Omega \cdot \text{s/m} and F/m=s/(Ω⋅m)\text{F/m} = \text{s}/(\Omega \cdot \text{m}), so the ratio is Ω2\Omega^2 and its square root is Ω\Omega.

Test yourself

A 30 cm30\ \text{cm} cable with velocity factor 0.6670.667 carries a 100 MHz100\ \text{MHz} signal. Lumped or distributed by the λ/10\lambda/10 rule?

  1. lumped: ℓ/λ=0.0015\ell/\lambda = 0.0015
  2. distributed: ℓ/λ=0.15\ell/\lambda = 0.15
  3. lumped: ℓ/λ=0.05\ell/\lambda = 0.05
  4. distributed: ℓ/λ=1.5\ell/\lambda = 1.5

Which constitutive relation links the electric flux density to the electric field in a simple dielectric?

  1. B=μH\mathbf{B} = \mu \mathbf{H}
  2. D=εE\mathbf{D} = \varepsilon \mathbf{E}
  3. J=σE\mathbf{J} = \sigma \mathbf{E}
  4. E=−∇V\mathbf{E} = -\nabla V

Which term in Maxwell's equations lets a changing electric field produce a magnetic field?

  1. ρv\rho_v in Gauss's law
  2. ∂B/∂t\partial \mathbf{B}/\partial t in Faraday's law
  3. the displacement current ∂D/∂t\partial \mathbf{D}/\partial t
  4. ∇⋅B=0\nabla \cdot \mathbf{B} = 0

This course writes time-harmonic fields with peak phasors. The time-averaged power density of a plane wave of peak field E0E_0 in free space is therefore…

  1. E02/η0E_0^2/\eta_0
  2. E02/(2η0)E_0^2/(2\eta_0)
  3. 2E02/η02E_0^2/\eta_0
  4. E0/η0E_0/\eta_0