Sub topic 7
Deriving R_L = R_Th with calculus
This chapter assumes you can write the load power as a function of RL, as covered in the earlier chapters on the Thevenin equivalent and the power model. It also assumes you know basic differentiation: the quotient rule, setting a derivative to zero, and the second-derivative test. Here you derive the matching condition instead of accepting it from the power-versus-RL curve. You will also check it symbolically and see where the derivation stops applying.
The setup
A linear DC circuit seen from the load terminals reduces to a fixed voltage source VTh in series with a fixed resistance RTh. A variable load resistor RL connects across those terminals. The question is which RL makes the power in the load as large as possible.
The current is:
I = VTh / (RTh + R_L)
The load power is I squared times R_L:
P(RL) = VTh² · RL / (RTh + R_L)²
Two things are held constant: VTh and RTh. Only RL varies. This is why the result is called maximum power transfer to a variable load. The case where RTh varies and R_L is fixed gives a different answer, covered in a later chapter.
Checking the endpoints first
A maximum needs a function that rises and then falls. Check both ends of the range 0 ≤ R_L < ∞.
- At R_L = 0 the numerator is zero, so P = 0. The current is largest, but no voltage appears across the load.
- As RL → ∞ the denominator grows like RL². The numerator grows only like RL, so P → 0. The voltage across the load approaches VTh, but the current vanishes.
P is positive for every R_L > 0 and is zero at both ends. So P must have at least one interior maximum. Calculus finds where it is.
Step 1: Differentiate
Use the quotient rule on P = VTh² · f(RL), where f = RL / (RTh + R_L)².
Let u = RL, so u′ = 1. Let w = (RTh + RL)², so w′ = 2(RTh + R_L).
dP/dRL = VTh² · (u′w − u·w′) / w²
= VTh² · [(RTh + RL)² − 2RL(RTh + RL)] / (RTh + RL)⁴
Every term in the numerator contains a factor (RTh + RL). Cancel one from the top and bottom:
= VTh² · [(RTh + RL) − 2RL] / (RTh + RL)³
= VTh² · (RTh − RL) / (RTh + R_L)³
Step 2: Set the derivative to zero
The denominator (RTh + RL)³ is always positive and finite for RL ≥ 0. VTh² is positive for any real source with VTh ≠ 0. So the derivative is zero only when the factor (RTh − R_L) is zero:
RL = RTh
This is the only critical point on the range, so it is the only candidate for the maximum.
Step 3: Confirm it is a maximum
The factored derivative also shows the sign on each side of the critical point. The factor VTh² / (RTh + RL)³ is always positive, so the sign of dP/dRL is the sign of (RTh − RL).
| Region | Sign of R_Th − R_L | Sign of dP/dR_L | P is |
|---|---|---|---|
| R_L < R_Th | positive | positive | rising |
| R_L = R_Th | zero | zero | flat (peak) |
| R_L > R_Th | negative | negative | falling |
P rises up to RL = RTh and falls afterward, so that point is a maximum. It is the global maximum, because it is the only critical point and P is zero at both ends.
You can also use the second-derivative test. Differentiate dP/dRL = VTh² (RTh − RL)(RTh + RL)⁻³ with the product rule:
d²P/dRL² = VTh² · [−(RTh + RL)⁻³ − 3(RTh − RL)(RTh + RL)⁻⁴]
At RL = RTh the second term vanishes:
d²P/dRL² = −VTh² / (RTh + RTh)³ = −VTh² / (8 RTh³)
This is negative, so the curve is concave down at the critical point, which confirms a maximum.
Step 4: Substitute back for the maximum power
Put RL = RTh into P:
Pmax = VTh² · RTh / (2RTh)² = VTh² · RTh / (4R_Th²)
Pmax = VTh² / (4 R_Th)
For VTh = 12 V and RTh = 4 Ω, this gives 144 / 16 = 9 W. That matches the table of values from the earlier chapter.
Checking the algebra with SymPy
Quotient-rule algebra is easy to get wrong by one factor of 2. A computer algebra system confirms each step. This script differentiates P, solves for the critical point, tests the second derivative, and substitutes back.
import sympy as sp
v, r_th, r_l = sp.symbols('v r_th r_l', positive=True)
p = v**2 * r_l / (r_th + r_l)**2
dp = sp.factor(sp.diff(p, r_l))
print(dp) # equivalent to v**2*(r_th - r_l)/(r_th + r_l)**3
solutions = sp.solve(sp.diff(p, r_l), r_l)
print(solutions) # [r_th]
d2p = sp.diff(p, r_l, 2)
print(sp.simplify(d2p.subs(r_l, r_th))) # -v**2/(8*r_th**3)
print(sp.simplify(p.subs(r_l, r_th))) # v**2/(4*r_th)The symbols are declared positive=True. This tells SymPy that resistances and the voltage are positive, which is exactly the assumption used when we cancelled and divided above. Without it, solve may return extra roots such as negative resistances.
To tie the symbolic result to a number, evaluate the derivative for VTh = 12 V and RTh = 4 Ω:
v_th, r_th = 12.0, 4.0
def dp_dr(r_load):
return v_th**2 * (r_th - r_load) / (r_th + r_load)**3
for r_load in [1, 2, 4, 8, 16]:
print(f"R_L={r_load:>2} ohm dP/dR_L={dp_dr(r_load):+.3f} W/ohm")
# Output:
# R_L= 1 ohm dP/dR_L=+3.456 W/ohm
# R_L= 2 ohm dP/dR_L=+1.333 W/ohm
# R_L= 4 ohm dP/dR_L=+0.000 W/ohm
# R_L= 8 ohm dP/dR_L=-0.296 W/ohm
# R_L=16 ohm dP/dR_L=-0.216 W/ohmThe slope is positive below 4 Ω, zero at 4 Ω, and negative above it. The slope is steeper on the low side. The power curve falls off more sharply below RTh than above it, in the sense that moving RL to RTh/4 loses more power than moving it to 4·RTh. In fact P(RTh/4) and P(4RTh) are equal, as the 5.76 W values at 1 Ω and 16 Ω show. The curve is symmetric in the ratio RL / RTh, not in the difference.
A derivation without calculus
You can reach the same result with an algebraic inequality. Divide the numerator and denominator of P by R_L:
P = VTh² / [(RTh + RL)² / RL]
Expand the bracket:
(RTh + RL)² / RL = RL + 2RTh + RTh² / R_L
Maximizing P means minimizing this bracket. The terms RL and RTh² / RL are both positive, and their product is RTh², a constant. The arithmetic-mean/geometric-mean inequality says that for positive numbers a and b, a + b ≥ 2√(ab), with equality only when a = b. Here:
RL + RTh² / RL ≥ 2RTh
with equality when RL = RTh² / RL, that is, RL = RTh. The smallest the bracket can be is 2RTh + 2RTh = 4RTh, so P ≤ VTh² / (4RTh). This gives the same condition and the same Pmax, and it also shows the symmetry noted above. Swapping RL for RTh² / RL leaves P unchanged.
Where the derivation depends on its assumptions
The result RL = RTh is exact only under the conditions used in the derivation. Each assumption can fail in a real design.
- VTh and RTh are constant. If the source resistance changes with load, temperature, or battery state of charge, the derivative changes and so does the optimum.
- R_L is the only free variable. If you can also adjust the source, for example by changing a supply setting, the question changes. The next chapters cover the fixed-load case, where the best choice is RTh = 0, not RTh = R_L.
- The circuit is linear and resistive. The derivation uses P = I²R with a constant R. A diode, a solar cell, or a regulator input has a nonlinear voltage-current relationship. These loads have no single R_L, and you need the maximum of V·I along the actual curve instead.
- R_Th > 0. If RTh = 0, the formula for Pmax divides by zero. An ideal voltage source delivers more power as R_L decreases, with no interior maximum. Real sources always have some series resistance, which is what makes the maximum exist.
- Power is the goal. The condition maximizes power in the load. It does not maximize efficiency, which at RL = RTh is only 50%.
Common errors when doing this by hand
- Dropping the factor of 2 from the chain rule. The derivative of (RTh + RL)² with respect to RL is 2(RTh + RL). Missing the 2 gives a numerator of RTh, with no R_L term, which has no zero.
- Not cancelling the common factor. Leaving the derivative over (RTh + RL)⁴ with a numerator still containing (RTh + RL) is correct, but it hides the simple factor (RTh − RL). Cancel one power and the zero is obvious.
- Reporting the critical point without checking its type. A zero derivative can be a minimum or an inflection. Check the sign change or the second derivative.
- Using VTh² / RTh for P_max. That is the short-circuit-style power, four times too large. The correct value is VTh² / (4RTh).
Exercise
A Thevenin source has VTh = 20 V and RTh = 5 Ω. Using the factored derivative dP/dRL = VTh² (RTh − RL) / (RTh + RL)³, find the sign of dP/dRL at RL = 2 Ω and RL = 10 Ω. Then state the load that maximizes power and the value of Pmax.
Show answer
At RL = 2 Ω, RTh − RL = 3 Ω is positive, so dP/dRL is positive (power is still rising). The value is 400 × 3 / 7³ = 1200 / 343 ≈ 3.50 W/Ω. At RL = 10 Ω, RTh − RL = −5 Ω is negative, so dP/dRL is negative (power is falling). The value is 400 × (−5) / 15³ = −2000 / 3375 ≈ −0.593 W/Ω. The derivative is zero at RL = RTh = 5 Ω. Pmax = VTh² / (4R_Th) = 400 / 20 = 20 W.
Exercise
Use the AM-GM argument to show that RL = 2 Ω and RL = 8 Ω deliver the same power from a source with RTh = 4 Ω. Then compute that power for VTh = 12 V.
Show answer
The bracket RL + 2RTh + RTh² / RL is unchanged when RL is replaced by RTh² / RL. Here RTh² = 16, and 16 / 2 = 8, so RL = 2 Ω and RL = 8 Ω give the same bracket and the same power. The bracket is 2 + 8 + 16/2 = 18 Ω. Then P = V_Th² / bracket = 144 / 18 = 8 W. This matches the 8.00 W entries for 2 Ω and 8 Ω in the earlier sweep. It is below the 9 W maximum at 4 Ω.
Exercise
Why does the derivation fail for an ideal voltage source (R_Th = 0), and what does the power curve look like instead?
Show answer
With RTh = 0 the power is P = VTh² / RL. The derivative is −VTh² / RL², which is never zero, so there is no interior critical point. P decreases steadily as RL increases and grows without bound as RL approaches 0. The formula VTh² / (4RTh) divides by zero, so it gives no finite maximum. A real source always has RTh > 0, which limits the current and makes the maximum exist.