Published by Patrick Mutisya · 14 days ago
A magnetic field is a vector field that exerts a force on moving electric charges and on magnetic dipoles. It is produced by two main sources:
The magnetic field at a point in space is represented by the vector 𝐁. Its magnitude is measured in teslas (T) and its direction is given by the right-hand rule for currents or the orientation of magnetic dipoles.
Mathematically, the force on a charge q moving with velocity 𝐯 in a magnetic field 𝐁 is:
???
= q (𝐯 × 𝐁)
where “×” denotes the cross product. The force is perpendicular to both 𝐯 and 𝐁.
According to the Biot–Savart law, a small segment of current I flowing through a differential length dl produces a magnetic field at point r given by:
\$\mathrm{d}\mathbf{B} = \frac{\mu_0}{4\pi}\frac{I\,\mathrm{d}\mathbf{l}\times\hat{\mathbf{r}}}{r^2}\$
Integrating over the entire current path yields the total magnetic field.
Permanent magnets consist of many microscopic magnetic dipoles m aligned in the same direction. The magnetic field produced by a dipole at a point in space is:
\$\mathbf{B}(\mathbf{r}) = \frac{\mu_0}{4\pi}\frac{3(\mathbf{m}\cdot\hat{\mathbf{r}})\hat{\mathbf{r}}-\mathbf{m}}{r^3}\$
where r is the distance from the dipole and hat{r} is the unit vector pointing from the dipole to the field point.
For an infinitely long straight wire carrying current I, the magnetic field at a perpendicular distance r is:
\$B = \frac{\mu_0 I}{2\pi r}\$
Its direction is given by the right-hand rule: if the thumb points along the current, the curled fingers show the direction of 𝐁.
For a closed loop C in a static magnetic field, Ampère’s law states:
\$\ointC \mathbf{B}\cdot\mathrm{d}\mathbf{l} = \mu0 I_{\text{enc}}\$
where I_enc is the net current passing through the area bounded by C.
| Source | Typical Configuration | Field Direction Rule | Key Equation |
|---|---|---|---|
| Current in a straight wire | Infinite straight wire | Right-hand rule | \$B = \dfrac{\mu_0 I}{2\pi r}\$ |
| Current loop (solenoid) | Coil of N turns | Right-hand rule (thumb along current) | \$B = \mu_0 n I\$ (inside, far from ends) |
| Permanent bar magnet | Bar magnet | Field lines from N to S | \$\mathbf{B} = \dfrac{\mu_0}{4\pi}\dfrac{3(\mathbf{m}\cdot\hat{\mathbf{r}})\hat{\mathbf{r}}-\mathbf{m}}{r^3}\$ |
| Magnetic dipole | Point dipole | Same as bar magnet | \$\mathbf{B} = \dfrac{\mu_0}{4\pi}\dfrac{3(\mathbf{m}\cdot\hat{\mathbf{r}})\hat{\mathbf{r}}-\mathbf{m}}{r^3}\$ |