The magnetic field is the vector field that describes the action of an electric current onto other electric charges. It is measured in either Teslas or Gauss . It is given by the Biot-Savart law.
Magnetic fields obey the superposition principle. If there are two currents producing fields and , their combined field is simply .
Similarly to the electric field, the magnetic field of a system is in general the combination of more than one piece. However, for magnetic fields the division is complicated by the fact that, while electrical forces can push charges around, magnetic forces do no work and therefore cannot. As such, there are no source and response fields in magnetism and the extra terms are entirely dependent on the nature of the material (and are therefore not relevant in the vacuum). Beyond the magnetic field produce by a free current, a material can hold a permanent magnetization, which produces are permanent current rotating around the material and therefore a magnetic field. Moreover, if the material is a dielectric whose polarization changes in time (say, by a variable source electric field), the motion of the charges is a current that creates a (time-variable) magnetic field. In general, the total field is
Curl#
The magnetic field's Curl is manifestly nonzero as it rotates around the current. We can start from the magnetic field of a long straight wire and calculate the path integral over a closed circular path of radius centered in the wire:
The answer is independent of the radius. In fact, it's independent of the shape of the loop too, the circle was just a convenient choice. Now, say you have several wires arranged in any way. Only the ones passing through the loop make a difference, and the ones that do all end up providing , so the total is just the sum of currents that pass through:
This is known as Ampere's law. If the flow of charge is described by a volume current density
where the integral is taken over any surface bounded by the loop. Here we can apply the curl theorem:
and we can extract the integrands
This is a simple, yet restrictive way of finding the curl of . Unfortunately, this implies a system made up of infinite straight wires, which isn't quite realistic in the majority of cases. For a more rigorous definition, we must start from the Biot-Savart law.
Divergence#
The Biot-Savart law, for a volume current, reads
Here in particular, it's important to note that is a function of the point unprimed coordinates, whereas is a function of the primed source coordinate, as is the volume element . is, as usual, the difference between the two. Applying the Divergence we get
The divergence of cross product can be developed like
The derivation is over the unprimed coordinates and since doesn't depend on them, it's derivative is zero: . The curl of is also zero. Thus
Curl, again#
We can also get the curl out of the Biot-Savart law. Applying the curl to it we get
Developing the double cross product we get
where terms involving derivatives of where removed because of coordinate differences. The first term is the divergence of , which is known
using the three-dimensional Dirac delta. To solve the second term, notice that depends on both coordinates, specifically by a difference, so we can freely switch the coordinates of to at the cost of inverting the sign[^1]:
The component is
For steady currents, the divergence of is zero, so
and therefore the contribution to the original integral can be written as
using integration by parts (which is why we switched to primed coordinates in the first place). But the surface we are integrating on is the bounding surface of the volume in the Biot-Savart law, which is the volume large enough to contain the whole current. Since the current exists entirely inside the volume, there is no current on the surface, for which for any point on the surface, which means the integral is zero1. Thus what we are left with
which integrates to
which is Ampere's law.
Notable cases#
>where $\alpha$ is the angle between the current vector $\boldsymbol{\mathfrak{r}}$ and $\theta$ is the ("azimuthal") angle between $\boldsymbol{\mathfrak{r}}$ and the vertical $y$ axis. We have $l'=s\tan \theta$, so >$$dl'=\frac{s}{\cos ^{2}\theta}d\theta>Thus Biot-Savart's law becomes >$$B=\frac{\mu_{0}I}{4\pi}\int_{\theta_{1}}^{\theta_{2}} \frac{ \cos ^{2}\theta}{s^{2}} \frac{s}{\cos ^{2}\theta}\cos \theta\ d\theta=\frac{\mu_{0}I}{4\pi s}\int_{\theta_{1}}^{\theta_{2}}\cos \theta\ d\theta=\frac{\mu_{0}I}{4\pi s}(\sin \theta_{2}-\sin \theta_{1})and , so
>The direction is, as usual, the one that circles around the wire >$$\mathbf{B}=\frac{\mu_{0}I}{2\pi s}\hat{\boldsymbol{\phi}} > a points into the page. The [[Lorentz force]] between the two is > $$F=I_{2}\left( \frac{\mu_{0}I_{1}}{2\pi d} \right)\int dlwhere and are the angle between the point of calculation and the start and end of the segment of wire.
Of course, the wire itself has to be a loop, otherwise the current cannot go anywhere, but this formula can represent a piece of a closed circuit. If the wire really is infinite, then and and the field is
> If the currents go in the same direction, the force is attractive, but in opposite directions it is repulsive. > [!example] Wire loop > Consider a wire loop of radius $R$ with steady current $I$. The field above the loop at distance $z$ is > $$B(z)=\frac{\mu_{0}I}{4\pi} \frac{\cos \theta}{\mathfrak{r}^{2}}2\pi R=\frac{\mu_{0}I}{2} \frac{R^{2}}{(R^{2}+z^{2})^{3/2}} > but since $z=a\cot \theta$ we have > $$dz=- \frac{a}{\sin ^{2}\theta}d\theta,\qquad \frac{1}{(a^{2}+z^{2})^{3/2}}=\frac{\sin ^{3}\theta}{a^{3}}The total force is, unsurprisingly, infinite. But the force per unit length is
> which solves to > $$B=\frac{\mu_{0}nI}{2}(\cos \theta_{2}-\cos \theta_{1})So
### Boundary conditions The magnetic field suffers a discontinuity when passing through a surface current density $\mathbf{K}$. Say we applywhere and are the angles between the point of calculation and the closest and furthest coil respectively.
If the solenoid is infinite, the angles are and so and so
\oint \mathbf{B}\cdot d\mathbf{a}=0
B^{\perp}\text{above}=B^{\perp}\text{below}=0
\oint \mathbf{B}\cdot d\mathbf{r}=(B_\text{above}^{\parallel}-B_\text{below}^{\parallel})l=\mu_{0}\mathbf{I}\text{enc}=\mu{0}\mathbf{K}l
B_\text{above}^{\parallel}-B_\text{below}^{\parallel}=\mu_{0}K
\mathbf{B}\text{above}-\mathbf{B}\text{below}=\mu_{0}(\mathbf{K}\times \hat{\mathbf{n}})
with $\hat{\mathbf{n}}$ being the normal vector to the surface. #### Transmission angle The presence of a discontinuity implies that the field incident on a surface changes direction as it passes through the surface (i.e. it is transmitted). ![[Schema Magnetic field transmission.svg|90%]] When a magnetic field passes through the surface, the component perpendicular to the surface is conserved. We can use this to connect the incidence angle $\alpha_{\text{ext}}$ and the transmission angle $\alpha_{\text{int}}$. We can express the perpendicular components in terms of the sines of these two angles:B_\text{ext}\sin \alpha \text{ext}=B\text{int}\sin \alpha _\text{int}
Since we're working in materials, we can employ the [[auxiliary field]] $\mathbf{H}$, which instead conserves the parallel component to the surface, which means the cosines:H_\text{ext}\cos \alpha \text{ext}=H\text{int}\cos \alpha _\text{int}
\frac{B_\text{ext}}{H_\text{ext}}\tan \alpha \text{ext}=\frac{B\text{int}}{H_\text{int}}\tan \alpha _\text{int}
This is a general relation that applies for most [[Paramagnet|paramagnets]] and [[Diamagnet|diamagnets]][^3]. If we specifically say that we are working with linear and isotropic materials, we can claim that $\mathbf{H}=\mathbf{B}/\mu_{0}\mu_{r}$, using the [[permeability]] of the materials. If we make the substitution we find\boxed{\mu_{r,\text{ext}}\tan \alpha \text{ext}=\mu{r,\text{int}}\tan \alpha _\text{int}}
In general, the bigger the difference between permeabilities, the larger the difference in angle will be. If the internal permeability is higher than the external one, the field will tend to align flush to the surface. This is a key aspect of a [[magnetic circuit]], where very high permeability ($\mu\gg 1000$) materials are used to the keep the internal field aligned and prevent it from being dispersed into the external environment. Given the relative permeabilities of the materials and one of the two angles, we can find the other. We can also measure the angles themselves to figure out the permeability of one the materials, if we know the other. [^1]: In fact, for a general function $f(x-x')$, the partial derivatives go like$$\frac{ \partial }{ \partial x } f(x-x')=-\frac{ \partial }{ \partial x' } f(x-x')Footnotes#
-
If the current extends to infinity, such as for a straight wire, more care needs to be taken, though it's still common for it to go to zero anyway. ↩