AP PHYSICS C: ELECTRICITY AND MAGNETISM • MAGNETIC FIELDS AND ELECTROMAGNETISM

Magnetic Fields

Understanding the vector field that governs forces on moving charges and current-carrying conductors.

Historical Context & Motivation

The study of magnetism stretches back over two millennia, from ancient observations of lodestones attracting iron to the sophisticated mathematical framework that unifies electricity and magnetism in Maxwell's equations. For centuries, magnetism was considered a mysterious force entirely separate from electricity, and the idea that moving charges could generate magnetic effects—or that changing magnetic fields could produce electric fields—was inconceivable. The gradual recognition that these phenomena are intimately linked represents one of the most profound unifications in the history of physics, culminating in the concept of the electromagnetic field as a single entity described by vector calculus.

~600 BCE
Lodestones and Early Observations
Ancient Greeks, including Thales of Miletus, noted that naturally magnetized pieces of magnetite (lodestones) could attract iron. The Chinese independently discovered magnetic properties and by ~200 BCE developed the first compasses for geomancy and later navigation.
1600
Gilbert's De Magnete
William Gilbert published De Magnete, proposing that Earth itself is a giant magnet. This was the first systematic, experimental study of magnetism and laid the groundwork for treating magnetic phenomena scientifically rather than mystically.
1820
Ørsted's Discovery
Hans Christian Ørsted demonstrated that an electric current deflects a compass needle, proving that electricity and magnetism are related. This pivotal experiment launched the field of electromagnetism and prompted immediate theoretical and experimental follow-up by Ampère, Biot, and Savart.
1831
Faraday's Electromagnetic Induction
Michael Faraday discovered that a changing magnetic field induces an electric current, establishing the principle of electromagnetic induction. His concept of 'lines of force' provided the first intuitive, geometric picture of the magnetic field—a framework that profoundly influenced Maxwell.
1865
Maxwell's Equations
James Clerk Maxwell synthesized all known laws of electricity and magnetism into four elegant equations, predicting the existence of electromagnetic waves traveling at the speed of light. The magnetic field B was placed on equal theoretical footing with the electric field E, completing the classical theory of electromagnetism.

The central question this lesson addresses is: How do we mathematically describe the magnetic field, and what forces does it exert on charges and currents? By mastering the vector nature of B, the Lorentz force law, and the Biot-Savart law, you will develop the tools necessary to analyze magnetic phenomena ranging from deflecting beams in particle accelerators to designing MRI machines. These concepts form the backbone of the AP Physics C: E&M curriculum and appear repeatedly in both the multiple-choice and free-response portions of the exam.

Core Principles & Definitions

The magnetic field, denoted B, is a vector field that permeates all of space and describes the magnetic influence on moving electric charges, electric currents, and magnetic materials. Unlike the electric field, which can exert a force on a stationary charge, the magnetic field acts only on charges that are in motion—a fact that reflects the deep connection between magnetism and the kinematics of charged particles. The SI unit of B is the tesla (T), where 1 T = 1 kg·s−2·A−1. The older CGS unit, the gauss (G), satisfies 1 T = 10⁴ G; Earth's surface field is roughly 25–65 μT (0.25–0.65 G).

1

The Magnetic Field B Is a Vector Field

At every point in space, B has both a magnitude and a direction. The field lines of B form closed loops (they never start or end on isolated charges), reflecting the empirical fact that magnetic monopoles have never been observed. Gauss's law for magnetism states ∮ B · dA = 0.
2

The Lorentz Force Law

A point charge q moving with velocity v in a magnetic field B experiences a force F = qv × B. This cross-product nature means the magnetic force is always perpendicular to both v and B, so it does no work on the charge and cannot change its kinetic energy.
3

Sources of Magnetic Fields

Magnetic fields are produced by moving charges (currents). The Biot-Savart law and Ampère's law provide complementary methods for computing B due to current distributions. Permanent magnets arise from aligned atomic current loops within ferromagnetic materials.
4

Superposition

Magnetic fields obey the principle of superposition: the net field at any point is the vector sum of the contributions from all individual sources. This allows complex field configurations to be built up from simple, calculable elements such as straight wires and circular loops.
5

Right-Hand Rules

The direction of B around a current-carrying wire, the direction of the magnetic force on a positive charge, and the orientation of the field from a current loop are all determined by various right-hand rules—a reflection of the cross-product structure underlying all magnetic interactions.
KEY TAKEAWAY
Think of the magnetic field as a set of invisible rails that steer moving charges without speeding them up or slowing them down—much like a banked highway curve redirects a car's trajectory without changing its speed. The field does not pump energy into the charge; it merely redirects the charge's momentum vector. This is precisely why the magnetic force does zero work: F is always perpendicular to the displacement, so F · ds = 0 at every instant.

Visualizing Magnetic Fields

The following diagram illustrates the magnetic field produced by a long, straight current-carrying wire and the force experienced by a positive charge moving through that field. The field lines form concentric circles centered on the wire, with direction determined by the right-hand rule: point your right thumb in the direction of conventional current, and your fingers curl in the direction of B. The density of field lines indicates the magnitude of B, which decreases as 1/r from the wire.

Left: Concentric field lines (cyan, dashed) around a current-carrying wire (green). The field magnitude decreases with distance (r₁ < r₂ < r₃). Right: A positive charge q (gold) moving upward with velocity v in a region where B points out of the page experiences a force F = qv × B directed to the right (pink), illustrating the cross-product nature of the Lorentz force.

Several features of this diagram are worth emphasizing. First, the closed-loop nature of the B field lines reflects Gauss's law for magnetism: there are no magnetic monopoles, so every field line that exits a region must also return. Second, the spacing between the concentric circles widens with distance from the wire, encoding the 1/r decrease in field magnitude given by B = μ₀I/(2πr). Third, the force on the positive charge (pink arrow) is perpendicular to both v and B—if v were reversed, F would flip direction; if the charge were negative, F would also reverse. These three observations capture the essential physics of magnetic fields and forces that you must internalize for the AP exam.

Mathematical Framework

The quantitative description of magnetic fields and forces rests on several foundational equations. In this section we develop the key formulas that appear throughout AP Physics C: E&M, starting with the force law and progressing to the field-generation laws.

LORENTZ FORCE ON A POINT CHARGE
F = qv × B
F is the magnetic force (N), q is the charge (C), v is the velocity vector (m/s), and B is the magnetic field vector (T). The magnitude is |F| = |q|vB sin θ, where θ is the angle between v and B. When θ = 0° or 180°, the force vanishes; it is maximum when θ = 90°.
FORCE ON A CURRENT-CARRYING WIRE
F = IL × B (or dF = I dL × B)
For a straight wire of length L carrying current I in a uniform field B, the magnitude is F = BIL sin θ. The differential form dF = I dL × B is used when B varies along the wire or the wire is curved. Here L (or dL) points in the direction of conventional current.
BIOT-SAVART LAW
dB = (μ₀ / 4π) × (I dL × r̂) / r²
This law gives the infinitesimal contribution dB to the magnetic field from a current element I dL at a displacement r from that element. μ₀ = 4π × 10⁻⁷ T·m/A is the permeability of free space. Integration over the entire current distribution yields the total field B.
AMPÈRE'S LAW
∮ B · dL = μ₀ I_enc
The line integral of B around a closed Amperian loop equals μ₀ times the total enclosed current I_enc. This law is most useful when the current distribution has high symmetry (infinite wire, solenoid, toroid), allowing B to be pulled out of the integral.

These equations have important interrelationships. The Biot-Savart law is the magnetic analog of Coulomb's law: both give the field from a small source element via an inverse-square relationship. Ampère's law is the magnetic analog of Gauss's law: both exploit symmetry to simplify field calculations. For the AP exam, you should be comfortable applying the Biot-Savart law to compute the field at the center of a circular loop (B = μ₀I / 2R) and along the axis of a loop, as well as using Ampère's law for the solenoid (B = μ₀nI) and the infinite straight wire (B = μ₀I / 2πr). The Lorentz force law is tested in contexts ranging from velocity selectors and mass spectrometers to the torque on current loops.

💡 AP Exam Tip
When deciding between the Biot-Savart law and Ampère's law, ask: does the current distribution have a symmetry that makes B constant along a simple closed path? If yes, use Ampère's law. If not, use Biot-Savart. Solenoids, toroids, and infinite wires favor Ampère's law; finite wires, arcs, and loops favor Biot-Savart.

Key Field Configurations & Charged Particle Motion

Several canonical current configurations and their resulting fields appear repeatedly on the AP exam. Equally important is the motion of charged particles in uniform magnetic fields, which gives rise to circular and helical trajectories. The following diagram and table summarize these essential configurations.

Top row: three canonical field configurations—infinite straight wire, circular loop (field at center), and solenoid (uniform interior field). Bottom left: a positive charge traces a circle in a uniform B field directed into the page; the magnetic force provides the centripetal acceleration. Bottom right: summary of the most important quantitative results for these configurations.
Summary of magnetic field expressions for common current configurations
ConfigurationField ExpressionMethodKey Feature
Infinite straight wireB = μ₀I / (2πr)Ampère's lawB ∝ 1/r; concentric circular field lines
Circular loop (center)B = μ₀I / (2R)Biot-Savart lawField along axis; dipole field at large distances
Circular loop (on axis, distance x)B = μ₀IR² / [2(R² + x²)³ᐟ²]Biot-Savart lawReduces to center formula when x = 0
Solenoid (interior)B = μ₀nIAmpère's lawUniform interior B; n = N/L
ToroidB = μ₀NI / (2πr)Ampère's lawField confined inside the toroid

When a charged particle enters a uniform magnetic field with velocity perpendicular to B, the Lorentz force provides a centripetal acceleration, causing the particle to move in a circle. Setting |q|vB = mv²/r yields the cyclotron radius r = mv/(|q|B). The period of revolution T = 2πm/(|q|B) is independent of velocity—a remarkable result that underlies the operation of cyclotrons. If the velocity has a component parallel to B, that component is unaffected (no force), and the particle traces a helical path with pitch determined by v∥.

Worked Example: Proton in a Magnetic Field

A proton (m = 1.67 × 10⁻²⁷ kg, q = 1.60 × 10⁻¹⁹ C) is accelerated from rest through a potential difference of 500 V and then enters a region of uniform magnetic field B = 0.200 T directed into the page. The proton's velocity is initially perpendicular to B. Find (a) the speed of the proton upon entering the field, (b) the radius of its circular path, and (c) the period of its orbit.

Proton Circular Motion in a Uniform B Field
1
Step 1 — Find the proton's speed using energy conservationThe proton is accelerated from rest through ΔV = 500 V. By conservation of energy, the kinetic energy gained equals the work done by the electric field: ½mv² = qΔV. Solving for v: v = √(2qΔV / m) = √(2 × 1.60 × 10⁻¹⁹ × 500 / 1.67 × 10⁻²⁷)
v = 3.10 × 10⁵ m/s
2
Step 2 — Calculate the cyclotron radiusIn the uniform field, the magnetic force provides centripetal acceleration: qvB = mv²/r. Solving for r: r = mv / (qB) = (1.67 × 10⁻²⁷ × 3.10 × 10⁵) / (1.60 × 10⁻¹⁹ × 0.200)
r = 1.62 × 10⁻² m ≈ 1.62 cm
3
Step 3 — Determine the period of orbitThe period T = 2πr / v, or equivalently T = 2πm / (qB). Using the latter (which is independent of v): T = 2π × 1.67 × 10⁻²⁷ / (1.60 × 10⁻¹⁹ × 0.200)
T = 3.28 × 10⁻⁷ s ≈ 328 ns
4
Step 4 — Interpret the results physicallyThe proton moves in a small circle (radius ≈ 1.6 cm) and completes each orbit in about 328 nanoseconds. Crucially, the period does not depend on the proton's speed—a faster proton would travel a larger circle at the same angular frequency. This speed-independence of the cyclotron frequency ω = qB/m is the operating principle behind cyclotron particle accelerators, where the AC frequency of the accelerating voltage can be held constant.

Comparing Electric and Magnetic Forces

A deep understanding of magnetic fields requires contrasting them with electric fields. While both are vector fields that exert forces on charges, their behaviors differ in fundamental ways that have profound physical consequences. The table below highlights the most important distinctions, many of which are directly tested on the AP exam.

Electric vs. Magnetic Fields: Key Differences
PropertyElectric Field EMagnetic Field B
SourceStationary or moving chargesMoving charges (currents) only
Force on charge qF = qE (parallel to E)F = qv × B (perpendicular to both v and B)
Acts on stationary charges?YesNo
Does work on charges?Yes — can change KENo — F ⊥ v always, so W = 0
Field linesBegin on + charges, end on − chargesAlways form closed loops (no monopoles)
Gauss's law∮ E · dA = Q_enc / ε₀∮ B · dA = 0
SI UnitV/m (or N/C)T (or kg·s⁻²·A⁻¹)
KEY TAKEAWAY
The fact that magnetic forces do no work is analogous to the normal force on a ball rolling along a frictionless track: the track constrains the trajectory without adding or removing energy. Similarly, B can curve the path of a charged particle—even confining it to a circle—without ever changing its speed. If a problem asks you to find the work done by the magnetic force, the answer is always zero. Any energy change in a magnetic context (e.g., in an MHD generator or electromagnetic induction) is due to an electric field, not the magnetic force itself.

Connections to Advanced Theory

The magnetic field concepts developed in this lesson form the foundation for several more advanced topics that you will encounter both on the AP exam and in future physics courses. Understanding these connections deepens your insight into why the magnetic field behaves as it does and motivates the remaining chapters on electromagnetic induction, Maxwell's equations, and electromagnetic waves.

Bridging current concepts to advanced electromagnetism
This Lesson's ConceptAdvanced ExtensionConnection
Lorentz force F = qv × BHall effect & velocity selectorsBalancing electric and magnetic forces on moving charges determines charge-carrier sign, density, or velocity
Torque on a current loop (τ = μ × B)DC motors and galvanometersContinuous rotation from a commutator that switches current direction every half-turn, converting electrical energy to mechanical energy
Biot-Savart lawMagnetic vector potential AIn advanced E&M, B = ∇ × A; the Biot-Savart integral naturally gives A, from which B follows via the curl
Ampère's law (∮ B · dL = μ₀I_enc)Maxwell's correction (displacement current)A time-varying E field acts as an additional source of B, completing Ampère's law and enabling electromagnetic wave solutions
∮ B · dA = 0 (no monopoles)Electromagnetic induction (Faraday's law)Because B lines form closed loops, changing the flux through a surface induces an EMF around its boundary—the basis for generators and transformers

In special relativity, what one observer perceives as a purely electric force, another observer in a different reference frame may perceive as a combination of electric and magnetic forces. This frame-dependence reveals that E and B are not independent entities but components of a single electromagnetic field tensor. While this is beyond the scope of the AP exam, it illuminates why the magnetic force has the peculiar form qv × B: it is fundamentally a relativistic correction to Coulomb's law arising from the motion of charge. As you continue in physics, every magnetic phenomenon you encounter can be traced back to this deep relativistic origin.

🔭 Looking Ahead
The next major topics in AP Physics C: E&M—electromagnetic induction (Faraday's law and Lenz's law) and inductance—build directly on the magnetic field concepts from this lesson. You will need fluency with B-field calculations for solenoids, loops, and wires, as well as comfort with the cross-product and right-hand rules, to succeed in those units.

Practice Problems

1
A proton moves due north with speed v in a region where the magnetic field B points vertically upward. In what direction is the magnetic force on the proton?
2
An electron (m = 9.11 × 10⁻³¹ kg, |q| = 1.60 × 10⁻¹⁹ C) moves at 2.00 × 10⁶ m/s perpendicular to a uniform magnetic field of magnitude 0.050 T. What is the radius of its circular orbit?
3
Two infinitely long, parallel wires are separated by a distance d = 0.10 m. Wire 1 carries current I₁ = 5.0 A to the right, and Wire 2 carries current I₂ = 3.0 A to the left. What is the magnitude of the magnetic field at the midpoint between the wires?
PROBLEM 4APPLIED
A velocity selector uses crossed electric and magnetic fields to transmit only particles of a specific velocity. The device has a uniform electric field E = 3.00 × 10⁴ V/m directed upward and a uniform magnetic field B = 0.150 T directed into the page. Positive ions enter from the left with various speeds. (a) Derive an expression for the speed v₀ of ions that pass straight through without deflection. (b) Calculate the numerical value of v₀. (c) Explain qualitatively what happens to ions traveling faster than v₀ and to ions traveling slower than v₀. (d) Does the selected speed v₀ depend on the mass or charge of the ion? Explain.
PROBLEM 5CRITICAL THINKING
A rectangular current loop of width w = 0.08 m and length ℓ = 0.12 m carries current I = 2.5 A and is placed in a uniform magnetic field B = 0.40 T. The plane of the loop makes an angle of 30° with the magnetic field. (a) Calculate the magnitude of the magnetic dipole moment μ of the loop. (b) Determine the torque on the loop. (c) Find the potential energy of the loop in this orientation. (d) In what orientation does the loop have minimum potential energy, and what is that minimum energy?

Summary

The magnetic field B is a vector field produced by moving charges and currents, measured in tesla (T). Its field lines form closed loops because magnetic monopoles do not exist (∮ B · dA = 0). The Lorentz force law F = qv × B governs the force on a moving charge: it is always perpendicular to both v and B, meaning the magnetic force does no work and cannot change a particle's kinetic energy—only its direction. For a current-carrying wire, F = IL × B; for a current loop, the torque is τ = μ × B where μ = NIA is the magnetic dipole moment.

The Biot-Savart law (dB = μ₀I dL × r̂ / 4πr²) computes B from arbitrary current distributions, while Ampère's law (∮ B · dL = μ₀I_enc) provides an efficient route when symmetry is present. Key results include B = μ₀I/(2πr) for an infinite wire, B = μ₀I/(2R) at the center of a circular loop, and B = μ₀nI inside a solenoid. A charged particle moving perpendicular to a uniform B follows a circular orbit with cyclotron radius r = mv/(|q|B) and period T = 2πm/(|q|B), independent of speed. These equations are indispensable tools for the AP Physics C: E&M exam and provide the foundation for electromagnetic induction and Maxwell's equations.

Varsity Tutors • AP Physics C: Electricity and Magnetism • Magnetic Fields