Sub topic 6
Circuits with Independent Current Sources
This chapter assumes you can write Kirchhoff's current law (KCL) at a node, convert a resistance to a conductance (G = 1/R), and solve a two-equation linear system. An independent current source is the easiest source to handle in nodal analysis, because it appears directly in the KCL equation as a known current.
How a current source enters the equation
An independent current source forces a fixed current through its branch, whatever the voltage across it. The current is known, so it needs no Ohm's law term. Write KCL at each non-reference node in this form:
sum of currents leaving through resistors = sum of source currents entering
For a node k, the left side is the node's own conductance sum times its voltage, minus each neighbor's conductance times that neighbor's voltage. The right side is the net source current pushed into the node. A source that pulls current out of the node counts as negative.
Worked example
A 2 A source feeds node 1. R1 = 4 Ω connects node 1 to ground. R2 = 2 Ω connects node 1 to node 2. R3 = 6 Ω connects node 2 to ground. Ground is the reference node.
The conductances are g1 = 1/4 S, g2 = 1/2 S and g3 = 1/6 S.
KCL at node 1:
(g1 + g2) V1 - g2 V2 = 2
KCL at node 2 has no source, so the right side is 0:
-g2 V1 + (g2 + g3) V2 = 0
Substituting the numbers:
0.75 V1 - 0.5 V2 = 2
-0.5 V1 + 0.6667 V2 = 0
The second equation gives V2 = 0.75 V1. Putting that into the first gives 0.375 V1 = 2, so V1 = 16/3 V (about 5.333 V) and V2 = 4 V.
The same system in matrix form is solved below.
import numpy as np
# A 2 A source feeds node 1.
# R1 = 4 ohm (node 1 to ground), R2 = 2 ohm (node 1 to node 2), R3 = 6 ohm (node 2 to ground).
g1, g2, g3 = 1/4, 1/2, 1/6
G = np.array([[g1 + g2, -g2],
[-g2, g2 + g3]])
i = np.array([2.0, 0.0])
v = np.linalg.solve(G, i)
print(v) # [5.33333333 4. ]Quick check
The source delivers 2 A × 5.333 V = 10.667 W. The resistors absorb these amounts:
- R1: 5.333² / 4 = 7.111 W
- R2: (1.333)² / 2 = 0.889 W
- R3: 4² / 6 = 2.667 W
These add up to 10.667 W, so the power balances.
Common errors
- Wrong sign on the source. If the arrow points away from the node, use -I on the right side. Check the arrow direction before you write the equation.
- Adding the source's series resistor to G. A resistor in series with an ideal current source does not change the branch current. It does not appear in the node's conductance sum, so leave it out of the equation.
- Putting a source across the right-hand side twice. A source between two non-reference nodes appears in two equations: plus in the node it enters, minus in the node it leaves.
- Using resistance instead of conductance. Mixing ohms and siemens in one row gives a matrix that looks plausible but is wrong. Convert every resistor first.
Exercise
A 3 A source feeds a single non-reference node. R1 = 2 Ω and R2 = 3 Ω both connect that node to ground. Find the node voltage.
Show answer
The conductances are 1/2 S and 1/3 S, so G = 5/6 S. KCL gives (5/6) V = 3, so V = 3.6 V. As a check, the two resistors carry 1.8 A and 1.2 A, which add to 3 A.