---
title: Load lines and nonlinear loads
heading: Solving a circuit when one part doesn't obey Ohm's law
eyebrow: C1 · Lesson 18 · Load lines and nonlinear loads
xp: 40
---

::: hook
Everything so far has been linear: double the voltage across a resistor and its current doubles. Plenty of the parts a DC circuit drives don't work that way. An LED passes almost nothing until about 2 V, then its current climbs steeply. A thermistor's resistance depends on its own temperature, which depends on the power the circuit puts into it. You can't write one tidy equation for such a circuit, but lesson 15 already did most of the work: reduce everything except the odd part to a Thevenin source, and the answer is where two curves cross.
:::

::: play
- The straight line is the **load line** of a Thevenin source: every voltage and current the source can deliver, from $V_{th}$ with no current to $V_{th}/R_{th}$ into a short.
- The curve is a diode's current against its voltage, $I = I_s(e^{V/V_T} - 1)$ with $I_s = 10^{-14}$ A and $V_T$ = 25.85 mV.
- The circuit has to sit on both, so it sits where they cross: the **operating point**. Change $V_{th}$ and $R_{th}$ and watch the line pivot while the diode's voltage barely moves.
:::

```sim plot
view: graph
x: V = 0..3 V
y: I = 0..5 mA
slider: Vth = 0.5..3 step 0.1 = 2 V
slider: Rth = 200..2000 step 50 = 1000 Ω
plot: (Vth - V)/Rth*1e3 | label: load line
plot: 1e-14*(exp(V/0.02585) - 1)*1e3 | color: ch2 | label: diode
readout: short-circuit current in mA = Vth/Rth*1e3
readout: current with a 0.7 V drop, in mA = (Vth - 0.7)/Rth*1e3*step(Vth - 0.7)
```

::: predict
## A red LED drops about 2 V once it conducts. It's driven from 5 V through 330 Ω. About how much current flows?

- [ ] 15 mA
- [x] 9 mA
- [ ] 6 mA
- [ ] 2 mA

::: reveal
About 9 mA. The resistor sees what's left after the LED takes its 2 V: $(5 - 2)/330$ = 9.1 mA. Ignoring the LED would give 15 mA, and that error is why every LED datasheet quotes a forward voltage. The LED's voltage changes only slightly as the current changes, so a constant-drop model gets within a few percent.
:::
:::

::: nameit
## The load line

Reduce everything except the nonlinear part to a Thevenin source (lesson 15). Then the part's voltage $V$ and current $I$ must satisfy both

$$I = \frac{V_{th} - V}{R_{th}} \qquad \text{and} \qquad I = f(V)$$

The first is a straight line through $(V_{th}, 0)$ and $(0, V_{th}/R_{th})$; the second is the part's characteristic. The **operating point** is where they cross. Changing $V_{th}$ slides the line sideways; changing $R_{th}$ changes its slope.

## Piecewise-linear models

Often a part's curve can be replaced by straight segments.

- **Constant drop:** the part conducts at a fixed voltage $V_0$ once on. $I = (V_{th} - V_0)/R_{th}$.
- **Drop plus resistance:** $V = V_0 + r_dI$ once on, so $I = (V_{th} - V_0)/(R_{th} + r_d)$.

Check the result: if the computed current comes out negative, the part is off and $I = 0$.

## Iterating

For a curve like the diode's exponential, guess, then improve. A simple **fixed-point iteration** alternates between the two equations: from a current, find the voltage the part needs, $V = V_T\ln(I/I_s + 1)$, then from that voltage the current the source gives, $I = (V_{th} - V)/R_{th}$. Because the diode's voltage depends only logarithmically on its current, one or two rounds usually settle it to a fraction of a millivolt. Circuit simulators use Newton's method, which converges faster still and handles every kind of curve.

## Self-heating

Some parts change with their own power. A thermistor's resistance depends on its temperature, which is ambient plus $P/\delta$, where $\delta$ is its dissipation constant in W/K. The same alternating iteration applies: from a resistance find the power, from the power the temperature, from the temperature the new resistance.

## More than one crossing

A part whose curve bends back, so that over some range more voltage means less current, can cross a load line three times. The middle crossing is unstable: any disturbance runs away to one of the outer two. That's how latching circuits, such as a thyristor or a neon lamp, hold one of two states.
:::

::: example
## An LED modeled as 1.8 V plus 10 Ω is driven from 5 V through 220 Ω. Find its current and voltage, and the resistor's power.

::: solution
1. **Current.** The LED is on, so
   $$\begin{aligned} I &= \frac{5 - 1.8}{220 + 10} \\ &= 13.9\ \text{mA} \end{aligned}$$
2. **LED voltage.**
   $$\begin{aligned} V_{LED} &= 1.8 + 10 \times 0.0139 \\ &= 1.94\ \text{V} \end{aligned}$$
3. **Resistor power.**
   $$\begin{aligned} P &= 0.01391^2 \times 220 \\ &= 42.6\ \text{mW} \end{aligned}$$
   comfortably inside a 0.125 W part.
4. **Compare with the constant-drop model.** With that model alone,
   $$\frac{5 - 1.8}{220} = 14.5\ \text{mA}$$
   so the LED's own resistance matters at the 5% level here.

**Answer:** the LED carries 13.9 mA at 1.94 V, and the resistor dissipates 42.6 mW.
:::
:::

::: example
## A diode with $I_s = 10^{-14}$ A and $V_T$ = 25.85 mV is driven by a Thevenin source of 2 V and 1 kΩ. Find the operating point by iteration, starting from a 0.7 V guess.

::: solution
1. **Round 1: current.** From the 0.7 V guess, the source gives
   $$\begin{aligned} I &= \frac{2 - 0.7}{1000} \\ &= 1.300\ \text{mA} \end{aligned}$$
2. **Round 1: voltage.** At that current the diode needs
   $$\begin{aligned} V &= 0.02585\ln\left(\frac{1.3 \times 10^{-3}}{10^{-14}}\right) \\ &= 0.6615\ \text{V} \end{aligned}$$
3. **Round 2.**
   $$\begin{aligned} I &= \frac{2 - 0.6615}{1000} \\ &= 1.3385\ \text{mA} \end{aligned}$$
   which needs 0.6623 V.
4. **Round 3.** It changes the voltage by under 0.1 mV, so the answer is 1.338 mA at 0.662 V.
5. **The first guess.** It was off by 38 mV, but the current was already within 3%, because the load line is shallow next to the steep diode curve.

**Answer:** the operating point is 1.338 mA at 0.662 V.
:::
:::

::: example
## A 10 kΩ NTC thermistor ($B$ = 3950 K, dissipation constant 2 mW/K) sits in a divider with a fixed 10 kΩ resistor across 5 V, in still air at 25 °C. How much does it heat itself, and how much does that change its resistance?

::: solution
1. **Current at 25 °C.** The thermistor is 10 kΩ, so
   $$\begin{aligned} I &= \frac{5}{20\,000} \\ &= 0.25\ \text{mA} \end{aligned}$$
2. **Power.**
   $$\begin{aligned} P &= (0.25 \times 10^{-3})^2 \times 10^4 \\ &= 0.625\ \text{mW} \end{aligned}$$
3. **Temperature rise.** At 2 mW/K,
   $$\begin{aligned} \Delta T &= \frac{0.625}{2} \\ &= 0.3125\ \text{K} \end{aligned}$$
   or about 0.31 K.
4. **New resistance.** The thermistor is now at 298.4625 K (25.31 °C), so the B-equation gives
   $$\begin{aligned} x &= 3950\left(\frac{1}{298.4625} - \frac{1}{298.15}\right) \\ R &= 10\,000\,e^{x} \\ &= 9862\ \Omega \end{aligned}$$
5. **Recompute the power.** At 9862 Ω it's 0.62497 mW, a change of under 0.01%, so the iteration has already converged.
6. **Why it converges so fast.** The reason is lesson 17: a load equal to the source resistance sits at the top of the power curve, where small changes in resistance barely change the power.
7. **The error.** The reading is 0.31 K too warm, an error a precision thermometer has to correct or avoid with a smaller current.

**Answer:** the thermistor heats itself by 0.31 K, which lowers its resistance from 10 kΩ to 9862 Ω.
:::
:::

::: check
given: Vs = 3.3 | 5 | 12; R = 100 | 220 | 470; V0 = 1.8 | 2 | 2.9; r = 5 | 10 | 20
answer: (Vs - V0)/(R + r)*1e3
unit: mA
tolerance: 0.5%

## An LED modeled as {V0} V plus {r} Ω is driven from {Vs} V through {R} Ω. What current flows, in mA?

::: right
Right. $(V_s - V_0)/(R + r_d)$ = {answer}.
:::

::: misses
- [(Vs - V0)/R*1e3] Include the LED's own resistance in series.
- [Vs/(R + r)*1e3] Subtract the LED's turn-on voltage first.
- [Vs/R*1e3] That ignores the LED entirely.
- [any] Not yet. $I = (V_s - V_0)/(R + r_d)$.
:::
:::

::: check
kind: parts
given: Vth = 1.5 | 2 | 3 | 5; Rth = 470 | 1000 | 2200

## A diode with $I_s = 10^{-12}$ A and $V_T$ = 25.85 mV is driven by a Thevenin source of {Vth} V and {Rth} Ω.

::: part
answer: (Vth - 0.7)/Rth*1e3
unit: mA
tolerance: 0.5%

### Assuming a 0.7 V drop, what current flows?

::: misses
- [Vth/Rth*1e3] Subtract the diode's drop first.
- [any] Not yet. $(V_{th} - 0.7)/R_{th}$.
:::
:::

::: part
answer: 0.02585*ln((Vth - 0.7)/Rth/1e-12)
unit: V
tolerance: 0.1%

### What voltage does the diode need to carry that current?

::: misses
- [0.02585*log((Vth - 0.7)/Rth/1e-12)] Use the natural logarithm.
- [any] Not yet. $V = V_T\ln(I/I_s)$.
:::
:::

::: part
answer: (Vth - 0.02585*ln((Vth - 0.7)/Rth/1e-12))/Rth*1e3
unit: mA
tolerance: 0.5%

### With that voltage, what current does the source give? (One round of iteration.)

::: misses
- [(Vth - 0.7)/Rth*1e3] Use the new diode voltage, not 0.7 V.
- [any] Not yet. $I = (V_{th} - V)/R_{th}$ with the voltage you just found.
:::
:::

::: right
Right. One round brings the current within a fraction of a percent: the diode's voltage depends only logarithmically on its current.
:::
:::

::: check
kind: parts
given: V = 6 | 9 | 12; R1 = 1 | 2.2 | 4.7; R2 = 1 | 3.3 | 10

## A {V} V source drives a divider of {R1} kΩ on top and {R2} kΩ on the bottom, and a nonlinear part connects across the bottom resistor.

::: part
answer: V*R2/(R1 + R2)
unit: V
tolerance: 0.5%

### Where does the load line meet the voltage axis (the part drawing no current)?

::: misses
- [V] The divider loads the source: use the open-circuit divider voltage.
- [any] Not yet. The open-circuit voltage is the divider's output.
:::
:::

::: part
answer: V/R1
unit: mA
tolerance: 0.5%

### Where does it meet the current axis (the part shorted)?

::: misses
- [V/(R1 + R2)] A short across the part also shorts the bottom resistor.
- [any] Not yet. Shorting the bottom leaves only the top resistor: $V/R_1$.
:::
:::

::: right
Right. The two intercepts give $V_{th}$ and $V_{th}/R_{th}$, so $R_{th} = R_1 \| R_2$, as Thevenin says.
:::
:::

::: check
kind: parts
given: Vs = 12 | 15 | 24; R = 220 | 330 | 470; Vz = 3.3 | 4.7 | 5.1; RL = 680 | 1000 | 2200

## A {Vz} V Zener diode (modeled as a constant drop once it conducts) is fed from {Vs} V through {R} Ω, with an {RL} Ω load across it.

::: part
answer: Vs*RL/(R + RL)
unit: V
tolerance: 0.5%

### Remove the Zener. What is the Thevenin voltage the Zener sees?

::: misses
- [Vs] The load and resistor form a divider.
- [any] Not yet. $V_{th} = V_sR_L/(R + R_L)$.
:::
:::

::: part
answer: (Vs*RL/(R + RL) - Vz)/(R*RL/(R + RL))*1e3
unit: mA
tolerance: 0.5%

### It conducts. What current flows in the Zener, in mA?

::: misses
- [(Vs - Vz)/R*1e3] That's the resistor's current; part of it goes to the load.
- [any] Not yet. $(V_{th} - V_Z)/R_{th}$, with $R_{th} = R \| R_L$.
:::
:::

::: right
Right. The Thevenin view says at once whether the Zener conducts, and how much current is left to regulate with.
:::
:::

::: check
given: d = 1 | 2 | 5; R = 5 | 10 | 22; V = 3.3 | 5
answer: (V/(2*R*1e3))^2*R*1e3/(d*1e-3)
unit: K
tolerance: 0.5%

## A {R} kΩ thermistor (at 25 °C) sits in a divider with a fixed {R} kΩ resistor across {V} V. Its dissipation constant is {d} mW/K. To first order, how much does it heat itself?

::: right
Right. The current is $V/2R$, the power $V^2/4R$, and the rise $P/\delta$ = {answer}.
:::

::: misses
- [V^2/(R*1e3)/(d*1e-3)] Only half the supply is across the thermistor, so its power is a quarter of $V^2/R$.
- [(V/(2*R*1e3))^2*R*1e3/d] Put the dissipation constant in W/K.
- [any] Not yet. $\Delta T = P/\delta$ with $P = (V/2R)^2R$.
:::
:::

::: check
kind: choice

## A part's current-voltage curve bends back, so that over a middle range more voltage gives less current. A load line crosses it three times. Which operating points can the circuit rest at?

- [x] Only the two outer crossings; the middle one is unstable
- [ ] Only the middle crossing
- [ ] All three, equally
- [ ] None of them; the circuit oscillates

::: right
Right. At the middle crossing a small rise in current lowers the part's voltage, which raises the current further, and the circuit runs to an outer point. Which outer point it reaches depends on its history, which is how such parts latch.
:::

::: misses
- [2] The middle one is the unstable one: a nudge grows.
- [3] A nudge away from the middle crossing grows; it can't stay there.
- [4] With a purely resistive circuit it settles at an outer crossing. Oscillation needs energy storage as well.
:::
:::

::: check
kind: derivation
vars: Vth = 1..10, Rth = 100..10000, V0 = 0.5..3, r = 1..50

## Find the operating point of a part modeled as $V = V_0 + rI$, driven by a Thevenin source $V_{th}$, $R_{th}$.

::: step
answer: (Vth - V0)/(Rth + r)

### Equate the source's $I = (V_{th} - V)/R_{th}$ with the part's $V = V_0 + rI$. What is $I$?
:::

::: step
answer: V0 + r*(Vth - V0)/(Rth + r)

### What is the part's voltage $V$?
:::

::: right
Right. The part's voltage sits a little above $V_0$, by its small resistance times the current.
:::
:::

::: check
kind: python
given: Vth = 1.5 | 3 | 5; Rth = 220 | 1000 | 4700

## Find a diode's operating point two ways. The diode has `Is = 1e-14` A and `VT = 0.02585` V and is driven by `Vth` = {Vth} V through `Rth` = {Rth} Ω. (a) Fixed-point iteration: start from `I = (Vth - 0.7)/Rth`, then repeat `V = VT*log(I/Is + 1)`, `I = (Vth - V)/Rth`. Count the rounds until `V` changes by less than 1 µV and store them as `rounds`. (b) Newton's method on $g(V) = (V_{th} - V)/R_{th} - I_s(e^{V/V_T} - 1)$ from `V = 0.7`. Set `V_op` and `I_op` from Newton, converged to 1e-12 V.

```python starter
import math
Is, VT = 1e-14, 0.02585
V_op = 0.7
I_op = (Vth - 0.7) / Rth
rounds = 1
print(V_op, I_op, rounds)
```

```python solution
import math
Is, VT = 1e-14, 0.02585
I = (Vth - 0.7) / Rth
V = 0.7
rounds = 0
while True:
    Vn = VT * math.log(I / Is + 1)
    rounds += 1
    I = (Vth - Vn) / Rth
    if abs(Vn - V) < 1e-6:
        V = Vn
        break
    V = Vn
V_op = 0.7
for _ in range(100):
    g = (Vth - V_op) / Rth - Is * (math.exp(V_op / VT) - 1)
    dg = -1 / Rth - Is / VT * math.exp(V_op / VT)
    step = g / dg
    V_op -= step
    if abs(step) < 1e-13:
        break
I_op = (Vth - V_op) / Rth
print(V_op, I_op, rounds)
```

```python tests
import math
Is, VT = 1e-14, 0.02585
lo, hi = 0.0, Vth
for _ in range(200):
    m = (lo + hi) / 2
    if (Vth - m) / Rth - Is * (math.exp(m / VT) - 1) > 0: lo = m
    else: hi = m
assert abs(V_op - lo) < 1e-10, f"The operating point is V = {lo:.9f} V."
assert abs(I_op - (Vth - lo) / Rth) < 1e-12, "I_op should be the source's current at V_op."
assert isinstance(rounds, int) and 2 <= rounds <= 6, "Fixed-point iteration should settle to 1 µV in a handful of rounds."
```

::: right
Right. Here the simple iteration is enough because the diode is so steep. It fails for parts that are nearly flat where the line crosses them, and Newton's method doesn't, which is why simulators use it.
:::
:::

::: explain
## A designer powers an LED from a 3.3 V rail through a resistor sized for 2.0 V across the LED at 10 mA. On the bench, the current is 30% lower than planned. Using the load line, explain how a small error in the LED's assumed voltage can cause a large current error, and how to make the design less sensitive.

::: model
The resistor sees the rail minus the LED's voltage, so the current is $(3.3 - V_{LED})/R$, and with $R$ = 130 Ω only 1.3 V is across it. The LED's real voltage at 10 mA might be 2.4 V instead of 2.0, leaving 0.9 V and about 7 mA: a 20% error in the LED's voltage turns into a 30% error in current, because the resistor's voltage is a small difference between two larger ones. On the load line, a source with a low open-circuit voltage gives a shallow line crossing the LED's curve near its knee, where the current is very sensitive to where the curve sits. Raising the supply so that most of the voltage is across the resistor, or replacing the resistor with a current source, makes the line steeper or vertical and the current nearly independent of the LED's voltage.
:::
:::

::: practice

::: check
given: Vs = 5 | 9 | 12; Vf = 1.8 | 3.1; I = 5 | 10 | 20
answer: (Vs - Vf)/(I*1e-3)
unit: Ω
tolerance: 0.5%

## An LED that drops {Vf} V should carry {I} mA from a {Vs} V supply. What series resistor does it need?

::: misses
- [Vs/(I*1e-3)] Subtract the LED's voltage first.
- [any] $R = (V_s - V_f)/I$.
:::
:::

::: check
given: Vth = 2 | 4; Rth = 0.47 | 1; V0 = 0.6 | 0.7; r = 22 | 47
answer: (Vth - V0)/(Rth*1e3 + r)*1e3
unit: mA
tolerance: 0.5%

## A part modeled as {V0} V plus {r} Ω sits across a Thevenin source of {Vth} V and {Rth} kΩ. What current flows?

::: misses
- [(Vth - V0)/(Rth*1e3)*1e3] Include the part's {r} Ω.
- [any] $(V_{th} - V_0)/(R_{th} + r)$.
:::
:::
:::
