14The Magnetic Field in Various Situations

14–1The vector potential

In this chapter we continue our discussion of magnetic fields associated with steady currents—the subject of magnetostatics. The magnetic field is related to electric currents by our basic equations

We want now to solve these equations mathematically in a general way, that is, without requiring any special symmetry or intuitive guessing. In electrostatics, we found that there was a straightforward procedure for finding the field when the positions of all electric charges are known: One simply works out the scalar potential  by taking an integral over the charges—as in Eq. (4.25). Then if one wants the electric field, it is obtained from the derivatives of . We will now show that there is a corresponding procedure for finding the magnetic field  if we know the current density  of all moving charges.

In electrostatics we saw that (because the curl of  was always zero) it was possible to represent  as the gradient of a scalar field . Now the curl of  is not always zero, so it is not possible, in general, to represent it as a gradient. However, the divergence of  is always zero, and this means that we can always represent  as the curl of another vector field. For, as we saw in Section 2–7, the divergence of a curl is always zero. Thus we can always relate  to a field we will call  by

Or, by writing out the components,

Writing guarantees that Eq. (14.1) is satisfied, since, necessarily,

The field  is called the vector potential.

You will remember that the scalar potential  was not completely specified by its definition. If we have found  for some problem, we can always find another potential  that is equally good by adding a constant:

The new potential  gives the same electric fields, since the gradient  is zero; and  represent the same physics.

Similarly, we can have different vector potentials  which give the same magnetic fields. Again, because  is obtained from  by differentiation, adding a constant to  doesn’t change anything physical. But there is even more latitude for . We can add to  any field which is the gradient of some scalar field, without changing the physics. We can show this as follows. Suppose we have an  that gives correctly the magnetic field  for some real situation, and ask in what circumstances some other new vector potential  will give the same field  if substituted into (14.3). Then and  must have the same curl:

Therefore

But if the curl of a vector is zero it must be the gradient of some scalar field, say , so . That means that if  is a satisfactory vector potential for a problem then, for any , at all,

will be an equally satisfactory vector potential, leading to the same field .

It is usually convenient to take some of the “latitude” out of  by arbitrarily placing some other condition on it (in much the same way that we found it convenient—often—to choose to make the potential  zero at large distances). We can, for instance, restrict  by choosing arbitrarily what the divergence of  must be. We can always do that without affecting . This is because although and  have the same curl, and give the same , they do not need to have the same divergence. In fact,, and by a suitable choice of  we can make  anything we wish.

What should we choose for  ? The choice should be made to get the greatest mathematical convenience and will depend on the problem we are doing. For magnetostatics, we will make the simple choice

(Later, when we take up electrodynamics, we will change our choice.) Our complete definition1 of  is then, for the moment, and .

To get some experience with the vector potential, let’s look first at what it is for a uniform magnetic field . Taking our -axis in the direction of , we must have

By inspection, we see that one possible solution of these equations is

Or we could equally well take

Still another solution is a linear combination of the two:

It is clear that for any particular field , the vector potential  is not unique; there are many possibilities.

The third solution, Eq. (14.8), has some interesting properties. Since the -component is proportional to  and the -component is proportional to , must be at right angles to the vector from the -axis, which we will call  (the “prime” is to remind us that it is not the vector displacement from the origin). Also, the magnitude of  is proportional to  and, hence, to . So can be simply written (for our uniform field) as

The vector potential  has the magnitude  and rotates about the -axis as shown in Fig. 14–1. If, for example, the  field is the axial field inside a solenoid, then the vector potential circulates in the same sense as do the currents of the solenoid.

Fig. 14–1.A uniform magnetic field  in the -direction corresponds to a vector potential  that rotates about the -axis, with the magnitude  ( is the displacement from the -axis).

The vector potential for a uniform field can be obtained in another way. The circulation of  on any closed loop  can be related to the surface integral of  by Stokes’ theorem, Eq. (3.38):

But the integral on the right is equal to the flux of  through the loop, so

So the circulation of  around any loop is equal to the flux of  through the loop. If we take a circular loop, of radius  in a plane perpendicular to a uniform field , the flux is just

If we choose our origin on an axis of symmetry, so that we can take  as circumferential and a function only of , the circulation will be

We get, as before,

In the example we have just given, we have calculated the vector potential from the magnetic field, which is opposite to what one normally does. In complicated problems it is usually easier to solve for the vector potential, and then determine the magnetic field from it. We will now show how this can be done.

14–2The vector potential of known currents

Since  is determined by currents, so also is . We want now to find  in terms of the currents. We start with our basic equation (14.2):

which means, of course, that

This equation is for magnetostatics what the equation

was for electrostatics.

Our equation (14.12) for the vector potential looks even more like that for  if we rewrite  using the vector identity Eq. (2.58):

Since we have chosen to make  (and now you see why), Eq. (14.12) becomes

This vector equation means, of course, three equations:

And each of these equations is mathematically identical to

All we have learned about solving for potentials when  is known can be used for solving for each component of  when  is known!

We have seen in Chapter 4 that a general solution for the electrostatic equation (14.17) is

So we know immediately that a general solution for  is

and similarly for and . (Figure 14–2 will remind you of our conventions for and .) We can combine the three solutions in the vector form

(You can verify if you wish, by direct differentiation of components, that this integral for  satisfies  so long as , which, as we saw, must happen for steady currents.)

Fig. 14–2.The vector potential  at point  is given by an integral over the current elements  at all points .

We have, then, a general method for finding the magnetic field of steady currents. The principle is: the -component of vector potential arising from a current density  is the same as the electric potential  that would be produced by a charge density  equal to  —and similarly for the - and -components. (This principle works only with components in fixed directions. The “radial” component of  does not come in the same way from the “radial” component of , for example.) So from the vector current density , we can find  using Eq. (14.19)—that is, we find each component of  by solving three imaginary electrostatic problems for the charge distributions, and . Then we get  by taking various derivatives of  to obtain . It’s a little more complicated than electrostatics, but the same idea. We will now illustrate the theory by solving for the vector potential in a few special cases.

14–3A straight wire

For our first example, we will again find the field of a straight wire—which we solved in the last chapter by using Eq. (14.2) and some arguments of symmetry. We take a long straight wire of radius , carrying the steady current . Unlike the charge on a conductor in the electrostatic case, a steady current in a wire is uniformly distributed throughout the cross section of the wire. If we choose our coordinates as shown in Fig. 14–3, the current density vector  has only a -component. Its magnitude is

inside the wire, and zero outside.

Fig. 14–3.A long cylindrical wire along the -axis with a uniform current density .

Since and  are both zero, we have immediately

To get  we can use our solution for the electrostatic potential  of a wire with a uniform charge density . For points outside an infinite charged cylinder, the electrostatic potential is

where and is the charge per unit length,. So  must be

for points outside a long wire carrying a uniform current. Since , we can also write

Now we can find  from (14.4). There are only two of the six derivatives that are not zero. We get

We get the same result as before:  circles around the wire, and has the magnitude

14–4A long solenoid

Next, we consider again the infinitely long solenoid with a circumferential current on the surface of  per unit length. (We imagine there are  turns of wire per unit length, carrying the current , and we neglect the slight pitch of the winding.)

Just as we have defined a “surface charge density” , we define here a “surface current density”  equal to the current per unit length on the surface of the solenoid (which is, of course, just the average  times the thickness of the thin winding). The magnitude of  is, here,. This surface current (see Fig. 14–4) has the components:

Now we must find  for such a current distribution.

Fig. 14–4.A long solenoid with a surface current density .

First, we wish to find  for points outside the solenoid. The result is the same as the electrostatic potential outside a cylinder with a surface charge density

with . We have not solved such a charge distribution, but we have done something similar. This charge distribution is equivalent to two solid cylinders of charge, one positive and one negative, with a slight relative displacement of their axes in the -direction. The potential of such a pair of cylinders is proportional to the derivative with respect to  of the potential of a single uniformly charged cylinder. We could work out the constant of proportionality, but let’s not worry about it for the moment.

The potential of a cylinder of charge is proportional to ; the potential of the pair is then

So we know that

where is some constant. Following the same argument, we would find

Although we said before that there was no magnetic field outside a solenoid, we find now that there is an -field which circulates around the -axis, as in Fig. 14–4. The question is: Is its curl zero?

Clearly, and  are zero, and

So the magnetic field outside a very long solenoid is indeed zero, even though the vector potential is not.

We can check our result against something else we know: The circulation of the vector potential around the solenoid should be equal to the flux of  inside the coil (Eq. 14.11). The circulation is  or, since , the circulation is . Notice that it is independent of . That is just as it should be if there is no  outside, because the flux is just the magnitude of  inside the solenoid times . It is the same for all circles of radius . We have found in the last chapter that the field inside is , so we can determine the constant :

or

So the vector potential outside has the magnitude

and is always perpendicular to the vector .

We have been thinking of a solenoidal coil of wire, but we would produce the same fields if we rotated a long cylinder with an electrostatic charge on the surface. If we have a thin cylindrical shell of radius  with a surface charge , rotating the cylinder makes a surface current , where  is the velocity of the surface charge. There will then be a magnetic field  inside the cylinder.

Fig. 14–5.A rotating charged cylinder produces a magnetic field inside. A short radial wire rotating with the cylinder has charges induced on its ends.

Now we can raise an interesting question. Suppose we put a short piece of wire  perpendicular to the axis of the cylinder, extending from the axis out to the surface, and fastened to the cylinder so that it rotates with it, as in Fig. 14–5. This wire is moving in a magnetic field, so the  forces will cause the ends of the wire to be charged (they will charge up until the -field from the charges just balances the  force). If the cylinder has a positive charge, the end of the wire at the axis will have a negative charge. By measuring the charge on the end of the wire, we could measure the speed of rotation of the system. We would have an “angular-velocity meter”!

But are you wondering: “What if I put myself in the frame of reference of the rotating cylinder? Then there is just a charged cylinder at rest, and I know that the electrostatic equations say there will be no electric fields inside, so there will be no force pushing charges to the center. So something must be wrong.” But there is nothing wrong. There is no “relativity of rotation.” A rotating system is not an inertial frame, and the laws of physics are different. We must be sure to use equations of electromagnetism only with respect to inertial coordinate systems.

It would be nice if we could measure the absolute rotation of the earth with such a charged cylinder, but unfortunately the effect is much too small to observe even with the most delicate instruments now available.

14–5The field of a small loop; the magnetic dipole

Let’s use the vector-potential method to find the magnetic field of a small loop of current. As usual, by “small” we mean simply that we are interested in the fields only at distances large compared with the size of the loop. It will turn out that any small loop is a “magnetic dipole.” That is, it produces a magnetic field like the electric field from an electric dipole.

Fig. 14–6.A rectangular loop of wire with the current . What is the magnetic field at  ? ( and .)

We take first a rectangular loop, and choose our coordinates as shown in Fig. 14–6. There are no currents in the -direction, so  is zero. There are currents in the -direction on the two sides of length . In each leg, the current density (and current) is uniform. So the solution for  is just like the electrostatic potential from two charged rods (see Fig. 14–7). Since the rods have opposite charges, their electric potential at large distances would be just the dipole potential (Section 6–5). At the point  in Fig. 14–6, the potential would be

where  is the dipole moment of the charge distribution. The dipole moment, in this case, is the total charge on one rod times the separation between them:

The dipole moment points in the negative -direction, so the cosine of the angle between and  is  (where  is the coordinate of ). So we have

Fig. 14–7.The distribution of  in the current loop of Fig. 14–6.

We get  simply by replacing by :

By the same reasoning,

Again, is proportional to  and  is proportional to , so the vector potential (at large distances) goes in circles around the -axis, circulating in the same sense as  in the loop, as shown in Fig. 14–8.

Fig. 14–8.The vector potential of a small current loop at the origin (in the -plane); a magnetic dipole field.

The strength of  is proportional to , which is the current times the area of the loop. This product is called the magnetic dipole moment (or, often, just “magnetic moment”) of the loop. We represent it by :

The vector potential of a small plane loop of any shape (circle, triangle, etc.) is also given by Eqs. (14.30) and (14.31) provided we replace  by

We leave the proof of this to you.

We can put our equation in vector form if we define the direction of the vector  to be the normal to the plane of the loop, with a positive sense given by the right-hand rule (Fig. 14–8). Then we can write

We have still to find . Using (14.33) and (14.34), together with (14.4), we get

(where by  we mean ),

The components of the -field behave exactly like those of the -field for a dipole oriented along the -axis. (See Eqs. (6.14) and (6.15); also Fig. 6–4.) That’s why we call the loop a magnetic dipole. The word “dipole” is slightly misleading when applied to a magnetic field because there are no magnetic “poles” that correspond to electric charges. The magnetic “dipole field” is not produced by two “charges,” but by an elementary current loop.

It is curious, though, that starting with completely different laws, and , we can end up with the same kind of a field. Why should that be? It is because the dipole fields appear only when we are far away from all charges or currents. So through most of the relevant space the equations for and  are identical: both have zero divergence and zero curl. So they give the same solutions. However, the sources whose configuration we summarize by the dipole moments are physically quite different—in one case, it’s a circulating current; in the other, a pair of charges, one above and one below the plane of the loop for the corresponding field.

14–6The vector potential of a circuit

Fig. 14–9.For a fine wire  is the same as .

We are often interested in the magnetic fields produced by circuits of wire in which the diameter of the wire is very small compared with the dimensions of the whole system. In such cases, we can simplify the equations for the magnetic field. For a thin wire we can write our volume element as

where  is the cross-sectional area of the wire and  is the element of distance along the wire. In fact, since the vector  is in the same direction as , as shown in Fig. 14–9 (and we can assume that  is constant across any given cross section), we can write a vector equation:

But  is just what we call the current  in a wire, so our integral for the vector potential (14.19) becomes

(see Fig. 14–10). (We assume that  is the same throughout the circuit. If there are several branches with different currents, we should, of course, use the appropriate  for each branch.)

Fig. 14–10.The magnetic field of a wire can be obtained from an integral around the circuit.

Again, we can find the fields from (14.38) either by integrating directly or by solving the corresponding electrostatic problems.

14–7The law of Biot and Savart

In studying electrostatics we found that the electric field of a known charge distribution could be obtained directly with an integral, Eq. (4.16):

As we have seen, it is usually more work to evaluate this integral—there are really three integrals, one for each component—than to do the integral for the potential and take its gradient.

There is a similar integral which relates the magnetic field to the currents. We already have an integral for , Eq. (14.19); we can get an integral for  by taking the curl of both sides:

Now we must be careful: The curl operator means taking the derivatives of , that is, it operates only on the coordinates . We can move the  operator inside the integral sign if we remember that it operates only on variables with the subscript , which of course, appear only in

We have, for the -component of ,

The quantity in brackets is just the negative of the -component of

Corresponding results will be found for the other components, so we have

The integral gives  directly in terms of the known currents. The geometry involved is the same as that shown in Fig. 14–2.

If the currents exist only in circuits of small wires we can, as in the last section, immediately do the integral across the wire, replacing by , where  is an element of length of the wire. Then, using the symbols in Fig. 14–10,

(The minus sign appears because we have reversed the order of the cross product.) This equation for  is called the Biot-Savart law, after its discoverers. It gives a formula for obtaining directly the magnetic field produced by wires carrying currents.

You may wonder: “What is the advantage of the vector potential if we can find  directly with a vector integral? After all, also involves three integrals!” Because of the cross product, the integrals for  are usually more complicated, as is evident from Eq. (14.41). Also, since the integrals for  are like those of electrostatics, we may already know them. Finally, we will see that in more advanced theoretical matters (in relativity, in advanced formulations of the laws of mechanics, like the principle of least action to be discussed later, and in quantum mechanics) the vector potential plays an important role.

  1. Our definition still does not uniquely determine . For a unique specification we would also have to say something about how the field  behaves on some boundary, or at large distances. It is sometimes convenient, for example, to choose a field which goes to zero at large distances.

[