Courses / Physics I
Principles of Electromagnetism and Optics

Magnetic Field and Ampere's Law

Physics I 235 words Free to read

Magnetism is electricity’s velocity-dependent twin: it acts only on moving charges, always at right angles to their motion. A force that can never do work, only steer — which is why magnetic fields curl particle paths into circles and why a compass needle twists rather than launches.

Moving charges create and experience magnetic fields. The magnetic force on a charge is:

F=qv×B\vec{F} = q\vec{v}\times\vec{B}

This force is always perpendicular to v\vec{v} — it changes direction but not speed.

Biot-Savart law — Field from a current element:

dB=μ04πIdl×r^r2d\vec{B} = \frac{\mu_0}{4\pi}\frac{I\,d\vec{l}\times\hat{r}}{r^2}

Ampere's law — For steady currents with symmetry:

CBdl=μ0Ienc\oint_C \vec{B}\cdot d\vec{l} = \mu_0 I_{\text{enc}}

Key results from Ampere's law

SourceField
Long straight wireB=μ0I2πrB = \dfrac{\mu_0 I}{2\pi r}
Solenoid (inside)B=μ0nIB = \mu_0 n I
Toroid (inside)B=μ0NI2πrB = \dfrac{\mu_0 N I}{2\pi r}

Force between parallel wires carrying currents I1I_1 and I2I_2:

FL=μ0I1I22πd\frac{F}{L} = \frac{\mu_0 I_1 I_2}{2\pi d}

Parallel currents attract; antiparallel currents repel.

Physics link: A charged particle in a uniform B\vec{B} moves in a circle of radius r=mv/(qB)r = mv/(qB). This is the principle behind cyclotrons and mass spectrometers.
Common pitfall: Because F=qv×B\vec{F} = q\vec{v}\times\vec{B} is perpendicular to v\vec{v}, a magnetic field can never change a particle’s speed or kinetic energy — only its direction. If a problem needs energy added, some electric field must be doing it.
Placeholder: Magnetic Field and Ampere's Law

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

14practice questions
2interactive scenes
Start Physics I free

Principles of Electromagnetism and Optics