# Maxwell's Equations
| | Differential form | Integral form | BCs[^1] |
| -------------------------- | --------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------- |
| E-Gauss | ${} \nabla\cdot \vec{D}=\rho {}$ | ${} \oiint_{S}\vec{D}\cdot d\vec{a} = Q {}$ | ${} \hat{n}\cdot [\![ \vec{D} ]\!]=\rho_{S} {}$ |
| M-Gauss | ${} \nabla\cdot \vec{B}=0 {}$ | ${} \oiint_{S}\vec{B}\cdot d\vec{a}=0 {}$ | ${} \hat{n}\cdot [\![ \vec{B} ]\!]=0 {}$ |
| Faraday | ${} \nabla\times \vec{E}=-\frac{ \partial \vec{B} }{ \partial t } {}$ | $\oint _{C}\vec{E}\cdot d\vec{l} = -\frac{d}{dt}\int_{S} \vec{B}\cdot d\vec{a}$ | $\hat{n}\times [\![ \vec{E} ]\!]=0$ |
| Ampere | ${} \nabla \times \vec{H} = \vec{J}+ \frac{ \partial \vec{D} }{ \partial t } {}$ | ${} \oint _{C}\vec{H}\cdot d\vec{l}= I+\frac{d}{dt}\int \vec{D}\cdot \, d\vec{a} {}$ | ${} \hat{n}\times [\![ \vec{H} ]\!]=\vec{K} {}$ |
| Charge<br>Conservation[^2] | ${} \nabla\cdot \vec{J}=-\frac{ \partial \rho }{ \partial t } {}$ | ${} \oiint_{S}\vec{J}\cdot d\vec{a}=-\frac{dQ}{dt} {}$ | $\hat n\cdot[\![\vec J]\!]+\nabla_S\cdot\vec K=-\dfrac{\partial\rho_{S}}{\partial t}$ |
**Electric Field**
$\vec{D}=\epsilon_{0} \vec{E}+\vec{P}=$ Displacement flux density
$\vec{E} =$ Electric field $\left[ \text{V}/\text{m} \right]=[\text{N}/\text{C}]$
$\vec{P} =$ Polarization $[\mathrm{C/m^{2}}]$
$\epsilon_{0}=$ Permittivity in vacuum $[\mathrm{A\cdot s/(V\cdot m)}]$
**Magnetic Field**
$\vec{B} =\mu_{0}(\vec{H}+\vec{M})=$ Magnetic flux density $\left[ \text{T} \right]=[\mathrm{N/(A\cdot m)}]$
$\vec{H} =$ Magnetic field intensity $\mathrm{[A/m]}$
$\vec{M} =$ Magnetization $[\mathrm{A/m}]$
$\mu_{0}=$ Permeability in vacuum $[\mathrm{V\cdot s/(A\cdot m)}]$
**Free Current**
$\vec{J}=$ Free current density $[\text{A}/\text{m}^{2}]$
$\vec{K}=$ Free surface current density $[\mathrm{A/m}]$
$I =$ Enclosed current ${} [\mathrm{A}]$
$\vec{J}=\sigma\vec{E}$ in Ohmic conductors, $\sigma=$ conductivity $[\mathrm{1/(\Omega\cdot m)}]$
**Charge**
$\rho=$ free electric charge density $[\mathrm{C/m^{3}}]$
$\rho_{S}=$ free surface electric charge density $[\mathrm{C/m^{2}}]$
$Q=$ enclosed charge $[\mathrm{C}]$
Bound Sources ($\vec{P}$, $\vec{M}$ rewritten as charges/currents; already inside $\vec{D}$, $\vec{H}$, so only compute them when $\vec{P}$ or $\vec{M}$ is given)
$\rho_{P}=-\nabla \cdot \vec{P}=$ Polarization charge density $[\mathrm{C/m^{3}}]$
$\vec{J}_{P}=\frac{ \partial \vec{P} }{ \partial t }=$ Polarization current density $[\mathrm{A/m^{2}}]$
$\vec{J}_{M}=\nabla \times \vec{M}=$ Magnetization current density $[\mathrm{A/m^{2}}]$
$\rho_{M}=-\nabla\cdot \mu_{0}M$ (alternative to $\vec{J}_{M}$, never use both)
### Polarization and magnetization
At an atomic level, electron spin and orbital motion creates a tiny dipole, which when viewed at a material level can add up to make a field $\vec{M}$ through linear response to an applied $\vec{E}$ field or permanent magnetization in a ferromagnet.
| | $\vec{P}$ | ${} \vec{M} {}$ | $\epsilon$ | $\mu$ |
| --------- | ----------------------------------- | ----------------- | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| Vacuum | 0 | 0 | ${} \epsilon_{0}= 8.9\times 10^{-12} ~\mathrm{\frac{A\cdot s}{V\cdot m}} {}$ | ${} \mu_{0}= 1.3\times 10^{-6} \mathrm{~\frac{V\cdot s}{A\cdot m}} {} {}$ |
| Linear | ${} \epsilon_{0}\chi_{e}\vec{E} {}$ | $\chi_{m}\vec{H}$ | ${} \epsilon_{0}(1+\chi_{e}) {}$ | ${} \mu_{0}(1+\chi_{m}) {}$ |
| Permanent | ${} \vec{P}_{0} {}$ | $\vec{M}_{0}$ | → bound sources | → bound sources |
Linear: $\vec{D}=\epsilon\vec{E}$, $\vec{B}=\mu\vec{H}$
| | Current model | Charge model |
| ------------------- | -------------------------------------------------------- | ---------------------------------------------------------------- |
| What survives | uncancelled loop currents | uncancelled dipole ends |
| Volume source | $\vec J_M=\nabla\times\vec M$ | $\rho_M=-\nabla\cdot\mu_0\vec M$ |
| Surface source | $\vec K_M=\hat n\times[\![\vec M]\!]$ (tangential **M**) | $\rho_{SM}=-\hat n\cdot[\![\mu_0\vec M]\!]$ (normal **M**) |
| Picture | the magnet is a **solenoid** | the magnet is a **capacitor** (+ on the N face, − on the S face) |
| Field you solve for | **B** | **H** |
| Then | $\vec H=\dfrac{\vec B}{\mu_0}-\vec M$ | $\vec B=\mu_0(\vec H+\vec M)$ |
### Perfect Conductor Boundary Conditions
$\vec{E}=0$ and $\vec{B}=0$ inside.[^3]
With $\hat{n}$ pointing out of the conductor:
| EQS | MQS |
| ------------------------------ | ---------------------------------------------- |
| $\hat{n}\times \vec{E}=0 {}$ | $\hat{n}\cdot\vec{B}=0$ |
| $\hat{n}\cdot\vec{D}=\rho_{S}$ | $\hat{n}\times\vec{H}=\vec{K}$ |
| $\Phi=$ const | $A_{z}=$ const (2D) |
# Lorentz's Law
$
\vec{f} = q(\vec{E}+\vec{v}\times \vec{B})
$
$\vec{f} =$ Force $[\text{N}]$
$\vec{v} =$ Charge Velocity $[\text{m/s}]$
$q =$ Charge $[\text{C}]$
Coulomb's Law (Guass+faraday for two point charges): $\vec{f} = \frac{1}{4\pi \epsilon_{0}} \frac{q_{1}q_{2}}{r^{2}} \hat{r}$
# Leibniz's Theorem
For an open surface $S$ moving with velocity $\vec{v}$, bounded by contour $C$:
$
\frac{d}{dt}\int_{S}\vec{F}\cdot d\vec{a}=\int_{S}\left( \frac{ \partial \vec{F} }{ \partial t } +\vec{v}(\nabla\cdot \vec{F}) \right)\cdot d\vec{a}+\oint_{C}(\vec{F}\times \vec{v})\cdot d\vec{l}
$
Flux changes because the field changes, the surface sweeps up sources, or flux crosses the moving edge.
For $\vec{B}$ ($\nabla\cdot\vec{B}=0$), Faraday on a moving contour becomes
$
\oint_{C}(\vec{E}+\vec{v}\times \vec{B})\cdot d\vec{l}=-\frac{d}{dt}\int_{S}\vec{B}\cdot d\vec{a}
$
The EMF uses the field seen by the moving conductor, $\vec{E}'=\vec{E}+\vec{v}\times\vec{B}$ (motional EMF).
# Poynting Theorem
Power conservation for electromagnetic fields in linear isotropic medium requires
$
\nabla\cdot(\vec{E}\times \vec{H})+\frac{ \partial }{ \partial t } (w_{e}+w_{m})+\vec{E}\cdot \vec{J}=0
$
$\vec{J}=$ free current density
${} w_{e} \equiv \frac{1}{2}\epsilon_{0}(1+\chi_{e})\lvert \vec{E} \rvert^{2}=\frac{1}{2}\epsilon \lvert \vec{E} \rvert^{2} =$ electric energy density
$w_{m}= \frac{1}{2}\mu_{0}(1+\chi_{m})\lvert \vec{H} \rvert^{2}=\frac{1}{2}\mu \lvert \vec{H} \rvert^{2}$ = magnetic energy density
Or integral form,
$
\underbrace{ \oint_{S}\vec{E}\times \vec{H}\cdot da }_{ \text{power flowing out} }+\underbrace{ \frac{d}{dt}\int _{V}(w_{e}+w_{m}) \, dv }_{ \text{change in stored energy} }+\underbrace{ \int _{V}\vec{E}\cdot \vec{J} \, dv }_{ \text{power delivered \\ to charges by }\vec{J} }=0
$
Power flows in the direction of the Poynting Vector
$
\vec{S} \equiv \vec{E} \times \vec{H}
$
For a uniform plane wave, this results in $\vec{S} =\hat{k} \sqrt{ \frac{\epsilon}{\mu} }\lvert \vec{E} \rvert^{2}$
The complex Poynting vector is similarly defined as $\vec{S}=\vec{E}\times \vec{H}^{\star}$
[^1]: $[\![ \mathcal{X} ]\!]=\mathcal{X}^{a}-\mathcal{X}^{b}$, where $\hat{n}$ points from region $b$ into region $a$
[^2]: Derived by taking the divergence of Ampere and applying E-Gauss
[^3]: This is just an assumption; strictly only $\frac{ \partial \vec{B} }{ \partial t }=0$
[^4]: Normal derivatives use $\hat{n}$ from region $b$ into region $a$, so $[\![\frac{\partial X}{\partial n}]\!]=\frac{\partial X^{a}}{\partial n}-\frac{\partial X^{b}}{\partial n}$