Notes
1P3 Physical Principles of Electronics · Topic 5

Magnetic fields and the Biot-Savart law

Lecture 5 · Thu 22 Oct

Magnetic fields and currents in wires

  • Magnets attract iron. Unlike poles attract: an N pole facing an S pole pulls the two magnets together.
  • An electric current in a wire produces a magnetic field (Oersted). The field lines are circles centred on the wire.
  • This is the start of the magnetics strand of the course, which leads to inductance .
S N S N attract

N facing S: the magnets pull together.

Figure Unlike poles attract
  • Unlike poles attract (N facing S).
  • A current in a wire produces whose lines are circles centred on the wire.

Force between wires and magnetic flux density

Experiment (the magnetic counterpart of Coulomb’s experiment): two long parallel wires carry currents and , a distance apart. On a length of either wire the force is found to be :

Equation Force between parallel wires memorise

: force on a length of either wire. : separation. : permeability of free space.

Show derivation

Historically this was measured first (Ampère, 1820). It also follows from the two results below: wire 1 makes a field at wire 2 (B at distance r from a long straight wire), at right angles to wire 2. A length of wire 2 then feels (Force on a wire in a field B):

Wire 1 feels the same force from wire 2 (third law). Currents in the same direction attract.

Split this up as “current 2 sitting in the field made by wire 1”:

Equation B at distance r from a long straight wire memorise

circles the wire; its magnitude falls as .

Show derivation B of an infinite straight wire from Biot-Savart

Biot-Savart (Biot-Savart law (scalar form)) for the element :

Every element gives in the same direction (out of the page), so the magnitudes simply add:
Substitute , where is the angle marked at the field point. Then and . The limits become :
This is the result quoted from the force experiment (B at distance r from a long straight wire).

Equation Force on a wire in a field B memorise

For a length of wire carrying current at right angles to .

Where it comes from

This is how is defined (Magnetic flux density B): is the force per unit length per unit current on a wire at right angles to the field, so . At an angle to only the perpendicular part counts, ; in vector form .

I1 I2 r l F F

Currents in the same direction: the wires attract (equal and opposite forces).

Figure Two parallel current-carrying wires
Interactive figure

Cross-section view with both currents out of the page. The dashed circle is the field line of wire 1 through wire 2. Toggle the direction of and watch the force on wire 2 flip; wire 1 feels an equal and opposite force. Halve and the force doubles.

Figure Force per unit length between two wires
Explanation Which way does the force point?

gives only the magnitude. The vector form is , where points along the current. With out of the page and wire 2 to its right (as in the widget), at wire 2 points up the page. If is also out of the page, then , so the force on wire 2 points towards wire 1: like currents attract. This is the opposite of charges, where like charges repel (Like charges repel, unlike charges attract).

Explanation Is the unit of μ0 consistent?

Rearrange : . That is the same as , the unit the handout quotes. This is a quick dimension check for any answer containing (Principle of Dimensional Consistency).

  • Experiment: . Field of wire 1 at wire 2: . Force on wire 2: .
  • Same-direction currents attract; opposite currents repel.
  • is the force per unit length.

Magnetic flux density B and permeability of free space

This works like the electric field (Electric field E): the current in one wire is acted on by the magnetic field that the other wire generates.

Definition Magnetic flux density B

is the magnetic “force field” that a current produces and that acts on other currents. It is a vector (magnitude and direction), as is the force . Unit: tesla, (webers per square metre).

Equation Permeability of free space databook p.4

The permeability of free space (vacuum). It plays the role for magnetism that plays for electrostatics (Permittivity of free space).

Where it comes from

A constant fixed by the choice of units (databook electrical p4). Until 2019 the ampere was defined so that is exactly : two wires 1 m apart, each carrying 1 A, attract with N per metre (Force between parallel wires: ). Since 2019 it is measured, and still equals this to better than one part in .

  • used to be the exact value. It is now measured: CODATA 2022 gives . The difference never matters in this course, so use .
  • is the magnetic flux density, measured in T = Wb m⁻². It is a vector.
  • H m⁻¹ is given in the databook.

The Biot-Savart law

The Biot-Savart law gives the field produced by each small piece of a current-carrying conductor. Every magnetic-field calculation from currents starts from it: split the conductor into elements and add (integrate) their contributions.

Biot-Savart law: vector form

Consider a short element of wire at point 1, carrying current . It produces a flux density at point 2, located by measured from 1 to 2. The direction of is given by the cross product .

Equation Biot-Savart law (vector form) databook p.11

: wire element pointing along the current . : vector from the element to the field point, with .

Where it comes from

An experimental law (Biot and Savart, 1820), the magnetic counterpart of Coulomb's law: each current element contributes a field proportional to , falling as , perpendicular to both and . It cannot be derived from anything simpler in Part IA; it is equivalent to Ampère's law (circulation).

Watch out

The databook gives Biot-Savart in terms of : . Multiply by to get (in free space ). Keep the order , with pointing from the current element to the field point. Swapping either one flips the direction of .

Interactive figure

The current element lies on the -axis, with the current upwards. The arrow shows direction only; its magnitude is in the readout. Drag to carry the field point round the wire: always points round the wire, never towards it or along it. Move towards 0° or 180° and the contribution vanishes.

Figure Direction of δB from a current element
Explanation Why r³ in the denominator? Isn’t it an inverse-square law?

It is inverse-square. : one power of in the denominator only cancels the length of in the numerator. Compare the field of a point charge, (Field of a point charge). Biot-Savart has the same structure, with replaced by . The difference is the direction: points along , while points along , perpendicular to .

Biot-Savart law: direction and scalar form

  • has magnitude , where is the angle between and . One factor of cancels, which gives:
Equation Biot-Savart law (scalar form) databook p.11

: angle between the element (current direction) and .

Show derivation

Take the magnitude of Biot-Savart law (vector form): (Cross (vector) product), so

  • Direction: is always normal to the plane containing (the direction of ) and (point 1 to point 2).
  • So the field encircles the current. This is called circulation.
dl I 1 r θ 2 δB into page

points up the page and points up and to the right, so points into the page (⊗). ⊗ means into the page; ⊙ means out of the page.

Figure Side view: element, r and the direction of δB
Result B encircles the current

Adding up the contributions of all elements of a straight wire, the lines of are closed circles around the wire, lying in planes perpendicular to it.

Show derivation

Each contribution (Biot-Savart law (vector form)) is perpendicular to , i.e. to the wire, and perpendicular to . For a straight wire every is along the wire and every to a field point P lies in the plane containing the wire and P. So every element’s at P points the same way: perpendicular to that plane, i.e. tangent to the circle through P around the wire. Their sum does too. By symmetry its size is the same all round the circle.

Explanation How do I see the 3D direction from a flat side view?

In a side view, and both lie in the page. Their cross product therefore points straight into or out of the page, so mark it ⊗ or ⊙. To decide which, point the fingers of your right hand along and curl them towards ; the thumb gives the direction (Right-hand rule).

  • Vector form: . Scalar form: (databook writes it as ).
  • runs from the current element to the field point; is the angle between and .
  • is normal to the plane of and , so circles the current.
  • Use it when there is no symmetry to exploit: split the conductor into elements and integrate.

The right hand rule

Around a long straight wire, the lines of are concentric circles centred on the axis of the wire.

Result Right-hand (grip) rule

Grip the wire with your right hand, thumb along the current . Your fingers curl in the direction of .

  • Current out of the page (⊙): circulates anticlockwise.
  • Current into the page (⊗): circulates clockwise.
Show derivation

The direction of is that of (Biot-Savart law (vector form)). With the thumb along (the current) and pointing out from the wire to the field point, the right-hand rule for the cross product (Cross (vector) product) gives a direction that curls round the wire the way the fingers of a right hand gripping it with the thumb along curl.

I B B I out of page I into page

Left: the current runs to the right, and comes out of the page above the wire and goes into it below. Right: cross-sections. ⊙ gives anticlockwise circulation, ⊗ gives clockwise.

Figure Direction of B around a wire
  • forms concentric circles round a straight wire.
  • Right-hand grip: thumb along , fingers along . ⊙ gives anticlockwise ; ⊗ gives clockwise.

Sketching B around wires and pairs of wires

Result Superposition of B

, like , can be found by superposition: the total field is the vector sum of the fields of each current (Superposition of electric fields).

Show derivation

Biot-Savart law (vector form) is linear in the current: each element contributes independently and the contributions add as vectors. A field made by several currents is therefore the vector sum of the fields of each (experimentally true in vacuum and in non-magnetic materials, just as Superposition of electric fields is for ).

To sketch the field of a pair of wires and find the forces:

  • Both currents into the page (⊗ ⊗): between the wires the two fields point in opposite directions, so cancels (weak field). Far away, the field lines wrap round both wires. The wires attract.
  • Opposite currents (⊗ ⊙): between the wires both fields point the same way, so adds (strong field). The wires repel.
one wire F F B cancels between: weak F F B adds between: strong

Left: one wire (⊗). Middle: ⊗ ⊗. The fields cancel between the wires, the outer (dashed) field lines enclose both, and the wires attract. Right: ⊗ ⊙. Both fields point down between the wires, so the field there is strong and the wires repel.

Figure B around one wire and around pairs of wires
Interactive figure

Two wires at carry equal currents, wire 1 into the page. The curve is the superposed vertical field along the line through them. With the currents in the same direction, the fields cancel at the midpoint. Reverse and they add, giving there.

Figure B along the line joining two wires
Explanation Quick way to get the force direction from a sketch

Field lines behave like stretched elastic bands that also push sideways on each other. Each wire is pushed from the side where the field is strong towards the side where it is weak.

  • ⊗ ⊗: the field between the wires is weak, so each wire is pushed inwards: attraction.
  • ⊗ ⊙: the field between is strong, so the wires are pushed apart: repulsion.

This always agrees with .

  • Superpose vectorially, as for .
  • Same-direction currents: cancels between the wires (weak field) and they attract.
  • Opposite currents: adds between the wires (strong field) and they repel.
Try now

Example: Magnetic flux density around a straight wire

Use Biot-Savart to derive the field of a long straight wire. It must reproduce B at distance r from a long straight wire. Ampère’s law then gives the same result much more quickly; it is defined properly later in the course.

Straight wire: integrating the Biot-Savart law

  • Symmetry: the lines of are circles centred on the wire. In the side view below they come out of the page (⊙).
  • Divide the wire into elements of length . Element at position is a distance from the field point and makes angle with the line to it.
  • The field point is a perpendicular distance from the wire, at .
I δz R r θ β B 0 z

Side view. The element sits at position (here negative). runs from the element to the field point, and is the perpendicular distance from the wire.

Figure Straight wire: geometry of one element
Interactive figure

The curve is the contribution per unit length, , from each part of the wire. The shaded area is a finite wire running from to . At you already have 71 % of the infinite-wire field; by , 99 %. A wire is “long” once it is several times longer than the distance to the field point.

Figure How much of the wire contributes?
Explanation Why can the vector integral become a scalar integral?

Every element and the field point lie in one plane: the plane of the page. So every is normal to that plane and points the same way (⊙). Only then can you add the magnitudes . When the contributions point in different directions (as for the loop below), first find which components survive by symmetry.

  • Method: split the wire into elements , write from Biot-Savart, express and in terms of , then integrate from to .
  • Substitution turns into .
  • Result: , the same as from the force experiment.

The easy way… Ampere

Result Ampère’s law (circulation) databook p.12

The circulation of round any closed path equals the current enclosed. When is constant in magnitude and tangent to the path, the circulation is just (path length). The databook gives the form, .

Where it comes from

A law of nature (one of Maxwell’s equations; databook electrical p12, with in air). It is equivalent to Biot-Savart law (vector form); the general proof needs vector calculus (Lent term / Part IB).

Check, not a proof (straight wire): round a circle of radius centred on the wire, is tangent with constant size (B encircles the current), so , giving , the same as the Biot-Savart integral in B at distance r from a long straight wire ✓.

For the straight wire, take a circular path of radius centred on the wire. By symmetry is the same all round it and tangent to it, and the path length is :

I r B path length 2πr

The current comes out of the page. is tangent to the dashed circle and has the same size all round it.

Figure Ampère path round a straight wire
Explanation When can I use Ampère instead of Biot-Savart?

Ampère’s law is always true, but it only gives you if symmetry lets you pull out of the integral. You need a path along which is constant and either tangent to the path or perpendicular to it (perpendicular parts contribute nothing). This works for an infinite straight wire and for a long solenoid. It does not work for the field on the axis of a single loop; there you need Biot-Savart.

  • Ampère: circulation of = . For a symmetric path, .
  • Straight wire: . This is the quick derivation of .
  • Use it only when symmetry makes constant along the path.

Magnetic flux density on axis of a wire loop

A current-carrying loop is the building block of the solenoid. Problem: find at a point P on the axis of a loop of radius , a height above its plane, when the loop carries current .

Wire loop: B on axis

Equation B on the axis of a current loop memorise

Loop of radius carrying current ; P is a distance along the axis from the centre. is axial only. At the centre (), .

Show derivation B on the axis of a circular loop
  • Each element of the loop is a distance from P, the same for all elements.
  • is tangent to the loop and runs from the element to P, so and :
  • is perpendicular to . It lies in the plane containing the axis and the element, tilted at angle from the axis.
  • Elements on opposite sides of the loop give components perpendicular to the axis that cancel. Only the axial component survives, with .
  • Integrate round the loop, where :
    With : . At the centre : .
Interactive figure

The loop has radius and the current runs anticlockwise viewed from above. Two opposite elements each give a dashed , perpendicular to their own . Their sideways parts cancel and their axial parts add to give the solid . Drag to pick any pair: the sum is always along the axis. Raise P and the tilt grows while the field weakens.

Figure Why only the axial component survives
Explanation Why is the angle between δB and the axis the same α as at the loop?

makes angle with the horizontal radius of the loop. is perpendicular to and lies in the same vertical plane. Rotating a line by 90° in a plane rotates every angle it makes by 90° too. So makes angle with the vertical, which is the axis. Its axial part is therefore . Check the limits:

  • At the centre (): and , so .
  • Far away (): . The field falls as , faster than the of a straight wire, because the opposite sides of the loop carry opposite currents.
Watch out

Here is the distance from a point on the wire to P. It is not the loop radius () and not the height (). Direction: curl the right-hand fingers with the current round the loop and the thumb gives on the axis.

  • On the axis, is axial only: the perpendicular parts of cancel in opposite pairs.
  • Build-up: , with and .
  • Centre of the loop: . Direction from right-hand grip (fingers along , thumb along ).

Magnetic flux density inside a solenoid

A solenoid is a coil used to produce magnetic fields; it is also the basic inductor. Model it as many closely spaced loops, each carrying , with turns per unit length. A short length then contains loops. Use the loop result B on the axis of a current loop for each section and integrate along the axis. For simplicity take the solenoid as infinitely long; the finite case follows from the same analysis.

Solenoid: integrating the loop result along the axis

a B B P z δz N turns per unit length, current I

Cross-section through a long solenoid of radius . The current comes out of the page on top (⊙) and goes in at the bottom (⊗), so points to the right along the axis. The section , a distance from P, contains turns.

Figure Solenoid: a section δz at distance z from P
Equation B inside a long solenoid memorise

: turns per unit length. : current. is along the axis (right-hand grip on the windings). It does not depend on the radius .

Show derivation B inside an infinite solenoid by summing loops

From the single loop, with loops in the section:

All the contributions are along the axis. Integrate along :
Substitute . Then and :
The easy way (Ampère's law (circulation)): take a rectangle of length along the axis, one long side inside (field along it) and one far outside (field ); the short sides are perpendicular to . It encloses turns, each carrying : , so , for any position of the inside side, so the field inside is uniform.

Interactive figure

The orange bar shows where the coil (length , radius ) is. The curve is the same loop integral taken over the finite coil only. Lengthen the coil: the centre value approaches (dashed), and the field at each end stays close to half that.

Figure Finite solenoid: field along the axis
Explanation What changes for a finite solenoid?

Only the limits of the integral change. Using , the field at the centre of a coil of length is

which tends to when .

  • At an end of a long coil, only one side of the integral is present, so .
  • The substitution is the same trick as for the straight wire. Spot and reach for it.
  • Model: loops in a section . Use the loop result and integrate from to with .
  • Long solenoid: , uniform, axial, independent of the radius .
  • At the end of a long solenoid the field is about half the centre value.

The easy way… Ampere

Take a closed path that runs along the axis inside the solenoid for a length and closes far outside, “at infinity”, where .

  • Only the inside length contributes to the circulation, giving . The parts crossing the windings are perpendicular to inside and lie where outside.
  • The length contains turns, so the path encloses the current a total of times.
B far outside: B ≈ 0 l

The path (green) runs a length along the inside, where is uniform, and closes far away where . It encloses the turns in the top row, each carrying .

Figure Ampère path for a long solenoid
Watch out

Two meanings of :

  • turns per unit length: .
  • turns in total over length : . This is the databook form , with .

Check the units: per unit length has units m⁻¹.

Explanation Why does B not depend on the radius of the solenoid?

In the Ampère argument the radius never appears: only the turns enclosed per unit length matter. In the Biot-Savart integral, a wider loop gives a weaker field at its centre (), but its field spreads further along the axis (over a distance of order ). The two effects cancel exactly, which is why cancels in .

  • Ampère path: inside along the axis for length , closing at infinity. Circulation ; enclosed current .
  • , so , the same as from integrating loops.
  • With total turns over length : .