Solution (source code)

= Solution

The macroscopic <Maxwell equations in matter> are
$$
\boxed{\nabla\cdot\mathbf D=\rho},
\qquad
\boxed{\nabla\cdot\mathbf B=0},
$$
$$
\boxed{\nabla\times\mathbf E=-\frac{\partial\mathbf B}{\partial t}},
\qquad
\boxed{\nabla\times\mathbf H=mathbf J+\frac{\partial\mathbf D}{\partial t}}.
$$
Here $\rho$ and $\mathbf J$ are the free charge and current densities.