WHY this form? It is the magnetic analogue of Coulomb's 1/r2 law, but the cross product dl×r^ encodes the fact that magnetic field circulates around the current rather than pointing away from it.
WHEN to use which? Use Ampère's law when the symmetry lets you pull B out of the integral (straight wire, solenoid, toroid). Use Biot–Savart when there's no helpful symmetry (point on the axis of a loop).
Derivation from scratch:∮B⋅dl=B∮dl=B(2πr)
Why this step? B is constant in magnitude on the circle and parallel to dl everywhere, so the dot product is just Bdl.
Set equal to μ0Ienc=μ0I:
B(2πr)=μ0I⇒B=2πrμ0I
Finite wire (Biot–Savart result) — for a segment subtending angles θ1,θ2 at the point:
B=4πrμ0I(sinθ1+sinθ2)
For an infinite wire θ1=θ2=90°, giving back 2πrμ0I. ✓
Derivation:
Each element: dl⊥r^, so ∣dl×r^∣=dl. Distance r=a2+x2.
dB=4π(a2+x2)μ0Idl
Axial part: multiply by cosα=a2+x2a.
B=∫dBcosα=4πμ0I(a2+x2)3/2a∮dl
Why this step? ∮dl=2πa, the circumference.
B=2(a2+x2)3/2μ0Ia2
Derivation: Take a rectangular Amperian loop of length L, one side inside (field B, parallel), opposite side far outside (field ≈ 0), two short sides perpendicular (contribute 0).
∮B⋅dl=BL
Current enclosed = (turns in length L) × I=nL⋅I, where n=N/L turns per metre.
BL=μ0(nL)I⇒B=μ0nI
Derivation: Amperian loop = circle of radius r inside the core. By symmetry B constant on it:
∮B⋅dl=B(2πr)
Enclosed current = NI (loop crosses all N turns once).
B(2πr)=μ0NI⇒B=2πrμ0NI
Recall Feynman: explain to a 12-year-old
Electricity flowing in a wire is like water rushing through a pipe, and it makes invisible "wind" that swirls around the pipe in circles. If you bend the pipe into a ring, the wind blows straight through the ring's hole. Stack lots of rings into a tube (a solenoid) and the wind inside becomes a strong, steady breeze — that's why it acts like a magnet. Bend that tube into a doughnut (a toroid) and the breeze gets trapped going round and round inside, with no wind escaping outside. How strong the breeze is just depends on how much current flows and how tightly the rings are packed.
Dekho, basic idea simple hai: jab current chalta hai, uske aas-paas magnetic field ban jaata hai jo wire ke chaaron taraf circle mein ghoomta hai. Direction nikalne ke liye right-hand grip rule lagao — angootha current ki direction mein, ungliyan jis taraf mudein wahi field. Field ki strength nikalne ke do hathiyaar hain: Biot–Savart law (jab koi symmetry nahi, integration karna padta hai) aur Ampère's law (jab symmetry ho, shortcut mil jaata hai).
Straight wire ke liye Ampère's law se ek circle Amperian loop banao, aur seedha aa jaata hai B=μ0I/(2πr) — yaani distance double karoge toh field aadha. Circular loop ke axis par symmetry nahi banti theek se, isliye Biot–Savart se integrate karna padta hai; off-axis components cancel ho jaate hain, sirf axial bachta hai, aur centre par B=μ0I/2a milta hai.
Solenoid matlab bahut saare loops ek line mein — inside field uniform ho jaata hai, B=μ0nI, aur yaad rakho yeh radius par depend nahi karta. Bahar field almost zero. Toroid matlab solenoid ko mod ke doughnut bana do — field poora andar hi trapped rehta hai, B=μ0NI/(2πr), lekin yeh uniform nahi hai, inner edge par zyada strong hai kyunki 1/r hai.
Exam tip: chaaron formula ka pattern yaad rakho — straight aur toroid mein 2πr hai (circle wala), loop mein simple 2a, aur solenoid "naked" hai bina r ke. Aur multi-turn coil ho toh N se multiply karna mat bhoolna!