# Magnetics: The Basics¶

Wherever you go. Whatever you do. Make sure you don't try to build something that doesn't agree with these little gems.

## Maxwell's Equations¶

$\varepsilon_o \oint \kappa \mathbf E \cdot d \mathbf S = q$

Gauss's Law for Electricity. The surface integral of electric field over any closed surface is proportional to the enclosed charge. The $\kappa$ factor is the dieletric constant, which is equal to 1 in free space.

$\oint \mathbf B \cdot d \mathbf S = 0$

Gauss's Law for Magnetism. The integral of magnetic flux density over any closed surface is zero. This is the mathematical expression of the fact that no magnetic monopoles have ever been observed.

$\oint \mathbf E \cdot d \mathbf l = - \frac {d \Phi_B} {dt}$

Faraday's Law of Induction. The line integral of electric field over any closed path is proportional to the rate of change of magnetic flux in the enclosed region.

$\oint \frac 1 {\kappa_m} \mathbf B \cdot d \mathbf l = \mu_o \left ( \varepsilon_o \frac {d \Phi_E} {dt} + i \right )$

Ampere's Law (as extended by Maxwell). The line integral of magnetic flux density over any closed path is proportional to the rate of change of electric field and electric current in the enclosed region. The $\kappa_m$ factor is the relative permeability, which is equal to 1 in free space.

### Those Little Constants¶

All of the preceding equations work with units of meters, seconds, teslas (units of induced magnetic flux density, common referred to as "magnetic field" or "field"), webers (units of induced magnetic flux), amperes, volts and coulombs. The constants have the following values:

Symbol                 Value                 Name
$\varepsilon_o$ $8.85\cdot10^{-12} \mathrm{F m^{-1}}$ Permittivity constant
$\mu_o$ $1.26 \cdot 10^{-6} \mathrm{H m^{-1}}$ Permeability constant

Note that $\mu_o$ can be expressed as exactly $4\pi \cdot 10^{-7} \mathrm{Hm^{-1}}$

Magnet Formulas, © 2018 by Eric Dennison. Source code and License on Github