Why Use This Book?

This page was last updated November 14, 2026.

Physics of Electricity and Magnetism is a textbook for a two-semester, upper-division course in electricity and magnetism. The first half covers vector calculus, electrostatics, magnetostatics, and the time-dependent Maxwell equations; the second half covers circuits, conservation laws, electromagnetic waves (in vacuum, in materials, and in waveguides), relativity, and the fields and radiation of moving charges. This page describes what sets the book apart. The book is still being revised, and this page is updated as it changes.

Free, and made to be read on a screen

  • Free. The whole book is a free download from this web site (current version), and so are its animations, its printable tutorials, and the data files for its exercises.
  • Linked. Because the book is electronic rather than printed, every reference to a section, equation, figure, example, or exercise is a link. Links also lead from the book to the animations, the printable tutorials, and the data files on this web site, and from each historical sketch to further reading.
  • Revised as it is used. Errors can be fixed and explanations improved as soon as they are found. The title page gives the date of the latest revision.

Built on physics education research

Much of the book's structure comes from research on how students learn upper-division electricity and magnetism, and on how people learn in general. Together its features support an active-learning course: students read and answer questions before class, work through problems together in class, and review the concepts afterward. The physics education research page describes the research and lists every change made because of it.

  • Warm-up questions. Short questions at the start of each section's exercises, to be answered after reading the section and before class (“just-in-time teaching”), so that the instructor knows before class what students found hard. Each set ends by asking students to summarize the section and to say what they found hardest to understand. They are being added chapter by chapter, from the beginning of the book.
  • Tutorials. Fifteen guided activities for students working in small groups, each part of a chapter and each with a printable version to hand out in class. Several are revisions of tutorials developed and studied in BYU's course.
  • Conceptual questions. True/false questions, and some multiple-choice questions, that test understanding rather than calculation, at the end of most chapters' exercises. A fuller end-of-chapter review is planned, which mixes problems from different sections so that students must first decide how to solve each one (Chapter 4 is the pilot chapter).
  • Extra attention where students struggle most. Research shows that the hardest part of upper-division electricity and magnetism is setting up a problem rather than doing the mathematics: choosing a method, and building an integral for a particular situation. The book returns to these skills again and again, with “Which method?” flowcharts for electrostatics, magnetostatics, and fields that change in time, and it adds explanations, figures, and warnings on other topics that research has found difficult, such as pictures of divergence and curl, and the displacement current.

Worked examples solved the way students should solve them

  • More than 140 worked examples. Each solution is written out step by step in a handwriting-style font, with more of the steps shown than a lecture usually has time for, and almost every one begins with a sketch of what is given and what is asked.
  • Each method is carried out the same way every time it is used. For example, every problem solved with the separation vector (the “script-r” method) first writes out the position vectors, one per line, before any integral is set up.
  • “Reality checks” (units, limiting cases, or the result found a second way) and “why?” questions, with their answers in footnotes, model the habit of checking and explaining each step (in Chapters 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 18, 19, and 20 so far).
  • A few essential habits are stated as memorable rules, “Colton's Commandments,” such as always drawing the Gaussian surface or the Amperian loop.

Figures, history, and animations

  • More than 700 figures, most of them in the wide outer margin beside the text they illustrate, so that nearly every page has a picture next to the words it explains. Many are computed rather than sketched: field lines, equipotentials, and plots are traced numerically.
  • Short biographies of about 80 scientists, most with portraits, placed beside the laws and results that carry their names.
  • Twenty-nine animations, each linked from the caption of the figure in the book that shows one of its frames.

Computation as a first-class tool

  • Nearly every chapter that finds a field also shows how to find it on a computer: direct integration of Coulomb's law and the Biot–Savart law, the relaxation method for Laplace's and Poisson's equations (with dielectrics and magnetic materials too), particle trajectories in electric and magnetic fields (relativistic ones included), the modes of a waveguide of any shape, the fields of an arbitrarily moving charge, and antennas of any length.
  • Exercises that require computation, some with data files, and short “Tips for Mathematica and Python” in many chapters.
  • The last exercise of nearly every chapter asks students to use AI tools to do something computational beyond what they could do on their own, to explore one of the chapter's ideas.

Organized around the parallels between electric and magnetic fields

  • The first half of the book develops electrostatics (Chapters 3–9) and magnetostatics (Chapters 10–13) along matching lines: fields found from their sources by direct integration and by symmetry, potentials, boundary conditions, multipole expansions, and fields in materials. Coulomb's law, Gauss's law, the electric potential, and dielectrics (Chapters 3, 4, 5, and 9) are matched chapter for chapter by the Biot–Savart law, Ampère's law, the vector potential, and magnetic materials (Chapters 10, 11, 12, and 13). Section titles name each method the same way (“Solving for B when given J: Ampère's law method”), and “triangle diagrams” connect each source, field, and potential.
  • Chapter 14 sets the equations of electrostatics and magnetostatics side by side, so that students can see both the similarities and the differences.

Mathematics where it is needed

  • Three “Mathematics Review” chapters (vector calculus, orthogonal functions, and complex numbers), each placed just before the physics that needs it. A class can study them, review them quickly, or skip them, as its students' background suggests.
  • The mathematics required goes no further than multivariable calculus; the review chapters develop the rest, and tensors are introduced together with the multipole expansion, the first physics that needs them (Chapter 8). Fourier transforms are mentioned but never required.

Careful explanations, real examples, and warnings

  • Clear explanations of topics that many other sources get wrong or leave confusing, such as complex conductivity and permittivity (at any frequency other than zero, how a material's response is divided between “conduction” and “polarization” is a matter of bookkeeping, and every real material is partly a conductor and partly an insulator), and how the displacement current does, and does not, produce magnetic fields.
  • Real-world examples throughout, with data from current, cited sources: Earth's magnetic field and its radiation belts, the conductivity of seawater, polarization doping in semiconductor layers, the resistivities of metals, microwave waveguides, the refractive index of air, and the Crab pulsar, among many others.
  • Warnings wherever sources disagree, in notes beside the text: the two sign conventions for complex time dependence (and the engineers' j), the two conventions for the handedness of circularly polarized light, the many symbols in use for the complex refractive index and permittivity, and which angle is θ in spherical coordinates. A chapter on SI, Gaussian, and atomic units prepares students to read older books and the research literature.

Relativity before radiation

  • Special relativity (Chapters 25–26) comes before radiation (Chapters 27–28). Magnetism appears as a consequence of relativity, and the fields of a charge moving at constant velocity follow from Coulomb's field by a change of reference frame, with no retarded time needed.
  • The fields of a charge that moves in any way at all, accelerating included, then follow from four-vectors: the four-potential takes a few lines, and a single differentiation gives the fields, instead of the long direct differentiation of the retarded potentials.

Sections that can be included or skipped

Besides the mathematics review chapters, several sections stand on their own: no later section builds on them, so an instructor can include them or skip them without losing anything else. Examples are AC circuits, with complex impedance, power, and filters (Chapter 19); forces from the Maxwell stress tensor, with its tutorial, and angular momentum in the fields (Chapter 20); the Kramers–Kronig relations (Chapter 22); phase and group velocity, resonant cavities, and transmission lines (Chapter 23); the Doppler effect for light and the stress–energy tensor (Chapter 26); synchrotron radiation and bremsstrahlung (Chapter 27); and the chapter on systems of units (Chapter 17).

Instructors who are considering the book, or using it, are welcome to write to the author at embook@byu.edu.