physics2u
Depth
PU-204 / L27 · lecture

Magnetism as Relativity: The Moving Wire

~8 min read · Tier toggle changes depth (T1 plain · T2 standard · T3 rigour)

BEFORE YOU START

You must be comfortable with the Lorentz transformation of coordinates and the definition of the electromagnetic field tensor \( F^{\mu\nu} \) as introduced in the previous lecture.

Why this matters

Magnetism and electrostatics are two views of one interaction, related by relativity.

Historically, electric and magnetic forces were treated as distinct phenomena. However, special relativity reveals that they are two aspects of a single electromagnetic interaction. When charges move, the geometry of spacetime dictates that what appears as a pure electric field in one frame manifests as a combination of electric and magnetic fields in another. This lecture demonstrates this unification using the classic "moving wire" thought experiment, showing that the magnetic force on a current-carrying wire is simply the electric force transformed into a frame where the charges are in motion.

The Intuitive Picture

Imagine a long, straight wire carrying a steady electric current. In the laboratory frame, the wire is neutral: it contains positive ions fixed in the lattice and negative electrons drifting slowly. A test charge moving parallel to the wire experiences a magnetic force. Now, imagine jumping onto a "surfboard" moving at the same speed as the electrons. In your frame, the electrons are stationary. Since magnetic forces vanish for stationary charges, you would expect no force. However, due to length contraction, the spacing between the positive ions (which are moving relative to you) changes differently than the spacing between the electrons (which are stationary relative to you). This creates a net charge density in the wire. The test charge now feels a purely electric force. The magnetic force in the lab is thus revealed to be the electric force in the electron's rest frame, distorted by relativistic kinematics.

Relativistic Charge Density

To quantify this, consider a wire with positive ion density \( \lambda_+ \) and electron density \( \lambda_- \) in the lab frame. The wire is neutral, so \( \lambda_+ + \lambda_- = 0 \). Let the electrons drift with velocity \( v \) in the \( -x \) direction. We transform to a frame \( S' \) moving with velocity \( v \) in the \( -x \) direction relative to the lab. In \( S' \), the electrons are at rest. The positive ions move with velocity \( v \) in the \( +x' \) direction.

Charge density is the time component of the four-current \( J^\mu = (c\rho, \vec{J}) \). Under a Lorentz boost the charge density transforms as \( \rho' = \gamma(\rho - v J_x/c^2) \), but the cleanest route is through proper densities. The ions are at rest in the lab, so the lab value \( \lambda_+ \) is their proper density; in \( S' \) they move, and length contraction raises it to \( \lambda_+' = \gamma\lambda_+ \). The electrons move in the lab, so the lab value is already contracted: \( \lambda_- = \gamma\lambda_{-,0} \), where \( \lambda_{-,0} \) is their proper density. In \( S' \) they are at rest, so \( \lambda_-' = \lambda_{-,0} = \lambda_-/\gamma \). With \( \lambda_- = -\lambda_+ \), the net line charge in \( S' \) is \[ \lambda' = \gamma\lambda_+ - \frac{\lambda_+}{\gamma} = \lambda_+\left(\gamma - \frac{1}{\gamma}\right) = \gamma\beta^2\lambda_+ \gt 0, \] small, but not zero. This net charge creates a radial electric field in \( S' \).

Field Transformation Consistency

We can verify this result using the field transformation laws of the previous lecture. In the lab frame \( S \), the magnetic field at a distance \( r \) from the wire is \( B = \frac{\mu_0 I}{2\pi r} \) and the electric field is \( E = 0 \). The test charge moves with velocity \( v \) parallel to the wire. The magnetic force is \( F = q v B \). In the frame \( S' \) moving with the charge, the charge is at rest, so the magnetic force is zero. The force must be purely electric: \( F' = q E' \). According to the transformation law for the perpendicular electric field (assuming the boost is along the wire, and the field is radial, so perpendicular to the boost), \( E' = \gamma (E + \vec{v} \times \vec{B}) \). Since \( E=0 \) in the lab, \( E' = \gamma (\vec{v} \times \vec{B}) \). The magnitude is \( E' = \gamma v B \). The force in \( S' \) is \( F' = q \gamma v B \). Relativistic dynamics tells us that the transverse force transforms as \( F' = \gamma F \) (a transverse force on a particle at rest in \( S' \) is larger by \( \gamma \) than the force measured in a frame where the particle moves). Thus, \( F' = \gamma (q v B) \). This matches the electric force calculation \( q E' = q \gamma v B \). The consistency confirms that the magnetic force is the relativistic manifestation of the electric force in the moving frame.

The Role of Length Contraction

The physical origin of the net charge density in \( S' \) is length contraction. In the lab, the wire is neutral. The proper length of the electron segment is contracted by \( \gamma \) relative to its rest frame. In \( S' \), the electrons are at rest, so their spacing is the proper spacing. The ions, however, are moving in \( S' \), so their spacing is contracted by \( \gamma \) relative to the lab spacing. Since the lab spacing was equal for both, the ion spacing in \( S' \) is smaller than the electron spacing. This results in a higher density of positive charge than negative charge in \( S' \). The electric field generated by this net charge density is exactly the transformed field predicted by the tensor formalism. This demonstrates that magnetism is a kinematic effect arising from the relativity of simultaneity and length contraction.

The derivation

◆ DERIVATION EMBED · D-176 · not re-derived here

Relativistic Transformation of E and B

Starting from the covariant transformation law of the electromagnetic field tensor, \( F'^{\mu\nu} = \Lambda^{\mu}{}_{\alpha}\Lambda^{\nu}{}_{\beta}F^{\alpha\beta} \), we derive the explicit mixing of the electric and magnetic fields under a Lorentz boost of speed \( v \) along the \( x \)-axis: the field components parallel to the boost are unchanged, \( E'_{\parallel} = E_{\parallel} \), \( B'_{\parallel} = B_{\parallel} \), while the perpendicular components mix as \( \vec{E}'_{\perp} = \gamma\left(\vec{E} + \vec{v}\times\vec{B}\right)_{\perp} \) and \( \vec{B}'_{\perp} = \gamma\left(\vec{B} - \dfrac{\vec{v}\times\vec{E}}{c^{2}}\right)_{\perp} \). A pure electric field in one frame is therefore an electric and magnetic field in another: magnetism is the relativistic residue of moving charge.

\[ \begin{aligned} E'_x &= E_x & E'_y &= \gamma\left(E_y - vB_z\right) & E'_z &= \gamma\left(E_z + vB_y\right) \\ B'_x &= B_x & B'_y &= \gamma\left(B_y + \tfrac{v}{c^{2}}E_z\right) & B'_z &= \gamma\left(B_z - \tfrac{v}{c^{2}}E_y\right) \end{aligned} \]
Open full derivation →
Tier 3 ยท watch out

A common misconception is that the magnetic field "disappears" in the electron rest frame. In reality, the magnetic field in the lab frame is transformed into an electric field in the electron frame. The field tensor \( F^{\mu\nu} \) is invariant in its structure, but its components mix. If you incorrectly assume that the charge density remains zero in the moving frame, you will miss the electric force entirely. The key is that charge density is not a Lorentz invariant scalar; it is the time component of a four-vector. C

Worked example

Problem. A long straight wire carries a current \( I = 10\ \mathrm{A} \). A test charge \( q = 1.6 \times 10^{-19}\ \mathrm{C} \) moves parallel to the wire at a distance \( r = 0.01\ \mathrm{m} \) with speed \( v = 10^6\ \mathrm{m/s} \). Calculate the magnetic force in the lab frame and the electric force in the charge's rest frame. Assume \( c = 3 \times 10^8\ \mathrm{m/s} \) and \( \mu_0 = 4\pi \times 10^{-7}\ \mathrm{T \cdot m/A} \).

  1. Calculate the magnetic field in the lab frame: \( B = \frac{\mu_0 I}{2\pi r} \).
  2. Calculate the magnetic force: \( F_B = q v B \).
  3. Calculate the Lorentz factor: \( \gamma = \frac{1}{\sqrt{1 - v^2/c^2}} \). Since \( v \ll c \), \( \gamma \approx 1 \).
  4. Calculate the electric field in the rest frame: \( E' = \gamma v B \).
  5. Calculate the electric force: \( F_E' = q E' \).
\[ \begin{aligned} B &= \frac{4\pi \times 10^{-7} \times 10}{2\pi \times 0.01} = 2 \times 10^{-4}\ \mathrm{T} \\ F_B &= (1.6 \times 10^{-19}) (10^6) (2 \times 10^{-4}) = 3.2 \times 10^{-17}\ \mathrm{N} \\ \gamma &\approx 1 \\ E' &\approx (10^6) (2 \times 10^{-4}) = 200\ \mathrm{V/m} \\ F_E' &= (1.6 \times 10^{-19}) (200) = 3.2 \times 10^{-17}\ \mathrm{N} \end{aligned} \]

Units check. The magnetic force is in Newtons. The electric field is in Volts per metre, which is equivalent to Newtons per Coulomb. Multiplying by charge gives Newtons. The values match, confirming the relativistic consistency.

Where does the 200 V/m come from in the charge's rest frame? The wire there carries a net line charge \(\lambda' \approx vI/c^2 = 10^{6} \times 10/(9 \times 10^{16}) = 1.1 \times 10^{-10}\ \mathrm{C\,m^{-1}}\), and \(\lambda'/(2\pi\varepsilon_0 r) = 1.1 \times 10^{-10}/(2\pi \times 8.854 \times 10^{-12} \times 0.01) = 200\ \mathrm{V\,m^{-1}}\). A charge imbalance of about one part in \(10^{13}\) of the wire's electron charge is enough.

CHECK YOURSELF

Three quick tests

  1. Why does the wire appear charged in the electron rest frame?
    AnswerLength contraction changes the spacing of the positive ions relative to the stationary electrons, creating a net charge density.
  2. Is the magnetic field invariant under Lorentz transformations?
    AnswerNo, the magnetic and electric fields mix under Lorentz boosts. A pure magnetic field in one frame can appear as a combination of electric and magnetic fields in another.
  3. What is the physical origin of the magnetic force in the lab frame?
    AnswerIt is the lab-frame view of what, in the charge's rest frame, is an electric force, arising from the transformation of the electromagnetic field tensor between inertial frames.
PROBLEMS

Problem set for PU-204 →

Each derivation in this unit ends with five graded problems with full solutions.

NOTES

Lecture notes checked line by line by the editor; every number in the worked example was recomputed.

Derivations cited: D-176 · Threads: force, energy, light