Sub topic 9
Dependent Sources Stay in the Circuit
This chapter assumes you can write KCL and KVL equations, use Ohm's law, and apply the superposition procedure for independent sources from the earlier chapters. It also assumes you know the four dependent source types: VCVS, VCCS, CCVS and CCCS. Here you will learn how superposition treats a source whose value depends on another voltage or current in the circuit.
Why dependent sources need a separate rule
An independent source sets its own value and is an input to the circuit. A dependent source sets its value as a multiple of a control variable, which is a voltage or current somewhere else in the circuit. Examples are Id = 0.1·Vx or Vd = 3·Ix.
Superposition turns off independent sources one at a time. Dependent sources are not inputs, so they are never turned off. They are part of the circuit's structure, in the same way a resistor is. A dependent source behaves like a resistor whose effective value depends on the control variable. It adds energy only when something else drives the control variable.
Two facts justify this rule:
- A dependent source has a value that is a linear function of the control variable. This makes the whole circuit linear, so superposition applies.
- With every independent source turned off, all voltages and currents in the circuit are zero. The control variable is then zero and the dependent source output is zero as well. No separate "dependent source only" case exists.
The rule
In each single-source case:
- Keep exactly one independent source active.
- Replace every other independent voltage source with a short circuit and every other independent current source with an open circuit.
- Leave every dependent source in place, with its original gain and polarity.
- Solve the circuit. Treat the control variable as an unknown of this case. Its value is whatever it is when only this one source is active.
- Add the partial results, including the sign of each.
| Element | In each single-source case |
|---|---|
| Independent voltage source (inactive) | Replace with a short circuit |
| Independent current source (inactive) | Replace with an open circuit |
| Independent source (the active one) | Keep at its full value |
| Dependent voltage or current source | Keep, with its original gain |
| Control variable | Recompute in this case |
The last row is the main source of errors. The control variable is itself a response of the circuit, so it has a partial value in each case. The values for the separate cases add up to the full value, as with any other voltage or current.
Worked example
Take a circuit with these elements:
- A 10 V source
V1in series withR1 = 5 Ωfeeds node A. R2 = 10 Ωconnects node A to ground.- An independent current source
I1 = 2 Ainjects current into node A. - A dependent current source injects
Id = 0.1·Vxinto node A, whereVx = V1 − VAis the voltage acrossR1(positive at theV1side). The gain 0.1 has units of siemens (A/V).
We want VA. First we solve the full circuit with nodal analysis, to have a reference answer.
KCL at node A, with currents leaving the node on the left and currents entering on the right:
(VA − 10)/5 + VA/10 = 2 + 0.1·(10 − VA)
Expanding gives 0.2·VA − 2 + 0.1·VA = 2 + 1 − 0.1·VA, so 0.4·VA = 5 and VA = 12.5 V. The control voltage is Vx = 10 − 12.5 = −2.5 V.
Case 1: only V1 active
I1 becomes an open circuit. The dependent source stays.
(VA′ − 10)/5 + VA′/10 = 0.1·(10 − VA′)
0.2·VA′ − 2 + 0.1·VA′ = 1 − 0.1·VA′, so 0.4·VA′ = 3 and VA′ = 7.5 V.
The control voltage in this case is Vx′ = 10 − 7.5 = 2.5 V, and the dependent source injects 0.25 A.
Case 2: only I1 active
V1 becomes a short circuit, so the left end of R1 is at 0 V and Vx″ = 0 − VA″ = −VA″.
VA″/5 + VA″/10 = 2 + 0.1·(−VA″)
0.3·VA″ + 0.1·VA″ = 2, so VA″ = 5 V.
The control voltage here is Vx″ = −5 V, and the dependent source injects −0.5 A. It pulls current out of node A in this case.
Combine
VA = 7.5 + 5 = 12.5 V, which matches nodal analysis. The control variable also adds up: 2.5 + (−5) = −2.5 V. The dependent source current adds up too: 0.25 + (−0.5) = −0.25 A.
The control variable took different values and different signs in the two cases. That is expected, and it is why you must recompute it each time instead of copying a value from one case to the next.
Checking with code
The function below solves the node equation with a flag for each independent source. It also reproduces the common error described in the next section. Setting k=0 removes the dependent source.
import math
R1 = 5.0 # ohms
R2 = 10.0 # ohms
K = 0.1 # siemens, Id = K * Vx, Vx = V1 - VA
def node_a(v1, i1, k=K):
"""Voltage at node A.
KCL at A: (VA - v1)/R1 + VA/R2 = i1 + k*(v1 - VA)
"""
a = 1 / R1 + 1 / R2 + k
b = v1 / R1 + i1 + k * v1
return b / a
# Full circuit (reference)
va_full = node_a(10.0, 2.0)
# Correct superposition: dependent source stays in both cases
va_v1 = node_a(10.0, 0.0) # I1 open
va_i1 = node_a(0.0, 2.0) # V1 shorted
va_sum = va_v1 + va_i1
assert math.isclose(va_sum, va_full)
# Control variable also superposes
vx_v1 = 10.0 - va_v1
vx_i1 = 0.0 - va_i1
assert math.isclose(vx_v1 + vx_i1, 10.0 - va_full)
# Common error: dependent source deleted in each case
wrong = node_a(10.0, 0.0, k=0.0) + node_a(0.0, 2.0, k=0.0)
print(round(va_v1, 3), round(va_i1, 3), round(va_sum, 3))
print("wrong:", round(wrong, 3))The output is 7.5 5.0 12.5 and then wrong: 13.333. The wrong sum differs from the true answer by about 0.83 V.
A SPICE netlist of the full circuit gives the same check. In the G element, current flows from the first node through the source to the second node. So G 0 a n1 a 0.1 injects 0.1·(V(n1) − V(a)) into node a.
* Superposition with a dependent source
V1 n1 0 DC 10
R1 n1 a 5
R2 a 0 10
I1 0 a DC 2
G1 0 a n1 a 0.1
.op
.endAn operating-point run should report V(a) = 12.5. To reproduce the partial cases, set I1 to DC 0 for case 1, which acts as an open circuit. For case 2, set V1 to DC 0, which acts as a short circuit. Leave G1 as it is in both runs, and you should get 7.5 V and 5 V.
Common errors
- Deleting the dependent source. The first error is to treat the dependent source like an inactive independent source and open or short it. The code above shows the result is 13.333 V instead of 12.5 V. The dependent source is part of the circuit, so removing it changes the circuit.
- Reusing the control variable from the full circuit. If you freeze
Vx = −2.5 Vfrom the full circuit and useId = −0.25 Ain both cases, you have replaced the dependent source by an independent one. That fixed value belongs to the combined circuit, not to either single-source case. - Wrong sign on the control variable. When
V1is shorted, the control voltageVx = V1 − VAbecomes−VA. Write the definition ofVxwith its reference direction before you start, and apply the same definition in every case. - Treating the dependent source as a third case. Do not run a case with "only the dependent source active". It has no energy of its own and gives zero response.
- Forgetting the sign when adding. A partial result can be negative. Keep the reference direction of the target variable the same in every case.
Edge cases
A hidden independent source. Suppose a dependent source is defined as Id = 0.1·Vx + 1 A. The constant 1 A term is an independent current source in parallel with a purely proportional dependent source. Split it into those two parts. The 1 A term gets its own single-source case, with its own turn-off rule, and 0.1·Vx stays in every case. Without this split, the circuit is affine, not linear in the independent sources, and superposition would give wrong totals.
A nonlinear dependent source. A source such as Id = 0.1·Vx² makes the circuit nonlinear. Superposition does not hold, whatever you do with the sources.
A control variable that depends on an inactive source. If the control variable is the current through a short-circuited voltage source branch, that current is not zero. For example, with V1 shorted, the current through the short is a legitimate unknown. Define the control variable as a branch current in the case circuit and solve for it, instead of assuming it is zero.
Target equal to the control variable. If the quantity you want is Vx itself, the same method applies. The answer is the sum of Vx′ and Vx″, as the example shows.
A circuit with only dependent sources. If no independent source is present, every voltage and current is zero unless the circuit is degenerate. The method has nothing to superpose.
Summary of the method
- Write the definition of the control variable, with its reference direction.
- For each independent source in turn, deactivate the others (short voltage sources, open current sources).
- Leave every dependent source in place.
- Solve for the target and, if needed, the control variable.
- Add the partial results with signs.
- Check against a nodal or mesh solution, or a simulator, when the numbers allow.
Exercise
In the worked circuit, change the dependent source gain from 0.1 S to 0.2 S and keep everything else. Use superposition to find VA, keeping the dependent source in both cases. What are the two partial values and the total?
Show answer
The KCL at node A is (VA − V1)/5 + VA/10 = I1 + 0.2·(V1 − VA), so the VA coefficient is 0.2 + 0.1 + 0.2 = 0.5. With only V1 (10 V) active, the right side is V1/5 + 0.2·V1 = 2 + 2 = 4, so VA′ = 4/0.5 = 8 V. With only I1 active, the right side is 2, so VA″ = 2/0.5 = 4 V. The total is 8 + 4 = 12 V. Check by nodal analysis on the full circuit: (2 + 2 + 2)/0.5 = 12 V.
Exercise
A student solves a circuit that contains a CCVS with Vd = 3·Ix. In the "current source only" case, she replaces the CCVS with a short circuit because "the voltage source is turned off". What is wrong with this, and what should she do?
Show answer
The CCVS is a dependent source, so it must not be turned off. Replacing it with a short circuit changes the circuit and gives a wrong partial result. She should keep the CCVS with its gain of 3 V/A, and define Ix with the same reference direction as before. In this case, Ix takes whatever value the circuit gives when only the current source is active, and the CCVS output is 3 times that value. She does the same in the other case, then adds the partial results.