Course note. This guide is for the calculus-based Physics C: Electricity and Magnetism course, Topic 12.3. You will set up and evaluate integrals of the field from small pieces of wire.
Constant used throughout: μ₀ = 4π × 10⁻⁷ T·m/A, so μ₀/(4π) = 1 × 10⁻⁷ T·m/A and μ₀/(2π) = 2 × 10⁻⁷ T·m/A.
The Biot-Savart law
In Topic 12.2 you saw that a magnetic field pushes on moving charge. Moving charge also makes magnetic field. A current I is a steady flow of charge, so every piece of a current-carrying wire contributes a little field. The Biot-Savart law gives that contribution.
Take a short piece of wire of length dℓ, pointing in the direction of the current. Let r be the distance from that piece to the point P where you want the field, and r̂ the unit vector from the piece towards P. Then:
dB = (μ₀/4π) × I dℓ × r̂ / r²
The size of the contribution is:
dB = (μ₀/4π) × I dℓ sin θ / r²
where θ is the angle between dℓ and r̂. Three features matter:
- Inverse square. Like Coulomb’s law, each piece’s field falls as 1/r².
- The sin θ factor. A piece pointing straight at P (θ = 0 or 180°) contributes nothing.
- The cross product. dB is perpendicular to both dℓ and r̂. So the field never points toward the wire, away from it, or along it.
To find the total field B, add the contributions: B = ∫dB. In practice you choose a variable along the wire, write r and sin θ in terms of it, and integrate. When the contributions point in different directions, split them into components first and use symmetry to cancel what you can.
Direction: the right-hand grip rule
Point your right thumb along the current. Your fingers curl the way B circles round the wire. The field lines around a straight piece of wire are circles centred on the wire, in planes perpendicular to it. At any point, B is tangent to the circle through that point.
On a flat page we use ⊙ for “out of the page” and ⊗ for “into the page”. For a current flowing up the page, the field is ⊗ to the right of the wire and ⊙ to the left.
Finite straight wire: perpendicular bisector
A straight wire of length L carries current I. Point P is a distance a from the wire, level with its midpoint (on its perpendicular bisector).
Set up. Measure x along the wire from the midpoint O. A piece of length dx at height x has r = √(x² + a²) and sin θ = a/r. Every piece gives a field in the same direction at P (into the page in Figure 1), so you can add magnitudes:
dB = (μ₀I/4π) × a dx / (x² + a²)^(3/2)
Integrate from x = −L/2 to x = +L/2. The standard integral is ∫dx/(x² + a²)^(3/2) = x / [a²√(x² + a²)]. So:
B = (μ₀Ia/4π) × 2 × (L/2) / [a²√(L²/4 + a²)]
B = μ₀IL / [2πa√(L² + 4a²)]
Long-wire limit. When L ≫ a, √(L² + 4a²) → L, so B → μ₀I/(2πa). This is the field of a long straight wire. It falls as 1/a, more slowly than the 1/r² of a single piece. In Topic 12.4 you will get the same result in one line from Ampère’s law.
Loops and arcs
Centre of a circular loop. Every piece of a loop of radius R is the same distance R from the centre, and dℓ is always perpendicular to r̂, so sin θ = 1. Every contribution points the same way (along the loop’s axis, by the right-hand rule). So:
B = (μ₀I/4πR²) ∮dℓ = (μ₀I/4πR²)(2πR) → B = μ₀I/(2R)
Centre of an arc. An arc that turns through angle φ (in radians) has length Rφ, so B = μ₀Iφ/(4πR). A semicircle (φ = π) gives μ₀I/(4R); a quarter circle gives μ₀I/(8R). For N tightly wound turns, multiply by N.
Straight leads aimed at the centre add nothing, because dℓ is parallel to r̂ along them.
The field on the axis of a loop
Now put P on the central axis, a distance z from the centre of a loop of radius R. Each piece is a distance r = √(R² + z²) from P, and dℓ is still perpendicular to r̂, so dB = (μ₀I/4π) dℓ/(R² + z²).
The contributions do not all point the same way. Each dB is perpendicular to its own r̂, so it tilts away from the axis. Pieces on opposite sides of the loop have equal and opposite sideways components, which cancel. Only the component along the axis survives. That component is dB × (R/r):
B = ∮ (μ₀I/4π) × [dℓ/(R² + z²)] × [R/√(R² + z²)] = (μ₀IR/4π(R² + z²)^(3/2)) × 2πR
B = μ₀IR² / [2(R² + z²)^(3/2)]
Checks. At z = 0 this gives μ₀I/(2R), the centre result. Far away (z ≫ R), B ≈ μ₀IR²/(2z³), so the field falls as 1/z³. That is the behaviour of a magnetic dipole, which is what a small current loop is (Topic 12.1).
Force on a current-carrying wire
A wire carrying current contains moving charge, so a magnetic field pushes on it. Adding qv × B over all the moving charge in a length ℓ gives:
F = Iℓ × B, with size F = IℓB sin θ
where ℓ points along the current and θ is the angle between the wire and B. For a curved wire, or a field that changes along the wire, use dF = I dℓ × B and integrate.
Two useful results:
- Closed loop in a uniform field: ∮dℓ = 0, so the net force is zero (there can still be a torque).
- Curved wire in a uniform field: the force equals the force on a straight wire joining its two ends.
Parallel wires. Wire 1 makes a field μ₀I₁/(2πd) at wire 2, a distance d away. Wire 2 feels a force per length F/ℓ = μ₀I₁I₂/(2πd). Currents in the same direction attract; opposite currents repel. For example, 8.0 A and 5.0 A in the same direction, 0.050 m apart: F/ℓ = (2 × 10⁻⁷)(8.0)(5.0)/0.050 = 1.6 × 10⁻⁴ N/m, attractive. By Newton’s third law both wires feel the same size of force.
Worked example 1: a finite wire compared with a long wire
Question. A straight wire of length 0.40 m carries 3.0 A. Find B at a point 0.15 m from the wire on its perpendicular bisector. Compare with the field the same distance from a very long wire.
- L² + 4a² = (0.40)² + 4(0.15)² = 0.16 + 0.09 = 0.25 m², so √(L² + 4a²) = 0.50 m.
- B = μ₀IL / [2πa√(L² + 4a²)] = (2 × 10⁻⁷ T·m/A)(3.0 A)(0.40 m) ÷ [(0.15 m)(0.50 m)] = 3.2 × 10⁻⁶ T.
- Long wire: B = μ₀I/(2πa) = (2 × 10⁻⁷)(3.0) ÷ 0.15 = 4.0 × 10⁻⁶ T.
Interpretation. The finite wire gives 0.80 of the long-wire value, because the ratio is L/√(L² + 4a²) = 0.40/0.50. The missing 20% would come from the wire beyond the ends. The farther pieces contribute least, which is why the long-wire formula is a good model when L is several times a.
Worked example 2: cancelling a loop’s field with a straight wire
Question. A single circular loop of radius 0.050 m lies flat on a table and carries 2.0 A anticlockwise (seen from above). A long straight wire lies on the table 0.15 m from the centre of the loop. What current, in which direction, makes the net field at the loop’s centre zero?
- Loop field at the centre: B = μ₀I/(2R) = (4π × 10⁻⁷)(2.0) ÷ (2 × 0.050) = 2.51 × 10⁻⁵ T. Anticlockwise current gives a field pointing up, out of the table (right-hand grip rule).
- The wire must give the same size of field, pointing down, at the centre: μ₀I₂/(2πd) = 2.51 × 10⁻⁵ T.
- Solve: I₂ = 2πd × B/μ₀ = πdI₁/R = π(0.15)(2.0) ÷ 0.050 = 18.8 A (about 19 A).
- Direction: the near side of the loop already makes an upward field at the centre. A parallel current in the same direction would add to it. So the wire’s current must flow opposite to the current in the nearest part of the loop. Check with the grip rule: thumb along the wire’s current, and your fingers point down on the loop’s side of the wire.
Check. A loop’s centre field μ₀I/(2R) is π times the field μ₀I/(2πR) of a long wire at the same distance, and here the wire is also 3 times farther away. So it needs 3π ≈ 9.4 times the loop’s current: 9.4 × 2.0 A ≈ 19 A. ✓
Worked example 3: force on a semicircular wire
Question. A wire bent into a semicircle of radius 0.12 m carries 2.5 A. A uniform field of 0.30 T is perpendicular to the plane of the semicircle. Find the net force on it.
- Measure angle θ from one end of the diameter, so a piece of arc is dℓ = R dθ. B is perpendicular to every piece, so each piece feels dF = IBR dθ, directed along the radius (outward or inward depending on the directions of I and B).
- Split into components. Along the diameter, the components from pieces at θ and π − θ cancel. Perpendicular to the diameter, each piece contributes IBR sin θ dθ.
- F = IBR ∫₀^π sin θ dθ = IBR × 2 = 2IRB.
- F = 2(2.5 A)(0.12 m)(0.30 T) = 0.18 N, perpendicular to the diameter, in the plane of the semicircle.
Check. A straight wire joining the two ends has length 2R = 0.24 m and is perpendicular to B: F = IℓB = (2.5)(0.24)(0.30) = 0.18 N. ✓ The shape of the path does not matter in a uniform field; only the straight-line separation of the ends does.
Common misconceptions
- “B points away from the wire, like E from a line charge.” It does not. B circles the wire; it has no component toward, away from or along it.
- Forgetting sin θ. Pieces aimed straight at the point contribute nothing. Straight leads pointing at an arc’s centre add zero.
- Adding magnitudes when directions differ. On a loop’s axis the sideways parts cancel. Use components and symmetry before integrating.
- Using μ₀I/(2πa) for a short wire. That is the long-wire limit. For a finite wire use the full result, or justify that L ≫ a.
- Mixing up loop and wire formulas. Loop centre: μ₀I/(2R). Long wire: μ₀I/(2πr). The loop has no π in the denominator.
- Using degrees in μ₀Iφ/(4πR). The arc angle must be in radians.
- “Parallel currents repel, like charges repel.” It is the other way: same-direction currents attract.
- Using the wire’s length in cm. Convert ℓ, R and a to metres before using SI formulas.
Where this leads
The Biot-Savart law works for any shape of wire, but the integrals can be long. Next, Ampère’s law (Topic 12.4) gives the field of long wires and solenoids in a few lines, using the same symmetry thinking as Gauss’s law. Practise now with the practice questions, then use the revision notes and the topic checklist.
Quick questions
Which shapes do I need to handle with the Biot-Savart law?
The course expects calculations for a point on the perpendicular bisector of a straight wire, a point on the central axis of a circular loop, and the centre of a loop or arc. For other points the law is still true, but the integrals are not expected.
Why does a straight wire give no field at points on its own line?
For those points dℓ and r̂ are parallel, so the cross product dℓ × r̂ is zero for every piece of the wire. This is why straight leads that point at the centre of an arc add nothing to the field there.