← Part I: Electrostatics
Chapter 3

Electric Potential

Scalar potential V, Poisson's and Laplace's equations, energy, and multipole expansion.

3.1 The Scalar Potential

Since $\nabla \times \mathbf{E} = 0$ in electrostatics, the field is conservative and we can write $\mathbf{E} = -\nabla V$ for a scalar function $V(\mathbf{r})$called the electric potential (or voltage):

$$\boxed{\mathbf{E} = -\nabla V}, \qquad V(\mathbf{r}) = -\int_{\mathcal{O}}^{\mathbf{r}} \mathbf{E} \cdot d\boldsymbol{\ell}$$

The reference point $\mathcal{O}$ is arbitrary (usually taken at infinity). For a point charge $q$ at the origin:

$$V(r) = \frac{1}{4\pi\epsilon_0}\frac{q}{r}$$

For a collection of charges, superposition applies directly to the scalar potential (much simpler than adding vectors!):

$$V(\mathbf{r}) = \frac{1}{4\pi\epsilon_0}\sum_i \frac{q_i}{|\mathbf{r} - \mathbf{r}_i|} = \frac{1}{4\pi\epsilon_0}\int \frac{\rho(\mathbf{r}')}{|\mathbf{r} - \mathbf{r}'|}\,d\tau'$$

Derivation: The Potential from the Electric Field

We derive the relationship $V = -\int\mathbf{E}\cdot d\boldsymbol{\ell}$ from the curl-free nature of $\mathbf{E}$, and prove that the line integral is path-independent.

Step 1: Start from $\nabla \times \mathbf{E} = 0$

In electrostatics, the electric field has zero curl everywhere. This can be verified directly from Coulomb's law (the $1/r^2$ radial field has no curl) and extended by superposition. The vanishing curl is equivalent to saying:

$$\oint \mathbf{E}\cdot d\boldsymbol{\ell} = 0 \quad \text{for any closed loop}$$

(via Stokes' theorem: $\oint \mathbf{E}\cdot d\boldsymbol{\ell} = \int(\nabla\times\mathbf{E})\cdot d\mathbf{a} = 0$)

Step 2: Prove path independence

Consider two paths $\gamma_1$ and $\gamma_2$ from point $\mathbf{a}$ to point $\mathbf{b}$. The loop $\gamma_1$ forward and $\gamma_2$ backward forms a closed path:

$$\int_{\gamma_1}\mathbf{E}\cdot d\boldsymbol{\ell} - \int_{\gamma_2}\mathbf{E}\cdot d\boldsymbol{\ell} = \oint\mathbf{E}\cdot d\boldsymbol{\ell} = 0$$

Therefore $\int_{\gamma_1}\mathbf{E}\cdot d\boldsymbol{\ell} = \int_{\gamma_2}\mathbf{E}\cdot d\boldsymbol{\ell}$. The integral depends only on endpoints, not on the path.

Step 3: Define the scalar potential

Since the line integral is path-independent, we can define a scalar function:

$$V(\mathbf{r}) \equiv -\int_{\mathcal{O}}^{\mathbf{r}}\mathbf{E}\cdot d\boldsymbol{\ell}$$

where $\mathcal{O}$ is a chosen reference point (conventionally at infinity where $V = 0$). The negative sign is a convention so that positive charges create positive potentials.

Step 4: Show $\mathbf{E} = -\nabla V$

From the fundamental theorem of calculus for line integrals, if we move from $\mathbf{r}$ to $\mathbf{r} + d\boldsymbol{\ell}$:

$$V(\mathbf{r} + d\boldsymbol{\ell}) - V(\mathbf{r}) = -\mathbf{E}\cdot d\boldsymbol{\ell}$$

But also $V(\mathbf{r} + d\boldsymbol{\ell}) - V(\mathbf{r}) = \nabla V\cdot d\boldsymbol{\ell}$. Since this must hold for arbitrary $d\boldsymbol{\ell}$:

$$\boxed{\mathbf{E} = -\nabla V}$$

Step 5: Verify for a point charge

For a point charge $q$ at the origin, integrate $\mathbf{E} = \frac{q}{4\pi\epsilon_0}\frac{\hat{r}}{r^2}$ along a radial path from $\infty$ to $r$:

$$V(r) = -\int_\infty^r \frac{q}{4\pi\epsilon_0 r'^2}\,dr' = \frac{q}{4\pi\epsilon_0}\left[\frac{1}{r'}\right]_\infty^r = \frac{q}{4\pi\epsilon_0 r}$$

Step 6: The potential difference (voltage)

The potential difference between two points is independent of the reference point:

$$V(\mathbf{b}) - V(\mathbf{a}) = -\int_{\mathbf{a}}^{\mathbf{b}}\mathbf{E}\cdot d\boldsymbol{\ell}$$

This is the physically measurable quantity — the work per unit charge done by the field in moving a test charge from $\mathbf{a}$ to $\mathbf{b}$.

3.2 Poisson's & Laplace's Equations

Substituting $\mathbf{E} = -\nabla V$ into Gauss's law $\nabla \cdot \mathbf{E} = \rho/\epsilon_0$:

$$\boxed{\nabla^2 V = -\frac{\rho}{\epsilon_0}} \qquad \text{(Poisson's equation)}$$

In source-free regions ($\rho = 0$): $\nabla^2 V = 0$ (Laplace's equation)

Derivation: Poisson's and Laplace's Equations

We derive Poisson's equation by combining the two fundamental equations of electrostatics: Gauss's law and the gradient relationship.

Step 1: State the two fundamental relationships

From Gauss's law (differential form) and the definition of potential:

$$\nabla\cdot\mathbf{E} = \frac{\rho}{\epsilon_0} \qquad \text{and} \qquad \mathbf{E} = -\nabla V$$

Step 2: Substitute $\mathbf{E} = -\nabla V$ into Gauss's law

$$\nabla\cdot(-\nabla V) = \frac{\rho}{\epsilon_0}$$

Step 3: Recognize the Laplacian

The divergence of a gradient is the Laplacian operator: $\nabla\cdot(\nabla V) = \nabla^2 V$. In Cartesian coordinates:

$$\nabla^2 V = \frac{\partial^2 V}{\partial x^2} + \frac{\partial^2 V}{\partial y^2} + \frac{\partial^2 V}{\partial z^2}$$

Therefore:

$$\boxed{\nabla^2 V = -\frac{\rho}{\epsilon_0}} \qquad \text{(Poisson's equation)}$$

Step 4: The charge-free case — Laplace's equation

In regions where there is no charge ($\rho = 0$), Poisson's equation reduces to:

$$\boxed{\nabla^2 V = 0} \qquad \text{(Laplace's equation)}$$

Step 5: Verify with the point charge potential

For $V = q/(4\pi\epsilon_0 r)$, compute $\nabla^2 V$ in spherical coordinates. For $r \neq 0$:

$$\nabla^2 V = \frac{1}{r^2}\frac{d}{dr}\left(r^2\frac{dV}{dr}\right) = \frac{q}{4\pi\epsilon_0}\frac{1}{r^2}\frac{d}{dr}\left(r^2\cdot\left(-\frac{1}{r^2}\right)\right) = \frac{q}{4\pi\epsilon_0}\frac{1}{r^2}\frac{d}{dr}(-1) = 0$$

This confirms Laplace's equation holds away from the charge. At $r = 0$, the correct result is $\nabla^2(1/r) = -4\pi\delta^3(\mathbf{r})$, giving $\nabla^2 V = -q\delta^3(\mathbf{r})/\epsilon_0 = -\rho/\epsilon_0$.

Step 6: Physical meaning of $\nabla^2 V$

The Laplacian measures how $V$ at a point differs from the average of $V$ on a small sphere around that point. Specifically, for a small sphere of radius $\varepsilon$:

$$V(\mathbf{r}) - \langle V\rangle_{\rm sphere} = -\frac{\varepsilon^2}{6}\nabla^2 V + O(\varepsilon^4) = \frac{\varepsilon^2}{6}\frac{\rho}{\epsilon_0}$$

Where $\rho > 0$ (positive charge), $V$ exceeds its local average — it is a local maximum relative to its neighborhood. This is why solutions to Laplace's equation ($\nabla^2 V = 0$) have no local maxima or minima — a key property called the mean value theorem.

3.2.1 Uniqueness Theorems

  • First uniqueness theorem: The solution to Laplace's equation in a volume is uniquely determined by the boundary conditions (values of $V$ on the boundary).
  • Second uniqueness theorem: The electric field in a volume is uniquely determined if the charge distribution inside and the potential on the boundary are specified.

3.2.2 Separation of Variables (Spherical Coordinates)

For problems with azimuthal symmetry, Laplace's equation in spherical coordinates admits solutions of the form $V(r, \theta) = R(r)\Theta(\theta)$. The solutions are:

$$V(r, \theta) = \sum_{\ell=0}^{\infty} \left(A_\ell r^\ell + \frac{B_\ell}{r^{\ell+1}}\right) P_\ell(\cos\theta)$$

where $P_\ell$ are the Legendre polynomials: $P_0 = 1$, $P_1 = \cos\theta$,$P_2 = \frac{1}{2}(3\cos^2\theta - 1)$, etc. Coefficients are determined by boundary conditions.

3.3 Energy in the Electric Field

The work needed to assemble a continuous charge distribution against its own Coulomb repulsion is stored as energy in the electric field:

$$W = \frac{\epsilon_0}{2}\int_{\rm all\,space} E^2\,d\tau = \frac{1}{2}\int \rho V\,d\tau$$

This defines the energy density of the electric field:

$$u_E = \frac{\epsilon_0}{2} E^2 = \frac{\epsilon_0}{2}|\nabla V|^2 \qquad [\text{J/m}^3]$$

3.3.1 Multipole Expansion

For a localized charge distribution, the potential at large distances can be expanded in powers of $1/r$:

$$V(\mathbf{r}) = \frac{1}{4\pi\epsilon_0}\left[\frac{Q}{r} + \frac{\mathbf{p}\cdot\hat{r}}{r^2} + \frac{1}{2}\sum_{i,j} Q_{ij}\frac{\hat{r}_i\hat{r}_j}{r^3} + \cdots\right]$$

Monopole

$$Q = \int \rho\,d\tau$$

Falls off as $1/r$

Dipole

$$\mathbf{p} = \int \mathbf{r}'\rho\,d\tau'$$

Falls off as $1/r^2$

Quadrupole

$$Q_{ij} = \int (3r'_i r'_j - r'^2 \delta_{ij})\rho\,d\tau'$$

Falls off as $1/r^3$

Derivation: The Multipole Expansion

For a localized charge distribution, the potential far away can be systematically expanded in powers of $1/r$ using Legendre polynomials. This identifies the monopole, dipole, quadrupole, and higher-order contributions.

Step 1: Start with the exact potential of a charge distribution

$$V(\mathbf{r}) = \frac{1}{4\pi\epsilon_0}\int\frac{\rho(\mathbf{r}')}{|\mathbf{r} - \mathbf{r}'|}\,d\tau'$$

We need to expand $1/|\mathbf{r} - \mathbf{r}'|$ for $r \gg r'$ (field point far from the source).

Step 2: Apply the law of cosines

Let $\alpha$ be the angle between $\mathbf{r}$ and $\mathbf{r}'$. Then:

$$|\mathbf{r} - \mathbf{r}'|^2 = r^2 + r'^2 - 2rr'\cos\alpha = r^2\left(1 - 2\frac{r'}{r}\cos\alpha + \frac{r'^2}{r^2}\right)$$

Define $\epsilon = (r'/r)$ and write:

$$\frac{1}{|\mathbf{r} - \mathbf{r}'|} = \frac{1}{r}\frac{1}{\sqrt{1 - 2\epsilon\cos\alpha + \epsilon^2}}$$

Step 3: Expand using the generating function for Legendre polynomials

The generating function for Legendre polynomials $P_\ell$ is:

$$\frac{1}{\sqrt{1 - 2\epsilon\cos\alpha + \epsilon^2}} = \sum_{\ell=0}^{\infty}\epsilon^\ell P_\ell(\cos\alpha)$$

Therefore:

$$\frac{1}{|\mathbf{r} - \mathbf{r}'|} = \frac{1}{r}\sum_{\ell=0}^{\infty}\left(\frac{r'}{r}\right)^\ell P_\ell(\cos\alpha)$$

Step 4: Substitute into the potential and identify terms

$$V(\mathbf{r}) = \frac{1}{4\pi\epsilon_0}\sum_{\ell=0}^{\infty}\frac{1}{r^{\ell+1}}\int (r')^\ell P_\ell(\cos\alpha)\,\rho(\mathbf{r}')\,d\tau'$$

Writing out the first few terms explicitly:

Step 5: Monopole term ($\ell = 0$)

Since $P_0(\cos\alpha) = 1$:

$$V_{\rm mono} = \frac{1}{4\pi\epsilon_0}\frac{1}{r}\int\rho\,d\tau' = \frac{1}{4\pi\epsilon_0}\frac{Q}{r}$$

where $Q = \int\rho\,d\tau'$ is the total charge. This is just the point-charge potential — the leading term at large $r$.

Step 6: Dipole term ($\ell = 1$)

Since $P_1(\cos\alpha) = \cos\alpha = \hat{r}\cdot\hat{r}'$:

$$V_{\rm dip} = \frac{1}{4\pi\epsilon_0}\frac{1}{r^2}\int r'\cos\alpha\,\rho\,d\tau' = \frac{1}{4\pi\epsilon_0}\frac{\hat{r}}{r^2}\cdot\int\mathbf{r}'\rho\,d\tau' = \frac{1}{4\pi\epsilon_0}\frac{\mathbf{p}\cdot\hat{r}}{r^2}$$

where $\mathbf{p} = \int\mathbf{r}'\rho(\mathbf{r}')\,d\tau'$ is the dipole moment. This falls off as $1/r^2$ and dominates when $Q = 0$.

Step 7: Quadrupole term ($\ell = 2$)

Since $P_2(\cos\alpha) = \frac{1}{2}(3\cos^2\alpha - 1)$:

$$V_{\rm quad} = \frac{1}{4\pi\epsilon_0}\frac{1}{r^3}\int\frac{1}{2}(r')^2(3\cos^2\alpha - 1)\,\rho\,d\tau'$$

This can be written in terms of the traceless quadrupole tensor $Q_{ij} = \int(3r'_ir'_j - r'^2\delta_{ij})\rho\,d\tau'$:

$$V_{\rm quad} = \frac{1}{4\pi\epsilon_0}\frac{1}{2r^3}\sum_{i,j}Q_{ij}\hat{r}_i\hat{r}_j$$

This falls off as $1/r^3$ and dominates when both $Q = 0$ and $\mathbf{p} = 0$.

Step 8: The complete expansion

$$\boxed{V(\mathbf{r}) = \frac{1}{4\pi\epsilon_0}\left[\frac{Q}{r} + \frac{\mathbf{p}\cdot\hat{r}}{r^2} + \frac{1}{2}\sum_{i,j}\frac{Q_{ij}\hat{r}_i\hat{r}_j}{r^3} + \cdots\right]}$$

At large distances, only the lowest non-vanishing term matters. The multipole expansion is the systematic way to characterize charge distributions by their "shape" at long range.

Derivation: Energy Stored in the Electric Field

We derive the energy stored in an electric field configuration by computing the work required to assemble a continuous charge distribution from infinity.

Step 1: Work to assemble discrete point charges

Bring charges in one at a time from infinity. The first charge costs no energy. The $i$-th charge must work against the field of all previously placed charges. The total work is:

$$W = \frac{1}{4\pi\epsilon_0}\sum_{i=1}^{n}\sum_{j<i}\frac{q_i q_j}{|\mathbf{r}_i - \mathbf{r}_j|}$$

Step 2: Symmetrize and introduce the potential

Double-counting the pairs (sum over all $i \neq j$) and dividing by 2:

$$W = \frac{1}{2}\sum_{i=1}^{n}q_i\underbrace{\left(\frac{1}{4\pi\epsilon_0}\sum_{j\neq i}\frac{q_j}{|\mathbf{r}_i - \mathbf{r}_j|}\right)}_{V(\mathbf{r}_i)} = \frac{1}{2}\sum_{i=1}^{n}q_i V(\mathbf{r}_i)$$

Step 3: Generalize to a continuous distribution

Replace $q_i \to \rho\,d\tau$ and the sum by an integral:

$$W = \frac{1}{2}\int\rho V\,d\tau$$

Step 4: Eliminate $\rho$ using Gauss's law

Substitute $\rho = \epsilon_0\nabla\cdot\mathbf{E}$:

$$W = \frac{\epsilon_0}{2}\int V(\nabla\cdot\mathbf{E})\,d\tau$$

Step 5: Integrate by parts using the product rule

Use the vector identity $\nabla\cdot(V\mathbf{E}) = V(\nabla\cdot\mathbf{E}) + \mathbf{E}\cdot(\nabla V)$. Since $\mathbf{E} = -\nabla V$:

$$V(\nabla\cdot\mathbf{E}) = \nabla\cdot(V\mathbf{E}) - \mathbf{E}\cdot\nabla V = \nabla\cdot(V\mathbf{E}) + E^2$$

Substituting:

$$W = \frac{\epsilon_0}{2}\left[\int\nabla\cdot(V\mathbf{E})\,d\tau + \int E^2\,d\tau\right]$$

Step 6: The surface integral vanishes at infinity

By the divergence theorem, $\int\nabla\cdot(V\mathbf{E})\,d\tau = \oint_S V\mathbf{E}\cdot d\mathbf{a}$. As we integrate over all space, the bounding surface recedes to infinity. For a localized charge distribution, $V \sim 1/r$ and $E \sim 1/r^2$, so $VE \sim 1/r^3$. The surface area grows as $r^2$, so the integral goes as $1/r \to 0$:

$$\oint_S V\mathbf{E}\cdot d\mathbf{a} \to 0 \quad \text{as } S \to \infty$$

Step 7: The energy in terms of the field

Therefore:

$$\boxed{W = \frac{\epsilon_0}{2}\int_{\text{all space}} E^2\,d\tau}$$

This remarkable result shows that the energy of a charge configuration can be expressed entirely in terms of the electric field, with energy density $u = \frac{\epsilon_0}{2}E^2$ [J/m$^3$]. The energy is always positive, and it is stored in the field itself — this is the physical content of the "field" concept.

Simulation: Quadrupole Potential

Computes and visualizes the electric potential and field of a quadrupole charge distribution, and verifies $\mathbf{E} = -\nabla V$ numerically.

Electric Potential & Quadrupole

Visualizes V and E for a quadrupole, and verifies E = -∇V along the x-axis.

Click Run to execute the Python code

First run will download Python environment (~15MB)

3.4 Method of Images

The method of images solves boundary-value problems by replacing conductors with fictitious "image charges" that enforce the boundary conditions. Consider a point charge $+q$ at height $d$ above an infinite grounded conducting plane:

Place an image charge $-q$ at position $-d$ (mirror reflection). The potential of this pair is zero on the plane $z = 0$, satisfying the boundary condition. By uniqueness, this is the correct solution in the region $z > 0$.

$$V(x,y,z) = \frac{q}{4\pi\epsilon_0}\left[\frac{1}{\sqrt{x^2+y^2+(z-d)^2}} - \frac{1}{\sqrt{x^2+y^2+(z+d)^2}}\right]$$

The induced surface charge density on the conductor is:

$$\sigma(x,y) = -\epsilon_0\frac{\partial V}{\partial z}\bigg|_{z=0} = \frac{-qd}{2\pi(x^2+y^2+d^2)^{3/2}}$$

The total induced charge integrates to $-q$, and the force on the charge equals $F = -q^2/(16\pi\epsilon_0 d^2)$ — attraction toward its own image.

Video Lectures & Demonstrations

MIT 8.02 — Electric potential, equipotential surfaces, and the relationship between E and V demonstrated with Van de Graaff generators.

Deep dive into Laplace's equation — separation of variables, uniqueness theorems, and the mathematics of boundary value problems.

Fortran Implementation

Fortran Gauss-Seidel solver for Laplace's equation in a 2D box. This iterative relaxation method is the foundation of industrial-grade electrostatic field solvers used in capacitor design, semiconductor simulation, and particle accelerator engineering.

Laplace Equation Solver

Fortran

Gauss-Seidel relaxation solver for the 2D Laplace equation with Dirichlet boundary conditions

laplace_solver.f9032 lines

Click Run to execute the Fortran code

Code will be compiled with gfortran and executed on the server

Griffiths Problem Solutions

Video walkthroughs of Griffiths problems on electric potential, Laplace's equation, and special techniques.

Problem 2.22

Problem 2.23

Problem 2.24

Problem 3.1

Problem 3.2

Problem 3.3

Rate this chapter: