TExcelTAD
Home › Electromagnetic Theory: Maxwell's Equations to Waves › Electric Potential and the Gradient Relation

Electric Potential and the Gradient Relation

The field is a vector at every point; the potential is a single number at every point, and it carries the same information for static fields. That makes it the quantity to compute: potentials of several charges add as plain numbers, boundary conditions on conductors are statements about VV, and every field solver in this course (Finite Differences for Laplace and Poisson) solves for VV first and differentiates afterwards. The school version is in Electric Potential and Potential and Voltage; here we build the general vector relation E=−∇V\mathbf{E} = -\nabla V and use it both ways.

Work, potential difference and potential

Moving a charge QQ against the field takes work. The work done by an external agent to carry QQ slowly from AA to BB is

WA→B=−Q∫ABE⋅dlW_{A \to B} = -Q\int_A^B \mathbf{E} \cdot d\mathbf{l}

and the potential difference is the work per unit charge:

VB−VA=−∫ABE⋅dlequivalentlyVAB=VA−VB=∫ABE⋅dlV_B - V_A = -\int_A^B \mathbf{E} \cdot d\mathbf{l} \qquad \text{equivalently} \qquad V_{AB} = V_A - V_B = \int_A^B \mathbf{E} \cdot d\mathbf{l}
10 V 9 V 8 V 7 V 6 V 5 V E = 50 V/m AB path 1 path 2 equipotentials 2 cm apart; V_AB = 9 V - 6 V = 3 V on any path

Because a static field has zero curl (Line, Surface and Volume Integrals; the Divergence and Stokes Theorems), the integral is the same along every path, so VV is a well-defined function of position once you pick a reference where V=0V = 0. For charges in a finite region the usual reference is infinity; in circuits it is the ground node; for an infinite line charge, whose potential grows without limit, it must be some finite radius.

Point charge, reference at infinity:

V(r)=−∫∞rQ4πε0r′2 dr′=Q4πε0rV(r) = -\int_\infty^r \frac{Q}{4\pi\varepsilon_0 r'^2}\,dr' = \frac{Q}{4\pi\varepsilon_0 r}

Superposition of scalars: V(r)=∑kQk4πε0∣r−rk∣V(\mathbf{r}) = \sum_k \frac{Q_k}{4\pi\varepsilon_0 \lvert \mathbf{r} - \mathbf{r}_k \rvert}, or for continuous charge V=14πε0∫ρ dv′∣r−r′∣V = \frac{1}{4\pi\varepsilon_0}\int \frac{\rho\,dv'}{\lvert \mathbf{r} - \mathbf{r}' \rvert}. No components, no unit vectors: that is why it is usually easier to find VV first.

Infinite line and coaxial cable. Integrating Eρ=ρℓ/(2περ)E_\rho = \rho_\ell/(2\pi\varepsilon\rho) between radii,

V(ρ1)−V(ρ2)=ρℓ2πεln⁡ρ2ρ1,Vcoax=ρℓ2πεln⁡baV(\rho_1) - V(\rho_2) = \frac{\rho_\ell}{2\pi\varepsilon}\ln\frac{\rho_2}{\rho_1}, \qquad V_\text{coax} = \frac{\rho_\ell}{2\pi\varepsilon}\ln\frac{b}{a}

Back from potential to field

Take two nearby points: dV=−E⋅dldV = -\mathbf{E} \cdot d\mathbf{l}. Comparing with dV=∇V⋅dldV = \nabla V \cdot d\mathbf{l} for every direction dld\mathbf{l} gives

E=−∇V\mathbf{E} = -\nabla V

(Gradient, Divergence, Curl and the Laplacian). Consequences you can see on any field plot:

  • Equipotential surfaces (constant VV) are everywhere perpendicular to E\mathbf{E}; moving along them costs no work.
  • Where equipotentials crowd together, the field is strong: E≈ΔV/ΔsE \approx \Delta V/\Delta s with Δs\Delta s the spacing measured along the field.
  • E\mathbf{E} points from high to low potential; a positive charge released at rest moves that way and gains kinetic energy Q ΔVQ\,\Delta V. An electron crossing 1 V1\ \text{V} gains 1 eV=1.602×10−19 J1\ \text{eV} = 1.602 \times 10^{-19}\ \text{J}.

Worked example

Given: Q1=+4 nCQ_1 = +4\ \text{nC} at the origin and Q2=−2 nCQ_2 = -2\ \text{nC} at (0.2,0) m(0.2, 0)\ \text{m} in air; points P(0.1,0.1) mP(0.1, 0.1)\ \text{m} and A(0.3,0) mA(0.3, 0)\ \text{m}.

Find: VPV_P and VAV_A (reference at infinity), the work to carry q=1 nCq = 1\ \text{nC} from AA to PP, and E\mathbf{E} at PP from −∇V-\nabla V.

Solve:

VP=8.988×109(4×10−90.1414+−2×10−90.1414)=127.1 VVA=8.988×109(4×10−90.3+−2×10−90.1)=119.8−179.8=−59.9 VWA→P=q (VP−VA)=10−9 C⋅187.0 V=187 nJ\begin{aligned} V_P &= 8.988 \times 10^9 \left(\frac{4 \times 10^{-9}}{0.1414} + \frac{-2 \times 10^{-9}}{0.1414}\right) = 127.1\ \text{V} \\ V_A &= 8.988 \times 10^9 \left(\frac{4 \times 10^{-9}}{0.3} + \frac{-2 \times 10^{-9}}{0.1}\right) = 119.8 - 179.8 = -59.9\ \text{V} \\ W_{A \to P} &= q\,(V_P - V_A) = 10^{-9}\ \text{C} \cdot 187.0\ \text{V} = 187\ \text{nJ} \end{aligned}

E\mathbf{E} at PP is computed in the Python block from the gradient of VV and from Coulomb's law; they agree.

Check: AA is closer to the negative charge than to the positive one, so its potential is negative; PP is equidistant from both, so the larger positive charge wins. The work is positive: you push a positive charge uphill.

In Python: potential map, equipotentials and the field

python · try it yourself
import numpy as np
import matplotlib.pyplot as plt

K = 8.988e9
charges = [(4e-9, 0.0, 0.0), (-2e-9, 0.2, 0.0)]

def V(x, y):
    return sum(K*q/np.hypot(x - xq, y - yq) for q, xq, yq in charges)

def E_coulomb(x, y):
    ex = sum(K*q*(x - xq)/np.hypot(x - xq, y - yq)**3 for q, xq, yq in charges)
    ey = sum(K*q*(y - yq)/np.hypot(x - xq, y - yq)**3 for q, xq, yq in charges)
    return ex, ey

print(f"V_P = {V(0.1, 0.1):.1f} V, V_A = {V(0.3, 0.0):.1f} V")
print(f"work to carry 1 nC from A to P: {1e-9*(V(0.1, 0.1) - V(0.3, 0.0))*1e9:.1f} nJ")

h = 1e-4                                   # central differences of V
Ex = -(V(0.1 + h, 0.1) - V(0.1 - h, 0.1)) / (2*h)
Ey = -(V(0.1, 0.1 + h) - V(0.1, 0.1 - h)) / (2*h)
print(f"E at P from -grad V: ({Ex:.2f}, {Ey:.2f}) V/m")
print("E at P from Coulomb:  ({:.2f}, {:.2f}) V/m".format(*E_coulomb(0.1, 0.1)))

x = np.linspace(-0.15, 0.35, 201)
y = np.linspace(-0.2, 0.2, 161)
X, Y = np.meshgrid(x, y)
Vg = np.clip(V(X, Y), -400, 400)
dVy, dVx = np.gradient(Vg, y, x)
plt.contour(X, Y, Vg, levels=[-200, -100, -50, -20, 0, 20, 50, 100, 200], cmap="coolwarm")
plt.streamplot(X, Y, -dVx, -dVy, color="0.6", density=0.9, linewidth=0.7)
plt.plot([0, 0.2], [0, 0], "ko"); plt.plot([0.1, 0.3], [0.1, 0], "g^")
plt.gca().set_aspect("equal"); plt.title("Equipotentials (V) and field lines: +4 nC and -2 nC")
plt.xlabel("x (m)"); plt.ylabel("y (m)")
plt.show()
V_P = 127.1 V, V_A = -59.9 V
work to carry 1 nC from A to P: 187.0 nJ
E at P from -grad V: (1906.64, 635.55) V/m
E at P from Coulomb:  (1906.64, 635.55) V/m

The 0 V0\ \text{V} contour is a circle around the negative charge (for unequal charges it is no longer the mid-plane), and the field lines cross every contour at right angles. Field lines that leave the +4 nC+4\ \text{nC} charge and do not end on the −2 nC-2\ \text{nC} one go off to infinity: half of the positive charge's flux has nowhere nearby to end.

Guided lab: mapping equipotentials

Hand calculation. On a uniform resistive sheet, two round electrodes of radius 3 mm3\ \text{mm} with centres 80 mm80\ \text{mm} apart, held at 10 V10\ \text{V} and 0 V0\ \text{V}, give the two-dimensional field of two opposite line charges (the image-charge solution of The Method of Images). The equivalent line charges sit 39.9 mm39.9\ \text{mm} either side of the midpoint, and V=5 V+10 V2 arccosh⁡(40/3)ln⁡r0r10V = 5\ \text{V} + \frac{10\ \text{V}}{2\,\operatorname{arccosh}(40/3)}\ln\frac{r_0}{r_{10}}, where r10r_{10} and r0r_0 are the distances to the line charges inside the 10 V10\ \text{V} and 0 V0\ \text{V} electrodes. Predictions: 5.00 V5.00\ \text{V} everywhere on the perpendicular bisector; 6.68 V6.68\ \text{V} on the axis 20 mm20\ \text{mm} from the midpoint towards the 10 V10\ \text{V} electrode; E=76 V/mE = 76\ \text{V/m} at the midpoint.

Simulation. The dipole configuration of the field-lines lab is the three-dimensional version (point charges instead of lines). At the midpoint the probe reads 2.25×104 N/C2.25 \times 10^4\ \text{N/C} along +x+x, twice the field of one charge at 4 cm4\ \text{cm}; the plane x=0x = 0 is the zero-potential surface, and the field crosses it at right angles everywhere. Drag the probe along x=0x = 0 and the direction stays at 0∘0^\circ.

+−lines start on + and end on −E+q₀

What you would measure. Conductive (carbon) paper on a board, the two electrodes in silver paint or copper tape, a bench supply at 10 V10\ \text{V} with a 20 mA20\ \text{mA} limit, and a multimeter on the 20 V20\ \text{V} range with its black lead on the 0 V0\ \text{V} electrode. Use the red probe to find and mark points at 22, 44, 66 and 8 V8\ \text{V} every 5 mm5\ \text{mm} or so, and join them. Expect smooth curves symmetric about the bisector, the 5 V5\ \text{V} line straight to within a millimetre or two, the midpoint field (from the 44 and 6 V6\ \text{V} lines' spacing) within about 10 %10\ \% of 76 V/m76\ \text{V/m}. The paper's own non-uniformity (a few percent) and contact resistance at the electrodes set the error; the voltage near the electrodes runs a little below prediction if the paint contact is poor. Then sketch field lines crossing your equipotentials at right angles.

Hazards and safe setup. 10 V10\ \text{V}, current-limited, a few milliamperes in the paper.

Pitfalls

  • Adding potentials as vectors, or fields as scalars. VV adds as numbers, E\mathbf{E} as vectors.
  • Sign of the work. The field does work −Q ΔV-Q\,\Delta V; you do +Q ΔV+Q\,\Delta V.
  • Reference at infinity for infinite lines. VV of an infinite line diverges; quote differences instead.
  • Zero potential does not mean zero field. At the midpoint of a dipole V=0V = 0 but EE is large; at the midpoint of two equal charges E=0E = 0 but VV is not.

Practice

  1. Find the potential at the centre of a ring of radius 5 cm5\ \text{cm} carrying 2 nC2\ \text{nC}, and the field there.
  2. A 24 V24\ \text{V} coaxial cable has a=0.45 mma = 0.45\ \text{mm} and b=1.475 mmb = 1.475\ \text{mm} (outer conductor at 0 V0\ \text{V}). What is the potential at ρ=1 mm\rho = 1\ \text{mm}?
  3. An electron starts at rest at V=0V = 0 and reaches a point at V=+100 VV = +100\ \text{V}. Find its kinetic energy in eV and in joules.
Answer
  1. Every part of the ring is 5 cm5\ \text{cm} away: V=8.988×109⋅2×10−9/0.05=360 VV = 8.988 \times 10^9 \cdot 2 \times 10^{-9}/0.05 = 360\ \text{V}; E=0E = 0 by symmetry.
  2. V=24 V⋅ln⁡(b/ρ)/ln⁡(b/a)=24⋅ln⁡(1.475)/ln⁡(3.278)=7.86 VV = 24\ \text{V} \cdot \ln(b/\rho)/\ln(b/a) = 24 \cdot \ln(1.475)/\ln(3.278) = 7.86\ \text{V}.
  3. 100 eV=1.602×10−17 J100\ \text{eV} = 1.602 \times 10^{-17}\ \text{J} (it is accelerated towards higher potential because its charge is negative).

Test yourself

Equipotential surfaces are always…

  1. parallel to the field
  2. perpendicular to the field
  3. at 45° to the field
  4. spheres

Charges +4 nC+4\ \text{nC} and −2 nC-2\ \text{nC} are each 0.1414 m0.1414\ \text{m} from a point. The potential there (reference at infinity) is about…

  1. 381 V381\ \text{V}
  2. 127 V127\ \text{V}
  3. 0 V0\ \text{V}
  4. −127 V-127\ \text{V}

How much work does it take to carry 1 nC1\ \text{nC} from a point at −60 V-60\ \text{V} to a point at +127 V+127\ \text{V}?

  1. 67 nJ67\ \text{nJ}
  2. 127 nJ127\ \text{nJ}
  3. 187 nJ187\ \text{nJ}
  4. −187 nJ-187\ \text{nJ}

At the midpoint between equal and opposite charges…

  1. V=0V = 0 and E=0E = 0
  2. V=0V = 0 but E≠0E \ne 0
  3. V≠0V \ne 0 but E=0E = 0
  4. both are infinite