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 q moving with velocity v creates a magnetic field:
B=4ฯ
where ฮผ0โ=4ฯร10โ7 Tยทm/A is 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 B field, similar to electric field lines for E.
Earth's Magnetic Field
Earth behaves like 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 about 11ยฐ from the rotation axis
Field Strength
Earth's magnetic field strength at the surface:
BEarthโโ25โ65
Units of Magnetic Field
The SI unit of magnetic field B is the Tesla (T):
1ย T
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 q moving with velocity v in a magnetic field experiences a 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 q moving with speed v perpendicular to a uniform field B experiences:
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 electric motors, loudspeakers, and galvanometers.
Force on a Straight Current-Carrying Wire
For a straight wire of length L carrying current I in a uniform magnetic field B:
Part 5: Ampรจre's Law & Solenoids
๐ Magnetic Field from Currents
Part 5 of 7 โ Biot-Savart, Ampรจre's Law, and Solenoids
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 currents create magnetic fields? Two powerful laws โ the Biot-Savart law and Ampรจre's law โ give the answer.
Magnetic Field of a Long Straight Wire
The most important result: a long straight wire carrying current I creates a magnetic field at perpendicular distance r:
Part 6: Torque on Current Loops
โ๏ธ Torque on Current Loops
Part 6 of 7 โ Magnetic Dipoles, Motors, and Galvanometers
A current loop in a magnetic field doesn't just experience a net force โ it experiences a torque that tends to rotate it. This is the operating principle behind electric motors, galvanometers, and many other devices.
Torque on a Rectangular Current Loop
Consider a rectangular loop (sides a and b) carrying current I in a uniform field B.
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 sources, forces on charges and wires, circular motion, and torque on loops. This final part ties everything together and prepares you for AP-level problems.
๐ Master Formula Sheet
Forces
Situation
Formula
Force on moving charge
F,
ฮผ0โ
โ
r2qvรr^โ
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 B
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).
ย ฮผT
โ
0.25โ
0.65ย Gauss
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 is generated by convection currents of molten iron in the outer core โ essentially a natural dynamo. The field slowly changes over time and has even reversed polarity many times throughout geologic history.
=
1Aโ s2kgโ=
1Aโ mNโ=
1m2Wbโ
Conversion
The older CGS unit is the Gauss (G):
1ย T=10,000ย G=104ย G
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
ฮผ0โ=4ฯร10โ7ย Tโ m/A
This constant appears in all formulas for magnetic fields produced by currents, just as ฮต0โ appears in electric field formulas.
B
F=qvรB
The magnitude is:
โฃFโฃ=โฃqโฃvBsinฮธ
where ฮธ is the angle between v and B.
Key Properties
The force is perpendicular to both v and B โ it points "out of the plane" formed by the velocity and field vectors
No force on stationary charges โ if v=0, then F=0
No force when vโฅB โ if or , then
Maximum force when vโฅB โ when ,
The magnetic force does no work โ since Fโฅv, the force changes direction but not speed
The Right-Hand Rule
To find the direction of F=qvรB:
For Positive Charges (q>0)
Point your fingers in the direction of v
Curl them toward B
For Negative Charges (q<0)
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
v direction
B direction
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 (q=โe) or any negative charge:
F=qvรB=(โe)vรB
The negative sign reverses the force direction compared to a positive charge.
Example
An electron moves to the right (+x) in a magnetic field pointing up (+y):
Right-hand rule for +q: x^รy^โ= โ out of 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 F=qv with and the actual electron velocity
Both approaches give the same force direction on the wire.
Electron Force Direction Drill ๐ฌ
Now find the force direction on an electron (q=โe).
Exit Quiz โ Magnetic Force โ
F=qvB
This force is always perpendicular to v, so it acts as a centripetal force:
qvB=rmv2โ
Solving for the radius of circular motion:
r=qBmvโโ
Key Observations
Faster particles โ larger radius (linear in v)
Heavier particles โ larger radius (linear in m)
Stronger field โ smaller radius (inverse in B)
More charge โ smaller radius (inverse in q)
The speed v 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:
T=v2ฯrโ=qB2ฯmโ
The cyclotron frequency is:
f=2ฯmqBโโ
And the angular frequency:
ฯ=mqBโ
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 v has a component along B?
The component vโฅโ (parallel to B) is unaffected โ no force
The component (perpendicular to ) produces circular motion
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 V: kinetic energy =qV, so v=2qV/mโ
Enter a magnetic field region โ travel in semicircles
Detect where they land on a detector plate
The Separation
The radius of the semicircle is:
r=qBmvโ
Substituting v=2qV/mโ:
r=qBm2qV/m
r=B1โ
Different masses land at different positions (different r), 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
E and B are perpendicular to each other and to the particle's velocity v
Electric force: FEโ=qE (in one direction)
Magnetic force: FBโ=qvB (in the opposite direction)
Condition for Straight-Line Motion
For the particle to pass through undeflected:
qE=qvB
v=BEโโ
Key Features
Only particles with speed v=E/B 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 (m=1.67ร10โ27 kg, q=1.6ร10โ19 C) moves at 4.0ร106 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 โ
F=ILรB
where L points in the direction of conventional current flow.
The magnitude is:
โฃFโฃ=BILsinฮธโ
where ฮธ is the angle between the wire (current direction) and B.
Special Cases
Wire perpendicular to B (ฮธ=90ยฐ): F=BIL (maximum force)
Wire parallel to B (ฮธ=0ยฐ): F= (no force)
Derivation from Charge Force
Current I=nqvdโA where n = charge density, vdโ = drift velocity, A = cross-section area.
Total force on charges in length L:
F=(nAL)(qvdโB)=(nqvdโA)(LB)=BIL
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 I (conventional current direction)
Curl toward B
Thumb points in the direction of F
Example
A wire carries current to the right (+x) in a magnetic field pointing into the page (โz):
F=IL
x^ร(โz^)=โ(
The force is upward (+y).
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 d:
B1โ=2ฯdฮผ0โI1โโ
Force on a length L of Wire 2:
F=B1โI2โL=
Force per unit length:
LFโ=2ฯd
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 2ร10โ7 N per meter of length.
Wire Force Calculation Drill ๐ข
Use ฮผ0โ=4ฯร10โ7 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 โ
B=2ฯrฮผ0โIโ
โ
where ฮผ0โ=4ฯร10โ7 Tยทm/A.
Direction: Right-Hand Rule for Wires
Point your right thumb in the direction of the current. Your fingers curl in the direction of B.
Current flowing up โ B circles counterclockwise (viewed from above)
Current flowing toward you โ B circles counterclockwise
Key Features
BโI โ double the current, double the field
Bโ1/r โ field decreases with distance (but only as 1/r, not 1/r2)
Field lines are concentric circles centered on the wire
Field is tangent to these circles at every point
Ampรจre's Law
Ampรจre's law is the magnetic analog of Gauss's law โ it relates the magnetic field around a closed loop to the current passing through the loop:
โฎBโ dl=ฮผ0โIencโโ
where Iencโ is the total current enclosed by the Amperian loop.
When to Use Ampรจre's Law
Ampรจre's law is most useful when the geometry has high symmetry:
Long straight wire โ use a circular Amperian loop centered on the wire
Solenoid โ use a rectangular loop
Toroid โ use a circular loop inside the toroid
Deriving the Wire Field
For a long straight wire, choose a circular Amperian loop of radius r:
โฎBdl=B(2ฯr)=ฮผ0โI
B=2ฯrฮผ0โIโโ
The same result we stated above โ Ampรจre's law confirms it elegantly.
Solenoids
A solenoid is a tightly wound coil of wire. It produces a nearly uniform magnetic field inside and nearly zero field outside.
Field Inside an Ideal Solenoid
B=ฮผ0โnIโ
where:
n=N/L is the number of turns per unit length
N = total number of turns
L = length of the solenoid
I = current
Derivation (Ampรจre's Law)
Choose a rectangular Amperian loop with one side inside and one outside the solenoid:
Inside side (length l): Bโ l (field is uniform and parallel)
Outside side: 0 (field is negligible)
Two short sides: 0 (perpendicular to B)
Current enclosed: Iencโ=nlI (there are nl turns through the loop)
Bl=ฮผ0โnlI
B=ฮผ0โnIโ
Key Properties
Field inside is uniform (constant everywhere inside)
Field outside is approximately zero
Field strength depends on turns per length (n) and current (I), not the total length
A solenoid is essentially a magnetic dipole โ its field pattern outside resembles a bar magnet
Magnetic Field Calculation Drill ๐ข
Use ฮผ0โ=4ฯร10โ7 Tยทm/A.
A long wire carries 15 A. What is B at a distance of 3.0 cm from the wire? (in T, use scientific notation like 1.0e-4)
A solenoid is 0.40 m long, has 800 turns, and carries 2.0 A. What is B inside? (in T, to 3 significant figures)
How far from a 20 A wire is the field equal to 1.0ร10โ4 T? (in m, to 3 significant figures)
Concept Check โ Fields from Currents
Exit Check โ Fields from Currents โ
Forces on the Sides
Sides parallel to B: No force (ฮธ=0ยฐ)
Sides perpendicular to B: Force F=BIa on each, but in opposite directions
These opposite forces create a couple โ a net torque with zero net force.
The Torque
The perpendicular distance between the two force lines (the lever arm) depends on the angle ฯ between the loop's normal and B:
ฯ=Fโ bsinฯ=BIaโ bsinฯ=BIAsinฯ
where A=ab is the area of the loop.
For a coil with N turns:
ฯ=NIABsinฯโ
where ฯ is the angle between the magnetic dipole momentฮผโ (normal to the loop) and B.
Magnetic Dipole Moment
The magnetic dipole moment of a current loop is:
ฮผโ=NIAโ
where:
N = number of turns
I = current
A = area vector (perpendicular to the loop, direction from right-hand rule: curl fingers in direction of current, thumb = )
The magnitude is:
ฮผ=NIA
Torque in Terms of ฮผโ
ฯ=ฮผ
โฃฯโฃ=ฮผBsinฯ
Equilibrium Positions
ฯ=0ยฐ: ฮผโโฅ โ โ (lowest energy)
Potential Energy
U=โฮผโโ B
Minimum energy at ฯ=0ยฐ: U=โฮผB
Maximum energy at ฯ=180ยฐ:
Applications
Electric Motor
A motor uses the torque on a current loop to create continuous rotation:
Current flows through a coil in a magnetic field โ torque rotates the coil
A commutator (split ring) reverses the current direction every half turn
This ensures the torque always acts in the same rotational direction
The coil spins continuously!
Without the commutator, the coil would just oscillate back and forth around the equilibrium position (ฮผโโฅB).
Galvanometer
A galvanometer measures small currents:
Current flows through a coil suspended in a magnetic field
The magnetic torque ฯ=NIABsinฯ is opposed by a spring
The coil rotates until ฯmagneticโ=
The deflection angle is proportional to the current, making it a useful measuring device.
Key Difference
Motor: commutator allows continuous rotation
Galvanometer: spring limits rotation to a measurable deflection
Torque Concept Quiz โ๏ธ
Torque Calculation Drill ๐ข
A rectangular coil has 50 turns, dimensions 8.0 cm ร 5.0 cm, carries 2.0 A, and sits in a 0.30 T uniform magnetic field.
Magnetic dipole moment ฮผ (in Aยทmยฒ)
Maximum torque on the coil (in Nยทm)
Torque when ฮผโ makes a 30ยฐ angle with B (in Nยทm)
Round all answers to 3 significant figures.
Exit Check โ Torque and Dipoles โ
=
qvร
B
F=qvBsinฮธ
Force on current-carrying wire
F=ILรB, F=BILsinฮธ
Force between parallel wires
F/L=ฮผ0โI1โI2โ/(2ฯd)
Fields from Currents
Source
Formula
Long straight wire
B=ฮผ0โI/(2ฯr)
Solenoid (inside)
B=ฮผ0โnI
Ampรจre's law
โฎBโ dl
Circular Motion
Quantity
Formula
Radius
r=mv/(qB)
Period
T=2ฯm/(qB)
Cyclotron frequency
f=qB/(2ฯm)
Velocity selector
v=E/B
Torque and Dipoles
Quantity
Formula
Dipole moment
ฮผ=NIA
Torque
ฯ=NIABsinฯ
Potential energy
U=โฮผBcosฯ
Constants
ฮผ0โ=4ฯร10โ7ย Tโ m/Ae=1.6ร10โ19ย Cmpโ=1.67ร10โ27ย kgmeโ=9.11ร10โ31ย kg
โ ๏ธ 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 1/r and 1/r2
Coulomb/Electric field: Fโ1/r2, Eโ1/r2
Wire magnetic field: Bโ1/r (NOT 1/r2!)
Mistake 3: Thinking Magnetic Force Does Work
The magnetic force is always perpendicular to velocity: Fโฅv. It changes but not . It does and cannot change kinetic energy.
Mistake 4: Forgetting sinฮธ
F=qvB only when vโฅ. The general formula is . If , .
Mistake 5: Period Depends on Speed
The cyclotron period T=2ฯm/(qB) 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). This is counterintuitive โ think of it as: the wires' fields reinforce between them, creating a pressure that pushes them together.
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 F=qvB acts perpendicular to the velocity, providing centripetal acceleration.
(b) Determine the radius of the circular path.
Answer: r=mv/(qB). Substitute given values.
(c) If the proton is replaced by an alpha particle (q=2e, m=4mpโ) with the same speed, how does the radius change?
Answer: rฮฑโ/r. 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 (Fโฅv), 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 Fโฅv
AP-Style Calculation Challenge ๐ฏ
An electron (m=9.11ร10โ31 kg, q=1.6ร10โ19 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 ๐
ฮธ=0ยฐ
180ยฐ
sinฮธ=0
ฮธ=90ยฐ
F=qvB
Your thumb points in the direction of F
F on +q
+x (right)
+y (up)
+z (out of page)
+x (right)
+z (out of page)
โy (down)
+y (up)
+x (right)
โz (into page)
+z (out of page)
+x (right)
+y (up)
z
^
Electron (โq): reverse โ force is into the page (โz)
ร
B
q=โe
Or use the conventional current direction (opposite to electron flow) with q=+e
vโฅโ
B
The result is a helix (spiral) along the field direction
โ
โ
=
B2mV/qโโ
q
2mV
โ
โ
โ
0
ร
B
x
^
ร
z^)=
โ(โy^โ)=
+y^โ
2ฯd
ฮผ0โI1โI2โL
โ
ฮผ0โI1โI2โ
โ
โ
A
โ
ร
B
B
ฯ=0
stable equilibrium
ฯ=180ยฐ: ฮผโ antiparallel to B โ ฯ=0 โ unstable equilibrium (highest energy)
ฯ=90ยฐ: maximum torque
=
โฮผBcosฯ
U=
+ฮผB
ฯspringโ
Greater current โ greater deflection โ read on a scale
=
ฮผ0โIencโ
direction
speed
no work
B
F=qvBsinฮธ
vโฅB
F=0
p
โ
=
(4mpโโ
qB)/(2eโ
mpโB)โ
(v/v)=
4mpโ/(2mpโ)โ
(e/(e))=
2
W=Fโ ฮr=0
When comparing particles, use ratios to avoid numerical errors