### Learning Objectives

By the end of this section, you will be able to:

- Calculate current that produces a magnetic field.
- Use the right-hand rule 2 to determine the direction of current or the direction of magnetic field loops.

The information presented in this section supports the following AP® learning objectives and science practices:

**2.D.2.1**The student is able to create a verbal or visual representation of a magnetic field around a long straight wire or a pair of parallel wires.**(S.P. 1.1)****3.C.3.1**The student is able to use right-hand rules to analyze a situation involving a current-carrying conductor and a moving electrically charged object to determine the direction of the magnetic force exerted on the charged object due to the magnetic field created by the current-carrying conductor.**(S.P. 1.4)****3.C.3.2**The student is able to plan a data collection strategy appropriate to an investigation of the direction of the force on a moving electrically charged object caused by a current in a wire in the context of a specific set of equipment and instruments and analyze the resulting data to arrive at a conclusion.**(S.P. 4.2, 5.1)**

How much current is needed to produce a significant magnetic field, perhaps as strong as the Earth’s field? Surveyors will tell you that overhead electric power lines create magnetic fields that interfere with their compass readings. Indeed, when Oersted discovered in 1820 that a current in a wire affected a compass needle, he was not dealing with extremely large currents. How does the shape of wires carrying current affect the shape of the magnetic field created? We noted earlier that a current loop created a magnetic field similar to that of a bar magnet, but what about a straight wire or a toroid (doughnut)? How is the direction of a current-created field related to the direction of the current? Answers to these questions are explored in this section, together with a brief discussion of the law governing the fields created by currents.

### Magnetic Field Created by a Long Straight Current-Carrying Wire: Right Hand Rule 2

Magnetic fields have both direction and magnitude. As noted before, one way to explore the direction of a magnetic field is with compasses, as shown for a long straight current-carrying wire in Figure 22.39. Hall probes can determine the magnitude of the field. The field around a long straight wire is found to be in circular loops. The right hand rule 2 (RHR-2) emerges from this exploration and is valid for any current segment—*point the thumb in the direction of the current, and the fingers curl in the direction of the magnetic field loops* created by it.

### Making Connections: Notation

For a wire oriented perpendicular to the page, if the current in the wire is directed out of the page, the right-hand rule tells us that the magnetic field lines will be oriented in a counterclockwise direction around the wire. If the current in the wire is directed into the page, the magnetic field lines will be oriented in a clockwise direction around the wire. We use $\odot $ to indicate that the direction of the current in the wire is out of the page, and $\otimes $ for the direction into the page.

The magnetic field strength (magnitude) produced by a long straight current-carrying wire is found by experiment to be

where $I$ is the current, $r$ is the shortest distance to the wire, and the constant ${\mu}_{0}=\mathrm{4\pi}\phantom{\rule{0.15em}{0ex}}\times \phantom{\rule{0.15em}{0ex}}{\text{10}}^{-7}\phantom{\rule{0.25em}{0ex}}\mathrm{T}\cdot \text{m/A}$ is the permeability of free space. $({\mu}_{0}$ is one of the basic constants in nature. We will see later that ${\mu}_{0}$ is related to the speed of light.) Since the wire is very long, the magnitude of the field depends only on distance from the wire $r$, not on position along the wire.

### Example 22.6 Calculating Current that Produces a Magnetic Field

Find the current in a long straight wire that would produce a magnetic field twice the strength of the Earth’s at a distance of 5.0 cm from the wire.

Strategy

The Earth’s field is about $5\text{.}0\times {\text{10}}^{-5}\phantom{\rule{0.25em}{0ex}}\mathrm{T}$, and so here $B$ due to the wire is taken to be $1\text{.}0\times {\text{10}}^{-4}\phantom{\rule{0.25em}{0ex}}\mathrm{T}$. The equation $B=\frac{{\mu}_{0}I}{2\mathrm{\pi r}}$ can be used to find $I$, since all other quantities are known.

Solution

Solving for $I$ and entering known values gives

Discussion

So a moderately large current produces a significant magnetic field at a distance of 5.0 cm from a long straight wire. Note that the answer is stated to only two digits, since the Earth’s field is specified to only two digits in this example.

### Ampere’s Law and Others

The magnetic field of a long straight wire has more implications than you might at first suspect. *Each segment of current produces a magnetic field like that of a long straight wire, and the total field of any shape current is the vector sum of the fields due to each segment.* The formal statement of the direction and magnitude of the field due to each segment is called the Biot-Savart law. Integral calculus is needed to sum the field for an arbitrary shape current. This results in a more complete law, called Ampere’s law, which relates magnetic field and current in a general way. Ampere’s law in turn is a part of Maxwell’s equations, which give a complete theory of all electromagnetic phenomena. Considerations of how Maxwell’s equations appear to different observers led to the modern theory of relativity, and the realization that electric and magnetic fields are different manifestations of the same thing. Most of this is beyond the scope of this text in both mathematical level, requiring calculus, and in the amount of space that can be devoted to it. But for the interested student, and particularly for those who continue in physics, engineering, or similar pursuits, delving into these matters further will reveal descriptions of nature that are elegant as well as profound. In this text, we shall keep the general features in mind, such as RHR-2 and the rules for magnetic field lines listed in Magnetic Fields and Magnetic Field Lines, while concentrating on the fields created in certain important situations.

### Making Connections: Relativity

Hearing all we do about Einstein, we sometimes get the impression that he invented relativity out of nothing. On the contrary, one of Einstein’s motivations was to solve difficulties in knowing how different observers see magnetic and electric fields.

### Magnetic Field Produced by a Current-Carrying Circular Loop

The magnetic field near a current-carrying loop of wire is shown in Figure 22.41. Both the direction and the magnitude of the magnetic field produced by a current-carrying loop are complex. RHR-2 can be used to give the direction of the field near the loop, but mapping with compasses and the rules about field lines given in Magnetic Fields and Magnetic Field Lines are needed for more detail. There is a simple formula for the magnetic field strength at the center of a circular loop. It is

where $R$ is the radius of the loop. This equation is very similar to that for a straight wire, but it is valid *only* at the center of a circular loop of wire. The similarity of the equations does indicate that similar field strength can be obtained at the center of a loop. One way to get a larger field is to have $N$ loops; then, the field is $B={\mathrm{N\mu}}_{0}I/(2R)$. Note that the larger the loop, the smaller the field at its center, because the current is farther away.

### Magnetic Field Produced by a Current-Carrying Solenoid

A solenoid is a long coil of wire (with many turns or loops, as opposed to a flat loop). Because of its shape, the field inside a solenoid can be very uniform, and also very strong. The field just outside the coils is nearly zero. Figure 22.42 shows how the field looks and how its direction is given by RHR-2.

The magnetic field inside of a current-carrying solenoid is very uniform in direction and magnitude. Only near the ends does it begin to weaken and change direction. The field outside has similar complexities to flat loops and bar magnets, but the magnetic field strength inside a solenoid is simply

where $n$ is the number of loops per unit length of the solenoid $(n=N/l$, with $N$ being the number of loops and $l$ the length). Note that $B$ is the field strength anywhere in the uniform region of the interior and not just at the center. Large uniform fields spread over a large volume are possible with solenoids, as Example 22.7 implies.

### Example 22.7 Calculating Field Strength inside a Solenoid

What is the field inside a 2.00-m-long solenoid that has 2000 loops and carries a 1600-A current?

Strategy

To find the field strength inside a solenoid, we use $B={\mu}_{0}\text{nI}$. First, we note the number of loops per unit length is

Solution

Substituting known values gives

Discussion

This is a large field strength that could be established over a large-diameter solenoid, such as in medical uses of magnetic resonance imaging (MRI). The very large current is an indication that the fields of this strength are not easily achieved, however. Such a large current through 1000 loops squeezed into a meter’s length would produce significant heating. Higher currents can be achieved by using superconducting wires, although this is expensive. There is an upper limit to the current, since the superconducting state is disrupted by very large magnetic fields.

### Applying the Science Practices: Charged Particle in a Magnetic Field

Visit here and start the simulation applet “Particle in a Magnetic Field (2D)” in order to explore the magnetic force that acts on a charged particle in a magnetic field. Experiment with the simulation to see how it works and what parameters you can change; then construct a plan to methodically investigate how magnetic fields affect charged particles. Some questions you may want to answer as part of your experiment are:

- Are the paths of charged particles in magnetic fields always similar in two dimensions? Why or why not?
- How would the path of a neutral particle in the magnetic field compare to the path of a charged particle?
- How would the path of a positive particle differ from the path of a negative particle in a magnetic field?
- What quantities dictate the properties of the particle’s path?
- If you were attempting to measure the mass of a charged particle moving through a magnetic field, what would you need to measure about its path? Would you need to see it moving at many different velocities or through different field strengths, or would one trial be sufficient if your measurements were correct?
- Would doubling the charge change the path through the field? Predict an answer to this question, and then test your hypothesis.
- Would doubling the velocity change the path through the field? Predict an answer to this question, and then test your hypothesis.
- Would doubling the magnetic field strength change the path through the field? Predict an answer to this question, and then test your hypothesis.
- Would increasing the mass change the path? Predict an answer to this question, and then test your hypothesis.

There are interesting variations of the flat coil and solenoid. For example, the toroidal coil used to confine the reactive particles in tokamaks is much like a solenoid bent into a circle. The field inside a toroid is very strong but circular. Charged particles travel in circles, following the field lines, and collide with one another, perhaps inducing fusion. But the charged particles do not cross field lines and escape the toroid. A whole range of coil shapes are used to produce all sorts of magnetic field shapes. Adding ferromagnetic materials produces greater field strengths and can have a significant effect on the shape of the field. Ferromagnetic materials tend to trap magnetic fields (the field lines bend into the ferromagnetic material, leaving weaker fields outside it) and are used as shields for devices that are adversely affected by magnetic fields, including the Earth’s magnetic field.

### PhET Explorations: Generator

Generate electricity with a bar magnet! Discover the physics behind the phenomena by exploring magnets and how you can use them to make a bulb light.