A field with no source to point at
In magnetic force you took the field as given. Someone handed you a , you crossed it with or with , and out came a force. Now turn the question around. Where did that field come from?
Hold a compass next to a wire carrying a big current and the needle swings. Not towards the wire and not away from it: it lines up around it, tangent to a circle whose centre is the wire. That is already strange. An electric charge makes a field that points away from itself, so the field has an obvious source sitting at the middle of it. A current makes a field that closes on itself with nothing in the middle to point at. Whatever rule produces from a current has to build that sideways-ness in from the start.
The rule is the Biot-Savart law, and it is the magnetic twin of Coulomb's law: chop the source into tiny pieces, work out what one piece sends to the point you care about, add the pieces up as vectors. Everything below is that one sentence, applied to wires bent into different shapes.
What one piece of current sends out
Take a wire carrying current and mentally cut out a short length of it. Call that stub : a vector whose length is the length of the stub in metres and whose direction is the direction the current flows there. The product is the source: a current element, measured in ampere-metres.
Pick a field point . Let run from the element to , let be its length, and let be the unit vector along it (, length one, direction only). Three things have to be true of the field this element makes at . It should grow with the current and with the size of the stub. It should fall off with distance the way every point-source field does, as . And it must come out sideways, because the compass says so. A cross product is the only clean way to write "sideways to both". Put those together:
The constant T·m/A is the permeability of free space; the is packed into it so that it cancels in the tidiest answers. The combination in SI units is the number you will actually punch into a calculator, so learn it in that form.
Read the cross product carefully, because it does two separate jobs. Its magnitude is , where is the angle between the element and the line to . So an element sends nothing at all to a point straight ahead of itself or straight behind it, and sends the most to a point off to its side. Its direction is given by the right-hand rule: point your fingers along the current, curl them towards , and your thumb gives . For a point beside a wire that means the field circles the wire.
Quick check
A short current element points north. At which point does it produce the largest field?
The straight wire
Now add elements up. Put a straight wire along a line and a field point a perpendicular distance from it. Every element of the wire lies in the plane of the page, and is in that plane too, so every points the same way: straight out of the page. That is the piece of luck that makes this problem doable. The vector sum collapses into an ordinary sum of magnitudes, and the only question left is how much each element gives.
Measure position along the wire by the angle from the perpendicular through , positive on one side and negative on the other. Doing the integral (it is a standard one, and the substitution is what makes it go) gives, for a segment whose ends sit at angles and ,
Memorise this one. Nearly every straight-wire problem in the bank is this formula used once per segment. Two special cases fall straight out. Let the wire run forever both ways: , , the bracket becomes , and
Let it run in from infinity and stop level with (a semi-infinite wire): the bracket is , and you get exactly half of that, .
Worked example 1. A long straight wire carries 5.0 A. Find at 10 cm.
Straight substitution into the infinite-wire result:
The cancels against the upstairs, leaving T. Ten microtesla, about a fifth of the Earth's field. That grouping, , is worth keeping: it saves you from mishandling the 's under time pressure.
Now the same formula twice. Two long wires 0.30 m apart carry 8.0 A and 2.0 A in the same direction. Where between them does the field vanish? Between the wires the two fields point opposite ways, so they can cancel; outside, they point the same way and cannot. Let be the distance from the 8.0 A wire. Setting magnitudes equal,
Everything common cancels, so , giving and m. The null point sits closer to the weaker wire, four times further from the 8 A wire than from the 2 A one, because the ratio of currents is four. Check that against your intuition before you move on.
Do not add magnitudes when the directions differ. Three long wires through the corners of an equilateral triangle, all carrying the same current out of the page, produce three equal fields at the centroid, each perpendicular to its own radius and each rotated 120 degrees from the next. Three equal vectors at 120 degrees sum to zero, so the field at the centroid is zero, not three times one wire's field. Draw the arrows before you reach for the calculator.
Arcs, loops and polygons
Bend the wire into a circular arc of radius and ask for the field at the centre of curvature. This is the easiest integral in the subject, because every element is the same distance away and every element is perpendicular to its own , so throughout and every contribution points the same way. The magnitudes just add, and the total length of an arc subtending angle (in radians) is :
A full circle has and gives . So an arc gives the fraction of a full loop: a semicircle gives half, a quarter arc gives a quarter. And straight leads that run radially in or out from the centre contribute nothing at all, since they point along their own . That is why so many problems are drawn with radial leads: it is a way of handing you the arc alone.
Worked example 2. A wire carries 10 A in from far away, runs parallel to the axis, curls round a semicircle of radius 5.0 cm, and heads back out parallel to the axis on the other side: a hairpin. Find at the centre.
Three pieces. The semicircle: , so
Each straight lead is semi-infinite and lies a perpendicular distance m from the centre, so each gives
All three point the same way (check with the right hand: the current sweeps the same sense past the centre in all three pieces), so they add: T. Had the leads run radially instead of parallel, the answer would have been the arc alone.
A polygon is the same trick with the finite-segment formula. For a regular -gon of side , the centre is a distance from each side, and each side subtends angles , so each contributes , and there are of them.
Worked example 3. A square loop of side 10 cm carries 6.0 A. Find at one corner.
The trap here is doing the centre calculation by mistake. Sit at the corner and look at the four sides. Two of them start at your corner and run away from you along straight lines that pass through you: or for every element, so those two sides give nothing. Only the far two matter, and each is a distance m away. For one of them, the near end is level with you () and the far end is at the opposite corner, at . So
The two far sides carry current in senses that give fields the same way out of the page, so double it: T.
Quick check
A wire is bent into a 120 degree arc with straight radial leads at both ends. The field at the centre of curvature is what fraction of the full circle's centre field?
Off the centre: the loop axis
Step off the centre of a circular loop and onto its axis, a distance away. Now the elements are not all equivalent in direction. Each one is still a distance from the field point and still perpendicular to its , so each is the same, but each is tilted: it has a component along the axis and a component perpendicular to it. Pair up any element with the one diametrically opposite and the perpendicular components cancel exactly, while the axial ones add. So only the axial part survives, and the tilt factor is . Multiply the total magnitude by that factor:
Set and it returns , as it must. Let and the under the root drops out, leaving : the falloff of a magnetic dipole. For turns wound close together, multiply by : every turn does the same job.
Off the axis of a loop there is no elementary formula: that integral is elliptic, and no olympiad problem will ask for it. If a question about a loop gives you a point that is not on the axis and not the centre, you have misread the geometry.
Stack loops and you get a solenoid. Treat a length of a solenoid with turns per metre as a loop carrying current , integrate the axial formula over the length, and the result for a solenoid of length and radius , at its midpoint, is
For m, m, per metre and A: T, and the geometric factor is . So T. The factor being close to one says this solenoid is long enough to count as infinite, which is what the next lesson will assume.
Currents that are not wires
A current is charge passing a point per second, and nothing in the Biot-Savart law cares whether that charge is in a wire. Spin a charged object and you have a current.
Worked example 4. A flat insulating disk of radius cm carries C spread evenly over its face and spins at rad/s. Find at its centre.
You cannot use the ring answer directly, because different parts of the disk sit at different radii. So build it from rings. The surface charge density is
A ring between radius and holds charge . That charge goes round once every seconds, so the current it represents is charge over period:
Each ring is a full loop of radius , so it puts at the centre. The cancels, which is the small miracle that makes this problem easy:
Every ring contributes equally, so integrating from to just multiplies by :
A ring is even easier: all the charge is at one radius, so the current is with the revolutions per second, and . The same reasoning handles a sheet of charge sliding sideways, which is where the surface current density (amperes per metre of width) comes from; an infinite sheet gives on each side, pointing opposite ways.
Knowing when to reach for it
The next lesson, Ampere's law, gets the same fields far faster whenever the geometry is symmetric enough: infinite wires, infinite solenoids, coaxial cables. So the real skill is telling the two apart.
Reach for Biot-Savart when the problem names a shape: an arc, a square, a hexagon, a finite segment, a loop seen from a point on its axis, a pair of coils. Any time there is a length or a corner or an angle in the statement, the field will not be constant along any convenient closed loop, and Ampere's law has nothing to grip.
Then run the same four steps every time. One: decide which pieces contribute nothing, because a piece pointing along its own line to the field point is free. Two: get the direction of each surviving piece with your right hand, and draw the arrows. Three: add what is left, as scalars if the arrows agree, as vectors if they do not. Four: check the size against a familiar anchor, such as for a loop's centre or for a long wire. A bent-wire answer that comes out ten times either of those is a sign you dropped a or a factor of two.