Skip to content

Nodal analysis

Write the nodal equations of a circuit with current sources by inspection as G v = i, and solve them for the node voltages.

It opens on

Both current sources push charge into this circuit, 3 mA into node 1 and 4 mA into node 2. Is node 1 higher or lower in voltage than node 2?

Why it matters

Nodal analysis is the method behind SPICE and the one most exams ask first: pick a ground, write one KCL equation per remaining node and solve. Students lose marks on the signs of the coupling terms and on forgetting that a source current enters the equation's right side.

Good to know first

  • Ohm's law and conductance
  • KCL
  • solving two linear equations

Step by step

  1. Reference node and KCL in node voltages

    Choose a reference node, write each node's KCL in node voltages with the current in each resistor from Ohm's law, and solve the two equations.

    At node 1, 3 mA enters from the source, and the currents leaving are v₁ / 0.5 into the 500 Ω and (v₁ − v₂) / 1 into the 1 kΩ. So 3 = 2v₁ + (v₁ − v₂) = 3v₁ − v₂.

    3 = 3v₁ − v₂

    A common mix-up

    Current always flows from the node with the bigger source toward the other.

    In fact: Direction comes from the node voltages; here node 2 is higher, so current runs from node 2 to node 1 through the middle resistor.

  2. The matrix by inspection

    Write the nodal equations as G v = i directly from the circuit and solve a two-node system with Cramer's rule.

    Node 1 has 2 mS to ground and 1 mS to node 2, so its entry is 3. Node 2 has 1 mS and 1 mS, so its entry is 2. The coupling is −1 in both places.

    [3 −1; −1 2] [v₁; v₂] = [3; 4]

    A common mix-up

    The off-diagonal entries are positive like the diagonal ones.

    In fact: They carry a minus sign, since the coupled resistor's current leaves the other node; a missing minus is the commonest nodal slip.

  3. A third node

    Write the three-node conductance matrix by inspection for a circuit with three current sources, solve it by elimination, and check each node's KCL.

    Node 1 has 1 mS to ground and 1 mS to node 2, so its diagonal is 2. Node 2 has 1 + 1 + 2 = 4. Node 3 has 2 + 4 = 6. The couplings are −1 between nodes 1 and 2, and −2 between nodes 2 and 3.

    the matrix, diagonals 2, 4, 6

    A common mix-up

    A matrix of three nodes needs a different rule from two nodes.

    In fact: The rule is unchanged, only entries between nodes with no resistor are zero.

Try it

A 3 mA source feeds node 1. There is 1 kΩ from node 1 to ground, 1 kΩ between nodes 1 and 2, and 1 kΩ from node 2 to ground, with no source at node 2. Find v₂.Answer

1 V, with v₁ = 2 V

Hint: Node 2's currents leaving sum to zero

Node 1 has 2 mS to ground, 3 mS joins node 1 to node 2, and node 2 has 1 mS to ground. Write G.Answer

[5 −3; −3 4] mS

Hint: Add the conductances at each node

A 1 kΩ resistor is added from node 3 to ground in the circuit. Which entry of G changes, and to what?Answer

The (3, 3) entry, from 6 to 7 mS

Hint: a branch to ground changes only the diagonal

Write the same equation at node 2, where 4 mA enters and the currents leaving go through the 1 kΩ toward node 1 and the 1 kΩ to ground.Answer

4 = (v₂ − v₁) + v₂ = −v₁ + 2v₂

Suppose the 1 kΩ between the nodes became 2 kΩ, which is 0.5 mS. What is the matrix now?Answer

[2.5 −0.5; −0.5 1.5], the conductance 0.5 mS enters both diagonals and the couplings

Nodal analysis

30 minutes every month. No card.