# Connexions

You are here: Home » Content » College Physics » Magnetic Fields Produced by Currents: Ampere’s Law
Content endorsed by: OpenStax College

• Preface

• #### 34. Frontiers of Physics

• 35. Atomic Masses
• 37. Useful Information
• 38. Glossary of Key Symbols and Notation

### Lenses

What is a lens?

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

#### Endorsed by (What does "Endorsed by" mean?)

This content has been endorsed by the organizations listed. Click each link for a list of all content endorsed by the organization.
• OpenStax College

This collection is included in aLens by: OpenStax College

Click the "OpenStax College" link to see all content they endorse.

#### Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
• Pierpont C & TC

This module is included inLens: Pierpont Community & Technical College's Lens
By: Pierpont Community & Technical CollegeAs a part of collection: "College Physics -- HLCA 1104"

Click the "Pierpont C & TC" link to see all content affiliated with them.

Click the tag icon to display tags associated with this content.

• Featured Content

This collection is included inLens: Connexions Featured Content
By: Connexions

"This introductory, algebra-based, two-semester college physics book is grounded with real-world examples, illustrations, and explanations to help students grasp key, fundamental physics concepts. […]"

Click the "Featured Content" link to see all content affiliated with them.

Click the tag icon to display tags associated with this content.

### Recently Viewed

This feature requires Javascript to be enabled.

### Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.

Order printed collection

Inside Collection (Textbook):

Textbook by: OpenStax College. E-mail the author

# Magnetic Fields Produced by Currents: Ampere’s Law

Module by: OpenStax College. E-mail the author

Summary:

• 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.

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 1. 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.

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

B = μ 0 I 2πr ( long straight wire ) , B = μ 0 I 2πr ( long straight wire ) , size 12{B= { {μ rSub { size 8{0} } I} over {2πr} }  $$"long straight wire"$$ ,} {}
(1)

where II size 12{I} {} is the current, rr size 12{r} {} is the shortest distance to the wire, and the constant μ0=×107Tm/Aμ0=×107Tm/A is the permeability of free space. (μ0(μ0 size 12{ $$μ rSub { size 8{0} } } {} is one of the basic constants in nature. We will see later that μ0μ0 size 12{μ rSub { size 8{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 rr size 12{r} {}, not on position along the wire. ### Example 1: 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.0×105T5.0×105T, and so here BB size 12{B} {} due to the wire is taken to be 1.0×104T1.0×104T. The equation B=μ0I2πrB=μ0I2πr can be used to find II, since all other quantities are known. Solution Solving for II size 12{I} {} and entering known values gives I = 2π rB μ 0 = 2π 5.0 × 10 2 m 1.0 × 10 4 T 4π × 10 7 T m/A = 25 A. I = 2π rB μ 0 = 2π 5.0 × 10 2 m 1.0 × 10 4 T 4π × 10 7 T m/A = 25 A. (2) 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 2. 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 B = μ 0 I 2R ( at center of loop ) , B = μ 0 I 2R ( at center of loop ) , size 12{B= { {μ rSub { size 8{0} } I} over {2R} }  \( "at center of loop"$$ ,} {}
(3)

where RR size 12{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 NN size 12{N} {} loops; then, the field is B=0I/(2R)B=0I/(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 3 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

B = μ 0 nI ( inside a solenoid ) , B = μ 0 nI ( inside a solenoid ) , size 12{B=μ rSub { size 8{0} } ital "nI" $$"inside a solenoid"$$ ,} {}
(4)

where nn size 12{n} {} is the number of loops per unit length of the solenoid (n=N/l(n=N/l size 12{ $$n=N/l} {}, with NN size 12{N} {} being the number of loops and ll size 12{l} {} the length). Note that BB size 12{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 2 implies. ### Example 2: 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=μ0nIB=μ0nI size 12{B=μ rSub { size 8{0} } ital "nI"} {}. First, we note the number of loops per unit length is n 1 = N l = 2000 2.00 m = 1000 m 1 = 10 cm 1 . n 1 = N l = 2000 2.00 m = 1000 m 1 = 10 cm 1 . size 12{n rSup { size 8{ - 1} } = { {N} over {l} } = { {"2000"} over {2 "." "00" m} } ="1000"" m" rSup { size 8{ - 1} } ="10"" cm" rSup { size 8{ - 1} } "." } {} (5) Solution Substituting known values gives B = μ0nI=×107Tm/A1000m11600 A = 2.01 T.B = μ0nI=×107Tm/A1000m11600 A = 2.01 T. (6) 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. 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. ## Section Summary • The strength of the magnetic field created by current in a long straight wire is given by B = μ 0 I 2πr ( long straight wire ) , B = μ 0 I 2πr ( long straight wire ) , (7) where II size 12{I} {} is the current, rr size 12{r} {} is the shortest distance to the wire, and the constant μ0=×107Tm/Aμ0=×107Tm/A size 12{μ rSub { size 8{0} } =4π times "10" rSup { size 8{ - 7} } `T cdot "m/A"} {} is the permeability of free space. • The direction of the magnetic field created by a long straight wire is given by right hand rule 2 (RHR-2): Point the thumb of the right hand in the direction of current, and the fingers curl in the direction of the magnetic field loops created by it. • The magnetic field created by current following any path is the sum (or integral) of the fields due to segments along the path (magnitude and direction as for a straight wire), resulting in a general relationship between current and field known as Ampere’s law. • The magnetic field strength at the center of a circular loop is given by B = μ 0 I 2R ( at center of loop ) , B = μ 0 I 2R ( at center of loop ) , size 12{B= { {μ rSub { size 8{0} } I} over {2R} } " " \( "at center of loop"$$ ,} {}
(8)
where RR size 12{R} {} is the radius of the loop. This equation becomes B=μ0nI/(2R)B=μ0nI/(2R) size 12{B=μ rSub { size 8{0} } ital "nI"/ $$2R$$ } {} for a flat coil of NN size 12{N} {} loops. RHR-2 gives the direction of the field about the loop. A long coil is called a solenoid.
• The magnetic field strength inside a solenoid is
B = μ 0 nI ( inside a solenoid ) , B = μ 0 nI ( inside a solenoid ) , size 12{B=μ rSub { size 8{0} } ital "nI"" " $$"inside a solenoid"$$ ,} {}
(9)
where nn size 12{n} {} is the number of loops per unit length of the solenoid. The field inside is very uniform in magnitude and direction.

## Conceptual Questions

### Exercise 1

Make a drawing and use RHR-2 to find the direction of the magnetic field of a current loop in a motor (such as in (Reference)). Then show that the direction of the torque on the loop is the same as produced by like poles repelling and unlike poles attracting.

## Glossary

right hand rule 2 (RHR-2):
a rule to determine the direction of the magnetic field induced by a current-carrying wire: Point the thumb of the right hand in the direction of current, and the fingers curl in the direction of the magnetic field loops
magnetic field strength (magnitude) produced by a long straight current-carrying wire:
defined as B=μ0I2πrB=μ0I2πr, where II is the current, rr is the shortest distance to the wire, and μ0μ0 is the permeability of free space
permeability of free space:
the measure of the ability of a material, in this case free space, to support a magnetic field; the constant μ0=×107Tm/Aμ0=×107Tm/A
magnetic field strength at the center of a circular loop:
defined as B=μ0I2RB=μ0I2R where RR is the radius of the loop
solenoid:
a thin wire wound into a coil that produces a magnetic field when an electric current is passed through it
magnetic field strength inside a solenoid:
defined as B=μ0nIB=μ0nI where nn is the number of loops per unit length of the solenoid (n=N/l(n=N/l, with NN being the number of loops and ll the length)
Biot-Savart law:
a physical law that describes the magnetic field generated by an electric current in terms of a specific equation
Ampere’s law:
the physical law that states that the magnetic field around an electric current is proportional to the current; 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
Maxwell’s equations:
a set of four equations that describe electromagnetic phenomena

## Content actions

PDF | EPUB (?)

### What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

#### Collection to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

#### Module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks