**Required math: vectors, calculus**

**Required physics: electrostatics**

Reference: Griffiths, David J. (2007) Introduction to Electrodynamics, 3rd Edition; Prentice Hall – Problems 2.21 – 2.24.

We’ve seen that the electric field can be expressed as the gradient of a potential function

and that the potential can be calculated from a line integral of the field

where is some arbitrarily chosen reference point. The actual value of doesn’t matter, since it always disappears when calculating the field, or when calculating a potential difference. However, if we want to define a potential function, we do need to specify this point.

Calculating from the field is something of an artificial exercise, since usually it is the field we want, not the potential. However, it’s useful to run through a few examples to see how the potential can be calculated in this way.

**Example 1. **We have a uniformly charged solid sphere with radius and total charge . We can find the potential at any point inside or outside the sphere, since we worked out the field as Example 2 in an earlier post, although there we used the charge density rather than the total charge . For :

where is the charge density. In terms of this is

for :

where is the charge density. In terms of this is

So

Outside the sphere

Using infinity as the reference point, the potential outside the sphere is

Inside, we have

**Example 2. **For an infinitely long charged wire of linear charge density we can use the field calculated in Example 3 on the earlier post. The electric field is, for a distance from the wire

The reference point for the potential calculation in this case is a bit tricky. Suppose we choose some arbitrary distance from the wire, which we’ll represent as . Then

Choosing either or doesn’t work, since the logarithm term blows up at both points. However, since the reference point is arbitrary, we might just as well leave it at some finite, non-zero value of .

Since the potential depends only on the distance , the gradient in cylindrical coordinates contains only a radial term, and we get

Note that cancels out, so its precise value doesn’t matter.

**Example 3. **A hollow spherical shell contains charge density for . We worked out the field in Example 5 in the earlier post. The electric field is for ; for and for . Using infinity as the reference point, we can get the potential at the centre of the sphere.

(There is no integral for since there.) The integrals are all fairly simple, and we get

We can get the potential in the region by evaluating the integrals

Finally, the potential outside the sphere () is

Note that the potentials are all continuous at the various boundaries (always a good idea to check this!).

**Example 4. **A coaxial cable has a cylindrical inner core of radius with uniform volume charge density , and an outer cylindrical shell of radius with a surface charge density that is of opposite sign to the charge on the core. The surface charge density is such that the cable is electrically neutral. We worked out the field in Example 6 in the earlier post. The field inside the inner cylinder is and between the inner cylinder and the outer cylinder it is where is the distance from the axis. The potential *difference* between the axis and the outer cylinder is then

Note that in calculating a potential difference, we don’t need to use a reference point for the potential.

Pingback: Electric potential from charges – Examples 1 « Physics tutorials

Pingback: Electric potential from charges – Examples 2 « Physics tutorials

Pingback: Physics pages | Fitoimage

Pingback: Laplace’s equation in cylindrical coordinates « Physics tutorials

steen millinderex1 eq15 repeats it self, the gradient is missing

gwrowePost authorI’ve removed the duplicated bits, but what gradient are you referring to?