ES04E6: Calculating Electric Fields from Potential in Three Coordinate Systems
Learning goal. Apply E = −∇V in Cartesian, cylindrical, and spherical coordinates without losing
scale factors, unit vectors, or signs. Select a coordinate system that follows the symmetry of the
source or boundary.
1 The gradient is not always three plain derivatives
In Cartesian coordinates,
In cylindrical coordinates (s,ϕ,z),
In spherical coordinates (r,𝜃,ϕ), with 𝜃 measured downward from +z,
These geometric factors appear because an increment in angle does not correspond to an equal
physical distance at every radius. The electrostatic field is the negative of the entire
gradient.
Figure 1. Cartesian coordinates use fixed basis vectors; spherical coordinates use
position-dependent radial and polar directions. Angular changes correspond to distances rd𝜃 and
r sin𝜃dϕ.
2 Worked example 1: a mixed Cartesian polynomial
Let
where α has units V∕m3 and β has units V∕m. Differentiate term by term, keeping other
independent coordinates fixed:
Thus
Check that ∇× E = 0. For example, ∂Ey∕∂x = −2αx and ∂Ex∕∂y = −2αx, so the z component
of curl vanishes.
3 Worked example 2: radial logarithmic cylindrical potential
Suppose V (s) = A ln(s∕s0) in a region s > 0. Using Equation (2), only the radial derivative
survives:
A positively charged infinite wire has A = −λ∕(2π𝜖0), and its field points outward. The use of a
ratio s∕s0 prevents taking the logarithm of a dimensional length.
4 Worked example 3: a cylindrical potential with angular variation
Take V (s,ϕ) = Cs2 cos(2ϕ), independent of z. The coordinate derivatives are
Insert both into the cylindrical gradient, retaining the 1∕s factor:
If the 1∕s factor were omitted, the angular term would scale incorrectly as s2 and have inconsistent
units. In Cartesian coordinates, s2 cos 2ϕ = x2 − y2, so V = C(x2 − y2) and E = −2Cxx + 2Cyy.
This provides an independent check.
5 Worked example 4: dipole potential in spherical coordinates
Take an electric dipole p = pz at the origin in the far-field limit. Its potential is
The radial derivative is ∂V∕∂r = −2kep cos 𝜃∕r3. The polar derivative is ∂V∕∂𝜃 = −k
ep sin 𝜃∕r2.
Hence
On the positive axis 𝜃 = 0, the field points along +z and has magnitude 2kep∕r3. In the equatorial
plane 𝜃 = π∕2, Er = 0 and E𝜃 = kep∕r3 points along −z, consistent with the direct dipole
calculation.
Figure 2. The radial and polar components of a far-field dipole electric field. Their magnitudes
and directions depend on the angle from the dipole axis.
6 Worked example 5: spherical potential with an angular harmonic
In a source-free region let
This functional form resembles an ℓ = 2 harmonic satisfying a spherical boundary at
r = b. Differentiate the radial factor f(r) = r2 − b5r−3: f′(r) = 2r + 3b5∕r4. Also
dP2(cos 𝜃)∕d𝜃 = −3 sin 𝜃 cos 𝜃. Therefore
At r = b, the potential is zero for every angle and the tangential component E𝜃 vanishes, as
required at a spherical equipotential boundary. The Normal component may remain
nonzero.
7 Exercises and complete solutions
Exercise 1. For V (x,y) = V 0 + ax + by, find E.
Solution. E = −ax − by, a uniform field; the additive constant has no effect.
Exercise 2. If V (s) = K∕s for cylindrical radius s > 0, what is Es?
Solution. ∂V∕∂s = −K∕s2, so E
s = +K∕s2.
Exercise 3. Let V (r) = C∕r in spherical coordinates. Find the field.
Solution. Er = −d(C∕r)∕dr = C∕r2 and E
𝜃 = Eϕ = 0. This is the radial point-charge form with
C = keQ.
Exercise 4. On the equator of the dipole in Example 4, why is E nonzero even though
V = 0?
Solution. ∂V∕∂𝜃 = −kep∕r2 at 𝜃 = π∕2, so E
𝜃 = kep∕r3. A scalar field may equal zero on a surface
while having a nonzero derivative normal to it.
References
[1] MIT 8.02.1x, Chapter 4, Calculating Electric Field from Electric Potential.
[2] D. J. Griffiths, Introduction to Electrodynamics, gradient in orthogonal coordinates
and electrostatic potential.