TExcelTAD

Electromagnetics Exercises

These problems cover the whole course in its order. Each one names the lesson it practises; try it on paper first (sketch the geometry, mark the directions, write the formula with units), then open the answer. The last section is a short Python script that checks a selection of the answers, so you can see how a numerical check is set up. Constants: ε0=8.854×10−12 F/m\varepsilon_0 = 8.854 \times 10^{-12}\ \text{F/m}, μ0=4π×10−7 H/m\mu_0 = 4\pi \times 10^{-7}\ \text{H/m}, c=2.998×108 m/sc = 2.998 \times 10^8\ \text{m/s}, 1/(4πε0)=8.988×109 m/F1/(4\pi\varepsilon_0) = 8.988 \times 10^9\ \text{m/F}.

sketchaxes, normals chooselaw, symmetry solvewith units checklimits, units verifyPython, lab a disagreement sends you back to the sketch

Vector calculus and electrostatics

1. (Gradient, Divergence, Curl, Poisson's and Laplace's Equations) In free space the potential is V=50x2y VV = 50x^2 y\ \text{V} (xx, yy in metres). Find E\mathbf{E} at (1,2,0) m(1, 2, 0)\ \text{m} and the charge density ρv\rho_v there.

2. (Coulomb's Law and the Electric Field) A 2 nC2\ \text{nC} charge sits at the origin and a −3 nC-3\ \text{nC} charge at (0.1,0,0) m(0.1, 0, 0)\ \text{m}. Find E\mathbf{E} at (0.05,0.05,0) m(0.05, 0.05, 0)\ \text{m}.

3. (Gauss's Law for Symmetric Charge Distributions) A long cylinder of radius 2 cm2\ \text{cm} carries a uniform ρv=1 μC/m3\rho_v = 1\ \mu\text{C/m}^3 in free space. Find EE at ρ=1 cm\rho = 1\ \text{cm} and ρ=3 cm\rho = 3\ \text{cm}.

4. (Capacitance, Electrostatic Energy) A spherical capacitor has a=1 cma = 1\ \text{cm}, b=2 cmb = 2\ \text{cm} and a dielectric with εr=4\varepsilon_r = 4. Find CC and the energy stored at 100 V100\ \text{V}.

5. (Electrostatic Boundary Conditions) The plane z=0z = 0 separates region 1 (z>0z > 0, εr1=2\varepsilon_{r1} = 2) from region 2 (z<0z < 0, εr2=5\varepsilon_{r2} = 5), with no surface charge. In region 1, E1=3x^+4y^+10z^ V/m\mathbf{E}_1 = 3\hat{\mathbf{x}} + 4\hat{\mathbf{y}} + 10\hat{\mathbf{z}}\ \text{V/m}. Find E2\mathbf{E}_2.

6. (Dielectrics, Capacitance) A parallel-plate capacitor of area 10 cm210\ \text{cm}^2 has two layers: 1 mm1\ \text{mm} with εr=2\varepsilon_r = 2 and 2 mm2\ \text{mm} with εr=8\varepsilon_r = 8. Find CC and the field in each layer at 100 V100\ \text{V}. Which layer would break down first?

Answers 1 to 6
  1. E=−∇V=−(100xy x^+50x2 y^)=−200x^−50y^ V/m\mathbf{E} = -\nabla V = -(100xy\,\hat{\mathbf{x}} + 50x^2\,\hat{\mathbf{y}}) = -200\hat{\mathbf{x}} - 50\hat{\mathbf{y}}\ \text{V/m}. ∇2V=100y=200 V/m2\nabla^2 V = 100y = 200\ \text{V/m}^2, so ρv=−ε0∇2V=−1.771×10−9 C/m3\rho_v = -\varepsilon_0 \nabla^2 V = -1.771 \times 10^{-9}\ \text{C/m}^3.
  2. E=6355x^−1271y^ V/m\mathbf{E} = 6355\hat{\mathbf{x}} - 1271\hat{\mathbf{y}}\ \text{V/m}, ∣E∣=6481 V/m\lvert\mathbf{E}\rvert = 6481\ \text{V/m}. The point is 7.07 cm7.07\ \text{cm} from each charge; the yy parts partly cancel, the xx parts add (both point towards +x+x).
  3. Inside, E=ρvρ/(2ε0)=564.7 V/mE = \rho_v \rho/(2\varepsilon_0) = 564.7\ \text{V/m}; outside, E=ρva2/(2ε0ρ)=753.0 V/mE = \rho_v a^2/(2\varepsilon_0 \rho) = 753.0\ \text{V/m}, both radial outwards.
  4. C=4πεab/(b−a)=8.90 pFC = 4\pi\varepsilon ab/(b - a) = 8.90\ \text{pF}; W=12CV2=44.5 nJW = \frac{1}{2}CV^2 = 44.5\ \text{nJ}.
  5. Tangential E\mathbf{E} is continuous and normal D\mathbf{D} is continuous: E2z=(2/5)⋅10=4 V/mE_{2z} = (2/5) \cdot 10 = 4\ \text{V/m}, so E2=3x^+4y^+4z^ V/m\mathbf{E}_2 = 3\hat{\mathbf{x}} + 4\hat{\mathbf{y}} + 4\hat{\mathbf{z}}\ \text{V/m}. The field bends towards the boundary in the higher-permittivity region.
  6. C=ε0A/(d1/εr1+d2/εr2)=11.81 pFC = \varepsilon_0 A/(d_1/\varepsilon_{r1} + d_2/\varepsilon_{r2}) = 11.81\ \text{pF}. DD is the same in both layers, so E1=66.7 kV/mE_1 = 66.7\ \text{kV/m} and E2=16.7 kV/mE_2 = 16.7\ \text{kV/m}. The thin, low-permittivity layer carries four times the field and breaks down first if both materials have similar strength: the reason air gaps and voids in insulation are dangerous.

Boundary-value problems and steady currents

7. (The Method of Images) A 5 nC5\ \text{nC} point charge is 10 cm10\ \text{cm} above a grounded conducting plane. Find the force on it and the surface charge density on the plane directly below it.

8. (Separation of Variables, Finite Differences) A long square pipe has its top wall at 100 V100\ \text{V} and the other three walls at 0 V0\ \text{V} (insulated at the corners). What is the potential on its axis? Give a one-line argument that needs no series.

9. (Resistance of Conductors of Any Shape, Current Density and Continuity) A 100 m100\ \text{m} coaxial cable has a=0.5 mma = 0.5\ \text{mm}, b=2 mmb = 2\ \text{mm} and insulation with σ=10−12 S/m\sigma = 10^{-12}\ \text{S/m}, εr=2.3\varepsilon_r = 2.3. Find the insulation (leakage) resistance between the conductors and the insulation's charge relaxation time.

Answers 7 to 9
  1. The image is −5 nC-5\ \text{nC} at 10 cm10\ \text{cm} below the plane: F=q2/(4πε0(2h)2)=5.62 μNF = q^2/(4\pi\varepsilon_0 (2h)^2) = 5.62\ \mu\text{N}, attractive. ρs=−q/(2πh2)=−79.6 nC/m2\rho_s = -q/(2\pi h^2) = -79.6\ \text{nC/m}^2.
  2. 25 V25\ \text{V}. Superpose four problems, each with a different wall at 100 V100\ \text{V}: by symmetry each gives the same centre potential, and their sum has all four walls at 100 V100\ \text{V}, whose solution is 100 V100\ \text{V} everywhere. So each gives 25 V25\ \text{V}. A finite-difference solver should reproduce this to the accuracy of its grid.
  3. R=ln⁡(b/a)/(2πσL)=2.21 GΩR = \ln(b/a)/(2\pi\sigma L) = 2.21\ \text{G}\Omega. τ=ε/σ=20.4 s\tau = \varepsilon/\sigma = 20.4\ \text{s}: in a good insulator a charge imbalance lingers for seconds, which is why a disconnected cable can still hold a charge.

Magnetostatics

10. (The Biot–Savart Law) A square loop of side 10 cm10\ \text{cm} carries 2 A2\ \text{A}. Find BB at its centre.

11. (Ampère's Circuital Law, Magnetic Materials) A toroid of mean radius 5 cm5\ \text{cm} has 500500 turns carrying 0.2 A0.2\ \text{A}. Find HH and BB at the mean radius with an air core and with a ferrite core of μr=2000\mu_r = 2000 (assume it is not saturated). Is that assumption safe?

12. (Magnetic Circuits, Inductance) A core has a mean path of 20 cm20\ \text{cm}, cross-section 4 cm24\ \text{cm}^2, μr=2000\mu_r = 2000 and a 0.5 mm0.5\ \text{mm} air gap; N=200N = 200. Ignoring fringing and leakage, find the current for B=0.5 TB = 0.5\ \text{T} in the gap, and the inductance.

13. (Inductance) Find the external inductance per metre of a coax with a=1 mma = 1\ \text{mm}, b=3.5 mmb = 3.5\ \text{mm}.

Answers 10 to 13
  1. Each side gives μ0I2/(2πa)\mu_0 I \sqrt{2}/(2\pi a) (the finite-wire formula with 45∘45^\circ end angles at distance a/2a/2), so B=22μ0I/(πa)=22.6 μTB = 2\sqrt{2}\mu_0 I/(\pi a) = 22.6\ \mu\text{T}, perpendicular to the loop.
  2. H=NI/(2πr)=318.3 A/mH = NI/(2\pi r) = 318.3\ \text{A/m}. Air: B=0.400 mTB = 0.400\ \text{mT}. Ferrite: B=0.800 TB = 0.800\ \text{T}. Not safe: power ferrites typically saturate around 0.40.4 to 0.5 T0.5\ \text{T} at 25 ∘C25\,^\circ\text{C} and less when hot (check the datasheet), so the real BB would be lower and μr\mu_r no longer constant.
  3. Rcore=1.99×105 A/Wb\mathcal{R}_\text{core} = 1.99 \times 10^5\ \text{A/Wb}, Rgap=9.95×105 A/Wb\mathcal{R}_\text{gap} = 9.95 \times 10^5\ \text{A/Wb}, Φ=0.2 mWb\Phi = 0.2\ \text{mWb}. NI=Φ(Rcore+Rgap)=238.7 A-turnsNI = \Phi(\mathcal{R}_\text{core} + \mathcal{R}_\text{gap}) = 238.7\ \text{A-turns}, I=1.19 AI = 1.19\ \text{A}. L=N2/R=33.5 mHL = N^2/\mathcal{R} = 33.5\ \text{mH}. The half-millimetre gap holds five times the core's reluctance.
  4. L′=(μ0/2π)ln⁡(b/a)=0.251 μH/mL' = (\mu_0/2\pi)\ln(b/a) = 0.251\ \mu\text{H/m}.

Time-varying fields and waves

14. (Faraday's and Lenz's Laws) A 10×20 cm10 \times 20\ \text{cm} loop lies normal to B=50sin⁡(2π⋅50 t) mTB = 50\sin(2\pi \cdot 50\,t)\ \text{mT}. Find the peak EMF.

15. (Motional EMF) A 0.5 m0.5\ \text{m} rod slides at 4 m/s4\ \text{m/s} on rails across B=0.2 TB = 0.2\ \text{T}, closing a circuit of 2 Ω2\ \Omega. Find the EMF, the current, the braking force and the mechanical power needed.

16. (Displacement Current) (a) A 100 pF100\ \text{pF} capacitor has 10 V10\ \text{V} peak across it at 1 MHz1\ \text{MHz}: find the peak displacement current between its plates. (b) For sea water (σ=4 S/m\sigma = 4\ \text{S/m}, εr=81\varepsilon_r = 81) at 1 MHz1\ \text{MHz}, find the ratio of conduction to displacement current density.

17. (Uniform Plane Waves, Poynting's Theorem) A 1 GHz1\ \text{GHz} plane wave with E0=10 V/mE_0 = 10\ \text{V/m} travels in a lossless dielectric with εr=4\varepsilon_r = 4, μr=1\mu_r = 1. Find λ\lambda, η\eta, H0H_0 and the time-averaged power density.

18. (Lossy Media and Skin Depth) Find the skin depth of copper at 50 Hz50\ \text{Hz} and at 1 MHz1\ \text{MHz}. Why are large busbars at 50 Hz50\ \text{Hz} made as flat strips or hollow tubes?

19. (Reflection at Normal Incidence) A plane wave in air meets glass (εr=2.25\varepsilon_r = 2.25) at normal incidence. Find Γ\Gamma, τ\tau and the fraction of power reflected.

20. (Oblique Incidence) For the same glass, find the Brewster angle from air and the critical angle from inside the glass.

Answers 14 to 20
  1. Epeak=ωB0A=2π⋅50⋅0.05⋅0.02=0.314 V\mathcal{E}_\text{peak} = \omega B_0 A = 2\pi \cdot 50 \cdot 0.05 \cdot 0.02 = 0.314\ \text{V}.
  2. E=Bℓv=0.4 V\mathcal{E} = B\ell v = 0.4\ \text{V}, I=0.2 AI = 0.2\ \text{A}, F=BIℓ=0.02 NF = BI\ell = 0.02\ \text{N} opposing the motion (Lenz), P=Fv=0.08 W=EIP = Fv = 0.08\ \text{W} = \mathcal{E}I.
  3. (a) Id=ωCV=6.28 mAI_d = \omega C V = 6.28\ \text{mA} peak, equal to the conduction current in the leads. (b) σ/(ωε)=888\sigma/(\omega\varepsilon) = 888: sea water is a good conductor at 1 MHz1\ \text{MHz}.
  4. vp=c/2=1.499×108 m/sv_p = c/2 = 1.499 \times 10^8\ \text{m/s}, λ=0.150 m\lambda = 0.150\ \text{m}, η=376.7/2=188.4 Ω\eta = 376.7/2 = 188.4\ \Omega, H0=E0/η=53.1 mA/mH_0 = E_0/\eta = 53.1\ \text{mA/m}, S=E02/(2η)=0.265 W/m2S = E_0^2/(2\eta) = 0.265\ \text{W/m}^2.
  5. δ=1/πfμ0σ\delta = 1/\sqrt{\pi f \mu_0 \sigma}: 9.35 mm9.35\ \text{mm} at 50 Hz50\ \text{Hz}, 66.1 μm66.1\ \mu\text{m} at 1 MHz1\ \text{MHz}. Copper deeper than about 10 mm10\ \text{mm} from the surface carries little current even at 50 Hz50\ \text{Hz}, so solid round bars much thicker than 2δ2\delta waste metal.
  6. η2=η0/1.5\eta_2 = \eta_0/1.5; Γ=(η2−η1)/(η2+η1)=−0.2\Gamma = (\eta_2 - \eta_1)/(\eta_2 + \eta_1) = -0.2, τ=1+Γ=0.8\tau = 1 + \Gamma = 0.8, reflected power ∣Γ∣2=4 %\lvert\Gamma\rvert^2 = 4\ \% (the familiar 4 %4\ \% per glass surface).
  7. θB=arctan⁡(n2/n1)=arctan⁡1.5=56.3∘\theta_B = \arctan(n_2/n_1) = \arctan 1.5 = 56.3^\circ (parallel polarisation only); θc=arcsin⁡(1/1.5)=41.8∘\theta_c = \arcsin(1/1.5) = 41.8^\circ.

Transmission lines, guides and radiation

21. (Reflection Coefficient and VSWR, Input Impedance) A 50 Ω50\ \Omega line ends in ZL=100+j50 ΩZ_L = 100 + j50\ \Omega. Find ΓL\Gamma_L, the VSWR, and the input impedance λ/8\lambda/8 from the load.

22. (Input Impedance and the Quarter-Wave Transformer, The Smith Chart) What quarter-wave section matches a 200 Ω200\ \Omega resistive load to a 50 Ω50\ \Omega line? Why does it not work directly for the load of problem 21?

23. (Transients and Bounce Diagrams) A 10 V10\ \text{V} step with Rs=25 ΩR_s = 25\ \Omega drives an open-ended 50 Ω50\ \Omega line of one-way delay TDT_D. Find the load voltage after TDT_D, 3TD3T_D and 5TD5T_D, and its final value.

24. (Rectangular Waveguides) A WR-90 guide is 22.86×10.16 mm22.86 \times 10.16\ \text{mm} inside. Find the cutoff frequencies of TE10_{10}, TE20_{20} and TE01_{01}, the single-mode band, and the guide wavelength at 10 GHz10\ \text{GHz}.

25. (Cavity Resonators) A 30 mm30\ \text{mm} length of that guide is closed at both ends. Find the TE101_{101} resonant frequency.

26. (Radiation) Find the radiation resistance of a 1 m1\ \text{m} short dipole at 30 MHz30\ \text{MHz} (uniform current) and compare it with a half-wave dipole.

27. (The FDTD Method) For cells of 1 mm1\ \text{mm}, what is the largest stable time step in 1-D and in 2-D (square cells)?

Answers 21 to 27
  1. ΓL=(50+j50)/(150+j50)=0.447∠26.6∘\Gamma_L = (50 + j50)/(150 + j50) = 0.447\angle 26.6^\circ, VSWR =2.62= 2.62. At λ/8\lambda/8, tan⁡βℓ=1\tan\beta\ell = 1: Zin=50 (ZL+j50)/(50+jZL)=50−j50 ΩZ_\text{in} = 50\,(Z_L + j50)/(50 + jZ_L) = 50 - j50\ \Omega.
  2. Z1=200⋅50=100 ΩZ_1 = \sqrt{200 \cdot 50} = 100\ \Omega. A quarter-wave transformer needs a real load. For a complex load first move along the line (or add a stub) to a point where the impedance is real (a voltage maximum or minimum), then transform; the Smith chart shows both steps.
  3. V1=10⋅50/75=6.67 VV_1 = 10 \cdot 50/75 = 6.67\ \text{V}, ΓL=+1\Gamma_L = +1, ΓS=−1/3\Gamma_S = -1/3. Load: 13.33 V13.33\ \text{V} at TDT_D, 8.89 V8.89\ \text{V} at 3TD3T_D, 10.37 V10.37\ \text{V} at 5TD5T_D, settling to 10 V10\ \text{V}. Check it in the ee-transmission-line lab with Rs=25 ΩR_s = 25\ \Omega and an open end.
  4. fc=c/(2a)=6.557 GHzf_c = c/(2a) = 6.557\ \text{GHz} (TE10_{10}), 13.11 GHz13.11\ \text{GHz} (TE20_{20}), c/(2b)=14.75 GHzc/(2b) = 14.75\ \text{GHz} (TE01_{01}). Single mode from 6.566.56 to 13.11 GHz13.11\ \text{GHz} (in practice used from about 8.28.2 to 12.4 GHz12.4\ \text{GHz}). λg=λ0/1−(fc/f)2=39.7 mm\lambda_g = \lambda_0/\sqrt{1 - (f_c/f)^2} = 39.7\ \text{mm}.
  5. f101=c2(1/a)2+(1/d)2=8.24 GHzf_{101} = \frac{c}{2}\sqrt{(1/a)^2 + (1/d)^2} = 8.24\ \text{GHz}.
  6. λ=10 m\lambda = 10\ \text{m}, Rrad=80π2(ℓ/λ)2=7.90 ΩR_\text{rad} = 80\pi^2(\ell/\lambda)^2 = 7.90\ \Omega for uniform current (a quarter of that, 1.97 Ω1.97\ \Omega, with the triangular current of a real short dipole). A half-wave dipole has about 73 Ω73\ \Omega, much easier to feed efficiently.
  7. 1-D: Δt≤Δx/c=3.34 ps\Delta t \le \Delta x/c = 3.34\ \text{ps}; 2-D: Δt≤Δx/(c2)=2.36 ps\Delta t \le \Delta x/(c\sqrt{2}) = 2.36\ \text{ps}.

Check a few answers in Python

python · try it yourself
import numpy as np

EPS0, MU0, C0 = 8.854e-12, 4e-7 * np.pi, 2.998e8
K = 1 / (4 * np.pi * EPS0)

# 2. two point charges
E = np.zeros(3)
for q, pos in [(2e-9, (0, 0, 0)), (-3e-9, (0.1, 0, 0))]:
    r = np.array([0.05, 0.05, 0]) - np.array(pos)
    E += K * q * r / np.linalg.norm(r)**3
print(f"2.  E = ({E[0]:.0f}, {E[1]:.0f}, {E[2]:.0f}) V/m, |E| = {np.linalg.norm(E):.0f} V/m")

# 12. magnetic circuit with an air gap
area, n = 4e-4, 200
r_core = 0.2 / (2000 * MU0 * area)
r_gap = 0.5e-3 / (MU0 * area)
ni = 0.5 * area * (r_core + r_gap)
print(f"12. NI = {ni:.1f} A-turns, I = {ni/n:.3f} A, L = {n**2/(r_core + r_gap)*1e3:.1f} mH")

# 21. load on a 50 Ohm line
zl, z0 = 100 + 50j, 50
g = (zl - z0) / (zl + z0)
zin = z0 * (zl + 1j * z0 * np.tan(np.pi / 4)) / (z0 + 1j * zl * np.tan(np.pi / 4))
print(f"21. |Gamma| = {abs(g):.3f} at {np.degrees(np.angle(g)):.1f} deg, VSWR = {(1+abs(g))/(1-abs(g)):.2f}, "
      f"Zin = {zin.real:.1f}{zin.imag:+.1f}j Ohm")

# 23. bounce on an open line: sum the waves arriving at the load
v1, gs, gl = 10 * 50 / 75, (25 - 50) / 75, 1.0
v_load, a = 0.0, v1
for k in range(3):
    v_load += a * (1 + gl)
    print(f"23. load voltage after {2*k+1} Td: {v_load:.2f} V")
    a *= gl * gs

# 24. WR-90 cutoff and guide wavelength
a_wg, b_wg = 22.86e-3, 10.16e-3
fc = C0 / (2 * a_wg)
lg = (C0 / 10e9) / np.sqrt(1 - (fc / 10e9)**2)
print(f"24. fc(TE10) = {fc/1e9:.3f} GHz, fc(TE01) = {C0/(2*b_wg)/1e9:.2f} GHz, guide wavelength {lg*1e3:.1f} mm")
2.  E = (6355, -1271, 0) V/m, |E| = 6481 V/m
12. NI = 238.7 A-turns, I = 1.194 A, L = 33.5 mH
21. |Gamma| = 0.447 at 26.6 deg, VSWR = 2.62, Zin = 50.0-50.0j Ohm
23. load voltage after 1 Td: 13.33 V
23. load voltage after 3 Td: 8.89 V
23. load voltage after 5 Td: 10.37 V
24. fc(TE10) = 6.557 GHz, fc(TE01) = 14.75 GHz, guide wavelength 39.7 mm

Test yourself

Across a charge-free boundary between two dielectrics, which field components are continuous?

  1. normal E\mathbf{E} and tangential D\mathbf{D}
  2. tangential E\mathbf{E} and normal D\mathbf{D}
  3. all components of E\mathbf{E}
  4. only normal E\mathbf{E}

A magnetic circuit has a core reluctance of 2×105 A/Wb2 \times 10^5\ \text{A/Wb} and a gap of 1×106 A/Wb1 \times 10^6\ \text{A/Wb}. Doubling the core's μr\mu_r changes the inductance by about…

  1. +100 %+100\ \%
  2. +9 %+9\ \%
  3. −50 %-50\ \%
  4. nothing at all

The skin depth of copper at 1 MHz1\ \text{MHz} is about…

  1. 9.3 mm9.3\ \text{mm}
  2. 0.66 mm0.66\ \text{mm}
  3. 66 μm66\ \mu\text{m}
  4. 6.6 μm6.6\ \mu\text{m}

A step drives an open-ended line from a source with Rs<Z0R_s < Z_0. The load voltage…

  1. rises monotonically to the source voltage
  2. overshoots, then rings towards the source voltage
  3. stays at the launched wave forever
  4. settles at twice the source voltage

What is the largest stable FDTD time step for 2-D square cells of 1 mm1\ \text{mm} in vacuum?

  1. 3.34 ps3.34\ \text{ps}
  2. 2.36 ps2.36\ \text{ps}
  3. 1.67 ps1.67\ \text{ps}
  4. 4.72 ps4.72\ \text{ps}