Physics Library
 An open source physics library
Encyclopedia | Forums | Docs | Random  

[parent] Calculating Electric Fields from Potential in Three Coordinate Systems

(Example)

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,

∇V  =  ˆxVx + ˆyVy + ˆzVz.
(1)

In cylindrical coordinates (s,ϕ,z),

|-----------------------------|
|       ∂V--    1-∂V--   ∂V-- |
∇V  =  ˆs∂s  + ˆϕ s ∂ϕ +  ˆz∂z . |
-------------------------------
(2)

In spherical coordinates (r,𝜃,ϕ), with 𝜃 measured downward from +z,

|------------------------------------|
|∇V  =  ˆr∂V--+ ˆ𝜃 1∂V--+ ϕˆ--1---∂V--.|
---------∂r------r-∂𝜃-----r-sin-𝜃-∂ϕ--|
(3)

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.

PIC

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

V(x, y,z) = V0 + αx2y − βz,
(4)

where α has units V∕m3 and β has units V∕m. Differentiate term by term, keeping other independent coordinates fixed:

∂V--= 2αxy,
∂x
∂V       2
----= αx  ,
∂y
∂V--= − β.
∂z
(5)

Thus

|--------------------------|
E--=-−-2αxy-ˆx-−-αx2-ˆy +-βˆz.-
(6)

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:

              |----------|
∂V--   A-     |      A-  |
∂s  =  s ,    |E = −  sˆs.|
              ------------
(7)

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

∂V                    ∂V
----= 2Cs  cos2ϕ,     ----= − 2Cs2 sin 2ϕ.
∂s                    ∂ ϕ
(8)

Insert both into the cylindrical gradient, retaining the 1∕s factor:

|----------------------------------|
|E =  − 2Cs cos2ϕ ˆs + 2Cs sin2ϕ ˆϕ. |
-----------------------------------
(9)

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

V (r,𝜃) = kep-cos𝜃.
             r2
(10)

The radial derivative is ∂V∕∂r = −2kep cos 𝜃∕r3. The polar derivative is ∂V∕∂𝜃 = −k ep sin 𝜃∕r2. Hence

|-------------------------------------------|
Er =  2kep-cos𝜃,   E𝜃 = kep-sin-𝜃,   Eϕ = 0. |
----------r3---------------r3----------------
(11)

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.

PIC

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

            (       )
              2   b5                         3u2-−-1-
V (r,𝜃) = A  r  − r3   P2(cos𝜃),     P2(u) =    2    .
(12)

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

|---------(---------)-----------|
|               3b5             |
Er =  − A  2r +  r4   P2(cos𝜃), |
--------------------------------
(13)

|---------(--------)-----------|
|     3A     2   b5            |
|E𝜃 = ---   r −  -3  sin 𝜃cos 𝜃.|
-------r---------r--------------
(14)

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.


"Calculating Electric Fields from Potential in Three Coordinate Systems" is owned by bloftin.
(view preamble)
View style:
Other names:  ES04E6
Keywords:  potential gradient, Cartesian coordinates, cylindrical coordinates, spherical coordinates, dipole potential, Legendre polynomial

This object's parent.

Cross-references: scalar, Normal, equipotential, harmonic, dipole axis, electric field, equatorial plane, magnitude, electric dipole, curl, units, vectors, gradient, electrostatic field, cylindrical coordinates, Cartesian coordinates, boundary, coordinate system, unit vectors, scale factors, spherical coordinates
There is 1 reference to this object.

This is version 1 of Calculating Electric Fields from Potential in Three Coordinate Systems, born on 2026-11-28.
Object id is 1631, canonical name is CalculatingElectricFieldsFromPotentialInThreeCoordinateSystems.
Accessed 3 times total.

Classification:
Physics Classification: 41.20.Cv (Electrostatics; Poisson and Laplace equations, boundary-value)
 41.20.-q (Applied classical electromagnetism)
 01.40.Fk (Physics education research )

Pending Errata and Addenda

None.

Discussion

No messages.

Interact