← Back to course

Physics — Mechina

Magnetic field of a current and force on a wire

Summary

An electric current creates a magnetic field around it, and a magnetic field exerts a force on a current-carrying wire. On a single particle the force is qvBqvB (topic “Charged particle”), and on a wire it is the sum of the forces on all its charges.

Bwire=μ0I2πr,Bloop=μ0NI2R,Bsolenoid=μ0nI,F=BILsin⁡θ,FL=μ0I1I22πdB_{\text{wire}}=\frac{\mu_0 I}{2\pi r},\qquad B_{\text{loop}}=\frac{\mu_0 N I}{2R},\qquad B_{\text{solenoid}}=\mu_0 n I,\qquad F=BIL\sin\theta,\qquad \frac FL=\frac{\mu_0 I_1I_2}{2\pi d}

Symbols in the formulas

μ0\mu_0
The permeability of free space: 4π⋅10−74\pi\cdot10^{-7}, so μ02π=2⋅10−7\frac{\mu_0}{2\pi}=2\cdot10^{-7}T⋅m/A\text{T}\cdot\text{m/A}
II
The current in the wireA\text{A}
rr
The distance from the wire to the pointm\text{m}
RR
The radius of the circular loopm\text{m}
NN
The number of turns
nn
The number of turns per unit length of the solenoid, n=NLn=\frac NL1/m\text{1/m}
LL
The length of wire inside the fieldm\text{m}
θ\theta
The angle between the wire (the current direction) and the field∘^\circ
dd
The distance between two parallel wiresm\text{m}

Where it comes from: the field lines of a straight wire are circles around it, and the field falls off like 1r\frac1r. Inside a long solenoid the field is nearly uniform and depends only on the density of turns. The force between two wires: the first one creates at the second a field μ0I12πd\frac{\mu_0I_1}{2\pi d}, and that field exerts on the second a force BI2LBI_2L.

  • Direction of the field around a wire — right-hand rule: thumb along the current, fingers curl along the field.
  • The field is a vector: from two wires add as vectors (same direction add, opposite directions subtract).
  • Currents in the same direction — the wires attract; in opposite directions — they repel.
  • A wire parallel to the field (θ=0\theta=0) — no force.

What is new here

Magnets and electric currents are the same phenomenon: every magnetic field is made by moving charges. A compass needle next to a current-carrying wire turns — Ørsted's experiment, where electromagnetism began. Two things are entirely new compared with the electric field: magnetic field lines always form closed loops (there is no "magnetic charge" for them to start from), and the magnetic force is perpendicular to both the field and the motion — so you have to think in three dimensions.

Orders of magnitude to get a feel for the unit: Earth's field is about 50 μT50\,\mu\text{T}; a fridge magnet about 0.01 T0.01\,\text{T}; an MRI scanner 1.51.5 to 3 T3\,\text{T}. The tesla is a very large unit.

The right-hand rule — three versions

  1. Straight wire: thumb along the current; the curled fingers show how the field circles the wire.
  2. Loop or coil: curled fingers along the current in the turns; the thumb shows the field inside the coil — its north pole.
  3. Force on a wire: open palm — fingers along the field, thumb along the current, and the force comes out of the palm (perpendicular to both).

In drawings: ⊙\odot is a vector pointing out of the page towards us, ⊗\otimes a vector pointing into the page. Mark the field direction at every point before computing anything.

The field of a loop and of a solenoid

A circular loop carrying a current behaves like a small magnet, with a north pole on one side and a south pole on the other. A long solenoid is many such loops in a row: inside, the field is almost uniform and parallel to the axis; outside it is almost zero. Note that the solenoid formula has nn — turns per metre — not NN: stretch the same coil to twice the length and the field inside halves. The solenoid's radius does not affect the field inside.

The field of two wires — add vectors

Each wire makes its own field and the total field is their vector sum. So first find the direction of each field at the point (right-hand rule), and only then add or subtract magnitudes.

Example: two parallel wires 10 cm10\,\text{cm} apart carry 2 A2\,\text{A} and 6 A6\,\text{A} in the same direction. At a point between them, 2.5 cm2.5\,\text{cm} from the first wire: B1=2⋅10−7⋅20.025=1.6⋅10−5 TB_1=2\cdot10^{-7}\cdot\frac{2}{0.025}=1.6\cdot10^{-5}\,\text{T} and B2=2⋅10−7⋅60.075=1.6⋅10−5 TB_2=2\cdot10^{-7}\cdot\frac{6}{0.075}=1.6\cdot10^{-5}\,\text{T}. Between two wires with currents in the same direction the fields point opposite ways, so at this point the total field is zero. The zero point lies closer to the wire with the smaller current.

Force on a wire in a field

F=BILsin⁡θF=BIL\sin\theta — the force is largest when the wire is perpendicular to the field and zero when it is parallel. Example: a 0.5 m0.5\,\text{m} wire with 4 A4\,\text{A} in a 0.2 T0.2\,\text{T} field at 30∘30^\circ to it: F=0.2⋅4⋅0.5⋅sin⁡30∘=0.2 NF=0.2\cdot4\cdot0.5\cdot\sin30^\circ=0.2\,\text{N}. On a whole loop in a uniform field the forces on the sides cancel, but a torque remains that turns it — that is how an electric motor works.

The force between two wires obeys Newton's third law: the forces are equal even when the currents differ, because both currents appear in the same way in μ0I1I22πd\frac{\mu_0I_1I_2}{2\pi d}.

How to approach a problem

  1. Draw the situation from above and mark the current directions.
  2. For each field source: compute the magnitude at the point and find the direction with the right-hand rule.
  3. Add as vectors: same direction — add; opposite — subtract; perpendicular — Pythagoras.
  4. For a force: F=BILsin⁡θF=BIL\sin\theta or μ0I1I22πdL\frac{\mu_0I_1I_2}{2\pi d}L, direction from the palm rule.
  5. Check units: distances in metres; μ\muT means 10−610^{-6} T.

Common mistakes

  • Adding field magnitudes without checking directions.
  • Plugging in centimetres instead of metres — an error of 100100 times.
  • Using NN instead of n=NLn=\frac NL for a solenoid.
  • Computing a force on a wire parallel to the field — it is zero.
  • Thinking the wire with the larger current exerts the larger force — the forces are equal.
  • Mixing up RR (loop radius) and rr (distance from a straight wire).

Question types

1

Field of two parallel wires

Two long wires; the question is about the field at a point between them or outside.

Worked example

Two wires 0.20.2 m apart, each carrying 1010 A in opposite directions. What is the field midway between them?

Solution

IdeaFind each wire’s field separately, set the directions by the right-hand rule, and add.
  1. Field of one wire — formula: B=μ0I2πrB=\frac{\mu_0I}{2\pi r}.
  2. Substitute μ02π=2⋅10−7\frac{\mu_0}{2\pi}=2\cdot10^{-7}, I=10I=10, r=0.1r=0.1: B1=2⋅10−7⋅100.1B_1=2\cdot10^{-7}\cdot\frac{10}{0.1}.
  3. Compute: B1=2⋅10−5 T=20 μTB_1=2\cdot10^{-5}\,\text{T}=20\,\mu\text{T}, and also B2=20 μTB_2=20\,\mu\text{T}.
  4. Directions: with opposite currents, between the wires both fields point the same way — add.
  5. Compute: B=40 μTB=40\,\mu\text{T}.
CheckWith currents in the same direction the fields cancel midway — 00, as symmetry suggests ✓.
Common mistakeSubtracting instead of adding: not checking directions with the right hand.

Variants of this type · 1

1.1The point where the field vanishes

Worked example

I1=10I_1=10 A, I2=30I_2=30 A in the same direction, d=0.1d=0.1 m. Where between them is B=0B=0?

Solution

IdeaI1x=I2d−x\frac{I_1}{x}=\frac{I_2}{d-x}.
  1. 10(0.1−x)=30x10(0.1-x)=30x, x=0.025x=0.025 m from the weaker wire.
CheckCloser to the weaker current ✓.
Common mistakeLooking for the point near the stronger current.
2

Force on a wire in a field

A current-carrying wire in a uniform magnetic field: the size of the force, a current that balances gravity, the force between wires.

Worked example

A rod 0.20.2 m long with mass 0.020.02 kg hangs horizontally in a horizontal 0.50.5 T field perpendicular to it. What current keeps it in the air?

Solution

IdeaThe upward magnetic force equals the weight.
  1. Equilibrium: BIL=mgBIL=mg.
  2. Isolate the current: I=mgBLI=\frac{mg}{BL}.
  3. Substitute m=0.02m=0.02, g=10g=10, B=0.5B=0.5, L=0.2L=0.2: I=0.02⋅100.5⋅0.2I=\frac{0.02\cdot10}{0.5\cdot0.2}.
  4. Compute: I=2 AI=2\,\text{A}.
CheckUnits: NT⋅m=A\frac{\text{N}}{\text{T}\cdot\text{m}}=\text{A} ✓.
Common mistakeForgetting sin⁡θ\sin\theta when the wire is not perpendicular to the field.

Variants of this type · 1

2.1Force between two wires

Worked example

I1=I2=10I_1=I_2=10 A, d=0.1d=0.1 m. The force per unit length?

Solution

IdeaFL=μ0I1I22πd\frac FL=\frac{\mu_0I_1I_2}{2\pi d}.
  1. 2⋅10−7⋅1000.1=2⋅10−42\cdot10^{-7}\cdot\frac{100}{0.1}=2\cdot10^{-4} N/m.
CheckSame direction — attraction ✓.
Common mistakeForgetting that μ02π=2⋅10−7\frac{\mu_0}{2\pi}=2\cdot10^{-7}, not 4π⋅10−74\pi\cdot10^{-7}.

Practice · 20

Test yourself with problems and full solutions.

Go to practice