01 / 21

Magnetic Fields
Forces and Field Lines

Explore how moving charges create magnetic fields, the Biot-Savart law, Ampere's law, and the Lorentz force that governs charged particle motion.

AP Physics C: E&M

What is a Magnetic Field?

A magnetic field \(\vec{B}\) is a vector field that exerts a force on moving charges and magnetic dipoles. Unlike electric fields, magnetic fields do no work on charged particles: they change the direction of velocity, never the speed.

Source
Moving charges and currents produce \(\vec{B}\) fields
Units
Tesla (T) = \(\frac{\text{kg}}{\text{A} \cdot \text{s}^2}\)
No Monopoles
Field lines always form closed loops: \(\oint \vec{B} \cdot d\vec{A} = 0\)

Field Lines of a Bar Magnet

N S Field lines exit N and enter S

The Lorentz Force Law

A charged particle moving through a magnetic field experiences a force perpendicular to both its velocity and the field:

\(\vec{F}\)
Force on charge (Newtons)
\(q\)
Charge of particle (Coulombs)
\(\vec{v} \times \vec{B}\)
Cross product of velocity and field

The Right-Hand Rule

\(\vec{v}\)
\(\vec{B}\)
\(\vec{F}\) (out of page)
For positive charge (+q): Point fingers along v, curl toward B Thumb points in direction of F

The Biot-Savart Law

The Biot-Savart law gives the magnetic field produced by a small current element \(Id\vec{l}\) at a point \(\vec{r}\) away:

Ampere's Law

For problems with high symmetry, Ampere's law provides an elegant alternative to the Biot-Savart law:

Infinite Wire
\(B = \frac{\mu_0 I}{2\pi r}\)
Solenoid
\(B = \mu_0 n I\) (inside)
Toroid
\(B = \frac{\mu_0 N I}{2\pi r}\)

Electric vs Magnetic Fields

Electric Field \(\vec{E}\) Magnetic Field \(\vec{B}\)
Source Charges (static or moving) Moving charges / currents
Force on charge \(\vec{F} = q\vec{E}\) \(\vec{F} = q\vec{v} \times \vec{B}\)
Does work? Yes No
Field lines Begin/end on charges Always closed loops
Gauss's Law analog \(\oint \vec{E} \cdot d\vec{A} = \frac{Q}{\varepsilon_0}\) \(\oint \vec{B} \cdot d\vec{A} = 0\)

Circular Motion in Uniform \(\vec{B}\)

+q
\(\vec{v}\)
\(\vec{F}\)
\(r\)
X X X X X X X X X X X X
\(\vec{B}\) into page

How to Solve Magnetic Field Problems

1
Identify the source. Is \(\vec{B}\) given, or must you find it from a current using Biot-Savart or Ampere's law?
2
Check symmetry. High symmetry (infinite wire, solenoid, toroid) means use Ampere's law. Otherwise, integrate using Biot-Savart.
3
Determine the force. Apply \(\vec{F} = q\vec{v} \times \vec{B}\) for a charge, or \(\vec{F} = I\vec{L} \times \vec{B}\) for a current-carrying wire.
4
Use the right-hand rule to find directions. For negative charges, reverse the result.
5
Apply Newton's 2nd law if the particle accelerates (e.g., circular motion: \(qvB = \frac{mv^2}{r}\)).

Example 1: Force on a Proton

A proton (\(q = 1.6 \times 10^{-19}\;\text{C}\)) moves at \(v = 3.0 \times 10^{6}\;\text{m/s}\) perpendicular to a uniform field \(B = 0.50\;\text{T}\). Find the magnetic force and the radius of circular motion.

Example 2: B-Field from a Long Wire

A long straight wire carries a current \(I = 10\;\text{A}\). Find \(\vec{B}\) at a distance \(r = 5.0\;\text{cm}\) from the wire.

I r = 5 cm
\(\vec{B}\)
P

Example 3: Force on a Wire in a Field

A wire of length \(L = 0.30\;\text{m}\) carries current \(I = 5.0\;\text{A}\) and is placed in a uniform field \(B = 0.20\;\text{T}\) at an angle \(\theta = 60^\circ\) to the wire. Find the force.

Inside a Solenoid

\(\vec{B}\)
Amperian loop
\(n = N/L\) turns per meter

Common Mistakes to Avoid

✕ Forgetting the Cross Product
Using \(F = qvB\) when \(\vec{v}\) and \(\vec{B}\) are not perpendicular. You must include \(\sin\theta\).
✕ B Does Work
Magnetic forces are always perpendicular to velocity. They change direction, never speed: so they do zero work.
✕ Wrong Hand
Using the left hand instead of the right hand for \(\vec{v} \times \vec{B}\). For negative charges, use the right hand and then reverse.

Summary of Key Formulas

Concept Formula When to Use
Lorentz Force \(\vec{F} = q\vec{v} \times \vec{B}\) Charge in a field
Wire Force \(\vec{F} = I\vec{L} \times \vec{B}\) Current-carrying wire
Biot-Savart \(d\vec{B} = \frac{\mu_0}{4\pi}\frac{I\,d\vec{l}\times\hat{r}}{r^2}\) Finding B from any current
Ampere's Law \(\oint \vec{B}\cdot d\vec{l} = \mu_0 I_{\text{enc}}\) High-symmetry geometries
Long Wire \(B = \frac{\mu_0 I}{2\pi r}\) Infinite straight wire
Solenoid \(B = \mu_0 n I\) Inside ideal solenoid
Circular Orbit \(r = \frac{mv}{|q|B}\) Particle in uniform B

Question 1 of 5

A proton moves with velocity \(\vec{v}\) perpendicular to a uniform magnetic field \(\vec{B}\). Which statement is always true?

Question 2 of 5

What is the magnetic field at a distance \(r = 0.10\;\text{m}\) from a long straight wire carrying \(I = 20\;\text{A}\)?

Question 3 of 5

An electron and a proton enter the same uniform magnetic field with equal speeds and perpendicular to \(\vec{B}\). How do their orbital radii compare?

Question 4 of 5

Inside an ideal solenoid with \(n = 2000\;\text{turns/m}\) carrying \(I = 3.0\;\text{A}\), the magnetic field is closest to:

Question 5 of 5

A charge \(q\) moves with velocity \(\vec{v}\) parallel to a uniform magnetic field \(\vec{B}\). The magnetic force on the charge is: