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

Speaker 1Speaker 2

Circuit Nodal Analysis

18:59
0:00-18:59
  1. Maria

    Welcome back! Last time we met resistors, capacitors, and inductors, and talked about passive elements. Today we’ll put circuit elements together and learn a systematic way to solve circuits: nodal analysis.

  2. Hope

    And by “solve,” we mean find the voltage across every element, the current through every element, and then the power in every element. A simple circuit can be solved by inspection: a two-amp current through a five-ohm resistor gives ten volts by Ohm’s law.

  3. Maria

    But once several sources and resistors interact, inspection may not tell us each voltage. We need a recipe that works even when the circuit gets messy. The key today is Kirchhoff’s current law, or KCL.

  4. Hope

    Before equations, let’s get the circuit-drawing language straight. Wires crossing on paper are not automatically connected. If they really meet, the drawing marks the junction with a solid dot, sometimes called a solder dot.

  5. Maria

    A node is a point where two or more circuit elements connect. But remember, an uninterrupted wire has the same potential all along it, so the entire wire counts as one node—even if it has several dots.

  6. Hope

    A branch is a single element connecting two nodes. So if a circuit has two current sources and five resistors, that’s seven branches, because each element is one branch.

  7. Maria

    And a loop is a closed path that doesn’t visit any node more than once, except for returning to the starting node. A path that goes through the same node again before closing isn’t a loop. Counting every loop can be a fun puzzle, but we won’t need loops for today’s method.

  8. Hope

    Kirchhoff gave us two laws: KCL and Kirchhoff’s voltage law, or KVL. We’ll build nodal analysis on KCL, which says the algebraic sum of currents leaving a node is zero.

  9. Maria

    For example, if three current arrows all point away from a node, label their currents I one, I two, and I three, and write I one plus I two plus I three equals zero. “Algebraic” matters: a current that actually enters the node has a negative value for an outward arrow.

  10. Hope

    So drawing every arrow outward is just a consistent bookkeeping choice. It does not claim that every current truly flows outward. The familiar version, total current in equals total current out, is the same law.

  11. Maria

    KCL expresses conservation of charge. In this circuit model, charge doesn’t pile up at a wire junction, so the amount of charge arriving each second must equal the amount leaving each second.

  12. Hope

    Try a quick one: three currents measured with outward arrows are two amperes, minus five amperes, and an unknown I. The equation is two plus negative five plus I equals zero, so I is three amperes.

  13. Maria

    That negative five means five amperes actually flow into the node. The two amperes and the unknown three amperes flow out, balancing the incoming current.

  14. Hope

    Now let’s talk about voltage. Voltage is always a difference between two nodes. With nodes A and B, there’s one voltage difference to find: A with respect to B.

  15. Maria

    With three nodes A, B, and C, you could name three differences: A minus C, B minus C, and A minus B. But the third is determined by the first two: subtract B minus C from A minus C and you get A minus B. So only two are independent.

  16. Hope

    In general, a circuit with N nodes has N minus one independent node voltages. That’s why the first step of nodal analysis is to choose one node as a reference and measure all the other node voltages relative to it.

  17. Maria

    Any node can be the reference; there’s no hard-and-fast rule. A convenient choice is often the bottom wire. We call the reference node ground and choose its voltage to be zero, because only voltage differences matter.

  18. Hope

    Then label each remaining node with a voltage, such as V one, V two, and V three. Those labels mean the voltage of each node with respect to ground. They replace drawing a separate plus and minus sign for every node voltage.

  19. Maria

    Here’s the rule that lets us turn node voltages into currents. For a resistor R between node A at voltage V A and node B at voltage V B, the current from A to B is V A minus V B, divided by R.

  20. Hope

    And if we choose the opposite direction, from B to A, it’s V B minus V A, over R. The starting node goes first in the numerator. The two expressions describe the same current with opposite reference directions.

  21. Maria

    Step two is to write KCL at every node except ground, using that Ohm’s law expression for each resistor current. Let’s warm up with a six-amp source pushing upward from ground into node one, and three two-ohm resistors: one from node one to ground, one between nodes one and two, and one from node two to ground.

  22. Hope

    There are two unknown node voltages, V one and V two. At node one, the source current, with an outward arrow, is negative six. The resistor currents leaving are V one over two and V one minus V two over two. So the equation is negative six plus V one over two plus V one minus V two over two equals zero.

  23. Maria

    At node two, the outward resistor currents are V two minus V one over two and V two over two. Their sum is zero. That second equation simplifies to V one equals two times V two.

  24. Hope

    Multiply the node-one equation by two and you get two V one minus V two equals twelve. Substitute V one equals two V two, and three V two equals twelve. So V two is four volts, and V one is eight volts.

  25. Maria

    Now Ohm’s law gives every current: four amperes down the left resistor, two amperes from node one to node two, and two amperes down the right resistor. At node one, six amperes enter and four plus two leave, so KCL checks.

  26. Hope

    The resistor powers are thirty-two, eight, and eight watts, for forty-eight watts total absorbed. The source has eight volts across it, with the positive terminal at the top. Six amperes actually leave that positive terminal, so the current entering the positive terminal is negative six amperes, and the source power is negative forty-eight watts.

  27. Maria

    That negative power means the source delivers forty-eight watts. The resistor absorption and source delivery balance, so total power is zero. It’s a useful check once we’ve found voltages and currents.

  28. Hope

    Let’s take on the larger circuit. There are three non-ground nodes. A ten-amp source pushes upward into node one, and a four-amp source pushes upward into node three. A four-ohm resistor joins nodes one and two; a twenty-ohm resistor joins nodes two and three; and a five-ohm resistor joins nodes one and three.

  29. Maria

    Then a ten-ohm resistor goes from node two to ground, and a sixteen-ohm resistor goes from node three to ground. At node one, the current leaving through the source branch is negative ten. The resistor currents leaving are V one minus V two over four, and V one minus V three over five.

  30. Hope

    So node one’s KCL equation is negative ten plus V one minus V two over four plus V one minus V three over five equals zero. The source pushes into node one, which is why its outward current is negative.

  31. Maria

    At node two, three currents leave: V two minus V one over four, V two over ten, and V two minus V three over twenty. Set their sum to zero. Notice that V two comes first in each numerator because we’re writing currents leaving node two.

  32. Hope

    At node three, the four-amp source current is negative four because the source pushes into the node. The other outward currents are V three over sixteen, V three minus V two over twenty, and V three minus V one over five. Add them and set the result to zero.

  33. Maria

    That gives three linear equations in three unknowns. Writing the equations correctly is the main skill; solving them is routine. The node voltages are approximately V one equals 109.3 volts, V two equals 80.3 volts, and V three equals 95.6 volts.

  34. Hope

    Those may look large, but the circuit has source currents of several amperes and resistors of several ohms to tens of ohms. The signs of the resistor currents tell us their actual directions. For the twenty-ohm resistor, the current from node two to node three is 80.3 minus 95.6 over twenty, about negative 0.77 amperes.

  35. Maria

    So the current actually flows from node three to node two. We never have to guess a current direction in advance: choose one, calculate it, and a negative answer tells you the real direction is opposite.

  36. Hope

    Check KCL at ground. The ten-ohm resistor carries about 8.03 amperes down to ground, and the sixteen-ohm resistor carries about 5.97 amperes down. Together they carry fourteen amperes, matching the ten plus four amperes pushed upward by the sources.

  37. Maria

    And check power. The ten-amp source has about 109.3 volts across it, with the positive terminal at the top. Its current entering the positive terminal is negative ten amperes, so it delivers about 1,093 watts. The four-amp source also delivers power; together the sources deliver about 1,475 watts, which the five resistors absorb.

  38. Hope

    Why didn’t we also write a ground equation? Add the three non-ground KCL equations. Each resistor current between two non-ground nodes appears once in each direction, so those terms cancel. What remains is ground’s KCL equation with every sign reversed, meaning it adds no new information.

  39. Maria

    That’s why a circuit with N nodes needs N minus one KCL equations for its N minus one unknown node voltages. And it also reminds us that ground is a bookkeeping choice, not a special physical property of the circuit.

  40. Hope

    For instance, if we chose node two as ground in the large example, every node voltage would shift by the same amount. Node one would be about 29 volts, node three about 15.3 volts, and the original bottom wire about negative 80.3 volts.

  41. Maria

    But every voltage difference stays the same. Therefore every current and every power stays the same too. Only potential differences are physically relevant.

  42. Hope

    Now let’s write a symbolic example. Imagine four nodes: node one on the left, node two in the middle, node three on the right, and the bottom wire as ground. A wire can join points at different heights, so that whole right-side wire is one node.

  43. Maria

    There are five resistors, R one through R five, and three current sources, I one through I three. 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; and R three and R four both go from node three to ground.

  44. Hope

    The other sources sit between non-ground nodes. I two pushes current from node three to node one along the top, and I three pushes current from node two to node three, just above R five.

  45. Maria

    At node one, the outward current through the I one branch is negative I one. Through R one it’s V one minus V two over R one. I two pushes into node one, so its outward current is negative I two. Set negative I one plus V one minus V two over R one minus I two equal to zero.

  46. Hope

    At node two, I three pushes current out, so that term is positive I three. The resistor currents leaving are V two over R two, V two minus V three over R five, and V two minus V one over R one. Add those terms and I three, and set the sum to zero.

  47. Maria

    At node three, the resistor currents leaving are V three over R four, V three over R three, and V three minus V two over R five. I three pushes current into node three, so it contributes negative I three. I two leaves node three, so it contributes positive I two.

  48. Hope

    Here’s a reliable current-source sign rule: if the source arrow points out of the node you’re writing KCL for, add its current. If it points into that node, subtract it. Don’t give an ideal current source an Ohm’s law term; its current is already specified.

  49. Maria

    Once written, the three equations can be arranged as a matrix equation: G times V equals I in. V is the column of unknown voltages V one, V two, and V three. Each row of G contains the coefficients from one node’s KCL equation, and I in is the column of known net source currents pushed into each node.

  50. Hope

    The entries of G are conductances. Conductance is one over resistance, written G, and its unit is the siemens, with symbol S. It’s also called the mho—ohm spelled backward—with a symbol that looks like an upside-down omega.

  51. Maria

    There’s a pattern to the conductance matrix. Each diagonal entry is the sum of the conductances connected to that node. Each off-diagonal entry is the negative of the conductance directly connecting that pair of nodes.

  52. Hope

    For example, in the symbolic circuit, node one is connected by R one to node two, but no resistor connects it directly to node three. So row one has one over R one as the V one coefficient, negative one over R one as the V two coefficient, and zero as the V three coefficient.

  53. Maria

    The matrix is symmetric: the entry for nodes one and two matches the entry for nodes two and one, because the same resistor connects those nodes from either viewpoint. In the earlier numeric circuit, node one’s diagonal conductance is one quarter plus one fifth, and the node-one-to-node-two entry is negative one quarter.

  54. Hope

    In that numeric example, the sources push net currents of ten, zero, and four amperes into nodes one, two, and three. That’s the right-hand-side current vector.

  55. Maria

    A quick count question: if a circuit has six nodes, how many node voltages and KCL equations does nodal analysis need? Choose one node as ground, leaving five node voltages and five equations. The conductance matrix is five by five.

  56. Hope

    The matrix form also makes linearity easy to see. Suppose a circuit has the same resistors, and its three current sources are two, three, and six amperes. If its solved node voltages are ten, twenty, and forty volts, what happens if every source is doubled?

  57. Maria

    G doesn’t change, because the resistors haven’t changed. The input current vector doubles, so the voltage vector doubles too: twenty, forty, and eighty volts. Every current doubles as well.

  58. Hope

    That’s the signature of a linear circuit. Circuits made only of resistors that obey Ohm’s law and ideal sources are linear: scaling every source by a factor scales every voltage and current by that same factor.

  59. Maria

    So if both current sources in the first large example are tripled, from ten and four amperes to thirty and twelve, V two triples from about 80.3 volts to about 241 volts. There’s no need to solve the whole system again.

  60. Hope

    Let’s do a rapid practice round. First: a bottom wire has four solder dots. How many nodes is that wire? One, because the whole uninterrupted wire has the same potential.

  61. Maria

    Second: four outward currents are four amperes, negative one ampere, negative six amperes, and I. The equation is four minus one minus six plus I equals zero, so I is three amperes.

  62. Hope

    Third: a five-ohm resistor joins A at twelve volts and B at two volts. The current from B to A is B minus A over five: two minus twelve over five, or negative two amperes. So two amperes really flow from A to B.

  63. Maria

    Fourth: a circuit has seven nodes. It needs six KCL equations, one for each node other than the chosen ground.

  64. Hope

    Fifth: a three-amp source pushes current into a node, and six-ohm and three-ohm resistors connect that node to ground. KCL gives negative three plus V over six plus V over three equals zero. The conductances add to one half siemens, so V is six volts.

  65. Maria

    Sixth: the conductance of a four-ohm resistor is one over four ohm, or 0.25 siemens.

  66. Hope

    Seventh: reverse every current source in a resistor-and-current-source circuit. Every source current changes sign, so the input vector is multiplied by negative one. By linearity, every node voltage changes sign too.

  67. Maria

    And eighth: a ten-volt node connects through a two-ohm resistor to a four-volt node, and through a five-ohm resistor to ground. The currents leaving the ten-volt node are ten minus four over two, which is three amperes, and ten over five, which is two amperes. Total: five amperes.

  68. Hope

    Let’s bring the recipe together. Identify the nodes, treating each uninterrupted wire as one node. Choose one node as ground, label the other node voltages, and write KCL at every non-ground node.

  69. Maria

    For each resistor current, put the voltage at the node you’re leaving first, subtract the voltage at the node you’re heading toward, and divide by resistance. For each current source, use its arrow to decide whether its current enters or leaves the node.

  70. Hope

    Solve the resulting N minus one equations for N minus one node voltages. Then use Ohm’s law for resistor currents and voltage-current relationships for power, checking that KCL and the power balance make sense.

  71. Maria

    And remember the big ideas: the reference ground is chosen for convenience; only voltage differences matter; and in a linear resistor circuit, scaling all the sources scales all the voltages and currents.

  72. Hope

    Today we focused on current sources. What if a voltage source sits between two nodes, where its current isn’t known in advance? That’s where the next lesson’s supernode and a method based on KVL come in. We’ll also meet mesh analysis.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent