**Required math: vectors, calculus**

**Required physics: electrostatics**

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

An important consequence of the curl of the electric field being zero in electrostatics (that is, in the absence of any moving charges) comes from Stokes’s theorem, which for the electric field is

where the integral on the left is taken over some open surface and that on the right is over the boundary curve of that surface. Since the curl is zero, this means that the line integral of the electric field around any closed path is zero. This means that the line integral of along a path connecting two points and is independent of the path. This follows since if the integral did depend on the path, we could choose one path from to and then a different path (where the integral had a different absolute value) on the return path to . In that case the integral over the combined path, which is a closed curve, would not be zero, which isn’t allowed.

In fact the path integral is another way of defining the electric potential function : the potential difference between two points is the negative of the line integral of along any path connecting those two points:

Although it is only the potential difference which has any physical significance, it is traditional to define the potential function so that it has a definite value at each point. To do this, we need to specify a reference point at which by definition, and then calculate all other values of the potential by integrating from that reference point to the point in question. For many applications, the reference point is chosen as infinity, because for any localized distribution of charge, its effect will fall off to zero as we get infinitely far from it. However, this isn’t cast in stone, and in some problems, other reference points are more convenient.

The curl condition means that we can’t specify any old vector field as a description of an electric field in space. For example, if we tried to specify as

we can prove this isn’t a valid expression for an electric field by calculating its curl. We have

We need to work out only the component to discover that it is , which means the curl cannot be zero so this is not a valid electric field.

However, the field given by

is a valid electric field since as can be verified by direct calculation.

We can work out the potential function for this field, but we need to specify a reference point. Although this is a valid electric field, it is a bizarre one since it gets larger the further from the origin we are. Since the field is zero at the origin, this seems a sensible place to set our reference point for the potential. We can use 1 to work out the potential, but we need a path of integration. The integral is independent of the path so it doesn’t matter which path we choose. Since the field is specified in rectangular coordinates, a sensible path from the origin out to a point seems to be as follows. Start at the origin and move along the axis to the point . Then from this point, keep and constant and follow the line from to . Finally, keep and constant and move along the line from to .

Along the first line segment, , but since along our chosen path, the integral contributes zero.

Along the second line segment since along this segment. We get .

Finally along the third line segment and .

The total potential is the sum of these three contributions, so we get

The answer can be verified directly by calculating .

## Comments

It’s important to emphasize that this is true only in the electrostatic case. This is not mentioned anywhere in the text of this post (indeed, the word electrostatics appears only in two headings). It would be easy for a student to read the text and be misguided into thinking that this is true in general. A sentence or two of clarification at the very beginning of the post is bound to be helpful to many readers.

Otherwise, the post is nice and clear.

The title of the post states that we’re considering electrostatics, but I’ve added this explicitly at the beginning of the text as well.

## Trackbacks

[...] that the potential can be calculated from a line integral of the [...]

[...] the potential difference between two points can be calculated [...]

[...] the electric field is independent of the path; it depends only on the endpoints and . We’ve seen earlier that the line integral of the field is the negative of the potential difference between the two [...]

[...] potentials from the two wires add (according to the superposition principle), so we [...]

[...] this looks ugly, we notice that a potential function exists for this field by using the following argument. First we consider a point charge at the [...]