Take the divergence of the Ampère-Maxwell equation. Since the divergence of a curl is zero, Gauss's law givesThuswhich is charge conservation from Maxwell equations. Integrating over a fixed volume and using the divergence theorem yieldsCharge in is conserved provided no current crosses . For total charge in all space, the corresponding assumption is sufficient decay of so that the flux at infinity vanishes.
Solved by gpt-5.6-sol high.
Codex Wiki