Sub topic 10
Dependent Sources in Nodal Analysis
This chapter assumes you can already write KCL equations at each node, assemble them as G v = i, and handle independent current sources and grounded voltage sources. Here you add dependent sources. These are sources whose value depends on a voltage or current elsewhere in the circuit.
What a dependent source is
A dependent (controlled) source is an ideal source whose output is set by a controlling variable, a voltage or current somewhere else in the circuit. Transistor and op-amp models use them constantly. There are four types:
| Type | Output | Controlled by | Gain unit |
|---|---|---|---|
| VCCS | current | a voltage | siemens (S) |
| CCCS | current | a current | dimensionless |
| VCVS | voltage | a voltage | dimensionless |
| CCVS | voltage | a current | ohm |
A dependent source has no fixed value, so it cannot go straight into the right-hand side vector i. Its value is a function of the unknowns. The method has three steps:
- Write the source's output in terms of the controlling variable.
- Express the controlling variable in terms of node voltages.
- Move every unknown term to the left side, so the equations are still linear in v.
Voltage-controlled current source (VCCS)
Take a 2 A independent source feeding node 1. Resistor R1 = 4 Ω connects node 1 to ground, R2 = 2 Ω connects node 1 to node 2, and R3 = 6 Ω connects node 2 to ground. A dependent source pushes current 0.25·V1 into node 2 from ground. The control is the node voltage V1, so step 2 is already done.
Use conductances g1 = 1/4 S, g2 = 1/2 S, g3 = 1/6 S.
Node 1:
(g1 + g2) V1 − g2 V2 = 2, which gives 0.75 V1 − 0.5 V2 = 2.
Node 2 (current into the node from the dependent source goes on the right):
−g2 V1 + (g2 + g3) V2 = 0.25 V1
Move 0.25 V1 to the left:
−0.75 V1 + (2/3) V2 = 0
In matrix form:
import numpy as np
G = np.array([[0.75, -0.50],
[-0.75, 2/3]])
i = np.array([2.0, 0.0])
print(np.linalg.solve(G, i)) # [10.66666667 12. ]So V1 = 32/3 V and V2 = 12 V.
Compare the second row with the usual pattern. Without the dependent source it would be [−0.5, 2/3]. The gain contributes −0.25 to the entry in column 1. The matrix is now not symmetric. A network of resistors and independent sources always gives a symmetric G. A VCCS breaks that symmetry, because the effect of node 1 on node 2 differs from the effect of node 2 on node 1.
Current-controlled current source (CCCS)
Now keep the same resistor network, but let the dependent source push 2·Ix into node 2, where Ix is the current through R2 from node 1 to node 2. The control is a branch current, so you must convert it to node voltages with Ohm's law:
Ix = g2 (V1 − V2) = 0.5 (V1 − V2)
Node 1 is unchanged: 0.75 V1 − 0.5 V2 = 2.
Node 2:
−0.5 V1 + (2/3) V2 = 2 · 0.5 (V1 − V2) = V1 − V2
Moving the right side to the left:
−1.5 V1 + (5/3) V2 = 0
Write this for a general gain β and check the result in code, including a KCL residual and a power balance:
import numpy as np
beta = 2.0
g1, g2, g3 = 1/4, 1/2, 1/6
G = np.array([[g1 + g2, -g2],
[-g2 - beta * g2, g2 + g3 + beta * g2]])
i = np.array([2.0, 0.0])
V1, V2 = np.linalg.solve(G, i)
print(V1, V2) # 6.666666666666667 6.0
Ix = g2 * (V1 - V2)
I_dep = beta * Ix
print(Ix, I_dep) # 0.3333333333333333 0.6666666666666666
# KCL residuals (should be ~0)
print(2 - (g1 * V1 + Ix)) # node 1
print(Ix + I_dep - g3 * V2) # node 2
# Power balance: delivered = absorbed
delivered = 2 * V1 + I_dep * V2 # both sources deliver power here
absorbed = g1 * V1**2 + g2 * (V1 - V2)**2 + g3 * V2**2
print(delivered, absorbed) # 17.33333333333333 17.33333333333333The result is V1 = 20/3 V, V2 = 6 V and Ix = 1/3 A. The power balance uses the dependent source like any other element. It delivers 4 W here because its current flows into node 2, which sits at +6 V, so current leaves the source's positive terminal. A dependent source can also absorb power, and it often does in amplifier models. Do not assume the sign. Compute it from the voltage across the source and the direction of its current.
Dependent voltage sources
A dependent voltage source constrains node voltages in the same way as an independent one. You can still choose between two routes, depending on where it sits.
One terminal grounded. The node voltage is known in terms of the control. For a VCVS with V2 = μ V1, there is no KCL equation to write at node 2. Instead you use the constraint V2 − μ V1 = 0 as that row. The KCL equation at node 2 is dropped, because the source supplies whatever current is needed. You can recover that current afterward from KCL at node 2.
Floating. Form a supernode as for an independent source. You write one KCL equation for the combined node pair, and one constraint equation for the source, such as Va − Vb = μ Vc. Replace the control with node voltages as before. For a CCVS, the control current must also be written as a node-voltage expression.
Pitfalls specific to dependent sources
- Do not turn dependent sources off. In superposition, you set independent sources to zero but you must leave dependent sources active. Their value is determined by the circuit, not by you. Nodal analysis with all sources included sidesteps this error.
- Keep the sign of the gain and the direction of the source arrow. A current source arrow points in the direction of positive current. If the arrow enters node 2, the contribution goes to the right of the node 2 equation with a plus sign before you move any terms.
- Move terms carefully. The most common error is forgetting to change sign when moving a dependent term across the equals sign. The gain contribution appears in the coefficient with opposite sign to what it had on the right.
- Watch for singular or nearly singular systems. Large gains can cancel the resistor terms. Replace the gain in the first example with 0.5 S, and the determinant becomes zero:
import numpy as np
G = np.array([[0.75, -0.50],
[-1.00, 2/3]])
print(np.linalg.det(G)) # approximately 0Row 2 is then a multiple of row 1 (in the V1 and V2 coefficients), while the right sides, 2 and 0, are inconsistent. The circuit equations contradict each other, so there is no solution. In a real circuit, this signals a modeling problem such as positive feedback with a gain too high for the passive network.
- Compute the control separately as a check. After solving, recompute the controlling variable from the node voltages and confirm that the dependent source's value equals gain × that value. Then run the KCL residual check from the previous chapter.
Summary of the method
- Choose the reference node and label the node voltages.
- For each dependent source, write its output as gain × control.
- Rewrite the control as a node-voltage expression.
- Write KCL at each node, or a constraint equation for each grounded voltage source or supernode.
- Collect all unknown terms on the left. Expect a non-symmetric G.
- Solve, then check with KCL and power balance.
Exercise
Using the first circuit in this chapter (2 A source into node 1, R1 = 4 Ω, R2 = 2 Ω, R3 = 6 Ω), the dependent source is changed to a VCCS pushing 0.1·V1 into node 2. Write the matrix G and find V1 and V2.
Show answer
Node 1 is unchanged: 0.75 V1 − 0.5 V2 = 2. Node 2: −0.5 V1 + (2/3) V2 = 0.1 V1, so −0.6 V1 + (2/3) V2 = 0. From the second equation, V2 = 0.9 V1. Substituting into node 1: 0.75 V1 − 0.45 V1 = 0.3 V1 = 2, so V1 = 20/3 V ≈ 6.667 V and V2 = 6 V. G = [[0.75, −0.5], [−0.6, 2/3]].
Exercise
In the CCCS circuit, the gain is changed to β = 1, so the dependent source pushes Ix into node 2. Find V1, V2, and the current of the dependent source.
Show answer
Ix = 0.5 (V1 − V2). Node 2: −0.5 V1 + (2/3) V2 = 0.5 (V1 − V2), so −V1 + (7/6) V2 = 0 and V2 = (6/7) V1. Node 1: 0.75 V1 − 0.5 · (6/7) V1 = (9/28) V1 = 2, so V1 = 56/9 ≈ 6.222 V and V2 = 48/9 ≈ 5.333 V. Then Ix = 0.5 · (8/9) = 4/9 A ≈ 0.444 A, which is also the dependent source's current because β = 1.
Exercise
Why does a circuit with a dependent current source usually produce a non-symmetric conductance matrix, and why does this not break the solution method?
Show answer
A resistor connecting nodes a and b adds the same conductance to entries (a, b) and (b, a), so resistor networks give symmetric matrices. A dependent source injects current at one node as a function of a voltage at another node, which changes only one of the two off-diagonal entries. The result is still a linear system G v = i, so np.linalg.solve or Gaussian elimination works unchanged. Only methods that require symmetry, such as Cholesky factorization, can no longer be used.