# Kirchhoff's Current and Voltage Laws

## Kirchhoff's Current Law and Nodal Analysis

Kirchhoff's Current Law 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:

$i1+i2+(-i3)+(-i4)=0\,$ which can also be written as $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 we guessed incorrectly, the value we obtain after solving for the current will be negative. However, if you draw i4 as leaving node A as in the diagram above, don't draw i4 as leaving node D when you are writing your node equations.

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

Then our node equation looks like:

$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 will flow in the direction opposite from that which the arrow is pointing.

## Kirchhoff's Voltage Law and Loop Analysis

Kirchhoff's Voltage Law 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 choosen.

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

In the circuit above, we have choosen to draw the current flowing clockwise and assign the voltages for our components according to our sign convents. We then add up the voltages of the components, following the loop. It doesn't matter if you go clockwise or counter-clockwise. If the signs aross a component goes from positive to negative (in the direction of your loop), this indicates a drop in voltage; if it goes from negative to positive, this indicates a rise in voltage.

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

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

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

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

which is the same thing.

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

Adding up the voltages gives:

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

If we know that VV1 is positive, then VR1 + VL1 + VC1 will turn out to be negative, and we know we have our signs flipped.