1. Home
  2. Explore
  3. Engineering
  4. Circuit Nodal Analysis

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Circuit Nodal Analysis

Transcript

Hi everyone, welcome back. Last time, we met the resistor, the capacitor and the inductor, and learned what makes an element passive. So far, we have met the active elements and a few passive ones. It is high time we put them together. A circuit is an interconnection of circuit elements, and in our examples they form closed paths. Nothing fancy. Here is an easy one. A current source pumps two amperes through a five ohm resistor. What is the voltage across the resistor? I times R. Two times five, ten volts. You can do this in your sleep.

But now look at this one. Two current sources and five resistors. What is the voltage across each resistor? Just by staring at it, you cannot say. And solving a circuit means exactly that. Find the voltage across every element, the current through every element, and from those, the power in every element. So our goal today is a systematic method. A recipe that works for any circuit like this, however messy. It is called nodal analysis. Before we get there, we need a few words.

First, a drawing convention. When two wires cross on paper, it does not mean they are connected. They just pass over each other, like a flyover over a road. If two wires really are connected, we mark the junction with a solid dot. We call it a solder dot. From now on, a crossing without a dot is not a connection. Next, a node. A node is a point where two or more circuit elements are connected. In our circuit, here is one node, where the left source meets two resistors.

Here is a second one, and a third one. Is there any other node? Yes. The entire bottom wire. It has several dots on it, but a wire has the same potential all along, so the whole wire is one single node. That gives four nodes in total. A branch is a single element connecting two nodes. Every element here is a branch, so this circuit has seven branches. Two sources and five resistors. And a loop. Just like you have loops in programming, circuits have loops too.

A loop is a closed path in which no node is visited more than once, apart from coming back to where you started. This path is a loop. This one is not, because it passes through the same node twice. Counting all the loops in a circuit is a nice puzzle, like those pictures that ask how many squares you can see. Try it at home. But we will not need loops today. Today, everything happens at the nodes. Kirchhoff did not give us one law, but two. Kirchhoff's current law, K C L, and Kirchhoff's voltage law, K V L. You have probably met both before. Today, we build our method on K C L. Here it is. The algebraic sum of all the currents leaving a node is zero. Draw every current arrow pointing away from the node, call them I one, I two and I three. Then I one plus I two plus I three equals zero.

Algebraic is the key word. If a current actually flows into the node, its value along an outward arrow is simply negative. All arrows outward does not mean all currents flow outward. You may have seen it as, total current in equals total current out. That is the same law. We will always use the leaving form, because it makes the equations come out automatically. Why is it true? In our circuit model, charge never piles up at a junction of wires. So every coulomb that arrives each second must leave in the same second. K C L is conservation of charge.

Question one. Three currents are measured leaving a node. Two amperes, minus five amperes, and an unknown current I. What is I? Two plus minus five plus I equals zero. So I equals three amperes. And notice the minus five amperes. Five amperes are actually flowing into the node, and the other two currents carry them away.

Now voltages. A voltage is always a difference between two nodes. With two nodes, A and B, there is exactly one voltage to find, the voltage of A with respect to B. With three nodes, A, B and C, there seem to be three voltages. A minus C, B minus C, and A minus B. But if you know A minus C and B minus C, subtract them, and you get A minus B for free. So three nodes have only two independent voltages. In general, a circuit with N nodes has N minus one independent voltages. Our circuit has four nodes, so we need only three voltages. So here is step one. Choose one node as the reference, and measure every other node's voltage with respect to it. Any node will do. There is no hard and fast rule. Here, the bottom wire is convenient. Since only differences matter, we are free to call the reference zero volts.

This reference node is called the ground of the circuit, and it gets its own symbol. Now each remaining node gets one label. V one, V two and V three. Each means that node's voltage with respect to ground. So we no longer need to draw a plus and minus for every voltage. The label says it all. These are the node voltages. Here is our key tool. Take a resistor R between two nodes, with node voltages V A and V B. By Ohm's law, the current from A to B is V A minus V B, divided by R. And the current from B to A is V B minus V A, over R.

The same current with the opposite arrow. So the rule is simple. The node you start from comes first in the numerator. Step two. Apply K C L at every node except ground, using Ohm's law for every resistor current. First, a small warm up. A six ampere source points up from ground into node one. Three resistors of two ohms each go from node one to ground, from node one to node two, and from node two to ground. The bottom wire is ground, so there are two node voltages, V one and V two. At node one, the currents leaving add up to minus six, plus V one over two, plus V one minus V two, over two. And that equals zero.

At node two, V two minus V one, over two, plus V two over two, equals zero. That simplifies to V one equals two times V two. Back to node one. Multiply it by two, and it reads two V one minus V two equals twelve. With V one equal to two V two, that is three V two equals twelve. So V two is four volts, and V one is eight volts. Now every current. Four amperes down the left resistor, two amperes across the top, and two amperes down the right one. At node one, six amperes come in, and four plus two go out. K C L checks. And the powers. The resistors absorb thirty two, eight and eight watts, forty eight in all. The source has eight volts across it, plus at the top, and the current entering its plus terminal is minus six amperes. So its P d is minus forty eight watts. The total is zero, just as it must be.

Now our big circuit. On the left, a ten ampere source points up into node one. On the right, a four ampere source points up into node three. A four ohm resistor connects node one to node two. A twenty ohm resistor connects node two to node three. A five ohm resistor runs over the top, from node one to node three. And ten ohms and sixteen ohms go from nodes two and three down to ground. Start at node one. Draw every current leaving it. Down into the source branch, that current is minus ten amperes, because the source pushes ten amperes up, into the node. To the right, through the four ohm resistor, the current from node one to node two is V one minus V two, over four. And over the top, through the five ohm resistor, it is V one minus V three, over five. Add them and set the sum to zero. Minus ten, plus V one minus V two, over four, plus V one minus V three, over five, equals zero. That is our first equation. Is that okay?

Question two. Now it is your turn. Write the K C L equation at node two. Three currents leave node two. To the left, V two minus V one, over four. Down, V two over ten, because ground is zero. To the right, V two minus V three, over twenty. Their sum is zero. Notice that V two comes first in every numerator. Node three. Down through the four ampere source, minus four amperes. Down through sixteen ohms, V three over sixteen. To the left, V three minus V two, over twenty. And over the top, V three minus V one, over five. The sum is zero.

So we have three linear equations in three unknowns. Solving them is routine. Use a calculator if you like. The real skill, and the point of this course, is writing these equations correctly. Still, let's solve them, and check the answer. V one comes out to about one hundred and nine point three volts. V two is about eighty point three volts. And V three is about ninety five point six volts. Large voltages, but that is just ten amperes and four amperes flowing through resistors of tens of ohms. Now every resistor current follows from Ohm's law. Look at the twenty ohm resistor. The current from node two to node three is eighty point three minus ninety five point six, over twenty.

About minus zero point seven seven amperes. The minus sign simply means it really flows from node three to node two. You never need to guess directions in advance. Pick any arrows, and the signs sort themselves out. Now a check. The ten ohm resistor carries about eight point zero three amperes down to ground. The sixteen ohm resistor carries about five point nine seven. Together, fourteen amperes. Exactly the ten plus four amperes the sources push up. K C L at ground holds. And the power.

The ten ampere source has V one across it, plus at the top, with minus ten amperes entering its plus terminal. So its P d is about minus one thousand and ninety three watts. With the four ampere source, the sources deliver about fourteen hundred and seventy five watts, and the five resistors absorb exactly that. Why did we skip the ground equation? Add the three node equations together. Every resistor current between two non ground nodes appears twice, once with each sign, and cancels. What is left is K C L at ground, with every sign flipped. So it carries no new information. N minus one equations, for N minus one unknowns. And what if we had picked a different ground? Say node two. Then every node voltage drops by the same eighty point three volts.

Node one becomes about twenty nine volts, node three about fifteen point three, and the bottom wire about minus eighty point three. But every difference, every current and every power stays exactly the same. Just as in the first lecture. Only potential differences are physical. Ground is a choice we make for bookkeeping, not a property of the circuit. Let's run the recipe on a second circuit, this time with symbols. Five resistors, R one to R five, and three current sources, I one, I two and I three. First, how many nodes? Node one on the left, node two in the middle, and the whole right side is one node, node three, even though wires join it at different heights. Plus the bottom wire. Four nodes, so three node voltages. The bottom becomes ground. Here are the connections. I one points up from ground into node one.

R one joins nodes one and two. R two goes from node two to ground. R five joins nodes two and three. R three and R four both go from node three to ground. And two sources sit between nodes. Along the top, I two pushes current from node three to node one. Just above R five, I three pushes current from node two to node three. At node one, the current leaving through the I one branch is minus I one. Through R one, V one minus V two, over R one.

Through the top branch, the source pushes I two into node one, so the current leaving is minus I two. The sum is zero. At node two, the I three source pushes current out, so plus I three. Then V two over R two, V two minus V three, over R five, and V two minus V one, over R one. The sum is zero. At node three, V three over R four, and V three over R three. V three minus V two, over R five. Through the I three branch, the source pushes current in, so minus I three.

Through the top branch, I two leaves node three, so plus I two. The sum is zero. Again, three linear equations in three unknowns, with a unique solution. For a source, the rule is simple. If its arrow points out of the node, add its current. If it points in, subtract it. A common mistake is to give a current source an Ohm's law term, or to get its sign backwards. A source has no Ohm's law. Its current is fixed. Look only at its arrow, relative to the node you are standing at.

Three equations in three unknowns have a compact form. A matrix. Collect V one, V two and V three into a column. Each row of the matrix holds the coefficients of one K C L equation. Row one, from node one, has one over R one for V one, and minus one over R one for V two. And zero for V three, because no resistor joins nodes one and three. Look at the units. Every entry is one over a resistance. One over R is called conductance, written G.

Its unit is the siemens, symbol S. It is also called the mho. That is ohm spelled backwards, and its symbol is the omega, flipped upside down. A really inventive symbol. So this matrix is the conductance matrix, G. The column of unknowns is the voltage vector, V. And on the right, the known currents fed in by the sources form the input current vector. G times V equals I in. There is a pattern you can read off directly. Each diagonal entry is the sum of the conductances touching that node. Each off diagonal entry is minus the conductance joining those two nodes. And each entry of I in is the net source current pushed into that node, where current pushed out counts as negative. Notice also that the conductance matrix is symmetric. The entry for nodes one and two equals the entry for nodes two and one. The same resistor joins them, whichever end you stand at.

Check it on our first circuit. Node one touches four ohms and five ohms, so its diagonal entry is a quarter plus a fifth. The entry between nodes one and two is minus a quarter. And the sources push in ten amperes, zero, and four amperes. Question three. A circuit has six nodes. How many node voltages, and how many K C L equations, does nodal analysis need?

Five and five. Pick one of the six as ground, and the other five each get a voltage and an equation. So the conductance matrix is five by five. Now a beautiful consequence. Suppose some circuit has three sources, I one, I two and I three, of two, three and six amperes. And suppose we have solved it, and found node voltages of ten, twenty and forty volts. Now double every source, to four, six and twelve amperes, and keep every resistor the same. Do we need to solve the circuit again? No. G does not change, because the resistors did not change. The input vector doubles. So the voltage vector must double too.

Twenty, forty and eighty volts, with no new work. Scale all the sources, and every voltage and current scales by the same factor. This is the signature of a linear circuit. And every circuit made only of resistors that obey Ohm's law and ideal sources is linear. Question four. In our first circuit, both sources are tripled, to thirty amperes and twelve amperes. What is the new V two?

Three times eighty point three. About two hundred and forty one volts. Every node voltage triples, and so does every current. Alright, time for a practice round. Eight short questions. For each one, pause, solve it, and then check. Practice one. The bottom wire of a circuit has four solder dots on it. How many nodes does that wire count as?

Just one. A wire has the same potential all along, however many dots it has. Practice two. Four currents leave a node. Four amperes, minus one ampere, minus six amperes, and I. What is I? Four minus one minus six plus I equals zero. So I is three amperes.

Practice three. A five ohm resistor joins node A, at twelve volts, and node B, at two volts. What is the current from B to A? V B minus V A, over five. Two minus twelve is minus ten, over five, minus two amperes. Two amperes really flow from A to B.

Practice four. A circuit has seven nodes. How many K C L equations does nodal analysis need? Six. One node is ground, and each of the other six gives one equation. Practice five. A three ampere source pushes current into a node. From that node, a six ohm resistor and a three ohm resistor both go to ground. What is the node voltage?

K C L. Minus three, plus V over six, plus V over three, equals zero. V times one half equals three, so V is six volts. Practice six. What is the conductance of a four ohm resistor? One over four. Zero point two five siemens.

Practice seven. In a circuit of resistors and current sources, every source is reversed, so each source current becomes its negative. What happens to the node voltages? They all flip sign. The input vector is multiplied by minus one, so the voltage vector is too. That is linearity at work.

Practice eight. A node at ten volts connects through a two ohm resistor to a node at four volts, and through a five ohm resistor to ground. What total current leaves the first node through these two resistors? Ten minus four, over two, is three amperes. Ten over five is two amperes. Five amperes in total.

Let's recap. A node is a junction, and one whole wire is one node. K C L says the currents leaving a node add up to zero. A circuit with N nodes has N minus one node voltages, measured from a ground we choose at zero volts. Nodal analysis. Choose ground, label the node voltages, and write K C L at every node except ground, using Ohm's law with the starting node first. The result is G times V equals I in. And because the circuit is linear, scaling every source scales every voltage and current by the same factor. But all our sources today were current sources. What if a voltage source sits between two nodes? Its current is not known in advance. Next time, we meet the supernode, and a second method built on K V L. Mesh analysis. See you there.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent