Maxwell's equations
The electric and magnetic fields in vacuum are governed by Maxwell's equations: $$ \begin{align*} ∇\cdot \v E ={}& \frac{ρ}{ε_0}, \tag{M1}\\ ∇\cdot \v B ={}& 0, \tag{M2} \\ ∇\times \v E ={}& -\pdfd{\v B}{t}, \tag{M3} \\ ∇\times \v B ={}& μ_0\left(\v J + ε_0 \pdfd{\v E}{t}\right), \tag{M4} \end{align*} $$ where $ε_0$ is the vacuum permittivity and $μ_0$ is the vacuum permeability.
-
They agree with each other: $∇\cdot (∇\times \v E) = 0 = -\pdd{t}(∇\cdot \v B)$.
-
They agree with charge conservation. (Derivation) In particular the displacement current $ε_0 \pdfd{\v E}{t}$ is required.
-
For a time-independent solution, Maxwell's equations become $$ \begin{align*} ∇\cdot \v E = \frac{ρ}{ε_0}, \tag{M1} \\ ∇\cdot \v B = 0, \tag{M2} \\ ∇\times \v E = \v 0, \tag{M3'} \\ ∇\times \v B = μ_0 \v J. \tag{M4'} \end{align*} $$ Now $\v E$ and $\v B$ are decoupled, so we can study them independently, in electrostatics and magnetostatics.