Electromagnetic theory based on Maxwell’s equations establishes the basic principle of electrical and electronic circuits over the entire frequency spectrum from dc to optics . It is the basis of Kirchhoff’s current and voltage laws for low-frequency circuits and Snell’s law of reflection in optics.