Sub topic 12
Dependent Sources and the Extra Controlling-Variable Equation
This chapter assumes you can write mesh equations with KVL, put them in matrix form, and solve them. It also assumes you know how to find a branch current from mesh currents.
What a dependent source is
A dependent source is a voltage or current source whose value is set by another voltage or current in the circuit. Its value is a gain times a controlling variable. A current-controlled voltage source (CCVS) with gain 2 Ω gives 2·ix volts, where ix is some current elsewhere in the circuit.
Mesh analysis treats a dependent voltage source like an ordinary one when you write KVL, with one difference. Its value contains an unknown. You must replace that unknown with mesh currents before you can solve.
The procedure
- Write KVL for each mesh and treat the dependent source as if it were a normal source.
- Write the controlling variable in terms of mesh currents. For a branch current, this is a mesh current or a difference of two.
- Substitute that expression into the source term.
- Move all mesh-current terms to the left side and rebuild the matrix.
Worked example
Use two clockwise meshes. Mesh 1 has a 12 V source, R1 = 2 Ω and the shared R2 = 4 Ω. Mesh 2 has R2, R3 = 6 Ω and a CCVS that acts as a voltage rise of 2·ix in the direction of i2. The controlling current ix flows through R2 in the mesh 1 direction.
Mesh 1 contains no dependent source:
2·i1 + 4·(i1 − i2) = 12, so 6·i1 − 4·i2 = 12.
Mesh 2 gives 4·(i2 − i1) + 6·i2 = 2·ix. The controlling variable is ix = i1 − i2. Substitute it and collect terms:
−4·i1 + 10·i2 = 2·i1 − 2·i2, so −6·i1 + 12·i2 = 0.
Solving gives i1 = 2·i2, then 12·i2 − 4·i2 = 12. So i2 = 1.5 A and i1 = 3 A. The controlling current is ix = 1.5 A, and the dependent source supplies 3 V.
Solving it in code
The code below puts the substituted equations into a matrix. It then checks power balance, counting the dependent source as a power source.
import numpy as np
R1, R2, R3 = 2.0, 4.0, 6.0
V1 = 12.0
gain = 2.0 # CCVS value = gain * ix, with ix = i1 - i2
# Mesh 1: (R1 + R2) i1 - R2 i2 = V1
# Mesh 2: -R2 i1 + (R2 + R3) i2 - gain*(i1 - i2) = 0
A = np.array([[R1 + R2, -R2],
[-R2 - gain, R2 + R3 + gain]])
b = np.array([V1, 0.0])
i1, i2 = np.linalg.solve(A, b)
ix = i1 - i2
print(f"i1 = {i1:.4f} A, i2 = {i2:.4f} A, ix = {ix:.4f} A")
p_resistors = R1 * i1**2 + R2 * ix**2 + R3 * i2**2
p_sources = V1 * i1 + gain * ix * i2
print(f"P_resistors = {p_resistors:.4f} W, P_sources = {p_sources:.4f} W")It prints i1 = 3.0000 A, i2 = 1.5000 A, ix = 1.5000 A. Both power totals are 40.5 W. The independent source delivers 36 W and the dependent source delivers 4.5 W.
Common errors
- Forgetting the extra equation. The controlling variable is another unknown, so you must express it with mesh currents. Leaving
ixin the equation gives more unknowns than equations. - Wrong sign on the source. Check whether the dependent source is a rise or a drop along your mesh direction before you write its term.
- Moving the term without flipping its sign. A term that sits on the right side changes sign when you move it to the left.
- Treating the source as a fixed value. The source is not 2 V. Its value is
2·ix, which is 3 V in this circuit.
Exercise
In the worked example, change the CCVS gain from 2 Ω to 3 Ω. Find i1 and i2.
Show answer
Mesh 2 becomes −4·i1 + 10·i2 = 3·(i1 − i2), so −7·i1 + 13·i2 = 0 and i1 = (13/7)·i2. Mesh 1 gives 6·i1 − 4·i2 = 12. Substituting gives (78/7 − 28/7)·i2 = 12, so i2 = 1.68 A and i1 = 3.12 A.