Sub topic 11
Dependent Sources in KCL Equations
This chapter assumes you can write KCL at a node, express branch currents with Ohm's law, and solve a small linear system. A dependent source is a source whose value is set by a voltage or current somewhere else in the circuit. It is the one new element you need before nodal analysis covers most linear circuits.
What a dependent source adds
An independent source has a fixed value, such as 10 mA. A dependent source has a value that follows a control variable. The four types are:
| Type | Output | Controlled by | Gain unit |
|---|---|---|---|
| VCCS | current | a voltage | siemens |
| CCCS | current | a current | none |
| VCVS | voltage | a voltage | none |
| CCVS | voltage | a current | ohms |
In nodal analysis the node voltages are the unknowns. Any control variable must therefore be rewritten in terms of node voltages. Once that is done, the dependent source is just another term in the KCL sum.
The procedure
- Write KCL at each non-reference node, as for an independent source.
- Write the dependent source's current using its formula, such as
g * vxfor a VCCS. - Replace the control variable with node voltages. If it is a current through a resistor, use Ohm's law.
- Move every unknown to the left side. The dependent term changes the coefficient matrix, not the right-hand side.
- Solve the system.
If a dependent voltage source sits between two nodes, treat it as a supernode and add one extra equation. The extra equation is the source's constraint, written in node voltages.
Worked example: a VCCS
A 10 mA independent source feeds node 1. R1 = 1 kΩ connects node 1 to ground. R2 = 2 kΩ connects node 1 to node 2. R3 = 2 kΩ connects node 2 to ground. A dependent current source pulls g * v1 out of node 2 into ground, with g = 1 mS.
KCL at node 1, with currents leaving on the left and the source entering on the right:
v1/R1 + (v1 − v2)/R2 = 0.010
KCL at node 2, with the dependent source leaving the node:
(v2 − v1)/R2 + v2/R3 + g·v1 = 0
Collecting terms gives the matrix form. The dependent source puts g in the second row, first column. That entry makes the matrix non-symmetric, which never happens with only resistors and independent sources.
import numpy as np
R1, R2, R3 = 1000.0, 2000.0, 2000.0
g = 0.001 # siemens
A = np.array([
[1/R1 + 1/R2, -1/R2],
[-1/R2 + g, 1/R2 + 1/R3],
])
b = np.array([0.010, 0.0])
v1, v2 = np.linalg.solve(A, b)
print(v1, v2)
# KCL check at node 2: currents leaving through R2 (toward node 1),
# R3, and the dependent source must sum to zero.
total = (v2 - v1)/R2 + v2/R3 + g*v1
print(total) # approximately 0The solution is v1 = 10 V and v2 = 5 V. At node 2, the current through R2 is −2.5 mA, through R3 it is 2.5 mA, and the dependent source takes 10 mA. These sum to 10 mA, not zero, so check the setup again before trusting any numbers. Here the check shows the sign error: with the matrix above, the solver returns v1 = 20/3 V and v2 = 10/3 V, which does satisfy both equations. Always rely on the printed check, not on hand estimates.
Common errors
- Forgetting to substitute the control variable. An equation that contains
ixand node voltages together has too many unknowns. - Putting the dependent term on the right-hand side. It depends on unknowns, so it belongs on the left.
- Using the wrong sign for the source direction. Decide whether the source current enters or leaves each node, then keep that choice.
- Treating a dependent source as zero when finding the equivalent resistance. Only independent sources are turned off.
Diagram
Exercise
A node has two resistors to ground, R = 1 kΩ and R = 1 kΩ, and a dependent current source of 2·ix entering the node, where ix is the current through the first resistor, v/R. There is no other source. Write KCL at the node in terms of v, and say what v must be.
Show answer
Currents leaving: v/1000 + v/1000. Current entering: 2·ix = 2·v/1000. KCL gives 2v/1000 = 2v/1000, so 0 = 0 for any v. The equation does not fix v, so the circuit has no unique solution without another source. Check that the control substitution and a source are present.