Thevenin Equivalents with Dependent Sources and from Measurements
The output of an amplifier, a regulator or a sensor interface is a network full of transistors, which in a linear model are dependent sources. Shorting the supplies and combining resistors gives the wrong output resistance for such a network, sometimes wildly wrong, because the dependent sources react to whatever you connect. And often you cannot see inside at all: a battery, a module or a lab instrument is a black box. This lesson finds Thevenin equivalents in both situations: with a test source when you have the schematic, and from two load measurements when you only have terminals.
Why source deactivation fails
Thevenin and Norton Equivalents found by turning off the independent sources and reducing resistors. A dependent source cannot be turned off: it is part of the network's behaviour. When you push a current into the terminals, its control variable changes and it pushes back, which changes the resistance you see. Two methods always work:
- , from the open-circuit voltage and short-circuit current with all sources active;
- the test source: set the independent sources to zero, apply at the terminals, compute the current it delivers, . If the network has no independent sources, and this is the only way.
Worked example: a network with a VCCS
Given: , , , , and a VCCS that draws from terminal a to ground, , where is the voltage of node x.
Find: and at a-b, by the test source, and check with .
Solve (units , mA, V, mS). Open circuit: the only path for the VCCS current is through , so carries from x to a. KCL at x:
Test source, : KCL at x gives , so . The test source delivers the current through plus the VCCS current:
Check: short circuit, : gives , so and . Naive deactivation (ignoring the VCCS) would have given : 50 % too high.
In Python: both routes with SymPy
SymPy solves the KCL equations symbolically, so the result shows how depends on .
import sympy as sp
vx, va, vt, gm = sp.symbols("v_x v_a v_t g_m")
R1, R2, R3, VS = 3, 6, 1, 12 # kOhm, V
# open circuit: KCL at x and at a (R3 current x->a equals the VCCS current a->0)
sol = sp.solve([(vx - VS)/R1 + vx/R2 + (vx - va)/R3,
(va - vx)/R3 + gm*vx], [vx, va], dict=True)[0]
Voc = sp.simplify(sol[va])
# test source with VS = 0: v_a = v_t, find the current it delivers
vx_t = sp.solve(vx/R1 + vx/R2 + (vx - vt)/R3, vx)[0]
it = (vt - vx_t)/R3 + gm*vx_t
Rth = sp.simplify(vt/it)
print("V_Th(gm) =", Voc)
print("R_Th(gm) =", Rth)
g = sp.Rational(1, 4)
print("at gm = 0.25 mS: V_Th =", Voc.subs(gm, g), "V, R_Th =", Rth.subs(gm, g), "kOhm")
print("at gm = 0 (no dependent source): R_Th =", Rth.subs(gm, 0), "kOhm")V_Th(gm) = 8*(1 - g_m)/(2*g_m + 1)
R_Th(gm) = 3/(2*g_m + 1)
at gm = 0.25 mS: V_Th = 4 V, R_Th = 2 kOhm
at gm = 0 (no dependent source): R_Th = 3 kOhm
With the formulas fall back to the passive network ( from the divider, ). As grows, the VCCS pulls harder on terminal a for every volt at x and shrinks: a dependent source can make an output stiffer than its resistors suggest, which is how feedback lowers an amplifier's output resistance.
Cross-check with SPICE
A test source at a with measures directly; then the same deck without the VCCS.
cat > rth.cir <<'EOF'
* Test source at terminal a, VS set to 0
VS s 0 DC 0
R1 s x 3k
R2 x 0 6k
R3 x a 1k
G1 a 0 x 0 0.25m
Vt a 0 DC 1
.control
op
print i(Vt)
.endc
.end
EOF
ngspice -b rth.cir 2>&1 | grep -E '^i\('
sed '/^G1/d' rth.cir > rth0.cir
ngspice -b rth0.cir 2>&1 | grep -E '^i\('i(vt) = -5.00000e-04
i(vt) = -3.33333e-04
With the VCCS, drives out of the test source (negative in SPICE's convention): . Without it, : . G1 a 0 x 0 0.25m is ngspice's VCCS: flows from a through the source to ground.
Thevenin from two load measurements
For a black box, connect two known loads and and measure the terminal voltage each time, and ; the currents are . Both points lie on the line :
This needs no short circuit, so it is safe for batteries and supplies. The result is most accurate when the two currents differ a lot, because comes from a difference of two nearly equal voltages. With more than two loads, fit the line by least squares (Least Squares).
import numpy as np
# Two-load method on the network above (V_Th = 4 V, R_Th = 2 kOhm), with ideal readings
RL1, RL2 = 1.0, 6.0 # kOhm
V1, V2 = 4 * RL1 / (2 + RL1), 4 * RL2 / (2 + RL2) # V
I1, I2 = V1 / RL1, V2 / RL2 # mA
Rth = (V2 - V1) / (I1 - I2)
print(f"V1 = {V1:.4f} V at {I1:.4f} mA, V2 = {V2:.4f} V at {I2:.4f} mA")
print(f"R_Th = {Rth:.4f} kOhm, V_Th = {V1 + I1 * Rth:.4f} V")
# An assumed 4xAA pack (6.20 V, 0.80 ohm) read with +-1 mV meter noise
rng = np.random.default_rng(7)
Vth_true, Rth_true = 6.20, 0.80
loads = np.array([1000, 220, 100, 68, 47, 33.0]) # ohm
v = Vth_true * loads / (Rth_true + loads) + rng.normal(0, 0.001, loads.size)
i = v / loads
r2 = (v[-1] - v[0]) / (i[0] - i[-1])
A = np.column_stack([np.ones_like(i), -i])
(vt_fit, rt_fit), *_ = np.linalg.lstsq(A, v, rcond=None)
print(f"two loads (1000 and 33 ohm): R_Th = {r2:.3f} ohm, V_Th = {v[0] + i[0] * r2:.4f} V")
print(f"least squares, six loads: R_Th = {rt_fit:.3f} ohm, V_Th = {vt_fit:.4f} V")V1 = 1.3333 V at 1.3333 mA, V2 = 3.0000 V at 0.5000 mA
R_Th = 2.0000 kOhm, V_Th = 4.0000 V
two loads (1000 and 33 ohm): R_Th = 0.806 ohm, V_Th = 6.2000 V
least squares, six loads: R_Th = 0.806 ohm, V_Th = 6.2001 V
With ideal readings the two-load method returns the network's and exactly. With of noise on the battery readings, the widely spaced loads still land within about 1 % of the assumed ; the least-squares fit uses all six readings and is less exposed to one bad point.
Interactive: load the dependent network
Slide . At the lab reads , half of ; at , . Then slide the gain of G1 toward zero and watch the readings move toward those of the passive network ( behind ).
Guided lab: the internal resistance of a battery pack
Hand calculation. Four fresh AA alkaline cells in series read roughly to open-circuit, with a total internal resistance of roughly to (Energizer's technical bulletin on internal resistance gives about 150 to 300 m for a fresh alkaline cylindrical cell, measured with a 100 ms pulse; the value depends on brand, temperature and state of charge). With , a load drops the terminal voltage by about .
Simulation. The Python fit above, with your own load values.
What you would measure. Read the open-circuit voltage, then the voltage with a (1 W) and a (2 W or more) load connected briefly (a few seconds each, so the cells do not warm up and recover). Use a meter with at least 1 mV resolution on the 6 V range, measuring at the battery terminals with the load wired separately (four-wire style), so lead resistance is not counted. Expect a difference of about between the two loaded readings, so per reading alone gives an uncertainty of a few percent; drift as the cells recover usually adds more, and the answer changes with load current and time. Repeat each reading three times.
Hazards and safe setup. Low voltage, but a battery pack can deliver amps into a short: never short it to measure . Check the load resistors' power: at is . Do not use lithium cells for this experiment. Disconnect loads between readings.
Pitfalls
- Deactivating dependent sources. Never; only independent sources are set to zero.
- A network with only dependent sources has and still a non-trivial ; it needs a test source.
- Negative . Possible with dependent sources (the network can deliver power when pushed), and a sign that a load could make the circuit unstable.
- Two loads that are too similar. then comes from the difference of two almost equal readings and the error explodes.
- Batteries are not linear. Their internal resistance changes with current, charge and temperature; a Thevenin model holds near the operating point where it was measured.
Practice
- Repeat the worked example with : find and .
- A module reads with and with . Find its Thevenin equivalent.
- A network contains only resistors and a CCVS. What is its , and how do you find ?
Answer
- , .
- , ; ; .
- (no independent source). Apply a test voltage , compute , .
Test yourself
To find of a network with a dependent source using a test source, you…
- deactivate all sources including the dependent one
- set independent sources to zero, keep the dependent source, apply and compute
- short the output and measure the current
- add the resistances in series
In the example, naive deactivation gives and the test source . Which is right?
- both, at different loads
- neither
A source reads 9.0 V with a 900 ohm load and 8.0 V with a 400 ohm load. Its Thevenin resistance is…
Why is the two-load method preferred to a short-circuit test for a battery?
- it is more accurate
- a short circuit can deliver a dangerous current and heat the battery
- batteries have no Thevenin equivalent
- the short-circuit current is always zero