ENع
←Nodal analysis
Lesson 08 · Systematic analysis

Nodal analysis

15 min11 steps5 questionsIntermediate
About this lesson

Nodal analysis turns any linear circuit into a small set of equations whose unknowns are node voltages. Follow one circuit, a 12 V source, a 1 mA current source and four resistors: choose a reference node, name the unknown node voltages v1 and v2, write KCL at each node with Ohm's law, and collect the result as G·v = i. Solving gives v1 = 8 V and v2 = 6 V, every branch current follows, and KCL and the power balance check the answer. It builds on Kirchhoff's current law and the Hardware lessons on Ohm's law and series and parallel circuits.

You'll learn to

Tick what you feel confident about. These self-checks do not affect your lesson score.

Fig 8 · Interactive
01 / 11

Unknowns are node voltages

Nodal analysis solves a circuit by finding a few node voltages. Everything else follows from them. Our circuit has a 12 V source, a 1 mA current source and four resistors. Its wires make four nodes.

node   a point where two or more elements meet
       (all wire joined to it is one node)

nodes here
  top left    between the source and R1
  node 1      R1, R2 and R3 meet
  node 2      R3, R4 and the current source
  bottom      the long bottom wire

nodal analysis: KCL at each unknown node,
every current written with node voltages.
Loading figure…
or ← →
Read the lesson step by step
  1. Unknowns are node voltages

    Nodal analysis solves a circuit by finding a few node voltages. Everything else follows from them. Our circuit has a 12 V source, a 1 mA current source and four resistors. Its wires make four nodes.

    node   a point where two or more elements meet
           (all wire joined to it is one node)
    
    nodes here
      top left    between the source and R1
      node 1      R1, R2 and R3 meet
      node 2      R3, R4 and the current source
      bottom      the long bottom wire
    
    nodal analysis: KCL at each unknown node,
    every current written with node voltages.
  2. Pick a reference node

    First, choose one node as the reference and call it 0 V. Every other node voltage is measured from it. We pick the bottom wire: it touches the most parts. The ground symbol marks it.

    reference node   the 0 V node (ground)
    
    any node works, the answers for currents
    do not change. Choosing the node with the
    most connections keeps the equations short.
    
    node voltage v1 = voltage of node 1
    measured from the reference: + at node 1.
  3. Name the unknowns

    Next, name every other node. The top-left node is held at 12 V by the source, so it is already known. That leaves two unknowns: v1 at node 1 and v2 at node 2. Two unknowns need two equations.

    nodes                4
    reference            1   (0 V)
    known from a source  1   (12 V)
    unknown              2   v1, v2
    
    A circuit with N nodes has at most
    N − 1 unknown node voltages. A voltage
    source to the reference removes one.
  4. Currents from node voltages

    Every resistor current can be written with node voltages. The current through R3 from node 1 to node 2 is (v1 − v2)/R3: the voltage at the start minus the voltage at the end, over the resistance.

    Ohm's law across one resistor
    
      i = (v_from − v_to) / R
    
      R3, node 1 → node 2:  (v1 − v2) / 2 kΩ
      R2, node 1 → ref:     (v1 − 0)  / 8 kΩ
      R1, node 1 → source:  (v1 − 12) / 2 kΩ
    
    If the answer is negative, the current
    flows the other way.
  5. KCL at node 1

    Now apply KCL at node 1: the currents leaving add to zero. (v1 − 12)/2k + v1/8k + (v1 − v2)/2k = 0. Multiply every term by 8 kΩ to clear the fractions: 9v1 − 4v2 = 48.

    KCL at node 1, leaving currents positive
    
      (v1 − 12)/2k + v1/8k + (v1 − v2)/2k = 0
    
    × 8 kΩ:
      4(v1 − 12) + v1 + 4(v1 − v2) = 0
      4v1 − 48 + v1 + 4v1 − 4v2   = 0
      9v1 − 4v2 = 48
  6. KCL at node 2

    Then KCL at node 2. Currents leave through R3 and R4, and the current source pushes 1 mA in, so it counts as minus. (v2 − v1)/2k + v2/3k − 1 mA = 0. Times 6 kΩ: −3v1 + 5v2 = 6.

    KCL at node 2, leaving currents positive
    
      (v2 − v1)/2k + v2/3k − 1 mA = 0
    
    × 6 kΩ  (kΩ × mA = V):
      3(v2 − v1) + 2v2 − 6 = 0
      −3v1 + 5v2 = 6
    
    A current source gives its value directly:
    no resistor, no Ohm's law needed.
  7. Two equations, one matrix

    Write both equations as G·v = i. The diagonal of G holds the total conductance at each node. The other entries hold minus the conductance joining the two nodes. The right side holds the source currents pushed in.

    G·v = i   (conductance G = 1/R, 1 mS = 1/kΩ)
    
      [ 1.125  −0.5 ] [v1]   [6]
      [ −0.5  0.833 ] [v2] = [1]
         mS                 mA
    
    G11 = 1/2k + 1/8k + 1/2k = 1.125 mS
    G22 = 1/2k + 1/3k        = 0.833 mS
    G12 = G21 = −1/2k        = −0.5 mS
    right side: row 1 12 V / 2 kΩ = 6 mA
                row 2 Is = 1 mA
  8. Solve for v1 and v2

    Solve the pair with Cramer's rule. The determinant is 9·5 − 4·3 = 33. Then v1 = 264/33 = 8 V and v2 = 198/33 = 6 V. These two numbers fix every voltage in the circuit.

      9v1 − 4v2 = 48
      −3v1 + 5v2 = 6
    
    det = 9·5 − (−4)(−3) = 33
    v1  = (48·5 − (−4)·6) / 33 = 264/33 = 8 V
    v2  = (9·6 − (−3)·48) / 33 = 198/33 = 6 V
    
    check node 1: 9·8 − 4·6 = 48  ✓
  9. Every current follows

    With the node voltages known, Ohm's law gives each current. i1 = (12 − 8)/2k = 2 mA, i2 = 8/8k = 1 mA, i3 = (8 − 6)/2k = 1 mA, i4 = 6/3k = 2 mA.

    i1  R1  (12 − 8) / 2 kΩ = 2 mA
    i2  R2  8 / 8 kΩ        = 1 mA
    i3  R3  (8 − 6) / 2 kΩ  = 1 mA
    i4  R4  6 / 3 kΩ        = 2 mA
    
    The dots move faster where more current
    flows: same spacing, more dots per second.
  10. Check the answer

    Always check. At node 2, 1 mA arrives through R3 and 1 mA from the source, and 2 mA leaves through R4: 1 + 1 = 2. Power balances too: the sources supply 30 mW and the resistors absorb 30 mW.

    KCL node 1:  2 = 1 + 1 mA  ✓
    KCL node 2:  1 + 1 = 2 mA  ✓
    
    power (passive sign convention)
      Vs supplies  12 × 2  = 24 mW
      Is supplies  6 × 1   = 6 mW
      R1 8 + R2 8 + R3 2 + R4 12 = 30 mW
      supplied 30 = absorbed 30  ✓
  11. Change the source

    Turn Is from 0 to 4 mA. Only the right side of G·v = i changes, so v1 and v2 move along straight lines. Above 3.2 mA, v2 is higher than v1, and the current in R3 reverses.

    Is      v1        v2        i3
    0 mA    7.27 V    4.36 V    1.45 mA
    1 mA    8 V       6 V       1 mA
    4 mA    10.18 V   10.91 V   −0.36 mA
    
    G depends only on the resistors. A linear
    circuit gives straight lines in each source.

Quiz Unlocks after the last step.