Magnetic Fields and Forces - Complete Interactive Lesson
Part 1: Magnetic Fields
🧲 Magnetic Fields — Sources and Properties
Part 1 of 7 — Where Do Magnetic Fields Come From?
Magnetism has been known for millennia — ancient Greeks observed lodestone attracting iron. Today we understand that all magnetic fields originate from moving electric charges. Whether it's a bar magnet, an electromagnet, or Earth itself, the underlying source is always charges in motion.
Sources of Magnetic Fields
1. Permanent Magnets
Bar magnets and horseshoe magnets produce fields due to the aligned spin of electrons within their atoms. In ferromagnetic materials (iron, nickel, cobalt), electron spins in microscopic domains align to create a net magnetic field.
2. Moving Charges
A single charge moving with velocity creates a magnetic field around it:
- The field at a point depends on the charge's speed and on the distance to that point — it weakens farther away
- The field direction is perpendicular to both the velocity and the line from the charge to the point (found with a right-hand rule)
- The field is strongest at points where that line is perpendicular to , and zero straight ahead of or behind the charge
A charge at rest produces no magnetic field at all. The constant that sets the size of magnetic fields in empty space is T·m/A, the permeability of free space.
3. Electric Currents
A current-carrying wire produces a magnetic field that circles around the wire. This is the most practical source of controllable magnetic fields — the basis for electromagnets, motors, and MRI machines.
Key Insight
Electricity and magnetism are deeply connected. Moving charges create magnetic fields, and (as we'll see later) changing magnetic fields create electric fields. This unification is one of the great triumphs of physics.
Magnetic Field Lines
Magnetic field lines visualize the field, similar to electric field lines for .
Rules for Magnetic Field Lines
- Outside a magnet: Lines point from North (N) to South (S)
- Inside a magnet: Lines point from South to North (completing closed loops)
- Lines never cross — the field has a unique direction at every point
- Line density indicates field strength — closer lines = stronger
- Magnetic field lines always form closed loops — there are no magnetic monopoles!
Bar Magnet Field Pattern
The field of a bar magnet looks similar to the electric field of a dipole:
- Lines emerge from the North pole
- Arc through space
- Enter the South pole
- Continue through the interior back to North
Critical Difference from Electric Fields
Electric field lines begin on positive charges and end on negative charges. Magnetic field lines have no beginning or end — they always close on themselves. This reflects the fact that magnetic monopoles do not exist (as far as we know).
Earth's Magnetic Field
Earth's field can be approximated as the field of a magnetic dipole — a giant bar magnet — but with an important twist:
Geographic vs. Magnetic Poles
- Earth's geographic North Pole is near Earth's magnetic South pole
- A compass needle's north end points toward geographic north because it's attracted to the magnetic south pole located there
- The magnetic axis is tilted slightly from the rotation axis, so "magnetic north" and "true north" differ a little
Field Strength
Earth's magnetic field strength at the surface:
This is quite weak compared to lab magnets (which can be 1 T or more), but it's strong enough to orient compass needles and protect us from charged particles in the solar wind.
Source
Earth's magnetic field comes from moving charges in the molten iron of the outer core — consistent with the rule that every magnetic field traces back to charges in motion.
Units of Magnetic Field
The SI unit of magnetic field is the Tesla (T):
The form is the useful one: it says a 1 T field pushes with 1 N on each meter of wire carrying 1 A at right angles to the field (Part 4).
Typical Magnetic Field Strengths
| Source | Strength |
|---|---|
| MRI machine | 1.5 – 3 T |
| Strong lab magnet | 1 – 10 T |
| Refrigerator magnet | ~5 mT |
| Earth's surface | ~50 μT |
| Interstellar space | ~0.1 nT |
The Permeability Constant
This constant appears in all formulas for magnetic fields produced by currents, just as appears in electric field formulas.
Magnetic Fields Concept Quiz 🧲
Exit Check — Magnetic Field Basics ✅
Part 2: Force on Moving Charges
⚡ Force on Moving Charges
Part 2 of 7 — The Magnetic Force Law
Electric fields push charges along the field direction. Magnetic fields do something stranger: they push charges perpendicular to both the velocity and the field. This sideways force is the key to everything from particle accelerators to the Northern Lights.
The Magnetic Force on a Moving Charge
A charge moving with velocity in a magnetic field experiences a force:
The magnitude is:
where is the angle between and .
Key Properties
-
The force is perpendicular to both and — it points "out of the plane" formed by the velocity and field vectors
-
No force on stationary charges — if , then
-
No force when — if or , then
-
Maximum force when — when ,
-
The magnetic force does no work — since , the force changes direction but not speed
On the AP Physics 2 exam, calculations of use only , , or ; for other angles you only need to reason qualitatively (a smaller perpendicular component of means a smaller force).
The Right-Hand Rule
To find the direction of :
For Positive Charges ()
- Point your fingers in the direction of
- Curl them toward
- Your thumb points in the direction of
For Negative Charges ()
Use the right-hand rule as above, then reverse the direction (the force is opposite to what the right-hand rule gives).
Alternatively: use your left hand for negative charges.
Common Directions
| direction | direction | on |
|---|---|---|
| (right) | (up) | (out of page) |
| (right) | (out of page) | (down) |
| (up) | (right) | (into page) |
| (out of page) | (right) | (up) |
Memory Aid
Think: "velocity, field, force" — point, curl, thumb. For a positive charge, this directly gives the force. For an electron, flip it.
Right-Hand Rule Drill 👋
Determine the direction of the magnetic force on a positive charge in each scenario.
Force on Negative Charges
For an electron () or any negative charge:
The negative sign reverses the force direction compared to a positive charge.
Example
An electron moves to the right () in a magnetic field pointing up ():
- Right-hand rule for : → out of page
- Electron (): reverse → force is into the page ()
Practical Importance
In most conductors, the current carriers are electrons (negative charges). When applying the force law to current-carrying wires, we can either:
- Use with and the actual electron velocity
- Or use the conventional current direction (opposite to electron flow) with
Both approaches give the same force direction on the wire.
Electron Force Direction Drill 🔬
Now find the force direction on an electron ().
Exit Quiz — Magnetic Force ✅
Part 3: Circular Motion in B Fields
🌀 Charged Particles in Magnetic Fields
Part 3 of 7 — Circular Motion, Mass Spectrometers, and Velocity Selectors
When a charged particle moves perpendicular to a uniform magnetic field, the magnetic force acts as a centripetal force, causing the particle to travel in a circle. This simple fact underlies some of the most powerful instruments in physics and chemistry.
Circular Motion in a Magnetic Field
A charge moving with speed perpendicular to a uniform field experiences:
This force is always perpendicular to , so it acts as a centripetal force:
Solving for the radius of circular motion:
Key Observations
- Faster particles → larger radius (linear in )
- Heavier particles → larger radius (linear in )
- Stronger field → smaller radius (inverse in )
- More charge → smaller radius (inverse in )
The speed does not change — the magnetic force does no work! The particle moves in a perfect circle at constant speed.
Cyclotron Period and Frequency
The period (time for one full circle) is:
The cyclotron frequency is:
And the angular frequency:
Remarkable Result
The period and frequency are independent of speed and radius! A faster particle travels a bigger circle, but it completes the circle in the same time as a slower particle. This is the principle behind the cyclotron particle accelerator.
What if has a component along ?
- The component (parallel to ) is unaffected — no force
- The component (perpendicular to ) produces circular motion
- The result is a helix (spiral) along the field direction
Mass Spectrometer
A mass spectrometer separates ions by mass using a magnetic field.
How It Works
- Ionize atoms or molecules → they become charged
- Accelerate through a potential difference : kinetic energy , so
- Enter a magnetic field region → travel in semicircles
- Detect where they land on a detector plate
The Separation
The radius of the semicircle is:
Substituting :
Different masses land at different positions (different ), allowing isotope identification and molecular analysis.
Velocity Selector
A velocity selector uses crossed electric and magnetic fields to select particles with a specific speed.
Setup
- and are perpendicular to each other and to the particle's velocity
- Electric force: (in one direction)
- Magnetic force: (in the opposite direction)
Condition for Straight-Line Motion
For the particle to pass through undeflected:
Key Features
- Only particles with speed pass through — all others are deflected
- The selected speed is independent of charge and mass
- This is used as the first stage in many mass spectrometers to ensure all entering particles have the same speed
Circular Motion Calculation Drill 🔢
A proton ( kg, C) moves at m/s perpendicular to a 0.20 T magnetic field.
-
Radius of the circular path (in m, to 3 significant figures)
-
Cyclotron period (in s, use scientific notation like 3.3e-7)
-
Cyclotron frequency (in Hz, use scientific notation like 3.0e6)
Exit Quiz — Particles in Magnetic Fields ✅
Part 4: Force on Current-Carrying Wires
🔌 Force on Current-Carrying Wires
Part 4 of 7 — From Single Charges to Wires
A current is simply a flow of charges. Since each moving charge experiences a magnetic force, a current-carrying wire in a magnetic field experiences a net force. This is the principle behind loudspeakers, and it explains why two current-carrying wires push or pull on each other.
Force on a Straight Current-Carrying Wire
For a straight wire of length carrying current in a uniform magnetic field :
where points in the direction of conventional current flow.
The magnitude is:
where is the angle between the wire (current direction) and .
Special Cases
- Wire perpendicular to (): (maximum force)
- Wire parallel to (): (no force)
Derivation from Charge Force
Suppose the moving charge in a length of wire totals and moves along the wire at average speed , perpendicular to . The magnetic force on all of it is .
That charge takes a time to pass through the length , so the current is
Substituting into :
The macroscopic wire force follows directly from the microscopic charge force.
Direction of Force on a Wire
Use the same right-hand rule as for individual charges:
- Point fingers along (conventional current direction)
- Curl toward
- Thumb points in the direction of
Example
A wire carries current to the right () in a magnetic field pointing into the page ():
The force is upward ().
This is exactly how a loudspeaker works: alternating current in a coil within a magnetic field pushes the speaker cone back and forth, producing sound waves.
Wire Force Direction Drill 🎯
Find the force direction on a current-carrying wire.
Forces Between Parallel Wires
Two parallel wires carrying currents exert magnetic forces on each other.
Same Direction Currents → Attract
Wire 1 creates a field at Wire 2. By the right-hand rule, this field causes a force on Wire 2 toward Wire 1. By Newton's third law, Wire 1 is also pulled toward Wire 2.
Parallel currents attract.
Opposite Direction Currents → Repel
If the currents flow in opposite directions, the force pushes the wires apart.
Antiparallel currents repel.
Force Per Unit Length
The magnetic field from Wire 1 at distance :
Force on a length of Wire 2:
Force per unit length:
Definition of the Ampere
This force is so fundamental that the ampere was historically defined as: the current that, flowing in two parallel wires 1 m apart, produces a force of N per meter of length.
Wire Force Calculation Drill 🔢
Use T·m/A.
-
A 0.50 m wire carrying 8.0 A is perpendicular to a 0.30 T field. What is the force on the wire (in N)?
-
Two parallel wires carry 10 A each in the same direction, separated by 5.0 cm. What is the force per unit length between them (in N/m, use scientific notation like 4.0e-4)?
-
Do the wires in (2) attract or repel? (Type "attract" or "repel")
Round all answers to 3 significant figures.
Exit Quiz — Forces on Wires ✅
Part 5: Fields Made by Currents
🔄 Magnetic Field from Currents
Part 5 of 7 — Magnetic Fields Made by Currents and Moving Charges
So far we've studied the force that a magnetic field exerts on charges and wires. Now we turn to the source question: how do moving charges and currents create magnetic fields in the first place? We'll build from a single moving charge, to a long straight wire, to several wires at once, and finally to a loop of wire.
The Field of a Single Moving Charge
A charge at rest makes only an electric field. Set it moving, and it also makes a magnetic field.
What the Field Depends On
- Speed — a faster charge makes a stronger field
- Distance — the field weakens as you move away from the charge
- Direction to the point — the field is strongest at points where the line from the charge to the point is perpendicular to , and it is zero at points directly ahead of or behind the charge
Direction
At any point, is perpendicular to both the velocity and the line from the charge to that point. Use the right-hand rule: point your right thumb along (for a positive charge); your fingers curl in the direction of , wrapping in circles around the line of motion. For a negative charge, reverse the direction.
From One Charge to a Current
A current is an enormous number of charges drifting along a wire. Each contributes a little circular field around the wire's line, and together they produce the steady field of a current-carrying wire.
Magnetic Field of a Long Straight Wire
A long straight wire carrying current creates a magnetic field at perpendicular distance :
where T·m/A. A handy shortcut: T·m/A, so .
Direction: Right-Hand Rule for Wires
Point your right thumb in the direction of the current. Your fingers curl in the direction of .
- Current flowing toward you (out of the page) → circles counterclockwise
- Current flowing away from you (into the page) → circles clockwise
- Current flowing up the page → points into the page on the wire's right side and out of the page on its left side
Key Features
- — double the current, double the field
- — field decreases with distance (but only as , not )
- Field lines are concentric circles centered on the wire
- The field is tangent to these circles at every point — it has no component toward, away from, or along the wire
Concept Check — Fields from Moving Charges and Wires
Superposition: Several Wires at Once
Magnetic fields are vectors. Near two or more wires, find each wire's field separately and then add them as vectors.
Worked Example
Wire A carries 6.0 A and wire B carries 2.0 A, both out of the page. They are 10 cm apart, with A on the left. Find the field at the midpoint.
Step 1 — magnitudes. Each wire is 0.050 m from the midpoint:
Step 2 — directions. Both currents point out of the page, so both fields circle counterclockwise. The midpoint is to the right of A, where A's field points up the page; it is to the left of B, where B's field points down the page.
Step 3 — add. The fields oppose each other:
What if B's current is reversed (into the page)? B's field at the midpoint now points up as well, so the fields add: T, up the page.
Where Is the Field Zero?
For same-direction currents, the fields cancel somewhere between the wires, closer to the smaller current. Setting the magnitudes equal, with measured from A:
The field is zero 7.5 cm from A (2.5 cm from B). For opposite currents, the fields between the wires always add, so there is no zero there.
Magnetic Field Calculation Drill 🔢
Use T·m/A.
-
A long wire carries 15 A. What is at a distance of 3.0 cm from the wire? (in T, use scientific notation like 1.0e-4)
-
Two long parallel wires 8.0 cm apart each carry 4.0 A, in opposite directions. What is the magnitude of at the midpoint? (in T, use scientific notation like 2.0e-5)
-
Two long parallel wires 12 cm apart carry 9.0 A and 3.0 A in the same direction. How far from the 9.0 A wire, between the wires, is the net field zero? (in cm)
The Field at the Center of a Current Loop
Bend a wire into a circular loop and every small piece of it makes a field that circles that piece. At the center of the loop, all of those contributions point the same way — along the loop's axis, perpendicular to the plane of the loop.
Finding the Direction
Curl the fingers of your right hand in the direction of the current around the loop. Your thumb points in the direction of at the center.
- Loop in the page, current counterclockwise → at the center points out of the page
- Loop in the page, current clockwise → at the center points into the page
A Loop Is a Small Magnet
Outside the loop, the field lines bend around and close on themselves, just like the field of a short bar magnet. The face the field lines leave acts as a north pole; the other face acts as a south pole. This is why circulating charges — including electrons in atoms — make magnetic dipoles (Part 6).
On the AP Physics 2 exam you only need the direction of the field at a loop's center; formulas for the field strength of loops and coils are not tested.
Exit Check — Fields from Currents ✅
Part 6: Magnetic Materials & the Hall Effect
🧭 Magnetic Materials and the Hall Effect
Part 6 of 7 — Magnetic Materials, Dipoles, and the Hall Effect
Why does a refrigerator magnet stick to steel but not to aluminum? Why does a compass swing to line up with a field? And how can a magnetic field reveal whether the charges moving in a wire are positive or negative? This part connects magnetism to what is happening inside matter.
Magnetic Dipoles
A magnetic dipole is anything with a north pole and a south pole: a bar magnet, a compass needle, a current loop (Part 5), or a single atom.
Where Dipoles Come From
Magnetic dipoles result from the circular or rotational motion of electric charges. In magnetic materials, that motion is the motion of electrons — their orbits and their spin. Each atom can act as a tiny magnet.
Rules for Dipoles
- No monopoles. A north pole is never found without a south pole. Break a bar magnet in half and you get two smaller magnets, each with its own north and south pole.
- Like poles repel; opposite poles attract.
- The field weakens with distance from the dipole.
- Dipoles align with fields. A compass needle placed in a magnetic field tends to rotate until it points along the field, with its north end pointing in the direction of . That is exactly how a compass maps field lines.
Earth as a Dipole
Earth's field can be approximated as the field of a single huge dipole. A compass needle aligns with Earth's field, and since its north end points toward geographic north, the pole of Earth's "magnet" near geographic north must be a magnetic south pole.
How Materials Respond to a Magnetic Field
A material's composition determines how its atomic dipoles behave in an external field.
Ferromagnetic Materials — iron, nickel, cobalt
The atomic dipoles line up with their neighbors in regions called magnetic domains. In an unmagnetized piece of iron, the domains point in random directions and their fields cancel. An external field makes the domains aligned with it grow and others rotate, so the iron becomes strongly magnetized.
- Induced magnetism: an unmagnetized iron nail is attracted to either pole of a magnet, because the magnet's field aligns the nail's domains so that the nail's nearby end becomes the opposite pole.
- Permanent magnetism: a strong enough field can leave the domains aligned after the field is removed, producing a permanent magnet.
Paramagnetic Materials — aluminum, titanium, magnesium
The atomic dipoles align weakly with an external field, producing a weak attraction. When the field is removed, thermal motion scrambles the dipoles again, so the material does not stay magnetized.
Diamagnetism — every material
All materials are diamagnetic: their electrons respond to an external field by producing a usually weak alignment opposite to the field, so the material is weakly repelled. In iron or aluminum, the stronger ferromagnetic or paramagnetic effect hides it; in water, wood, or copper it is the main effect.
| Type | Alignment with external field | Stays magnetized? | Examples |
|---|---|---|---|
| Ferromagnetic | Strong, same direction | Can, yes | Iron, nickel, cobalt |
| Paramagnetic | Weak, same direction | No | Aluminum, titanium, magnesium |
| Diamagnetic | Weak, opposite direction | No | All materials (dominant in water, copper) |
Magnetic Materials Concept Quiz 🧲
Magnetic Permeability
Magnetic permeability measures how much a material becomes magnetized in response to an external magnetic field.
- Free space has a constant permeability, the vacuum permeability T·m/A. It is the constant that appears in equations such as .
- Matter has a permeability different from , set by the material's composition and arrangement.
- A material's permeability is not a constant: it changes with temperature, with orientation, and with the strength of the external field.
Comparing Materials
- Ferromagnetic materials have permeabilities far greater than . This is why wrapping a current-carrying coil around an iron core makes a much stronger electromagnet: the aligned domains add their own field to the field of the current.
- Paramagnetic materials have permeabilities slightly greater than .
- Diamagnetic materials have permeabilities slightly less than .
Heating a ferromagnet scrambles its domains and lowers its permeability — a hot enough magnet loses its magnetism.
The Hall Effect
Send a current through a flat conducting strip that sits in a magnetic field perpendicular to the strip. The moving charges feel a sideways magnetic force and pile up along one edge, leaving the opposite edge with the opposite charge. The result is a potential difference across the width of the strip — the Hall voltage.
Reaching Balance
The separated charge creates an electric field across the strip. Charges keep drifting sideways until the electric force balances the magnetic force (the two fields exert independent forces):
For a strip of width , the uniform field gives a Hall voltage .
Worked Example
A semiconductor strip 1.0 cm wide lies in the page and carries current to the right. A 0.40 T field points into the page, and the charge carriers drift at 5.0 m/s.
Size: V/m, so V = 20 mV.
Direction: If the carriers are positive, they move right; right × into the page gives a force up the page. Positive charge collects on the top edge, so the top edge is at the higher potential.
If the carriers are electrons, they move left. For a negative charge moving left, the force is also up the page, so electrons collect on the top edge and the top edge is at the lower potential.
Why It Matters
- The sign of the Hall voltage reveals whether the moving charges are positive or negative — evidence that the current in most metals is carried by negative charges.
- The Hall voltage grows with , so Hall sensors measure magnetic fields and detect nearby magnets (for example, the sensor that notices a laptop lid closing).
Hall Effect Drill 🔢
A conducting strip 2.0 cm wide carries current in a 0.50 T magnetic field perpendicular to the strip. The charge carriers drift at 3.0 m/s.
-
Electric field across the strip once the sideways forces balance (in V/m)
-
Hall voltage across the strip (in V)
-
Hall voltage if the magnetic field is doubled to 1.0 T, with the same drift speed (in V)
Exit Check — Materials and the Hall Effect ✅
Part 7: Synthesis & AP Review
🏆 Synthesis & AP Review
Part 7 of 7 — Right-Hand Rule Mastery, Common Mistakes, and AP FRQ Preview
You've learned the core of magnetism: fields from magnets, moving charges, and currents; forces on charges and wires; circular motion; magnetic materials; and the Hall effect. This final part ties everything together and prepares you for AP-level problems.
📋 Master Formula Sheet
Forces
| Situation | Formula |
|---|---|
| Force on moving charge | , |
| Force on current-carrying wire | , |
| Force between parallel wires |
Fields from Currents
| Source | Formula |
|---|---|
| Long straight wire | , circles the wire (right-hand rule) |
| Several wires | Add each wire's as vectors |
| Center of a current loop | Direction only: along the axis, by the right-hand rule |
Circular Motion
| Quantity | Formula |
|---|---|
| Radius | |
| Period | |
| Cyclotron frequency | |
| Velocity selector |
Materials and the Hall Effect
| Idea | Key fact |
|---|---|
| Ferromagnetic (Fe, Ni, Co) | Domains align strongly; can stay magnetized |
| Paramagnetic (Al, Ti, Mg) | Weak alignment; lost when the field is removed |
| Diamagnetic (all materials) | Weak alignment opposite the field |
| Hall effect | At balance ; Hall voltage |
Constants
⚠️ Common Mistakes on the AP Exam
Mistake 1: Wrong Hand
Using the left hand for the right-hand rule (for positive charges or conventional current). Left hand is only for negative charges.
Mistake 2: Confusing and
- Coulomb/Electric field: ,
- Wire magnetic field: (NOT !)
Mistake 3: Thinking Magnetic Force Does Work
The magnetic force is always perpendicular to velocity: . It changes direction but not speed. It does no work and cannot change kinetic energy.
Mistake 4: Forgetting sinθ
only when . The general formula is . If , .
Mistake 5: Period Depends on Speed
The cyclotron period is independent of speed. Students often think faster particles take less time — they don't. They travel a bigger circle at a proportionally higher speed.
Mistake 6: Parallel Wires Direction
Same-direction currents attract (not repel). Don't reason from the field between the wires: there the two fields point in opposite directions and cancel at the midpoint. Instead, find the field that wire 1 makes at wire 2, then apply the right-hand rule for to wire 2. The force points toward wire 1, and Newton's third law gives wire 1 an equal force toward wire 2. Opposite currents repel.
Right-Hand Rule Mastery Challenge 👋
Mixed scenarios — identify the correct direction or quantity.
📝 AP FRQ Preview
A common AP Physics 2 free-response question type:
Setup
A proton is launched horizontally into a region of uniform magnetic field pointing into the page.
Typical Parts
(a) Draw the path of the proton. Explain why it curves.
Answer: The proton follows a circular arc. The magnetic force acts perpendicular to the velocity, providing centripetal acceleration.
(b) Determine the radius of the circular path.
Answer: . Substitute given values.
(c) If the proton is replaced by an alpha particle (, ) with the same speed, how does the radius change?
Answer: , so with the same and , . Then . The alpha particle has twice the radius.
(d) Does the magnetic field do work on the proton? Justify.
Answer: No. The magnetic force is always perpendicular to velocity (), so . Speed and KE remain constant.
Pro Tips for FRQs
- Always state the relevant equation before plugging in numbers
- Explain directions using the right-hand rule explicitly
- Justify "no work" by citing
- When comparing particles, use ratios to avoid numerical errors
AP-Style Calculation Challenge 🎯
An electron ( kg, C) is accelerated from rest through a potential difference of 500 V, then enters a uniform 0.010 T magnetic field perpendicular to its velocity.
-
Speed of the electron after acceleration (in m/s, use scientific notation like 1.3e7)
-
Radius of the circular path in the magnetic field (in m, to 3 significant figures)
-
Cyclotron period (in s, use scientific notation like 3.6e-9)
Final Mastery Quiz — Magnetic Fields and Forces 🏆