# [Summary] "Introduction to Electrodynamics" by David Griffiths - Part 1

**Epistemic Status:** The mathematical formulation of electromagnetism is the most solidly established theory in all of science. If this book is wrong then science is broken to the core, space is flat, Colombus' landing in the New World was faked, birds aren't real and the Illuminati controls the lizard people.

---

There are three fundamental forces. The color force holds atomic nuclei together. (The strong nuclear force is a special case of the color force.) Gravity holds planets and larger structures together. The electroweak force does everything in-between.

The electroweak force unifies the weak nuclear force with the electromagnetic force. The weak nuclear force doesn't matter.

[![](https://imgs.xkcd.com/comics/fundamental_forces.png)](https://xkcd.com/1489/)

When I ask physics majors "What is your favorite textbook?" the answer is usually *Introduction to Electrodynamics* by David Griffiths. Electrodynamics (in the framework of quantum mechanics[^1]) explains basically everything on Earth except meteors and nuclear decay. Electrodynamics is important, satisfying and elegant. It is the basis of almost everything of consequence to human beings.

[^1]: To learn quantum mechanics, check out *Introduction to Quantum Mechanics* by David Griffiths.

Griffiths' book is equivalent to at least two months of full-time intermediate-level undergraduate physics at a university.

# Vector Calculus

Like every great physics book, *Introduction to Electrodynamics* frontloads its math. The math is all vector calculus. If you know vectors and you know calculus then the math should be within your grasp. If you can read and understand the following definition of $\vec\nabla$ then you're probably fine.

$$\vec\nabla\equiv\hat x\frac\partial{\partial x}+\hat y\frac\partial{\partial y}+\hat z\frac\partial{\partial z}$$

The most domain-specific math is the use of divergence and curl.

## Divergence

Imagine a vector field as a bunch of arrows. Define a finite region. **Divergence** is the number of arrows going out of the region minus the arrows going into it.

$$\text{divergence}=\vec\nabla\cdot\vec v$$

[![](https://s3.us-west-2.amazonaws.com/www.lsusr.com/lesswrong/introduction-to-electrodynamics/500px-Divergence_(captions).svg.png)](https://en.wikipedia.org/wiki/File:Divergence_(captions).svg)

## Curl

**Curl** is the counterpart of divergence. Imagine again a vector field as a bunch of arrows. Nonzero curl means the arrows go in a circle.

$$\text{curl}=\vec\nabla\times\vec v$$

[![](https://s3.us-west-2.amazonaws.com/www.lsusr.com/lesswrong/introduction-to-electrodynamics/512px-Uniform_curl.svg.png)](https://en.wikipedia.org/wiki/File:Uniform_curl.svg)

# Electostatics

## Coulomb's Law

Electrostatics is governed by Coulomb's Law. The force between two charges $q,Q$ is proportional to the inverse square distance $r$ between them. Opposite charges attract. Identical charges repel.

$$\vec F=\frac1{4\pi\epsilon_0}\frac{qQ}{r^2}\hat r$$

> The constant $\epsilon_0$ is called (ludicrously) the **permittivity of free space**.

If you think "permittivity of free space" is a silly name then you can call it "vacuum permittivity" or the "electric constant" instead.

$$\epsilon_0=8.85\times10^{-12}\frac{\text C^2}{\text N\cdot\text m^2}$$

## Electric Field

Instead of forces, another equivalent way to model electrostatics is with an **electric field** $\vec E$ which applies a force $\vec F$ on charge $Q$.

$$\vec F=Q\vec E$$

The electric field the same as the Coulomb force except you divide out $Q$.

$$\vec E=\frac1{4\pi\epsilon_0}\frac{q}{r^2}\hat r$$

Since we're dealing with vector fields, everything can be superimposed. The electric field of several charges $\{q_i\}$ equals the total field at point $\vec r$ of each of them put together.

$$\vec E(\vec r)=\frac1{4\pi\epsilon_0}\sum_{i=1}^n\frac{q_i}{r^2_i}\hat r_i$$

Whether the electric field is "real" is a philosophical question irrelevant to our purposes. What matters is that the electric field formulation of electrostatics is equivalent to the Coulomb force formulation.

## Continuous Charge Distributions

In the previous section we defined electric field of point charges. To get the electric field of a continuous charge distribution you turn the charge $q$ into a charge density $dq$ and integrate over the charge density. You can integrate over one, two or three dimensions for line charges, surface charges and volume charges respectively.

$$\vec E(\vec r)=\frac1{4\pi\epsilon_0}\int\frac1{r^2}\hat rdq$$

The volumetric formulation is known as **Coulomb's law** because it is the most general.

## Flux

![](https://s3.us-west-2.amazonaws.com/www.lsusr.com/lesswrong/introduction-to-electrodynamics/Flux-Capacitor.jpg)

Another tool for thinking about electric fields is flux. The flux of $\vec E$ through a surface $S$ is the number of field lines going through it forwards minus the number of field lines going backwards.

[![](https://s3.us-west-2.amazonaws.com/www.lsusr.com/lesswrong/introduction-to-electrodynamics/Flux_diagram.png)](https://en.wikipedia.org/wiki/File:Flux_diagram.png)

$$\Phi_E\equiv\int_S\vec E\cdot d\vec a$$

Electric field lines start at positive charges (or infinity) and terminate at negative charges (or infinity). The flux through a closer surface is therefore a measure of the total charge inside. This is called **Gauss's law**.

$$\oint\vec E\cdot d\vec a=\frac1{\epsilon_0}q$$

We can generalize the equation to continuous charge distributions by using divergence.

$$\vec\nabla\cdot\vec E=\frac1{\epsilon_0}\rho$$

The curl of an electric field is always zero because an electric field cannot point in circles because if it did then you could build a perpetual motion machine by placing an electric charge on a fixed track with nonzero curl.

$$\oint\vec E\cdot d\vec l=0$$
$$\vec\nabla\times\vec E=\vec0$$

## Electric Potential

Electric fields are vector fields. It would be better if instead of a three-dimensional value at every point we have a single scaler value instead. We can model an electric field as the gradient of an **electric potential** $V$ because the curl of an electric field is always zero.

$$\vec E=-\vec\nabla V$$

The electric potential is the integral of the electric field. The electric potential uniquely determines the electric field. The electric field determines the electric potential up to a constant.

$$V(\vec r)\equiv-\int_{\mathcal O}^r\vec E\cdot d\vec l$$

The variable $\mathcal O$ represents a point we have arbitrarily defined to be zero potential. Thus, technically, "potential" has no physical significance. Only differences in potential are physically meaningful. However, it is a good convention to pick $\mathcal o$ to be infinitely far away from your charges. I will use the "zero potential at infinity" convention unless otherwise noted.

$$V(\vec b)-V(\vec a)=-\int_a^b\vec E\cdot d\vec l$$

The vector components of the electric field look independent but they're actually not because $\vec\nabla\times\vec E=0$.

$$\frac{\partial E_x}{\partial y}=\frac{\partial E_y}{\partial x},\quad\frac{\partial E_z}{\partial y}=\frac{\partial E_y}{\partial z},\quad\frac{\partial E_x}{\partial z}=\frac{\partial E_z}{\partial x}$$

Potential obeys the superposition principle. Electric potential has units of joules per coulomb. (Electric fields has units of newtons per coulomb.) The electric field of a charge is proportional to your distance from the charge.

$$V(\vec r)=\frac1{4\pi\epsilon_0}\int\frac{\rho(\vec r')}rd\tau'$$

## Poisson's Equation

Recall that the divergence of an electric field equals the charge density.

$$\vec\nabla\cdot\vec E=\frac\rho{\epsilon_0}$$

The electric field is the gradient of the potential. Thus, the divergence of the gradient of the potential equals charge density. The divergence of a gradient is called a Laplacian $\nabla^2$. **Poisson's equation** says the Laplacian of an electric potential is proportional to the charge density.

$$\nabla^2V=-\frac\rho{\epsilon_0}$$

Poisson's equation is useful in [quantum field theory](https://www.lsusr.com/blog/intuitive-noether-current.html).

## Checkpoint

Putting together the equations we have so far, we find that charge density $\rho$ is equivalent to electric field $\vec E$ is equivalent (up to an arbitrary constant) to potential $V$.

![](https://s3.us-west-2.amazonaws.com/www.lsusr.com/lesswrong/introduction-to-electrodynamics/equivalence-triangle.png)

## Epilogue: Work and Energy

Work is the dot product of force and distance.

$$W=\int_a^b\vec F\cdot d\vec l=Q[V(\vec b)-V\vec(a)]$$

In the electrostatic context, potential is potential energy per unit charge. The energy of a continuous charge distribution is the charge times the potential.

$$W=\frac12\int\rho Vd\tau$$

We can re-write this equation in terms of electric field.

$$W=\frac{\epsilon_0}2\int E^2d\tau$$

General relativity is beyond the scope of this article but if you've ever wondered where the mass-energy of an electric field comes from here's your answer.

$$\frac{\epsilon_0}2E^2=\text{energy per unit volume}=\frac12\rho V$$

Note that the energy of an electric field does not obey the superposition principle. If you double the electric field you quadruple the energy density.