In lesson 6.9 a magnet's field pushed on a current. This lesson turns that round: a current makes a magnetic field of its own. Every wire that carries a current is surrounded by a magnetic field, and by winding wire into coils you can make magnets that switch on and off at the press of a button. That is how electric bells, door locks, loudspeakers and the cranes that lift scrap cars work.
Oersted's discovery#
For a long time electricity and magnetism seemed to be two separate subjects. In 1820 the Danish physicist Hans Christian Oersted showed in a lecture that they are linked. He ran a current through a wire held over a compass, and the compass needle turned. When the current stopped, the needle swung back; when the current was reversed, it turned the other way.
A compass needle lines up with the magnetic field, so the experiment shows that:
- a current makes a magnetic field around it;
- with no current there is no field;
- reversing the current reverses the field.
You can repeat it with a battery, a piece of wire and a compass. Only close the circuit for a few seconds at a time: a bare wire has very little resistance, so the current is large and the battery soon runs flat and the wire gets hot.
The field around a straight wire#
Sprinkle iron filings on a card with a vertical wire through it, switch on a large current, and the filings form circles centred on the wire. The field lines of a long straight wire are closed circles in planes at right angles to the wire. They have no beginning and no end, unlike the field lines of electric charges, which start and stop on charges.
To draw such fields on flat paper, a current or field coming out of the page is shown as a dot, ⊙ (the point of an arrow coming towards you), and one going into the page as a cross, ⊗ (the feathers at the tail of an arrow flying away from you).
The direction of the circles follows from the right-hand grip rule: grip the wire with your right hand, with your thumb pointing along the current. Your fingers then curl the way the field lines go. As in the rest of this block, "current" means conventional current, from + to −. The rule only works with the right hand; the left hand always gives the wrong direction.
So a current coming out of the page has field lines going anticlockwise around it, and a current going into the page has them going clockwise.
How strong is the field?
The field is strongest close to the wire and weaker further away. For a long straight wire carrying a current , the field strength at a distance from the wire is
In words
B equals mu nought I over the quantity 2 pi r
Here (mu nought) is a constant of nature, the permeability of free space, . It plays the same part for magnetic fields that played for electric ones. Note that falls as , not : twice as far from the wire, the field is half as strong. The field of a point charge falls faster because it spreads out in all directions; the field of a long wire only spreads out sideways.
For comparison, the Earth's magnetic field at its surface is about ().
A compass next to a cable
A long straight cable carries a steady current of . (a) What is the magnetic field from the cable? (b) How far from the cable is its field as strong as the Earth's, ?
(a) Use the formula for a straight wire
, or : more than the Earth's field, so a compass this close turns noticeably.
(b) Solve for the distance
, about . Further away, the cable's field is weaker than the Earth's.
The field of a loop#
Bend the wire into a circular loop. Apply the grip rule to each piece of the loop and you find that, inside the loop, the fields of all the pieces point the same way: they add up. The field lines pass through the loop, spread out around the outside and come back in at the other face.
A loop therefore acts as a flat magnet with a north face and a south face. There is a second form of the right-hand rule for it: curl the fingers of your right hand round the loop in the direction of the current, and your thumb points out of the north face, the side where the field lines come out.
At the centre of a circular loop of radius the field is
In words
B equals mu nought I over the quantity 2 capital R
A flat coil of turns wound close together acts like loops on top of each other, so the field at its centre is times as large.
The solenoid#
Now wind the wire into a long coil, with many turns side by side along a tube. Such a coil is a solenoid. The fields of all the loops add up. Inside a long solenoid the field lines run parallel to the axis and are evenly spaced: the field is uniform, the same at every point inside, away from the ends. Outside, the field is weak and has the same shape as the field of a bar magnet, with a north pole at one end and a south pole at the other. The grip rule for a loop tells you which end is north.
The field inside a long solenoid is
In words
B equals mu nought n I, n equals capital N over L
where is the number of turns, the length of the solenoid and the number of turns per metre. Neither the width of the coil nor the position inside it appears: only how tightly the turns are packed and how much current flows.
A coil for a physics lab
Electromagnets and iron cores#
A solenoid with a current is a magnet that you can switch on and off, make stronger by turning up the current or adding turns, and turn round by reversing the current. Put a bar of iron inside it and the field becomes much stronger. That combination is an electromagnet.
As in lesson 6.9, iron is ferromagnetic: its domains point in different directions, so a plain piece of iron is not a magnet. The coil's field lines the domains up, and then their fields add to the coil's. Inside the iron the field can become to times as strong as the coil's field alone. Electromagnets use soft iron, which keeps very little of its magnetism when the current stops. In other materials the domains stay lined up after the field is gone: that is how a permanent magnet is made (MIT 8.02T notes, Sec. 9.6.4, p. 32).
You can test this at home with a battery, insulated wire and an iron nail: wind the wire round the nail, connect the battery, and the nail picks up paper clips. More turns pick up more clips, and most of the clips drop when you disconnect.
Electromagnets are used wherever a force has to be switched by electricity: scrapyard cranes that lift and drop cars, electric bells, relays (switches worked by a small current), loudspeakers and magnetic locks on doors. Many electric motors use them too.
Force between two parallel currents#
A current makes a magnetic field, and a current in a magnetic field feels a force. So two currents push or pull on each other. Take two long straight wires, a distance apart, with currents and . Wire 1 makes a field at wire 2, at right angles to wire 2. A length of wire 2 then feels the force of lesson 6.9, so the force per metre of wire is
In words
F over L equals mu nought I one I two over the quantity 2 pi d
Wire 1 feels the same force from wire 2, in the opposite direction, as Newton's third law requires. The grip rule and the direction rule of lesson 6.9 give the result:
- currents in the same direction attract;
- currents in opposite directions repel.
The two wires of a power cord
A power cord feeds a heater. Its two wires are apart and carry each, in opposite directions (to the heater and back). What is the force between of the two wires, and is it a push or a pull?
Force per metre
.
Force on the length of cord
. The currents are opposite, so the wires repel, but only with about the weight of a one-gram mass: the insulation holds them easily.
The old definition of the ampere
This force was used to define the unit of current. From 1948 until 2019 the ampere was defined as the steady current that, flowing in two long straight parallel wires apart in a vacuum, makes them push or pull on each other with a force of per metre of length. Check it with the formula: . That definition is the reason why has the tidy value (since 2019 is measured rather than fixed, but the measured value given by NIST still equals to about one part in ). Infinitely long wires cannot be built, so since 2019 the ampere has been based instead on the charge of one electron, .
Try it#
Open the "Electromagnet" screen. Put the compass at different places around the coil and watch it follow the field lines. Change the current, the number of loops and the direction of the current, and see how the field strength and the north pole change.
Summary#
- A current makes a magnetic field (Oersted, 1820). Around a long straight wire the field lines are circles; the right-hand grip rule (thumb along the current, fingers curl with the field) gives their direction.
- The field of a long straight wire is , with : it falls as .
- A loop of wire acts as a flat magnet, with at its centre. A long coil, a solenoid, has a uniform field inside, with turns per metre, and a bar-magnet field outside.
- An iron core lines up its domains with the coil's field and makes an electromagnet that is much stronger and can be switched on and off.
- Two parallel currents attract (same direction) or repel (opposite directions) with a force per metre . From 1948 to 2019 this force defined the ampere.