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 , and every field solver in this course (Finite Differences for Laplace and Poisson) solves for first and differentiates afterwards. The school version is in Electric Potential and Potential and Voltage; here we build the general vector relation and use it both ways.
Work, potential difference and potential
Moving a charge against the field takes work. The work done by an external agent to carry slowly from to is
and the potential difference is the work per unit charge:
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 is a well-defined function of position once you pick a reference where . 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:
Superposition of scalars: , or for continuous charge . No components, no unit vectors: that is why it is usually easier to find first.
Infinite line and coaxial cable. Integrating between radii,
Back from potential to field
Take two nearby points: . Comparing with for every direction gives
(Gradient, Divergence, Curl and the Laplacian). Consequences you can see on any field plot:
- Equipotential surfaces (constant ) are everywhere perpendicular to ; moving along them costs no work.
- Where equipotentials crowd together, the field is strong: with the spacing measured along the field.
- points from high to low potential; a positive charge released at rest moves that way and gains kinetic energy . An electron crossing gains .
Worked example
Given: at the origin and at in air; points and .
Find: and (reference at infinity), the work to carry from to , and at from .
Solve:
at is computed in the Python block from the gradient of and from Coulomb's law; they agree.
Check: is closer to the negative charge than to the positive one, so its potential is negative; 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
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 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 charge and do not end on the 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 with centres apart, held at and , give the two-dimensional field of two opposite line charges (the image-charge solution of The Method of Images). The equivalent line charges sit either side of the midpoint, and , where and are the distances to the line charges inside the and electrodes. Predictions: everywhere on the perpendicular bisector; on the axis from the midpoint towards the electrode; 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 along , twice the field of one charge at ; the plane is the zero-potential surface, and the field crosses it at right angles everywhere. Drag the probe along and the direction stays at .
What you would measure. Conductive (carbon) paper on a board, the two electrodes in silver paint or copper tape, a bench supply at with a limit, and a multimeter on the range with its black lead on the electrode. Use the red probe to find and mark points at , , and every or so, and join them. Expect smooth curves symmetric about the bisector, the line straight to within a millimetre or two, the midpoint field (from the and lines' spacing) within about of . 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. , current-limited, a few milliamperes in the paper.
Pitfalls
- Adding potentials as vectors, or fields as scalars. adds as numbers, as vectors.
- Sign of the work. The field does work ; you do .
- Reference at infinity for infinite lines. of an infinite line diverges; quote differences instead.
- Zero potential does not mean zero field. At the midpoint of a dipole but is large; at the midpoint of two equal charges but is not.
Practice
- Find the potential at the centre of a ring of radius carrying , and the field there.
- A coaxial cable has and (outer conductor at ). What is the potential at ?
- An electron starts at rest at and reaches a point at . Find its kinetic energy in eV and in joules.
Answer
- Every part of the ring is away: ; by symmetry.
- .
- (it is accelerated towards higher potential because its charge is negative).
Test yourself
Equipotential surfaces are always…
- parallel to the field
- perpendicular to the field
- at 45° to the field
- spheres
Charges and are each from a point. The potential there (reference at infinity) is about…
How much work does it take to carry from a point at to a point at ?
At the midpoint between equal and opposite charges…
- and
- but
- but
- both are infinite