# How can KVL & KCL be derived from Maxwell equations?

How can KVL (Kirchhoff's Voltage Law) & KCL (Kirchhoff's Current law) be derived from Maxwell equations in lumped circuits?(Lumped network : if $d$is the largest dimension of the network and $\lambda$ is the wavelength of the signal,a lumped network satisfies the condition $d<<\lambda$ where $\lambda=c/f$)

Note:1)

KVL & KCL works for lumped circuits(not for every circuits).trying to derive KVL and KCl from Maxwell equations without using lumped assumption(Lumped assumption:assuming that the circuit is lumped)is wrong.actually 4 $Maxwell$ $equations +lumped$ $assumption ==>$2 $Circuits$ $laws$ (KVL & KCL)

2)The other thing we can assume is that there are no incoming energy from outside,such as external magnetic field.

-
Sorry would you elaborate more on what KVL and KCL stand for? –  Ali Mar 7 at 16:40
@Ali Kirchhoff laws for Current and Voltage –  nephente Mar 7 at 16:40
I see. For the current it's just conservation of electric charge. For the voltage: in the absence of time varying magnetic field, $\nabla \times \vec E = 0 \Rightarrow \vec E = -\nabla V \Rightarrow \oint \vec E . \vec {dl} =0$ –  Ali Mar 7 at 16:48
@Ali $\nabla \times E = -dB/dt$ –  rza Mar 7 at 22:49
@rza : That's why she specified "in the absence of a time varying magnetic field". –  Colin K Mar 9 at 0:28

$\def\vE{{\vec{E}}}$ $\def\vD{{\vec{D}}}$ $\def\vB{{\vec{B}}}$ $\def\vJ{{\vec{J}}}$ $\def\vr{{\vec{r}}}$ $\def\vA{{\vec{A}}}$ $\def\vH{{\vec{H}}}$ $\def\ddt{\frac{d}{dt}}$ $\def\rot{\operatorname{rot}}$ $\def\div{\operatorname{div}}$ $\def\grad{\operatorname{grad}}$ $\def\rmC{{\mathrm{C}}}$ $\def\rmM{{\mathrm{M}}}$ $\def\ph{{\varphi}}$ $\def\eps{{\varepsilon}}$ Faraday's law in integral form: $$\oint_{\partial A} \vE \cdot d\vr + \ddt\int_A \vB\cdot d\vA = 0$$ Thereby, $A$ is some surface and $\partial A$ its boundary. The boundary can be split into partial paths $\bigcup_k C_k = \partial A$ and the integral becomes $$\sum_{k} \int_{C_k}\vE\cdot\vr + \ddt\int_A \vB\cdot d\vA = 0$$ You can define the voltage drops $V_k := \int_{C_k}\vE\cdot d\vr$ and the induced voltage $V_i$. This way you get Kirchhoff's Voltage law $$\sum_{k} V_k + V_i = 0.$$ Ampere's law reads $$\oint_{\partial A} \vH\cdot d\vr = \int_A \vJ\cdot d \vA + \int_A \dot\vD\cdot d\vA.$$ If you choose a closed surface $A$ then the boundary $\partial A$ is empty, the left-hand integral is zero and the equation for a closed surface becomes $$0 = \oint_A \vJ\cdot d \vA + \oint_A \dot\vD\cdot d\vA$$ We dissect the surface into partial surfaces $A_k$ of conductor cross-sections and a partial boundary of an insulator $A_i$. The corresponding integrals $I_k:=\int_{A_k}\vJ d\vA$ are the currents through these conductors. Furthermore, we have the charge transfer currents $I_{Ck}:=\int_{A_k}\dot\vD d\vA$ for the conductors and for the insulator $I_{i} := \int_{A_i}\dot \vD d\vA$. This gives you Kirchhoff's current law $$\sum_{k} I_k + \sum_{k} I_{Ck} + I_{i} = 0.$$

If one includes induction voltages and transfer charge currents in KVL and KCL these laws directly represent the laws of Faraday and Ampere. These quantities can be modeled through parasitic inductance and capacitance in the network diagram.

The fields $\vE$, $\vJ$, $\vD$, $\vH$, $\vB$ of the exact solution of Maxwell's equations satisfy Faraday's and Ampere's law for every piecewise smooth surface $A$.

Network modeling can be interpreted as discretization of Maxwell's equations. Through the finite selection of path integrals and surface integrals the number of degrees of freedom and the number of equations are reduced from infinite for the vector fields to the finite number of voltage and current variables and the finite number of corresponding loop and cut equations.

A discretization can give the exact results if the V-I-relations of the finite elements give exact field solutions (as boundary value problems). This is (almost) possible with DC-circuits.

For higher frequency applications one needs to refine the discretization. A good guidance for the choice of the discretization width is the wavelength of the considered electromagnetic waves in the circuit. In practice that means that one needs to include more parasitic elements in the network model for higher frequencies.

Slowly I hopefully understand what you mean by the `integrated principle'. I think it is helpful to see how the behavioural relation of a network element is derived from Maxwell's equations and embedded into the network theory.

Note, in the answer Batteries and voltage? I have just derived the V-I-relation of a resistor from Maxwell's equations. The V-I-relation for a capacitor can be derived in a similar way. For the inductor you need the induced voltage as defined above.

In a wide range of applications the fields can be approximated as quasi-stationary. With this approximation it turns out that for many basic structures the path integral over the field strength, i.e., the voltage drop is directly related to the cross-section integral over the current density, i.e., the current. This fact and the above equations for certain path-integrals over the field strength (KVL) and certain surface integrals over the current density (KCL) are exploited in network theory.

Note, that the splitting of voltages into the path integrals $V_k:=\int_{C_k} \vE\cdot \vr$ and the induction voltage is only one way of interpretation which has its draw-backs.

For an instance with a time-variable magnetic field the spatial separation suggested by the formula $\sum_{k} V_k + V_i = 0$ does not really exist.

There is another approach where the field strength $\vE$ is split into a Coulomb-part and a magnetic part. Pityingly, I do not know the reference anymore and I learned this stuff more than 10 years ago. But, if you are really interested I can try to retrieve it (this is not so easy and will take its time).

The idea is to apply the well-known technique of magnetic vector potentials $\vB=\rot \vA$ which solve the divergence equation $\div\vB=0$. As a gauge condition $\div\vA=0$ is used in this setup.

Faraday's law in differential form then reads $$\rot(\vE+\dot\vA) = 0$$ which ensures in a simply connected domain the existence of a potential $\ph$ for the vector field $\vE+\dot\vA$, i.e., $$\begin{array}{rcl} \vE + \dot\vA &=& -\grad\ph\\ \vE &=& \underbrace{-\grad\ph}_{\vE_\rmC} \underbrace{-\dot\vA}_{\vE_\rmM} \end{array}$$ In this formula $\vE_\rmC$ is the Coulomb-part of the electrical field strength and $\vE_\rmM$ is the magnetical part of the field strength.

Kirchhoffs Voltage law then holds unrestricted for Voltage drops defined with the Coulomb-part of the field strength $V_k := \int_{C_k} \vE_\rmC \cdot d\vr$.

For an example, in the case of constant permitivity $\eps$ the Coulomb part is the cause of space charges: $$\begin{array}{rl} \rho &= \div \vD\\ & = \div \eps (\vE_\rmC - \dot\vA)\\ & = \eps \div \vE_\rmC - \eps\frac{\partial}{\partial t}\underbrace{\div\vA}_{=0}\\ &= \eps \div \vE_\rmC \end{array}$$ One can then derive the V-I-relations for the network elements based on the Coulomb part and the magnetic part of the voltages and the currents.

This approach respects that the Coulomb-part and the magnetical part coexist everywhere in the circuit.

But, I have not seen this approach in practical usage yet.

-
To your first questions: Yes, I am well educated in the theory of electrical networks and I had the pleasure/honor to work together with one of the most respectable professors in this area, Professor Albrecht Reibiger from TU-Dresden. To your second statement: Please, describe in greater detail what you mean by the integrated principle. You are certainly aware that the voltage drops over the elements in the loops from KVL correspond to the integrals $V_k=\int_{C_k}\vec{E}d\vec{r}$ and the inductive part to $V_i$, if needed you can split the inductive part into partial fluxes. KCL is analogous. –  Tobias Mar 7 at 19:46
@rza: The answer is absolutely correct. I was about to post the exact same thing, but Tobias beat me to it. Before claiming an answer to be wrong/incomplete, please try understanding it completely first. –  Sam29 Mar 7 at 20:14
@Sam29 : Excuse me i am not satisfied,do you mean KVL & KCL works for non-integrated circuits ? –  rza Mar 7 at 21:40
@rza: I have added some comments on how the VI-relation of network elements can be derived from Maxwell's equations and how this can be exploited to motivate the theory of electrical networks. –  Tobias Mar 8 at 0:09
@Tobias: Excuse me,can you tell me where is lumped assumption?(lumped : en.wikipedia.org/wiki/Lumped_element_model) . if you success to derive KVL and KCL from Maxwell equations without using lumped assumption it means you proved that KVL & KCL works for every circuits even non-lumped circuits !! –  rza Mar 8 at 20:32