โ† Part I: Electrostatics
Chapter 1

Coulomb's Law & Electric Field

Force between charges, the electric field, superposition, and continuous distributions.

1.1 Coulomb's Law

The fundamental law governing the force between two point charges was established experimentally by Charles-Augustin de Coulomb in 1785. For charges $q_1$ and $q_2$ separated by a distance $r$, the force on $q_2$ due to $q_1$ is:

$$\boxed{\mathbf{F}_{12} = \frac{1}{4\pi\epsilon_0} \frac{q_1 q_2}{r^2}\,\hat{r}_{12}}$$

where $\hat{r}_{12}$ points from $q_1$ to $q_2$, and $\epsilon_0 = 8.854 \times 10^{-12}\,\text{C}^2/(\text{N}\cdot\text{m}^2)$.

The constant $k = 1/(4\pi\epsilon_0) \approx 8.988 \times 10^9\,\text{N}\cdot\text{m}^2/\text{C}^2$. In vector form, with source position $\mathbf{r}'$ and field point $\mathbf{r}$:

$$\mathbf{F} = \frac{1}{4\pi\epsilon_0} \frac{q_1 q_2}{|\mathbf{r} - \mathbf{r}'|^2}\,\hat{\mathscr{r}}, \qquad \hat{\mathscr{r}} = \frac{\mathbf{r} - \mathbf{r}'}{|\mathbf{r} - \mathbf{r}'|}$$

1.1.1 Superposition Principle

The force on a test charge $q$ due to a collection of $n$ source charges is the vector sum of the individual Coulomb forces:

$$\mathbf{F} = \frac{q}{4\pi\epsilon_0} \sum_{i=1}^{n} \frac{q_i}{|\mathbf{r} - \mathbf{r}_i|^2}\,\hat{\mathscr{r}}_i$$

Superposition is an empirical fact: electric forces do not interact with each other. This linearity is exact in classical electrodynamics and is one of the theory's most powerful features.

1.2 The Electric Field

Rather than specifying forces between every pair of charges, we introduce the concept of the electric field $\mathbf{E}$. The field due to source charges at any point $\mathbf{r}$ is defined by the force per unit positive test charge placed there:

$$\boxed{\mathbf{E}(\mathbf{r}) = \frac{\mathbf{F}}{q_{\rm test}} = \frac{1}{4\pi\epsilon_0} \sum_i \frac{q_i}{|\mathbf{r} - \mathbf{r}_i|^2}\,\hat{\mathscr{r}}_i}$$

1.2.1 Continuous Charge Distributions

For continuous distributions, the sum becomes an integral. Three cases arise depending on geometry:

Volume charge $\rho$

$$\mathbf{E} = \frac{1}{4\pi\epsilon_0}\int_{\mathcal{V}} \frac{\rho(\mathbf{r}')\,\hat{\mathscr{r}}}{{\mathscr{r}}^2}\,d\tau'$$

Surface charge $\sigma$

$$\mathbf{E} = \frac{1}{4\pi\epsilon_0}\int_{\mathcal{S}} \frac{\sigma(\mathbf{r}')\,\hat{\mathscr{r}}}{{\mathscr{r}}^2}\,da'$$

Line charge $\lambda$

$$\mathbf{E} = \frac{1}{4\pi\epsilon_0}\int_{\mathcal{L}} \frac{\lambda(\mathbf{r}')\,\hat{\mathscr{r}}}{{\mathscr{r}}^2}\,dl'$$

1.2.2 Worked Example: Infinite Line Charge

Consider an infinite wire with uniform line charge density $\lambda$. By symmetry the field points radially outward. Choosing the wire along the $z$-axis, at a perpendicular distance $s$:

The contribution from segment $dz'$ at height $z'$ contributes to the field. The $z$-components cancel by symmetry. Only the radial component survives:

$$\mathbf{E} = \frac{1}{4\pi\epsilon_0}\int_{-\infty}^{\infty} \frac{\lambda\,s\,dz'}{(s^2 + z'^2)^{3/2}}\,\hat{s}$$

Using the standard integral $\int_{-\infty}^{\infty} \frac{dz'}{(s^2+z'^2)^{3/2}} = \frac{2}{s^2}$:

$$\boxed{\mathbf{E} = \frac{\lambda}{2\pi\epsilon_0 s}\,\hat{s}}$$

This result falls off as $1/s$ (not $1/s^2$) because the charge extends to infinity in both directions.

Simulation: Electric Field Visualization

The code below computes and visualizes the electric field of a dipole using direct superposition of Coulomb fields on a 2D grid.

Electric Field of a Dipole

Computes the electric field by direct superposition (Coulomb's law) and plots field lines and magnitude heatmap for a +1 nC / โˆ’1 nC dipole.

Click Run to execute the Python code

First run will download Python environment (~15MB)

1.3 Electric Field Lines

Electric field lines are curves whose tangent at each point is parallel to $\mathbf{E}$. They provide a geometric picture of the field:

  • Lines originate on positive charges and terminate on negative charges.
  • The density of lines is proportional to $|\mathbf{E}|$.
  • Lines never cross (the field is single-valued at each point).
  • In a source-free region, lines neither begin nor end.

Key Properties of $\mathbf{E}$ in Electrostatics

$$\nabla \cdot \mathbf{E} = \frac{\rho}{\epsilon_0} \qquad \text{(Gauss's law, differential form)}$$$$\nabla \times \mathbf{E} = 0 \qquad \text{(electrostatic field is conservative)}$$

The curl-free condition $\nabla \times \mathbf{E} = 0$ means we can write $\mathbf{E} = -\nabla V$for a scalar potential $V$.