Topic 12.1

Magnetic fields

Properties of magnetic fields, dipoles, field lines that close on themselves and how materials respond to a field.

7 min read2 worked examples3 questions to check yourself

Big idea

A magnetic field is a vector field produced by magnetic dipoles and moving charge, and because no isolated magnetic pole exists, its field lines always close on themselves.

Field diagram: magnetic field lines circling 2 long straight wires seen end-on (I out, current out of the page at (−1.2, 0): field counterclockwise; I in, current into the page at (1.2, 0): field clockwise); a dashed Gaussian surface S.SI outI in

A current loop cut through its middle: the current comes out of the page on the left and goes back in on the right. This is the simplest magnetic dipole. Every field line is a closed curve, so each line that enters the closed surface S also leaves it, and the net magnetic flux through S is zero.

Explanation

A magnetic field B⃗\vec{B} is a vector at every point in space, measured in tesla (T\text{T}). A compass maps it: the needle's north end turns to point along the field. Field lines follow those directions and crowd together where the field is stronger. Fields from several sources add as vectors.

Every magnet is a dipole, with a north and a south pole. Cut one in half and you get two smaller dipoles, never a lone pole. So magnetic field lines have no beginning or end: outside a bar magnet they run from north to south, and inside it they continue from south back to north. Any closed surface therefore has as much field going in as coming out, and the net magnetic flux through it is zero, ∮B⃗⋅dA⃗=0\oint \vec{B}\cdot d\vec{A} = 0. Flux is measured in webers: 1 Wb=1 T⋅m21\ \text{Wb} = 1\ \text{T·m}^2.

A dipole is described by its magnetic moment μ⃗\vec{\mu}. For a flat coil of NN turns and area AA carrying current II, μ=NIA\mu = NIA, along your right thumb when your fingers curl with the current. A uniform field exerts no net force on a dipole but does exert a torque, τ⃗=μ⃗×B⃗\vec{\tau} = \vec{\mu}\times\vec{B}, that turns μ⃗\vec{\mu} toward B⃗\vec{B}, and the dipole has potential energy U=−μ⃗⋅B⃗U = -\vec{\mu}\cdot\vec{B}, lowest when the two are aligned. A compass needle is a dipole doing this in Earth's field.

Materials respond because their atoms are tiny dipoles. In ferromagnetic materials (iron, nickel) neighbouring atoms line up in regions called domains; a field aligns the domains, so the material greatly strengthens the field and can stay magnetised. Paramagnetic materials (aluminium) align weakly and are weakly attracted; diamagnetic ones (copper, water) gain a weak opposing moment and are weakly repelled. A material's magnetic permeability measures this response; for empty space it is μ0=4π×10−7 T⋅m/A\mu_0 = 4\pi\times10^{-7}\ \text{T·m/A}.

Equations

  • ∮B⃗⋅dA⃗=0\oint \vec{B}\cdot d\vec{A} = 0

    The net magnetic flux through any closed surface is zero: field lines that enter also leave (Gauss's law for magnetism).

    B⃗\vec{B}

    magnetic field on the surface (T)

    dA⃗d\vec{A}

    small patch of the closed surface, pointing outward (m^2)
    Use it when

    You know the flux through part of a closed surface and want the rest, or you are asked whether a field pattern is possible.

    Not when

    It does not say the field is zero on the surface, and it does not apply to an open surface such as one face or a loop's area.

  • μ=NIA\mu = NIA

    The magnetic moment of a flat coil is its number of turns times its current times its area.

    μ\mu

    magnetic dipole moment (A·m^2)

    NN

    number of turns

    II

    current in the coil (A)

    AA

    area enclosed by one turn (m^2)
    Use it when

    A coil or loop is treated as a dipole: finding its torque or energy in a field.

    Not when

    Do not use the length of wire for the area, and do not confuse this μ\mu with the permeability μ0\mu_0.

  • τ=μBsin⁡θ\tau = \mu B\sin\theta

    A uniform field twists a dipole toward alignment; this is the magnitude of the torque from the cross product of the moment and the field.

    τ\tau

    torque on the dipole (N·m)

    μ\mu

    magnetic dipole moment (A·m^2)

    BB

    magnetic field (T)

    θ\theta

    angle between the moment and the field (rad or °)
    Use it when

    A coil, compass needle or small magnet sits in a uniform field at a known angle.

    Not when

    The angle is between the moment (the coil's axis) and the field, not between the coil's plane and the field.

  • U=−μBcos⁡θU = -\mu B\cos\theta

    A dipole's potential energy in a field: lowest when aligned with the field, highest when opposite to it.

    UU

    potential energy of the dipole in the field (J)

    μ\mu

    magnetic dipole moment (A·m^2)

    BB

    magnetic field (T)

    θ\theta

    angle between the moment and the field (rad or °)
    Use it when

    Finding the work needed to turn a dipole, or the speed it gains when released.

    Not when

    The zero of energy is at 90∘90^\circ, not at alignment, so use differences of UU.

Where it comes from

Worked examples

  1. Flux through a dome

    Step by step

    A closed surface is made of a flat disc of radius 6.0 cm6.0\ \text{cm} capped by a hemispherical dome. It sits in a uniform magnetic field of 0.25 T0.25\ \text{T} that enters through the disc, making an angle of 30∘30^\circ with the disc's axis. What is the magnetic flux through the dome?

    0 of 4 steps
  2. Turning a coil against the field

    Written as an exam answer

    A flat circular coil of 2020 turns and radius 1.5 cm1.5\ \text{cm} carries a current of 0.80 A0.80\ \text{A} in a uniform magnetic field of 0.30 T0.30\ \text{T}. Calculate the coil's magnetic moment, and determine the work an external agent must do to turn the coil slowly from θ=30∘\theta = 30^\circ to θ=120∘\theta = 120^\circ, where θ\theta is the angle between the moment and the field.

    1. Step 1:

      Magnetic moment: μ=NIA=(20)(0.80 A) π(0.015 m)2=1.13×10−2 A⋅m2\mu = NIA = (20)(0.80\ \text{A})\,\pi(0.015\ \text{m})^2 = 1.13\times10^{-2}\ \text{A·m}^2.

    2. Step 2:

      The coil's energy in the field is U=−μBcos⁡θU = -\mu B\cos\theta. Turned slowly, it gains no kinetic energy, so the agent's work equals the change in UU: Wext=Uf−Ui=μB(cos⁡θi−cos⁡θf)W_{\text{ext}} = U_f - U_i = \mu B(\cos\theta_i - \cos\theta_f).

    3. Step 3:

      μB=(1.13×10−2 A⋅m2)(0.30 T)=3.39×10−3 J\mu B = (1.13\times10^{-2}\ \text{A·m}^2)(0.30\ \text{T}) = 3.39\times10^{-3}\ \text{J}, and cos⁡30∘−cos⁡120∘=0.866−(−0.500)=1.366\cos 30^\circ - \cos 120^\circ = 0.866 - (-0.500) = 1.366.

    4. Step 4:

      Wext=(3.39×10−3 J)(1.366)=4.6×10−3 JW_{\text{ext}} = (3.39\times10^{-3}\ \text{J})(1.366) = 4.6\times10^{-3}\ \text{J}. It is positive: the agent turns the moment away from the field, against the torque.

    Answer

    μ=1.1×10−2 A⋅m2\mu = 1.1 \times 10^{-2}\ \text{A·m}^2 and Wext=4.6×10−3 JW_{\text{ext}} = 4.6 \times 10^{-3}\ \text{J}

Common mistakes

  • Mistake

    Cut a bar magnet in half and you have a separate north pole and a separate south pole.

    What is true

    Each half is a complete magnet with both poles. A magnet is a dipole all the way down to its atoms, and no isolated pole has ever been found.

  • Mistake

    A north pole acts like a positive charge, so it repels a proton sitting at rest near it.

    What is true

    Poles are not charges. A magnetic field exerts no force on a charge at rest; only moving charges and other dipoles feel it.

  • Mistake

    Magnetic field lines start on the north pole and stop on the south pole.

    What is true

    They continue through the magnet from south back to north and close on themselves. That is the content of ∮B⃗⋅dA⃗=0\oint \vec{B}\cdot d\vec{A} = 0.

Check yourself

  1. 1.

    A closed box is drawn around only the north end of a bar magnet. Is the net magnetic flux through the box positive, negative or zero?

  2. 2.

    A coil with magnetic moment μ⃗\vec{\mu} sits in a uniform field. At what angle between μ⃗\vec{\mu} and B⃗\vec{B} is the torque largest, and at what angle is the energy lowest?

  3. 3.

    Why does an unmagnetised iron nail stick to either pole of a magnet?

Try it

A coil with magnetic moment 0.010 A⋅m20.010\ \text{A·m}^2 in a uniform field. Slide the angle: the energy is lowest at 0∘0^\circ, while the torque is largest at 90∘90^\circ, where the energy curve is steepest. A stronger field stretches the whole curve.

60 °
0.2 T
Graph of U (mJ) against θ (°): a smooth curve from \theta = 0 to 180.θ (°)U (mJ)4590135180-4-2240U = -1 mJτ = 1.7 mN·m

Builds on

Practice 12.1 with feedback

Problem sets for Unit 12 grade themselves, and Raise hints at the next step instead of giving the answer.

Spotted a mistake in this lesson? Tell us and we will fix it.