Learning objectives
-
Outcome
Calculate the magnetic field magnitude of a straight wire with and state the field direction using the right-hand rule.
-
Outcome
Find the coil current from Ohm's law and compute the field inside a solenoid with .
-
Outcome
Compare the field of a coil with and without an iron core using simulation or measurement data.
-
Outcome
Calculate the force on a current-carrying wire in a magnetic field with .
Understand the idea
Magnetic Fields and Electromagnets: From Current to Force
Text
Electric current is ordered motion of charges, and every moving charge creates a magnetic field around itself, so a current-carrying wire is always surrounded by a magnetic field.
Near a long straight wire the field is described by Ampère's law:
where is the current, is the distance from the wire, and is the magnetic constant. The direction of the field is found with the right-hand rule: point the thumb along the current, and the curled fingers show the direction of the field lines — concentric circles around the wire.
If the wire is wound into a coil of turns of length , the fields of the individual turns add up, and inside a long solenoid the field is nearly uniform:
An iron core inside the coil turns it into an electromagnet: the iron domains align with the external field and multiply it many times over, while the field remains controllable.
Because Ohm's law gives , the strength of an electromagnet can be adjusted smoothly by the source voltage, the coil resistance, or the number of turns — which is exactly why electromagnets are used in relays, lifting cranes, and loudspeakers.
Worked examples
Direct
Problem
A long straight wire carries a current . Find the magnetic field magnitude at a distance from the wire.
Solution
Apply Ampère's law for a straight wire:
Cancel :
Direction: the field lines are circles around the wire, with orientation given by the right-hand rule (thumb along the current, curled fingers along the field).
Application
Problem
The winding of an electromagnet — a coil of length with turns — is connected to a source with . The winding resistance is . Find the current in the winding and the field inside the coil without a core.
Solution
Step 1. Current from Ohm's law.
Step 2. Turns per unit length.
Step 3. Field inside the solenoid.
Note: with an iron core the field would be hundreds of times larger at the same current.
Transfer
Problem
The winding of an electromagnet with resistance is powered by a source with and has turns. The average magnetic path length in the iron core is , the relative permeability of the iron is , and the core has an air gap . In the gap a straight wire of length carries a current perpendicular to the field. Find the magnetic field in the gap and the force acting on this wire.
Solution
Step 1. Current in the winding (Ohm's law).
Step 2. Field in the gap of the electromagnet. A core with a gap is a magnetic circuit, so the empty-solenoid formula does not apply here: the field depends on the permeability and length of the core and on the gap length. Apply Ampère's law for the vector around a path along the core:
The magnetic flux is continuous, so the flux density is the same in the core and in the gap: . Substituting and gives
For comparison: without the core the same coil ( turns per metre) would give only — nearly a hundred times smaller. The iron core greatly strengthens the field, while the air gap weakens it noticeably.
Step 3. Force on the current-carrying wire. The field is perpendicular to the wire, so and :
The direction of the force is given by the left-hand rule: the field enters the palm, the four fingers point along , and the thumb points along .
Practice
Text
Model the electromagnet in a simulation (for example, PhET "Magnets and Electromagnets" or "Faraday's Electromagnetic Lab") so that you never work with large currents.
- Build a circuit: source, winding (coil), switch; place a compass or field sensor nearby.
- Vary the source voltage and record the current and the compass deflection (or the sensor reading ).
- Repeat for different numbers of turns .
- Compare the coil field with and without an iron core.
Make a table and plot against : for a solenoid you should see direct proportionality . Conclude how Ohm's law, the number of turns, and the strength of the electromagnet are related.
Safety: do not use the mains; if you work with real equipment, use only a battery of up to and connect the coil through a resistor to limit the current.
Visual reference
Purpose
Show that magnetic field lines are closed, surround a current-carrying wire, and concentrate inside a coil with a core, while their direction is set by the right-hand rule.
Representation
A two-part diagram.
(1) Cross-section of a straight wire perpendicular to the page: the current points toward the observer (), surrounded by concentric field-line circles with counter-clockwise arrows; and are labelled.
(2) Longitudinal section of a solenoid with an iron core: turns, nearly parallel field lines along the axis inside, with poles and labelled.
Below is a mini-graph of versus : a straight line through the origin, as predicted by .
Real-world examples
Scrapyard crane electromagnet
Scenario
A scrap-yard crane lowers a steel disc onto a flattened car body and switches on the coil. The coil has turns, is fed at and has resistance , so flows. The iron core concentrates the flux until it saturates near ; the disc must hold a load of , that is .
Connection
The coil is an electromagnet: its field follows , so the strength is set by the current that Ohm's law fixes, and a ferromagnetic core multiplies by a factor of hundreds over air until saturation — which is why such a crane drops its load the instant the current is switched off.
Electric doorbell
Scenario
A doorbell is powered by a battery. Its coil has turns and resistance , so . The coil sits on a soft-iron core and faces a spring-loaded armature across an air gap of about ; the field pulls the armature, its hammer strikes the gong, the contact opens and closes again about times each second.
Connection
Only current creates the field here, , and the soft-iron core keeps large enough across the millimetre gap for the pull to be felt. Switching the current off removes the field at once, so the spring wins and the armature returns — a magnetic field that exists only while charge flows.
Loudspeaker in a phone
Scenario
The loudspeaker of a phone is a coil of turns glued to a paper cone and sitting in the permanent field of a small magnet. Music sends an alternating current of up to through the coil, which has an impedance of . The coil's own field in the gap reaches and reverses sign with every half-cycle of the audio signal.
Connection
The coil is a small electromagnet whose field lines follow the right-hand grip rule; they add to the permanent field on one side of the coil and subtract on the other, so the total field is non-uniform in the gap — the superposition of two magnetic fields is what the cone responds to.