# Kirchhoff's circuit laws

Kirchhoff's laws are two equalities that deal with the current and potential difference (commonly known as voltage) in the lumped element model of electrical circuits. They were first described in 1845 by German physicist Gustav Kirchhoff.[1] This generalized the work of Georg Ohm and preceded the work of James Clerk Maxwell. Widely used in electrical engineering, they are also called Kirchhoff's rules or simply Kirchhoff's laws. These laws can be applied in time and frequency domains and form the basis for network analysis.

Both of Kirchhoff's laws can be understood as corollaries of Maxwell's equations in the low-frequency limit. They are accurate for DC circuits, and for AC circuits at frequencies where the wavelengths of electromagnetic radiation are very large compared to the circuits.

## Kirchhoff's current law (KCL)

The current entering any junction is equal to the current leaving that junction. i2 + i3 = i1 + i4

This law is also called Kirchhoff's first law, Kirchhoff's point rule, or Kirchhoff's junction rule (or nodal rule).

This law states that, for any node (junction) in an electrical circuit, the sum of currents flowing into that node is equal to the sum of currents flowing out of that node; or equivalently:

The algebraic sum of currents in a network of conductors meeting at a point is zero.

Recalling that current is a signed (positive or negative) quantity reflecting direction towards or away from a node, this principle can be succinctly stated as:

${\displaystyle \sum _{k=1}^{n}{I}_{k}=0}$

where n is the total number of branches with currents flowing towards or away from the node.

The law is based on the conservation of charge where the charge (measured in coulombs) is the product of the current (in amperes) and the time (in seconds). If the net charge in a region is constant, the KCL will hold on the boundaries of the region.[2][3] This means that KCL relies on the fact that the net charge in the wires and components is constant.

### Uses

A matrix version of Kirchhoff's current law is the basis of most circuit simulation software, such as SPICE. Kirchhoff's current law is used with Ohm's law to perform nodal analysis.

KCL is applicable to any lumped network irrespective of the nature of the network; whether unilateral or bilateral, active or passive, linear or non-linear.

## Kirchhoff's voltage law (KVL)

The sum of all the voltages around a loop is equal to zero.
v1 + v2 + v3 - v4 = 0

This law is also called Kirchhoff's second law, Kirchhoff's loop (or mesh) rule, and Kirchhoff's second rule.

This law states that

The directed sum of the potential differences (voltages) around any closed loop is zero.

Similarly to KCL, it can be stated as:

${\displaystyle \sum _{k=1}^{n}V_{k}=0}$

Here, n is the total number of voltages measured.

Derivation of Kirchhoff's voltage law
A similar derivation can be found in The Feynman Lectures on Physics, Volume II, Chapter 22: AC Circuits.[3]

Consider some arbitrary circuit. Approximate the circuit with lumped elements, so that (time-varying) magnetic fields are contained to each component and the field in the region exterior to the circuit is negligible. Based on this assumption, the Maxwell-Faraday equation reveals that

${\displaystyle \nabla \times \mathbf {E} =-{\frac {\partial \mathbf {B} }{\partial t}}=\mathbf {0} }$

in the exterior region. If each of the components have a finite volume, then the exterior region is simply connected, and thus the electric field is conservative in that region. Therefore, for any loop in the circuit, we find that

${\displaystyle \sum V_{i}=-\sum \int _{{\mathcal {P}}_{i}}\mathbf {E} \cdot \mathrm {d} \mathbf {l} =\oint \mathbf {E} \cdot \mathrm {d} \mathbf {l} =0}$

where ${\textstyle {\mathcal {P}}_{i}}$  are paths around the exterior of each of the components, from one terminal to another.

### Generalization

In the low-frequency limit, the voltage drop around any loop is zero. This includes imaginary loops arranged arbitrarily in space – not limited to the loops delineated by the circuit elements and conductors. In the low-frequency limit, this is a corollary of Faraday's law of induction (which is one of Maxwell's equations).

This has practical application in situations involving "static electricity".

## Limitations

KCL and KVL both depend on the lumped element model being applicable to the circuit in question. When the model is not applicable, the laws do not apply. KCL and KVL result from the assumptions of the lumped element model.

KCL is dependent on the assumption that the net charge in any wire, junction or lumped component is constant. Whenever the electric field between parts of the circuit is non-negligible, such as when two wires are capacitively coupled, this may not be the case. This occurs in high-frequency AC circuits, where the lumped element model is no longer applicable.[4] For example, in a transmission line, the charge density in the conductor will constantly be oscillating.

In a transmission line, the net charge in different parts of the conductor changes with time. In the direct physical sense, this violates KCL.

On the other hand, KVL relies on the fact that the action of time-varying magnetic fields are confined to individual components, such as inductors. In reality, the induced electric field produced by an inductor is not confined, but the leaked fields are often negligible.

Modelling real circuits with lumped elements

The lumped element approximation for a circuit is accurate at low enough frequencies. At higher frequencies, leaked fluxes and varying charge densities in conductors become significant. To an extent, it is possible to still model such circuits using parasitic components. If frequencies are too high, it may be more appropriate to simulate the fields directly using finite element modelling or other techniques.

To model circuits so that KVL and KCL can still be used, it's important to understand the distinction between physical circuit elements and the ideal lumped elements. For example, a wire is not an ideal conductor. Unlike an ideal conductor, wires can inductively and capacitively couple to each other (and to themselves), and have a finite propagation delay. Real conductors can be modeled in terms of lumped elements by considering parasitic capacitances distributed between the conductors to model capacitive coupling, or parasitic (mutual) inductances to model inductive coupling.[4] Wires also have some self-inductance, which is the reason that decoupling capacitors are necessary.

## Example

Assume an electric network consisting of two voltage sources and three resistors.

According to the first law we have

${\displaystyle i_{1}-i_{2}-i_{3}=0\,}$

The second law applied to the closed circuit s1 gives

${\displaystyle -R_{2}i_{2}+{\mathcal {E}}_{1}-R_{1}i_{1}=0}$

The second law applied to the closed circuit s2 gives

${\displaystyle -R_{3}i_{3}-{\mathcal {E}}_{2}-{\mathcal {E}}_{1}+R_{2}i_{2}=0}$

Thus we get a system of linear equations in ${\displaystyle i_{1},i_{2},i_{3}}$ :

${\displaystyle {\begin{cases}i_{1}-i_{2}-i_{3}&=0\\-R_{2}i_{2}+{\mathcal {E}}_{1}-R_{1}i_{1}&=0\\-R_{3}i_{3}-{\mathcal {E}}_{2}-{\mathcal {E}}_{1}+R_{2}i_{2}&=0\end{cases}}}$

Which is equivalent to

${\displaystyle {\begin{cases}i_{1}+(-i_{2})+(-i_{3})&=0\\R_{1}i_{1}+R_{2}i_{2}+0i_{3}&={\mathcal {E}}_{1}\\0i_{1}+R_{2}i_{2}-R_{3}i_{3}&={\mathcal {E}}_{1}+{\mathcal {E}}_{2}\end{cases}}}$

Assuming

${\displaystyle R_{1}=100\Omega ,\ R_{2}=200\Omega ,\ R_{3}=300\Omega }$
${\displaystyle {\mathcal {E}}_{1}=3{\text{V}},{\mathcal {E}}_{2}=4{\text{V}}}$

the solution is

${\displaystyle {\begin{cases}i_{1}={\frac {1}{1100}}{\text{A}}\\[6pt]i_{2}={\frac {4}{275}}{\text{A}}\\[6pt]i_{3}=-{\frac {3}{220}}{\text{A}}\end{cases}}}$

${\displaystyle i_{3}}$  has a negative sign, which means that the direction of ${\displaystyle i_{3}}$  is opposite to the assumed direction i.e. ${\displaystyle i_{3}}$  is directed upwards.