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: , , , .
Vector calculus and electrostatics
1. (Gradient, Divergence, Curl, Poisson's and Laplace's Equations) In free space the potential is (, in metres). Find at and the charge density there.
2. (Coulomb's Law and the Electric Field) A charge sits at the origin and a charge at . Find at .
3. (Gauss's Law for Symmetric Charge Distributions) A long cylinder of radius carries a uniform in free space. Find at and .
4. (Capacitance, Electrostatic Energy) A spherical capacitor has , and a dielectric with . Find and the energy stored at .
5. (Electrostatic Boundary Conditions) The plane separates region 1 (, ) from region 2 (, ), with no surface charge. In region 1, . Find .
6. (Dielectrics, Capacitance) A parallel-plate capacitor of area has two layers: with and with . Find and the field in each layer at . Which layer would break down first?
Answers 1 to 6
- . , so .
- , . The point is from each charge; the parts partly cancel, the parts add (both point towards ).
- Inside, ; outside, , both radial outwards.
- ; .
- Tangential is continuous and normal is continuous: , so . The field bends towards the boundary in the higher-permittivity region.
- . is the same in both layers, so and . 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 point charge is 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 and the other three walls at (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 coaxial cable has , and insulation with , . Find the insulation (leakage) resistance between the conductors and the insulation's charge relaxation time.
Answers 7 to 9
- The image is at below the plane: , attractive. .
- . Superpose four problems, each with a different wall at : by symmetry each gives the same centre potential, and their sum has all four walls at , whose solution is everywhere. So each gives . A finite-difference solver should reproduce this to the accuracy of its grid.
- . : 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 carries . Find at its centre.
11. (Ampère's Circuital Law, Magnetic Materials) A toroid of mean radius has turns carrying . Find and at the mean radius with an air core and with a ferrite core of (assume it is not saturated). Is that assumption safe?
12. (Magnetic Circuits, Inductance) A core has a mean path of , cross-section , and a air gap; . Ignoring fringing and leakage, find the current for in the gap, and the inductance.
13. (Inductance) Find the external inductance per metre of a coax with , .
Answers 10 to 13
- Each side gives (the finite-wire formula with end angles at distance ), so , perpendicular to the loop.
- . Air: . Ferrite: . Not safe: power ferrites typically saturate around to at and less when hot (check the datasheet), so the real would be lower and no longer constant.
- , , . , . . The half-millimetre gap holds five times the core's reluctance.
- .
Time-varying fields and waves
14. (Faraday's and Lenz's Laws) A loop lies normal to . Find the peak EMF.
15. (Motional EMF) A rod slides at on rails across , closing a circuit of . Find the EMF, the current, the braking force and the mechanical power needed.
16. (Displacement Current) (a) A capacitor has peak across it at : find the peak displacement current between its plates. (b) For sea water (, ) at , find the ratio of conduction to displacement current density.
17. (Uniform Plane Waves, Poynting's Theorem) A plane wave with travels in a lossless dielectric with , . Find , , and the time-averaged power density.
18. (Lossy Media and Skin Depth) Find the skin depth of copper at and at . Why are large busbars at made as flat strips or hollow tubes?
19. (Reflection at Normal Incidence) A plane wave in air meets glass () at normal incidence. Find , 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
- .
- , , opposing the motion (Lenz), .
- (a) peak, equal to the conduction current in the leads. (b) : sea water is a good conductor at .
- , , , , .
- : at , at . Copper deeper than about from the surface carries little current even at , so solid round bars much thicker than waste metal.
- ; , , reflected power (the familiar per glass surface).
- (parallel polarisation only); .
Transmission lines, guides and radiation
21. (Reflection Coefficient and VSWR, Input Impedance) A line ends in . Find , the VSWR, and the input impedance from the load.
22. (Input Impedance and the Quarter-Wave Transformer, The Smith Chart) What quarter-wave section matches a resistive load to a line? Why does it not work directly for the load of problem 21?
23. (Transients and Bounce Diagrams) A step with drives an open-ended line of one-way delay . Find the load voltage after , and , and its final value.
24. (Rectangular Waveguides) A WR-90 guide is inside. Find the cutoff frequencies of TE, TE and TE, the single-mode band, and the guide wavelength at .
25. (Cavity Resonators) A length of that guide is closed at both ends. Find the TE resonant frequency.
26. (Radiation) Find the radiation resistance of a short dipole at (uniform current) and compare it with a half-wave dipole.
27. (The FDTD Method) For cells of , what is the largest stable time step in 1-D and in 2-D (square cells)?
Answers 21 to 27
- , VSWR . At , : .
- . 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.
- , , . Load: at , at , at , settling to . Check it in the
ee-transmission-linelab with and an open end. - (TE), (TE), (TE). Single mode from to (in practice used from about to ). .
- .
- , for uniform current (a quarter of that, , with the triangular current of a real short dipole). A half-wave dipole has about , much easier to feed efficiently.
- 1-D: ; 2-D: .
Check a few answers in Python
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?
- normal and tangential
- tangential and normal
- all components of
- only normal
A magnetic circuit has a core reluctance of and a gap of . Doubling the core's changes the inductance by about…
- nothing at all
The skin depth of copper at is about…
A step drives an open-ended line from a source with . The load voltage…
- rises monotonically to the source voltage
- overshoots, then rings towards the source voltage
- stays at the launched wave forever
- settles at twice the source voltage
What is the largest stable FDTD time step for 2-D square cells of in vacuum?