---
title: Superposition
heading: Several sources, one at a time
eyebrow: C1 · Lesson 16 · Superposition
xp: 40
---

::: hook
When a circuit has several sources, you can find what each one does by itself, with the others switched off, and add the results. That's superposition, the same principle that let waves pass through each other (B8.7) and let you split a signal into sinusoids (A10). It holds for every linear circuit, and it's often the quickest way to see how much each input contributes to an output, as in an audio mixer.

::: play
- Two sources feed node a through their own resistors. The meter reads $v_a$.
- Set $V_2$ to 0 and read $v_a$. Then set $V_1$ to 0 (and $V_2$ back) and read it again. Add your two readings.
- Compare the sum with $v_a$ when both are on.
:::
:::

```sim circuit
V1 in1 0 10         @ 0,0 down
R1 in1 a 1k         @ 0,0 right
R2 a 0 2k           @ 2,0 down
R3 in2 a 2k         @ 4,0 left
V2 in2 0 6          @ 4,0 down
slider: V1.amp 0..20
slider: V2.amp 0..20
scope: v(a)
time: 0..1m s
meter: v(a), i(R2)
```

::: predict
## With only source A on, a resistor dissipates 4 mW. With only source B on, it dissipates 9 mW, with its current in the same direction. How much with both on?

- [ ] 13 mW
- [x] 25 mW
- [ ] 5 mW
- [ ] 36 mW

::: reveal
25 mW. Currents superpose but powers don't. Power goes as $i^2$, so the currents are proportional to $\sqrt{4} = 2$ and $\sqrt{9} = 3$; together they make 5, and the power is $5^2 = 25$ mW. Adding the powers (13 mW) misses the cross term $2i_Ai_BR$. Superpose currents and voltages, then compute power from the total.
:::
:::

::: nameit
## Superposition

**The principle.** In a linear circuit, any voltage or current is the sum of the contributions from each independent source acting alone:

$$v = v^{(1)} + v^{(2)} + \cdots$$

**Switching a source off.** A voltage source set to zero becomes a **short circuit** (zero volts across it, any current). A current source set to zero becomes an **open circuit** (zero current, any voltage). Internal resistances stay in place.

**For the circuit above:**

- $V_1$ alone: $R_2 \parallel R_3 = 1$ kΩ, so $v_a^{(1)} = 10 \times 1/(1 + 1) = 5$ V.
- $V_2$ alone: $R_1 \parallel R_2 = 0.667$ kΩ, so $v_a^{(2)} = 6 \times 0.667/(2 + 0.667) = 1.5$ V.
- Together: 6.5 V.

**Linearity also means scaling.** Doubling a source doubles everything it contributes. So if you know what one volt of a source does, you know what any voltage does.

**What doesn't superpose.** Power, which is quadratic in current. And nothing at all superposes in a nonlinear circuit (diodes, transistors in large-signal use); there you solve the whole circuit at once.

**Dependent sources stay on.** A controlled source (lesson 21) is part of the circuit's response, so it's never switched off when applying superposition.

**When to use it.** When the question is "how much of this output comes from each input": a mixer adding audio channels, a sensor's output with an offset added, the separate effects of a DC bias and an AC signal (the basis of small-signal analysis in C5).
:::

::: example
## 10 V through 1 kΩ and 5 V through 1 kΩ both feed a node with 1 kΩ to ground. Find the node voltage by superposition.

::: solution
1. **The 10 V source alone.** It sees 1 kΩ into 0.5 kΩ:
   $$\begin{aligned} v_1 &= 10 \times \frac{0.5}{1.5} \\ &= 3.33\ \text{V} \end{aligned}$$
2. **The 5 V source alone.**
   $$\begin{aligned} v_2 &= 5 \times \frac{0.5}{1.5} \\ &= 1.67\ \text{V} \end{aligned}$$
3. **Add them.**
   $$\begin{aligned} v &= 3.33 + 1.67 \\ &= 5.0\ \text{V} \end{aligned}$$

**Answer:** the node sits at 5.0 V.
:::
:::

::: example
## 12 V drives a node through 4 kΩ, the node has 4 kΩ to ground, and a 1 mA source pushes into it. What is the node voltage?

::: solution
1. **The voltage source alone.** The two 4 kΩ resistors split its 12 V equally, so it gives 6 V.
2. **The current source alone.** With the voltage source shorted, it sees $4 \parallel 4 = 2$ kΩ:
   $$\begin{aligned} v_2 &= 1\ \text{mA} \times 2\ \text{k}\Omega \\ &= 2\ \text{V} \end{aligned}$$
3. **Add them.**
   $$\begin{aligned} v &= 6 + 2 \\ &= 8\ \text{V} \end{aligned}$$

**Answer:** the node sits at 8 V.
:::
:::

::: example
## A passive mixer feeds three signals, 1 V, 0.5 V and −0.2 V, each through 10 kΩ, into a node with 10 kΩ to ground. What's the node voltage?

::: solution
1. **Take each source alone.** By superposition, take each source alone with the others replaced by shorts. Each sees its 10 kΩ feeding a node with three 10 kΩ resistors to ground, so it contributes a quarter of its voltage.
2. **Add the contributions.**
   $$\begin{aligned} v &= \frac{1 + 0.5 - 0.2}{4} \\ &= 0.325\ \text{V} \end{aligned}$$
3. **The cost.** Every input is attenuated by 4 and loads the others.
4. **Active mixers.** They use an op amp's virtual ground instead, so inputs don't interact and the gain can be set freely.

**Answer:** the node sits at 0.325 V.
:::
:::

::: check
given: V1 = 6 | 10 | 12; V2 = 3 | 5 | 9; R1 = 1 | 2; R2 = 3 | 4; R3 = 5 | 6
answer: V1*(R2*R3/(R2 + R3))/(R1 + R2*R3/(R2 + R3))
unit: V
tolerance: 0.5%

## In the circuit above, $V_1$ = {V1} V, $V_2$ = {V2} V, $R_1$ = {R1} kΩ, $R_2$ = {R2} kΩ and $R_3$ = {R3} kΩ. What does $V_1$ alone contribute to $v_a$?

::: right
Right. With $V_2$ shorted, $R_2$ and $R_3$ are in parallel, and the divider gives {answer}.
:::

::: misses
- [V1*R2/(R1 + R2)] With $V_2$ off, it becomes a short, putting R3 in parallel with R2.
- [V1*R2/(R1 + R2 + R3)] R3 goes in parallel with R2, not in series.
- [any] Not yet. Replace $V_2$ with a short and use the divider.
:::
:::

::: check
given: V1 = 6 | 10 | 12; V2 = 3 | 5 | 9; R1 = 1 | 2; R2 = 3 | 4; R3 = 5 | 6
answer: (V1/R1 + V2/R3)/(1/R1 + 1/R2 + 1/R3)
unit: V
tolerance: 0.5%

## Same circuit and values: {V1} V, {V2} V, {R1} kΩ, {R2} kΩ, {R3} kΩ. What is $v_a$ with both sources on?

::: right
Right. The two contributions add to {answer} (the same as Millman's formula).
:::

::: misses
- [V1*(R2*R3/(R2 + R3))/(R1 + R2*R3/(R2 + R3))] That's $V_1$'s part. Add $V_2$'s.
- [any] Not yet. Find each source's contribution alone, then add.
:::
:::

::: check
given: Vs = 5 | 10; I = 1 | 2 | 3; R1 = 1 | 2; R2 = 3 | 4
answer: Vs*R2/(R1 + R2) + I*R1*R2/(R1 + R2)
unit: V
tolerance: 0.5%

## A {Vs} V source feeds a node through {R1} kΩ; {R2} kΩ connects the node to ground, and a current source pushes {I} mA into the node. Using superposition, what is the node voltage?

::: right
Right. The voltage source gives $V_sR_2/(R_1 + R_2)$; the current source, with the voltage source shorted, gives $I(R_1 \parallel R_2)$. Sum: {answer}.
:::

::: misses
- [Vs*R2/(R1 + R2) + I*R2] With the voltage source shorted, R1 is in parallel with R2.
- [Vs*R2/(R1 + R2)] Add the current source's contribution.
- [any] Not yet. Short the voltage source for the current source's part; open the current source for the voltage source's part.
:::
:::

::: check
given: P1 = 1 | 4 | 9; P2 = 16 | 25
answer: (sqrt(P1) + sqrt(P2))^2
unit: mW
tolerance: 0.5%

## Source A alone makes a resistor dissipate {P1} mW; source B alone, {P2} mW, with current in the same direction. How much with both?

::: right
Right. Add the currents (proportional to $\sqrt P$), then square: {answer}.
:::

::: misses
- [P1 + P2] Powers don't superpose; currents do.
- [any] Not yet. $i \propto \sqrt P$; add currents, then square.
:::
:::

::: check
kind: choice

## When applying superposition, how do you switch off a current source?

- [ ] Replace it with a short circuit
- [x] Replace it with an open circuit
- [ ] Replace it with its internal resistance in series
- [ ] Leave it on

::: right
Right. Zero current means a break in the circuit.
:::

::: misses
- [1] A short is for voltage sources (zero volts).
- [3] Any parallel internal resistance stays; the source itself becomes an open.
- [4] Independent sources go off one at a time.
:::
:::

::: check
kind: parts
given: a = 1 | 2; b = 0.5 | -1; c = -0.2 | 0.3; r = 1 | 2

## Three signals, {a}, {b} and {c} V, each feed a node through 10 kΩ; the node has {r} × 10 kΩ to ground.

::: part
answer: (a + b + c)/(3 + 1/r)
unit: V
tolerance: 0.5%

### What's the node voltage?

::: misses
- [(a + b + c)/3] The ground resistor also pulls on the node.
- [any] $\frac{\sum V_i/R}{3/R + 1/R_g}$.
:::
:::

::: part
answer: a/(3 + 1/r)
unit: V
tolerance: 0.5%

### What does the first signal alone contribute?

::: misses
- [any] Superposition, the others shorted.
:::
:::
:::

::: check
kind: derivation
vars: a = -20..20, b = -20..20, p = 0.1..10, q = 0.1..10, g = 0.1..10

## Sources a and b feed a node through conductances p and q; conductance g connects it to ground.

::: step
answer: (a*p + b*q)/(p + q + g)

### What's the node voltage?
:::

::: step
answer: a*p/(p + q + g)

### What does a alone contribute?
:::

::: step
answer: b*q/(p + q + g)

### And b alone?
:::

::: right
Right. The contributions add to the whole, as superposition promises.
:::
:::

::: explain
## Why does superposition work for currents and voltages but not for power?

::: model
In a linear circuit every voltage and current is a linear function of the sources, so the response to several sources is the sum of the responses to each alone. Power is the product of voltage and current, or $i^2R$, which is quadratic. Squaring a sum gives the squares of each part plus cross terms, so adding the powers from each source alone misses the cross terms. You have to add the currents first and then compute the power.
:::
:::

::: practice

::: check
given: a = 1..5 int; b = 1..5 int
answer: a + b
unit: V
tolerance: 0.5%

## One source alone gives {a} V at a node; another alone gives {b} V. Both together?

::: misses
- [any] Add the contributions.
:::
:::

::: check
given: v = 2 | 3 | 4; k = 2 | 3 | 5
answer: k*v
unit: V
tolerance: 0.5%

## A 1 V source contributes {v} V to an output. What does a {k} V source in its place contribute?

::: misses
- [v] Linear: the contribution scales with the source.
- [any] Multiply by {k}.
:::
:::

::: check
kind: choice

## How do you switch off a voltage source for superposition?

- [x] Replace it with a short circuit
- [ ] Replace it with an open circuit
- [ ] Remove the whole branch
- [ ] Double the other sources

::: right
Right. Zero volts across it, any current through.
:::

::: misses
- [2] That's for current sources.
- [3] Its branch stays, with a wire where the source was.
- [4] Only one source is set to zero.
:::
:::
:::
