If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

# Superposition

With the principle of superposition you can simplify the analysis of circuits with multiple inputs. Written by Willy McAllister.
Superposition is a super useful technique to add to your toolkit of circuit analysis methods. Use superposition when you have a circuit with multiple inputs or multiple power sources.

### What we're building to

The principle of superposition is another name for the additivity property of Linearity:
f, left parenthesis, x, start subscript, 1, end subscript, plus, x, start subscript, 2, end subscript, right parenthesis, equals, f, left parenthesis, x, start subscript, 1, end subscript, right parenthesis, plus, f, left parenthesis, x, start subscript, 2, end subscript, right parenthesis
To solve a circuit using superposition, the first step is to turn off or suppress all but one input.
• To suppress a voltage source, replace it with a short circuit.
• To suppress a current source, replace it with an open circuit.
Then you analyze the resulting simpler circuits. Repeat for all inputs.
The final result is the sum of individual results.

## Describing a circuit as a function

The principle of superposition is defined using functional notation, so we talk a bit here about how circuits can be represented as functions.
Starting simple... How could we represent a lone resistor using the notation of a mathematical function? There is nothing remarkable going on here, I'm just talking about Ohm's Law using function terminology. We begin by identifying three things: the inputs, the thing performing the function, and the outputs.
I decided (arbitrarily) that voltage v, start subscript, i, end subscript will be the input to our resistor function. We can assume input v, start subscript, i, end subscript is generated by some voltage-making thing we're not showing. We assign the output to be the interesting thing we want to know. For this function, the output is the current i in the resistor.
The input voltage is applied to the two small circles (the circles indicate the input port to our function). The function itself comes from the resistor, by means of Ohm's Law. The output of our function will be the current, i, measured by some not-shown current meter.
Written as a function, our resistor is
i, equals, f, left parenthesis, v, start subscript, i, end subscript, right parenthesis, equals, start fraction, 1, divided by, start text, R, end text, end fraction, v, start subscript, i, end subscript
With this notation, we are viewing the resistor as a function that takes in a voltage and outputs a current.

## A resistor is a linear function

Looking at our resistor function, we see it has the scaling property, the output, i equals the input, v, scaled by a constant, start text, R, end text. That means the resistor is linear. The linearity property is what triggers our ability to use superposition to help solve a circuit.
(Refresh me on the meaning of linearity.)

## Using superposition to help solve a circuit

(This is a "toy" example to give you a feel for using superposition.)
Let's say the input to our function is two voltages in series:
The input to our function is two batteries in series: v, start subscript, i, end subscript, equals, start text, V, s, 1, end text, plus, start text, V, s, 2, end text.
The function is f, left parenthesis, v, right parenthesis, equals, start fraction, 1, divided by, start text, R, end text, end fraction, v.
The output of the function hasn't changed; it is still i, equals, f, left parenthesis, v, right parenthesis.
We now solve this circuit two ways: first by conventional analysis, and then using the principle of superposition.

### Conventional solution

To solve by conventional means we write the KVL equation around the loop:
start text, V, s, 1, end text, plus, start text, V, s, 2, end text, minus, i, start text, R, end text, equals, 0
and solve for i:
i, equals, f, left parenthesis, start text, V, s, 1, end text, plus, start text, V, s, 2, end text, right parenthesis, equals, start fraction, start text, V, s, 1, end text, plus, start text, V, s, 2, end text, divided by, start text, R, end text, end fraction
(conventional solution)

### Solution using the principle of superposition

The principle of superposition applies to a linear function, f.
f, left parenthesis, x, start subscript, 1, end subscript, plus, x, start subscript, 2, end subscript, right parenthesis, equals, f, left parenthesis, x, start subscript, 1, end subscript, right parenthesis, plus, f, left parenthesis, x, start subscript, 2, end subscript, right parenthesis
It says: If you have two inputs superimposed, left parenthesis, x, start subscript, 1, end subscript, plus, x, start subscript, 2, end subscript, right parenthesis, you can apply the inputs one at a time, left parenthesis, x, start subscript, 1, end subscript, right parenthesis followed by left parenthesis, x, start subscript, 2, end subscript, right parenthesis, and then add the individual results to get the full answer.
Now let's use the principle of superposition to solve the circuit. Since we've modeled our circuit as a function, we can say:
i, equals, f, left parenthesis, start text, V, s, 1, end text, plus, start text, V, s, 2, end text, right parenthesis
is the same as
i, equals, f, left parenthesis, start text, V, s, 1, end text, right parenthesis, plus, f, left parenthesis, start text, V, s, 2, end text, right parenthesis
This suggests an intriguing possibility. It says we can compute the output current the conventional way, by applying the combined inputs f, left parenthesis, start text, V, s, 1, end text, plus, start text, V, s, 2, end text, right parenthesis, or, we could get the same answer by computing the function with single inputs f, left parenthesis, start text, V, s, 1, end text, right parenthesis and f, left parenthesis, start text, V, s, 2, end text, right parenthesis, and adding the results together. Let's try this and see what happens.

### Suppressing inputs

To apply superposition we need to apply the inputs one at a time. That means we have to turn off all inputs except for one. When we turn off an input we say it is suppressed.
What does it mean to turn off a voltage source? It means we set start text, V, end text, equals, 0. This is the same thing as replacing the voltage source or battery by a short circuit.
What does it mean to turn off a current source? It means we set start text, I, end text, equals, 0. That's the same as replacing the current source with an open circuit.

### Using superposition

In the next two schematics, one of the voltage inputs has been turned off (suppressed ) by replacing it with a short circuit.
When we zero out or suppress an input, we replace one of the inputs with 0, allowing the one remaining input to shine through by itself.
f, left parenthesis, start text, V, s, 1, end text, plus, 0, right parenthesis, right arrow, f, left parenthesis, start text, V, s, 1, end text, right parenthesis and f, left parenthesis, start text, 0, space, plus, space, V, s, 2, end text, right parenthesis, right arrow, f, left parenthesis, start text, V, s, 2, end text, right parenthesis
Now we solve each circuit individually,
i, start subscript, 1, end subscript, equals, start fraction, start text, V, s, 1, end text, divided by, start text, R, end text, end fraction, i, start subscript, 2, end subscript, equals, start fraction, start text, V, s, 2, end text, divided by, start text, R, end text, end fraction
where i, start subscript, 1, end subscript is the current caused by source start text, V, s, end text, 1, and i, start subscript, 2, end subscript is the current caused by source start text, V, s, end text, 2.
The total current comes from superimposing (adding) the currents from each circuit.
i, equals, i, start subscript, 1, end subscript, plus, i, start subscript, 2, end subscript
i, equals, start fraction, start text, V, s, 1, end text, divided by, start text, R, end text, end fraction, plus, start fraction, start text, V, s, 2, end text, divided by, start text, R, end text, end fraction
i, equals, start fraction, start text, V, s, 1, end text, plus, start text, V, s, 2, end text, divided by, start text, R, end text, end fraction
(superposition solution)
Check it out! The superposition solution is the same as the conventional solution obtained above.
What we did here is called the linear superposition of two circuits.
Our example function was so simple, using superposition really didn't save much (if any) effort. In the following examples the circuits are more complicated, and the difference in effort becomes more apparent.

### Example 1

Consider the following linear circuit with two sources: one current source and one voltage source. The two sources are the inputs to the function. For this problem we happen to want to find two outputs, currents i, start subscript, 1, end subscript and i, start subscript, 2, end subscript.
i, start subscript, 1, end subscript, equals, f, start subscript, 1, end subscript, left parenthesis, start text, I, s, end text, comma, start text, V, s, right parenthesis, end text and i, start subscript, 2, end subscript, equals, f, start subscript, 2, end subscript, left parenthesis, start text, I, s, end text, comma, start text, V, s, right parenthesis, end text
Let’s analyze this circuit using superposition.
First, we suppress the current source and analyze the circuit with just the voltage source acting alone. To suppress the current source, we replace it with an open circuit.
With just the voltage source, the two output currents are:
i, start subscript, 1, V, end subscript, equals, 0, i, start subscript, 2, V, end subscript, equals, start fraction, start text, V, s, end text, divided by, start text, R, end text, 2, end fraction
Where i, start subscript, 1, V, end subscript and i, start subscript, 2, V, end subscript are the currents in start text, R, end text, 1 and start text, R, end text, 2 caused by the voltage source.
Next, we restore the current source and suppress the voltage source, to calculate the contribution of the current source acting alone.
With just the current source, the two output currents are:
i, start subscript, 1, I, end subscript, equals, start text, I, s, end text, i, start subscript, 2, I, end subscript, equals, 0
Where i, start subscript, 1, I, end subscript and i, start subscript, 2, I, end subscript are the currents in start text, R, end text, 1 and start text, R, end text, 2 caused by the current source.
We complete the analysis by adding the contributions from each source:
i, start subscript, 1, end subscript, equals, i, start subscript, 1, V, end subscript, plus, i, start subscript, 1, I, end subscript, equals, 0, plus, start text, I, s, end text, equals, start text, I, s, end text
i, start subscript, 2, end subscript, equals, i, start subscript, 2, V, end subscript, plus, i, start subscript, 2, I, end subscript, equals, start fraction, start text, V, s, end text, divided by, start text, R, end text, 2, end fraction, plus, 0, equals, start fraction, start text, V, s, end text, divided by, start text, R, end text, 2, end fraction
The full solution looks like this:
This could have been a tricky analysis because the two sources make it more difficult to write node or loop equations. We exploited superposition, which gave us two simpler circuits to deal with.

### Example 2

#### Conventional solution

For the following linear circuit let’s calculate the output voltage start color #e07d10, v, end color #e07d10.
We will do it the conventional way first. We write Kirchhoff's Current Law at output node start color #e07d10, v, end color #e07d10:
$\begin{array}{ccc} +i_{\text R1} &- i_{\text R2} &+\text{Is} &= 0 \\ \\ +\dfrac{\text{Vs}-v}{\text{R1}} &- \dfrac{v}{\text{R2}} &+ \text{Is} &= 0 \end{array}$
We can rearrange this to get an expression for start color #e07d10, v, end color #e07d10 and gather like terms together on the right side:
v, equals, start fraction, start text, R, 2, end text, divided by, start text, R, end text, 1, plus, start text, R, end text, 2, end fraction, start text, V, s, end text, plus, start fraction, start text, R, end text, 1, start text, R, end text, 2, divided by, start text, R, end text, 1, plus, start text, R, end text, 2, end fraction, start text, I, s, end text
(conventional solution)

#### Solution using superposition

Now we will solve the same problem using the principle of superposition. As before, we suppress the input sources and solve new simpler circuits.
How would you suppress the current source?
Replace the current source with a ___.

The circuit collapses down to two resistors in series (a voltage divider).
Voltage v, start subscript, V, s, end subscript is the contribution from voltage source start text, V, s, end text.
With just the voltage source, the output voltage is:
v, start subscript, V, s, end subscript, equals, start text, V, s, end text, start fraction, start text, R, end text, 2, divided by, start text, R, end text, 1, plus, start text, R, end text, 2, end fraction
Now we restore the current source and suppress the voltage source.
How would you suppress the voltage source?
Replace it with a ___.

The circuit collapses down to two resistors in parallel.
Voltage v, start subscript, I, s, end subscript is the contribution to the output from current source start text, I, s, end text.
v, start subscript, I, s, end subscript, equals, start text, I, s, end text, start fraction, start text, R, end text, 1, dot, start text, R, end text, 2, divided by, start text, R, end text, 1, plus, start text, R, end text, 2, end fraction
We complete the superposition analysis by adding the two voltage contributions. As predicted, we get the same result as the conventional solution shown above.
v, equals, v, start subscript, V, s, end subscript, plus, v, start subscript, I, s, end subscript
v, equals, start fraction, start text, R, 2, end text, divided by, start text, R, end text, 1, plus, start text, R, end text, 2, end fraction, start text, V, s, end text, plus, start fraction, start text, R, end text, 1, dot, start text, R, end text, 2, divided by, start text, R, end text, 1, plus, start text, R, end text, 2, end fraction, start text, I, s, end text
(superposition solution)
There is no approximation involved. The solutions are exactly the same. The key thing to notice is that the two simpler circuits took significantly less work to analyze.

### Linearity and superposition are useful tools

If you have a circuit made from linear elements, you get to use the principle of superposition. This means the original complicated circuit is really simpler circuits that happen to be sitting on top of each other. It seems like magic, but this property means that overlapping inputs and superimposed circuits don't affect each other or intertwine at all. Every simple circuit is blissfully unaware of the others until you do the final addition.
This is a marvelous property of linear circuits, and it is one of the reasons we love linearity so much. Circuits that are not linear (non-linear circuits) don't have this property, and superposition cannot be applied. (But don't worry, we love non-linear circuits, too, just in a different way.)

## Summary

If a circuit is made of linear elements, we can use superposition to simplify the analysis. This is especially useful for circuits with multiple input sources.
To analyze a linear circuit with multiple inputs, you suppress all but one input or source and analyze the resulting simpler circuit. Repeat for all inputs and sources. Then add the results to find the total response for the full circuit.

### Suppressing sources

To suppress a voltage source, replace it with a short circuit:
To suppress a current source replace it with an open circuit: