[Physics] Doubt regarding Ampere’s Circuital Law

electromagnetismsymmetry

The Ampere's Circuital law states

$$\oint B\cdot d\ell~=~ \mu_0I$$

We can use it to derive the magnetic field of an infinitely long current carrying wire easily. My question is, why does the wire need to be infinitely long?
I know it has something to do with $B$ being constant and tangential to the loop at every point for easy evaluation of the integral, but I can't find an explanation to my question.

Best Answer

We use the idealized case of an infinitely long current to be able to justify (by symmetry) that the strength of the field will only depend on the radial coordinate $r$, so that it can be taken out of the integral, since we are only integrating over the angle which parametrizes a circle around the wire:

$$ \oint B\cdot d\ell = B \int_0^{2\pi}r\ d\theta = 2\pi r B = \mu_0 I\implies B=\frac{\mu_0I}{2\pi r}$$

If the wire is not infinitely long, you can move towards the end of it, where it is obvious that the $B$-field should not just depend on the radial coordinate, so our simple calculation fails. In practice, one can very often use this ideal case as a good approximation for the field close to the wire - so long as the distance from the wire is much smaller than the length of the wire the effect is pretty much that of an infinite wire.

Related Question