# Kirchhoff's Current and Voltage Laws

## Kirchhoff's Current Law and Nodal Analysis

Kirchhoff's Current Law (KCL) says that the current going into a junction or node is equal to the current going out of a node. In other words, the sum of the currents entering the node must be zero (if we consider currents leaving the node to be a negative current entering the node). Consider the following diagram:

For the node A in the center, i1 and i2 are entering the node, and i3 and i4 are leaving the node. We would write:

${\displaystyle i1+i2+(-i3)+(-i4)=0\,}$ which can also be written as ${\displaystyle i1+i2=i3+i4\,}$

Note that i7 is equal to i2; we can prove this by analyzing node B. We can also treat everything between node C and D as one big node, and conclude that i5 is equal to i6 without having to know the value of any of the currents within.

When solving for the currents in a real problem, we can choose arbitrarily in which direction the arrows point. If the current flows opposite to the direction of our arrow, the value we obtain after solving for the current will be negative. If you draw i4 as leaving node A as in the diagram above, then i4 must be entering node D.

If we had drawn the currents for node A as following:

Then our node equation looks like:

${\displaystyle i1+i2+i3+i4=0\,}$

Unless all the currents are zero, one or more of the currents must turn out to be negative. The negative currents flow in the direction opposite from that which the arrow is pointing.

## Kirchhoff's Voltage Law and Loop Analysis

Kirchhoff's Voltage Law (KVL) states that the sum of the voltages around any closed loop is equal to zero. Also, the voltage between any two nodes is the same no matter which path is taken. In the following diagram, it doesn't matter which path you choose(or which direction you go in) to add the voltages of the components from point A back to point A, they all must add up to zero.

Also, the voltage between any two points does not depend on which path you take. In the following diagram, the voltage between point A and point B is the same no matter which path is chosen.

To keep all the positive and negative signs lined up when solving a circuit, we use the following sign convention for the voltage and current for the components:

With the sign convention above, ${\displaystyle iv>0}$ means that the element is storing power (for a capacitor or inductor) or dissipating power (for a resistor). If ${\displaystyle iv<0}$, the element is sourcing, or providing, power. Note that resistors cannot store power (and hence cannot supply power); the energy absorbed by a resistor is lost as heat energy.

The circuit below shows a battery, resistor, inductor, and capacitor connected in series.

In this circuit, we have chosen to draw the current flowing clockwise and assign the voltages for our components according to our sign convention. We then add up the voltages of the components, following the loop. It doesn't matter if you go clockwise or counter-clockwise. If you go from a "+" sign to a "-" sign when going around the loop, subtract the voltage across that element. Otherwise, add it. Once you've completed the loop, set the summation equal to zero.

In the example above, if we choose to start in the bottom left corner and move in the clockwise direction, our equation looks like:

${\displaystyle V_{V1}-V_{R1}-V_{L1}-V_{C1}=0\,}$

or if we go in the counter-clockwise direction, we get:

${\displaystyle V_{C1}+V_{L1}+V_{R1}-V_{V1}=0\,}$

which is the same thing.

If we had drawn the current going in a counter-clockwise direction, our circuit diagram would look like this:

${\displaystyle V_{V1}+V_{R1}+V_{L1}+V_{C1}=0\,}$

## Solving Problems Using Kirchhoff's Laws

To solve for the currents and voltages in a circuit, simply write all KCL and KVL equations and constitutive laws for each element and solve simultaneously. Note that some KCL and KVL equations are redundant and can be eliminated.

1. Write all KCL equations for each node
2. Write all KVL equations for each loop
3. Write all constitutive equations
4. Solve simultaneous equations

## Example and Practice Problems

### Example 1

Find the voltage and current of each resistor at the steady state of the system.

Answer: At steady state, the capacitor becomes charged and acts like an open circuit, and the inductor acts like a short circuit. Therefore, at steady state, our system is equivalent to:

Notice in this circuit, we have two nodes (one at the top and one at the bottom) and three loops (the loop on the left consisting of ${\displaystyle V_{s},R_{1},}$ and ${\displaystyle R_{3}}$; the loop on the right consisting of ${\displaystyle R_{2}}$ and ${\displaystyle R_{3}}$; and the loop around the entire perimeter, consisting of ${\displaystyle V_{2},R_{1},}$ and ${\displaystyle R_{2}}$.

We solve problems like this by writing out the loop equations, node equations, and constitutive laws. Then, we solve the equations simultaneously.

In this example, we draw our current arrows at the nodes as follows:

The directions for the currents were chosen arbitrarily. Keep in mind that there is no "wrong" direction when choosing the direction of the arrow, as long as we are consistent with each current's direction.

We can now write our equations:

KCL equations:

Node A: ${\displaystyle i_{1}=i_{2}+i_{3}}$

Node B: ${\displaystyle i_{2}+i_{3}=i_{1}}$

As we can see, the two equations are exactly the same, so we won't be needing both of them.

KVL equations:

Loop 1 (left "window pane"): ${\displaystyle 10-200i_{1}-300i_{3}=0}$

Loop 2 (right "window pane"): ${\displaystyle 300i_{3}-30i_{2}=0}$

Loop 3 (entire "window frame"): ${\displaystyle 10-200i_{1}-30i_{2}=0}$

Notice that the equation for Loop 3 is equal to the sum of the equations for Loop 1 and Loop 2. This means that only 2 of the are linearly independent; the third one is redundant. We can choose any two of the three equations to use when solving the system of equations.

Now we take our node equation and two of our loop equations to make a system of equations (3 equations and 3 unknowns):

${\displaystyle i_{1}=i_{2}+i_{3}}$

${\displaystyle 10-200i_{1}-300i_{3}=0}$

${\displaystyle 300i_{3}-30i_{2}=0}$

Solving the system reveals the currents through each resistor: ${\displaystyle i_{1}=0.044A,i_{2}=0.040A,}$ and ${\displaystyle i_{3}=0.004A}$ We then find the voltages across each resistor using the constitutive law for resistors (Ohm's law): ${\displaystyle V=IR}$.

${\displaystyle V_{1}=(0.044)(200)=8.8V}$

${\displaystyle V_{2}=(0.040)(30)=1.2V}$

${\displaystyle V_{3}=(0.004)(300)=1.2V}$

#### Alternative Method

First, simplify the network of resistors. The combined resistance of the three resistors is equal to:

${\displaystyle R_{total}={\frac {(30)(300)}{30+300}}+200=227.273\Omega }$

The voltage across the resistors is 10V, and using ohm's law, we find that the current going through the circuit is

${\displaystyle i_{1}=10/227.273=0.044A}$

This is the current flowing through the voltage source R1. Kirchhoff's voltage law tells us that the voltage or R2 and R3 are the same, and the sum of R1 and R2 is equal to 10V. We can find the voltage of R1 by using Ohm's law again:

${\displaystyle V=(0.044A)(200\Omega )=8.8V}$

Then R2 and R3 must have

${\displaystyle 10-8.8=1.2V}$

across them, and from that we can calculate that R2 's current is

${\displaystyle i_{1}=1.2/30=0.04A}$

and R3 's current is

${\displaystyle i_{3}=1.2/300=0.004A}$

Note that the sum of the currents for R2 and R3 is equal to the current in R1.

### Example 2

Find the voltage and current of each element in the system.

We start by assigning currents to the nodes:

The we write our node equations, loop equations and constitutive laws.

KCL equations:

Node A: ${\displaystyle -i_{1}-i_{2}-i_{3}=0}$

Node B: ${\displaystyle i_{1}+i_{2}+i_{3}=0}$

Again, these equations are equivalent, so we only need one of them.

KVL equations:

Left-side loop: ${\displaystyle 1000i_{1}-1000i_{3}-10=0}$

Right-side loop: ${\displaystyle 10+1000i_{3}-2000i_{2}-20=0}$

Beware the sign convention that we use: the voltage of a resistor is high at the end the current is entering into.

These loops already cover the entire circuit. The equation for the "outside frame" will only be the superposition of these two equations, so we omit it.

The constitutive law for the resistor is ${\displaystyle V=iR}$.

Solving the loop and node equations yields:

${\displaystyle i_{1}=0.008A}$

${\displaystyle i_{2}=-0.006A}$

${\displaystyle i_{3}=-0.002A}$

Using V=iR, we can find the voltages across each resistor.

${\displaystyle V_{R1}=8V}$

${\displaystyle V_{R2}=-12V}$

${\displaystyle V_{R3}=-2V}$

The negative value simply means that the voltage is actually higher on at the (-) terminal drawn in the diagram we used to derive our equations.

The voltage across the voltage source is constant, so:

${\displaystyle V_{V1}=10V}$

${\displaystyle V_{V2}=20V}$

#### Alternative Method

Kirchhoff's current law says that a current flowing into a node also has to flow out of it. If we trace the current's path in a loop, we can also solve for this current. In the figure below, we have two "current loops," and solving for ${\displaystyle i_{1}}$ and ${\displaystyle i_{2}}$ will give us the currents flowing through each element. The current through ${\displaystyle V_{1}}$ and ${\displaystyle R_{3}}$ will be the superposition of ${\displaystyle i_{1}}$ and ${\displaystyle i_{2}}$.

We can solve this by writing two loop equations using KVL--one for each loop. Note that ${\displaystyle R3}$ and ${\displaystyle V1}$ have both ${\displaystyle i_{1}}$ and ${\displaystyle i_{2}}$ going through them; therefore, the total currents going through ${\displaystyle R3}$ and ${\displaystyle V1}$ will be the superposition of ${\displaystyle i_{1}}$ and ${\displaystyle i_{2}}$.

For the loop on the left (in the direction of the current):

${\displaystyle 0=V_{V1}-V_{R3}-V_{R1}}$

${\displaystyle 0=V_{1}-(i_{1}-i_{2})R3-V_{R1}}$

${\displaystyle 0=10-1000(i_{1}-i_{2})-1000(i_{1})}$,

and for the loop on the right:

${\displaystyle 0=V_{V2}-V_{R2}-V_{R3}-V_{1}}$

${\displaystyle 0=V_{V2}-i_{2}R2-(i_{2}-i_{1})R_{3}-V_{V1}}$

${\displaystyle 0=20-2000i_{2}-1000(i_{2}-i_{1})-10}$

Now we have a system of two equations and two unknowns, which is easily solved:

${\displaystyle i_{1}=8mA}$ and ${\displaystyle i_{2}=6mA}$

Now we use ohm's law and calculate our voltages:

${\displaystyle V_{V1}=10V}$

${\displaystyle V_{V2}=20V}$

${\displaystyle V_{R1}=8V}$

${\displaystyle V_{R2}=12V}$

${\displaystyle V_{R3}=2V}$

And our currents:

${\displaystyle I_{V1}=6mA}$

${\displaystyle I_{V2}=2mA}$

${\displaystyle I_{R1}=8mA}$

${\displaystyle I_{R2}=6mA}$

${\displaystyle I_{R3}=2mA}$

Note that we could also have drawn our loops like this:

In this case, our equations would be:

for the small loop:

${\displaystyle 0=V_{V1}-V_{R3}-V_{R1}}$

${\displaystyle 0=10-1000(i_{1})-1000(i_{1}+i_{2})}$

and for the big loop:

${\displaystyle 0=V_{V2}-V_{R2}-V_{R3}}$

${\displaystyle 0=20-2000i_{2}-1000(i_{2}+i_{1})}$

Solving for ${\displaystyle i_{1}}$ and ${\displaystyle i_{2}}$, we find that:

${\displaystyle i_{1}=2mA}$

and

${\displaystyle i_{2}=6mA}$

The current going through ${\displaystyle R1}$ is equal to ${\displaystyle i_{1}+i_{2}=8mA}$, which matches our previous answer.

### Practice Problem 1

Solve for the voltage across and current through each of the components:

### Practice Problem 2

Solve for the voltage across and current through each of the resistors at time ${\displaystyle t=0\,}$ and ${\displaystyle t=\infty }$. Assume that both the inductor and the capacitor are uncharged in their initial states.