AP PHYSICS 2: ALGEBRA-BASED • MAGNETISM AND ELECTROMAGNETISM

Magnetic Fields

Invisible vector fields that govern the forces on moving charges and current-carrying conductors.

Historical Context & Motivation

The study of magnetism stretches back millennia, beginning with the ancient observation that certain stones—lodestones—could attract iron. For centuries, magnetism remained a curiosity with limited practical application beyond primitive compasses. It was not until the early nineteenth century that a profound connection between electricity and magnetism was uncovered, launching the field of electromagnetism and ultimately unifying two seemingly distinct phenomena into a single theoretical framework.

1820
Ørsted's Discovery
Hans Christian Ørsted demonstrates that an electric current deflects a nearby compass needle, establishing the first link between electricity and magnetism.
1831
Faraday's Induction
Michael Faraday discovers electromagnetic induction—changing magnetic fields produce electric currents—and introduces the concept of magnetic field lines.
1865
Maxwell's Equations
James Clerk Maxwell publishes a unified set of equations describing electric and magnetic fields as components of a single electromagnetic field propagating at the speed of light.
1895
Lorentz Force Law
Hendrik Lorentz formalizes the force experienced by a charged particle moving through electric and magnetic fields, completing the classical picture.

The central question this lesson addresses is: how do we quantitatively describe the magnetic field created by currents and magnets, and how does that field exert forces on moving charges and current-carrying wires? Answering this question is essential for understanding everything from MRI machines to electric motors.

Core Principles & Definitions

A magnetic field (symbol B⃗) is a vector field that permeates the space around magnets, current-carrying conductors, and moving charges. Unlike gravitational or electrostatic fields, the magnetic field exerts a force only on charges that are in motion; a stationary charge sitting in a magnetic field experiences no magnetic force. The SI unit of magnetic field strength is the tesla (T), where 1 T = 1 kg·s−2·A−1.

1

Sources of B⃗

Magnetic fields originate from moving electric charges: current-carrying wires, permanent magnets (atomic-scale current loops), and time-varying electric fields.
2

Vector Nature

B⃗ has both magnitude and direction at every point in space. The direction at any location is defined as the direction a north magnetic pole would point if placed there.
3

No Magnetic Monopoles

Magnetic field lines always form closed loops—they exit the north pole and enter the south pole. Isolated north or south poles have never been observed in nature.
4

Superposition

When multiple sources of magnetic field are present, the net field at any point is the vector sum of the individual fields contributed by each source.
KEY TAKEAWAY
KEY TAKEAWAY

Visualizing Magnetic Fields

The concept of magnetic field lines, pioneered by Faraday, provides a powerful visual tool. Field lines are drawn so that their tangent at any point gives the direction of B⃗, and the density of lines (number per unit area) is proportional to the field's magnitude. The diagram below shows the field around a bar magnet, where lines emerge from the north pole, arc through the surrounding space, and return to the south pole—forming the characteristic closed-loop pattern required by Gauss's law for magnetism.

Field lines emerge from the north pole (blue region) and curve back into the south pole (red region). Closer spacing indicates a stronger field.
Right-Hand Rules

Mathematical Framework

Two foundational equations govern how magnetic fields interact with moving charges and current-carrying conductors. The first describes the force on a single moving charge; the second extends that idea to a straight segment of wire carrying current in a uniform external field.

MAGNETIC FORCE ON A MOVING CHARGE
F = qvB sin θ
F = magnitude of the magnetic force (N), q = charge (C), v = speed of the charge (m/s), B = magnetic field strength (T), θ = angle between v⃗ and B⃗. The force direction is given by the right-hand rule and is always perpendicular to both v⃗ and B⃗.
MAGNETIC FORCE ON A CURRENT-CARRYING WIRE
F = BIL sin θ
F = force on the wire (N), B = external magnetic field (T), I = current (A), L = length of the wire segment in the field (m), θ = angle between the current direction and B⃗.
FIELD FROM A LONG STRAIGHT WIRE
B = μ₀I / (2πr)
B = magnetic field magnitude (T), μ₀ = permeability of free space = 4π × 10−7 T·m/A, I = current (A), r = perpendicular distance from the wire (m). The field forms concentric circles around the wire.
FIELD INSIDE A SOLENOID
B = μ₀nI
n = number of turns per unit length (turns/m), I = current (A). The field inside a long solenoid is approximately uniform and directed along its axis.

A critically important consequence of F = qvB sin θ is that the magnetic force does zero work on a charged particle. Because the force is always perpendicular to the velocity, it changes the direction of the particle's motion but not its speed—hence the kinetic energy remains constant. This is why a charged particle in a uniform magnetic field follows a circular path (when v⃗ ⊥ B⃗), with the magnetic force supplying the centripetal acceleration.

Motion of Charged Particles in B⃗

When a charged particle enters a region of uniform magnetic field with its velocity perpendicular to B⃗, the resulting magnetic force acts as a centripetal force and the particle traces out a circle. Setting qvB = mv²/r yields the radius of circular motion: r = mv / (qB). Larger mass or faster speed produces a bigger circle; stronger fields or greater charge produce tighter orbits. This principle underlies the operation of mass spectrometers, cyclotrons, and the confinement of plasma in fusion reactors.

A positive charge (yellow) moves clockwise in a uniform B⃗ directed into the page (⊗ symbols). The velocity v⃗ (green) is always tangent to the circle, while the magnetic force F⃗ (pink) always points toward the center, providing centripetal acceleration.
Dependence of circular orbit radius on physical quantities
QuantitySymbolEffect on Orbit Radius
Massmr ∝ m — heavier particles orbit in larger circles
Speedvr ∝ v — faster particles have larger radii
Charge magnitude|q|r ∝ 1/|q| — greater charge means tighter orbit
Field strengthBr ∝ 1/B — stronger field means tighter orbit

Worked Example

1
Step 1 — Identify Given ValuesA proton (m = 1.67 × 10−27 kg, q = 1.60 × 10−19 C) enters a uniform magnetic field B = 0.50 T with a speed v = 3.0 × 106 m/s perpendicular to B⃗. Find (a) the radius of its circular orbit and (b) the magnetic force on the proton.
2
Step 2 — Find the Orbit RadiusUse r = mv / (qB). Substitute: r = (1.67 × 10−27)(3.0 × 106) / [(1.60 × 10−19)(0.50)].
r = 6.3 × 10⁻² m ≈ 6.3 cm
3
Step 3 — Find the Magnetic ForceSince v⃗ ⊥ B⃗, sin θ = 1. F = qvB = (1.60 × 10−19)(3.0 × 106)(0.50).
F = 2.4 × 10⁻¹³ N
4
Step 4 — Verify ConsistencyAs a check, confirm that F = mv²/r: (1.67 × 10⁻²⁷)(3.0 × 10⁶)² / (6.3 × 10⁻²) = 2.4 × 10⁻¹³ N. This matches, confirming the magnetic force serves as the centripetal force. Note that the proton's kinetic energy is unchanged because F⃗ ⊥ v⃗.

Applications & Limitations

The equations developed in previous sections assume ideal conditions—uniform fields, point charges, or infinitely long wires. Real-world applications require awareness of when these models break down and how additional effects (such as relativistic speeds, non-uniform field regions, or magnetic materials) modify the picture.

Selected applications of magnetic fields and their practical limitations
ApplicationHow It Uses B⃗Key Limitation
Mass SpectrometerDifferent ions have different r = mv/(qB), separating isotopes by massRequires high vacuum; assumes uniform B
Electric MotorF = BIL sin θ on current-carrying coil produces torqueField non-uniformity reduces efficiency
MRI ScannerStrong uniform B aligns nuclear spins; RF pulses probe tissueRequires superconducting magnets (1.5–3 T); extremely costly
Earth's Magnetic FieldDeflects charged solar wind particles, protecting the atmosphereField is non-uniform and changes over geological time
KEY TAKEAWAY
KEY TAKEAWAY

Connection to Advanced Theory

The AP Physics 2 treatment of magnetic fields is grounded in the algebra-based formulation of classical electromagnetism. At higher levels, the same physics is expressed using vector calculus (Ampère's law with the line integral ∮B⃗·dl⃗ = μ₀Ienc), and ultimately through the relativistic unification of E⃗ and B⃗ into the electromagnetic field tensor. The table below contrasts the AP-level and advanced treatments.

TopicAP Physics 2 TreatmentAdvanced / University Treatment
Sources of B⃗B = μ₀I/(2πr) for long wire; B = μ₀nI for solenoidBiot-Savart law for arbitrary current geometries; Ampère's law in integral/differential form
Force on chargesF = qvB sin θ (scalar magnitude)F⃗ = qv⃗ × B⃗ (full vector cross product)
Magnetic fluxΦ = BA cos θ for uniform fieldsΦ = ∫B⃗·dA⃗ for non-uniform fields and curved surfaces
E and B unificationTreated as separate fieldsE⃗ and B⃗ are components of one electromagnetic field tensor; a pure E field in one frame can appear as a mix of E and B in another

Understanding the algebra-based framework thoroughly prepares you to transition into vector-calculus-based electromagnetism. The physical intuition—right-hand rules, field-line visualization, and the perpendicularity of magnetic forces—carries directly forward into more advanced courses.

Practice Problems

1
A proton moves horizontally to the right through a region where the magnetic field points vertically upward. Which statement about the magnetic force on the proton is correct?
2
An electron (q = 1.60 × 10⁻¹⁹ C) moves at 5.0 × 10⁶ m/s perpendicular to a 0.20 T magnetic field. What is the magnitude of the magnetic force on the electron?
3
A 0.40 m long wire carries a current of 5.0 A through a uniform magnetic field of 0.30 T. If the wire is oriented at 30° to the field, what is the force on the wire?
PROBLEM 4APPLIED
A student wishes to experimentally determine how the radius of a charged particle's circular orbit in a uniform magnetic field depends on the particle's speed. The student has access to an electron gun with adjustable accelerating voltage, a pair of Helmholtz coils producing a known uniform B⃗, and a glass bulb filled with low-pressure gas that makes the electron beam visible. (a) Describe a procedure the student could follow to collect the data needed, identifying the independent and dependent variables. (b) Describe how the accelerating voltage relates to the electron's speed. (c) Explain how the student should analyze the data graphically to confirm the relationship r = mv/(eB). (d) Identify one source of systematic error and explain its effect on the measured radius.
PROBLEM 5CRITICAL THINKING
Two long, parallel wires separated by a distance d = 0.10 m each carry current I = 4.0 A in the same direction. (a) Calculate the magnitude of the magnetic field produced by one wire at the location of the other. (b) Calculate the force per unit length on one wire due to the other, and state whether it is attractive or repulsive. (c) A student claims that if the currents flow in opposite directions, the force magnitude would change. Evaluate this claim. (d) Explain, using field-line reasoning, why parallel currents attract while antiparallel currents repel.
Varsity Tutors • AP Physics 2: Algebra-Based • Magnetic Fields