29.4 The Magnetic Field of a Current

Moving charges are the source of magnetic fields, but the magnetic fields of current-carrying wires—immense numbers of charges moving together—are much more important than the feeble magnetic fields of individual charges. Real current-carrying wires, with their twists and turns, have very complex fields. However, we can once again focus on the physics by using simplified models. It turns out that three common magnetic field models are the basis for understanding a wide variety of magnetic phenomena. We present them here together as a reference; the next few sections of this chapter will be devoted to justifying and explaining these results.

MODEL 29.1 Three key magnetic fields

An infinite wire:

  • Straight wires

The figure illustrates a current-carrying horizontal wire placed in a magnetic field.
B=μ02πIr

A current loop:

  • Flat coils

The figure illustrates side view of flat coil with N turns in a magnetic field.
Bcenter=μ02NIR

A solenoid:

  • Helical coils

The figure illustrates a current carrying helical coil in a uniform magnetic field.

To begin, we need to write the Biot-Savart law in terms of current. FIGURE 29.13a shows a current-carrying wire. The wire as a whole is electrically neutral, but current I represents the motion of positive charge carriers through the wire. Suppose the small amount of moving charge Δq spans the small length Δs. The charge has velocity v ⃗=Δs⃗/Δt, where the vector Δs⃗, which is parallel to v ⃗, is the charge’s displacement vector. If Δq is small enough to treat as a point charge, the magnetic field it creates at a point in space is proportional to (Δq)v ⃗. We can write (Δq)v ⃗ in terms of the wire’s current I as

(Δq)v ⃗=ΔqΔs⃗Δt=ΔqΔt Δs⃗=I Δs⃗ (29.5)

where we used the definition of current, I=Δ q /Δt.

FIGURE 29.13 Relating the charge velocity v ⃗ to the current I.

The figure labeled ("a") illustrates a current-carrying wire in motion.
Full Alternative Text
The figure labeled (b) illustrates a moving current-carrying wire in a plane.
Full Alternative Text

If we replace qv ⃗ in the Biot-Savart law with I Δs⃗, we find that the magnetic field of a very short segment of wire carrying current I is

B⃗current segment=μ04πI Δs⃗×r^r2(magnetic field of a very short segment of current)  (29.6)

Equation 29.6 is still the Biot-Savart law, only now written in terms of current rather than the motion of an individual charge. FIGURE 29.13b shows the direction of the current segment’s magnetic field as determined by using the right-hand rule.

Equation 29.6 is the basis of a strategy for calculating the magnetic field of a current-carrying wire. You will recognize that it is the same basic strategy you learned for calculating the electric field of a continuous distribution of charge. The goal is to break a problem down into small steps that are individually manageable.

PROBLEM-SOLVING STRATEGY 29.1
The magnetic field of a current

MODEL Model the wire as a simple shape.

VISUALIZE For the pictorial representation:

  • Draw a picture, establish a coordinate system, and identify the point P at which you want to calculate the magnetic field.

  • Divide the current-carrying wire into small segments for which you already know how to determine B⃗. This is usually, though not always, a division into very short segments of length Δs.

  • Draw the magnetic field vector for one or two segments. This will help you identify distances and angles that need to be calculated.

SOLVE The mathematical representation is B⃗net=∑B⃗i.

  • Write an algebraic expression for each of the three components of B⃗ (unless you are sure one or more is zero) at point P. Let the (x, y, z)-coordinates of the point remain as variables.

  • Express all angles and distances in terms of the coordinates.

  • Let Δs→ds and the sum become an integral. Think carefully about the integration limits for this variable; they will depend on the boundaries of the wire and on the coordinate system you have chosen to use.

REVIEW Check that your result is consistent with any limits for which you know what the field should be.

The key idea here, as it was in Chapter 23, is that integration is summation. We need to add up the magnetic field contributions of a vast number of current segments, and we’ll do that by letting the sum become an integral.

EXAMPLE 29.3 The magnetic field of a long, straight wire

A long, straight wire carries current I in the positive x-direction. Find the magnetic field at distance r from the wire.

MODEL Model the wire as being infinitely long.

VISUALIZE FIGURE 29.14 illustrates the steps in the problem-solving strategy. We’ve chosen a coordinate system with point P on the y-axis. We’ve then divided the wire into small segments, labeled with index i, each containing a small amount Δq of moving charge. Unit vector r^ and angle θi are shown for segment i. You should use the right-hand rule to convince yourself that B⃗i points out of the figure, in the positive z-direction. This is the direction no matter where segment i happens to be along the x-axis. Consequently, Bx (the component of B⃗ parallel to the wire) and By (the component of B⃗ straight away from the wire) are zero. The only component of B⃗ we need to evaluate is Bz, the component tangent to a circle around the wire.

FIGURE 29.14 Calculating the magnetic field of a long, straight wire carrying current I.

The figure illustrates the method of calculating the magnetic field of a long, straight wire carrying current I.

SOLVE We can use the Biot-Savart law to find the field (Bi)z of segment i. The cross product Δs⃗i×r^ has magnitude (Δx)(1)sin θi, hence

(Bi)z=μ04πI Δx sin θiri2=μ04πI sin θiri2Δx=μ04πI sin θixi2+y2Δx

where we wrote the distance ri in terms of xi and y. We also need to express θi in terms of xi and y. Because sin(180°−θ)=sin θ, this is

sin θi=sin(180°−θi)=yri=yxi2+y2

With this expression for sin θi, the magnetic field of segment i is

(Bi)z=μ04πIy(xi2+y2)3/2Δx

Now we’re ready to sum the magnetic fields of all the segments. The superposition is a vector sum, but in this case only the z-components are nonzero. Summing all the (Bi)z gives

Bwire=μ0Iy4π∑iΔx( x i 2+ y 2)3/2→μ0Iy4π∫−∞∞dx ( x 2 + y 2 ) 3/2

Only at the very last step did we convert the sum to an integral. Then our model of the wire as being infinitely long sets the integration limits at ±∞. This is a standard integral that can be found in Appendix A or with integration software. Evaluation gives

Bwire=μ0Iy4πxy2 ( x 2+ y 2)1/2|−∞∞=μ02πIy

This is the magnitude of the field. The field direction is determined by using the right-hand rule.

The coordinate system was our choice, and there’s nothing special about the y-axis. The symbol y is simply the distance from the wire, which is better represented by r. With this change, the magnetic field is

B⃗wire=(μ02πIr, tangent to a circle around the wirein the right-hand direction)

REVIEW FIGURE 29.15 shows the magnetic field of a current-carrying wire. Compare this to Figure 29.2 and convince yourself that the direction shown agrees with the right-hand rule.

FIGURE 29.15 The magnetic field of a long, straight wire carrying current I.

The figure illustrates the magnetic field of a long, straight wire carrying a current labeled I.

The magnetic field of an infinite, straight wire was the first of our key magnetic field models. Example 29.3 has shown that the field has magnitude

Bwire=μ02πIr (long, straight wire) (29.7)

The field direction, encircling the wire, is given by the right-hand rule.

EXAMPLE 29.4 The magnetic field strength near a heater wire

A 1.0-m-long, 1.0-mm-diameter nichrome heater wire is connected to a 12 V battery. What is the magnetic field strength 1.0 cm away from the wire?

MODEL 1 cm is much less than the 1 m length of the wire, so we will model the wire as infinitely long.

SOLVE The current through the wire is I=ΔVbat/R, where the wire’s resistance R is

R=ρLA=ρLπr2=1.9 Ω

The nichrome resistivity ρ=1.50×10−6 Ω m was taken from Table 27.2. Thus the current is I=(12 V)/(1.9 Ω)=6.3 A. The magnetic field strength at distance d=1.0 cm=0.010 m from the wire is

Bwire =μ02πId=(1.26×10−6 T m/A)(6.3 A)2π(0.010 m) =1.3×10−4 T

REVIEW The magnetic field of the wire is slightly more than twice the strength of the earth’s magnetic field.

Motors, loudspeakers, metal detectors, and many other devices generate magnetic fields with coils of wire. The simplest coil is a single-turn circular loop of wire. A circular loop of wire with a circulating current is called a current loop.

EXAMPLE 29.5 The magnetic field of a current loop

FIGURE 29.16a shows a current loop, a circular loop of wire with radius R that carries current I. Find the magnetic field of the current loop at distance z on the axis of the loop.

FIGURE 29.16 A current loop.

The figure labeled "(a)" illustrates a practical current loop.
The figure labeled (b) illustrates an ideal current loop.

MODEL Real coils need wires to bring the current in and out, but we’ll model the coil as a current moving around the full circle shown in FIGURE 29.16b.

VISUALIZE FIGURE 29.17 shows a loop for which we’ve assumed that the current is circulating ccw. We’ve chosen a coordinate system in which the loop lies at z=0 in the xy-plane. Let segment i be the segment at the top of the loop. Vector Δs⃗i is parallel to the x-axis and unit vector r^ is in the yz-plane, thus angle θi, the angle between Δs⃗i and r^, is 90°.

FIGURE 29.17 Calculating the magnetic field of a current loop.

The figure illustrates the method of calculating the magnetic field of a current loop.

The direction of B⃗i, the magnetic field due to the current in segment i, is given by the cross product Δs⃗i×r^. B⃗i must be perpendicular to Δs⃗i and perpendicular to r^. You should convince yourself that B⃗i in Figure 29.17 points in the correct direction. Notice that the y-component of B⃗i is canceled by the y-component of magnetic field B⃗j due to the current segment at the bottom of the loop, 180° away. In fact, every current segment on the loop can be paired with a segment 180° away, on the opposite side of the loop, such that the x- and y-components of B⃗ cancel and the components of B⃗ parallel to the z-axis add. In other words, the symmetry of the loop requires the on-axis magnetic field to point along the z-axis. Knowing that we need to sum only the z-components will simplify our calculation.

SOLVE We can use the Biot-Savart law to find the z-component (Bi)z=Bicos ϕ of the magnetic field of segment i. The cross product Δs⃗i×r^ has magnitude (Δs)(1) sin 90°=Δs, thus

(Bi)z=μ04πI Δsr2cos ϕ=μ0Icosϕ4π(z2+R2)Δs

where we used r=(z2+R2)1/2. You can see, because ϕ+γ =90°, that angle ϕ is also the angle between r^ and the radius of the loop. Hence cos ϕ=R/r, and

(Bi)z=μ0IR4π(z2+R2)3/2Δs

The final step is to sum the magnetic fields due to all the segments:

Bloop=∑i (Bi)z=μ0IR4π( z 2+ R 2)3/2∑iΔs

In this case, unlike the straight wire, none of the terms multiplying Δs depends on the position of segment i, so all these terms can be factored out of the summation. We’re left with a summation that adds up the lengths of all the small segments. But this is just the total length of the wire, which is the circumference 2πR. Thus the on-axis magnetic field of a current loop is

Bloop=μ0IR4π(z2+R2)3/22πR=μ02IR2(z2+R2)3/2

In practice, current often passes through a coil consisting of N turns of wire. If the turns are all very close together, so that the magnetic field of each is essentially the same, then the magnetic field of a coil is N times the magnetic field of a current loop. The magnetic field at the center (z=0) of an N-turn coil, or N-turn current loop, is

Bcoil center=μ02NIR  (N-turn current loop) (29.8)

This is the second of our key magnetic field models.

EXAMPLE 29.6 Matching the earth’s magnetic field

What current is needed in a 5-turn, 10-cm-diameter coil to cancel the earth’s magnetic field at the center of the coil?

MODEL One way to create a zero-field region of space is to generate a magnetic field equal to the earth’s field but pointing in the opposite direction. The vector sum of the two fields is zero.

VISUALIZE FIGURE 29.18 shows a five-turn coil of wire. We will assume that the coil is thin and model it as a five-turn loop.

FIGURE 29.18 A coil of wire.

The figure illustrates the magnetic field at the center of a current-carrying coil.

SOLVE The earth’s magnetic field, from Table 29.1, is 5×10−5 T. We can use Equation 29.8 to find that the current needed to generate a 5×10−5 T field is

I=2RBμ0N=2(0.050 m)(5.0×10−5 T)5(1.26×10−6 T  m/A)=0.80 A

REVIEW A 0.80 A current is easily produced. Although there are better ways to cancel the earth’s field than using a simple coil, this illustrates the idea.