#
2.16

Superposition

It should be clear that for any one-variable equation , then:

which holds true for any nonzero slope . In fact, a more general rule is true:

This linear combination rule is what defines a linear system. As previously discussed, a consequence of linear systems and basic linear algebra is that a system of the a system of the form:

where is any square invertible matrix, then the same result holds. If the solution to for some right-hand-side vector is the vector , and so on, then:

## A Matrix Example

Consider the following system of two equations and two unknowns:

This can be equivalently represented as a matrix equation:

This system has the solution , or:

(For review on how we got there, see Systems of Equations.)

We could have solved this system using superposition by breaking up the right-hand-side into parts for each nonzero source term: and , so . In this case, we’ve left it so each one has just one non-zero cell.

Here’s how we’d solve using our split :

- Solve for .
- Solve for .
- Combine .

Let’s work through the three steps.

*For
:*

This is easy to solve because the 2nd row tells us , after which the first row tells us , so . This component of the superposition has the solution:

*For
:*

In this case, the first equation tells us , from which we can see that the second equation says , so , and then . This component of the superposition has the solution:

*Combine the Parts:*

As expected, the sum matches our directly-solved answer above.

Notice that for both sub-problems, solving the system of equations was made much easier because equations with zero right-hand-side quickly told us that two variables are simply proportional to each other, allowing us to reduce the solution space rapidly.

This is how superposition works on a mathematical level. It’s a divide-and-conquer problem solving technique that lets us split a linear system problem into simpler subproblems, from which we can easily combine subsolutions to find our full solution later.

## Sources to Equations

As you may have noticed in Solving Circuit Systems, there were only two components capable of producing a non-zero right-hand-side value in their equations: voltage sources and current sources. Resistors, for example, always generate a component constitutent equation with zero right-hand-side value, as they related a branch current and a voltage difference with intercept at the origin. Additionally, equations from Kirchhoff’s Current Law always sum to zero.

As a result, we can apply superposition to all independent sources, considering the circuit with only one on at a time (setting the rest to 0), and later combine all the node voltages and branch currents to find the final operating point of the circuit.

By turning a source “off,” we mean setting its value to zero. This has slightly different meaning for voltage and current sources:

- For a voltage source, “off” means 0 volts voltage difference ( ), which is a short circuit. We can replace the voltage source with a wire as though the two terminals are directly connected.
- For a current source, “off” means 0 amps flowing through ( ), which is an open circuit. We can delete the current source and leave the two terminals unconnected.

These may seem like opposite outcomes, but remember that both are the straightforward result of setting the right-hand side of their constitutent equations to zero.

Note that superposition must be treated specially in two cases:

**Nonlinear elements.**Nonlinear elements can have nonzero right-hand-side of their equations, in which case doing superposition only over the independent sources would not work. However, we can use superposition on the linearized model of a nonlinear circuit around a particular operating point, and this can be a useful technique.**Dependent sources.**Later, we’ll introduce sources which are not independent, but instead have some voltage or current which is proportional to some other branch current or voltage difference elsewhere in the circuit. Ideal linear dependent sources have zero right-hand-side as well, so we shouldn’t think about turning these on and off. We’ll address these later in the Superposition with Dependent Sources section.

## A Solved Superposition Example

In the Solving Circuit Systems section we looked at a circuit with 4 node voltages and 5 branch currents to solve for. We set up and solved the 9x9 system of equations considering all three sources simultaneously:

Exercise Click to open and simulate the circuit above.

Now, however, we’re going to solve the system by considering the system for each of the three independent sources (only one on at a time):

*For voltage source V1:*

We leave V1 on, but turn off V2 by replacing it by a wire (making be the same node), and turn I1 off by deleting it entirely (so its branch current ). Here’s what this version of the circuit looks like:

Exercise Click to open and simulate the circuit above.

This version of the circuit is very easy to solve by hand: by inspection, and because no current flow through R4. We have just one voltage source with three resistors, and a total equivalent resistance of

The total current from the voltage source is:

From there, we can find the voltage drop in R1, so:

The total current splits between R2 and R3, and since one resistance is half the other, they will share the load two-thirds to one-third:

That’s it! The full solution vector for source V1 only is:

The fractions aren’t pretty, but the circuit becomes so simple that is easy to solve by hand without breaking out any real linear algebra.

You can quickly verify these calculations by clicking on the circuit above, then click “Simulate,” and “Run DC Solver.”

*For voltage source V2:*

In this case, we leave V2 on, but turn off V1 by replacing it with a wire (so X becomes a ground node), and turn off I1 by deleting it.

Exercise Click to open and simulate the circuit above.

This version of the circuit is also fairly easy to reduce by hand. As X is now a ground node, , and since no current flows through resistor R4 as , also.

We now have a single voltage source V2 driving current around a single loop (in direction *opposite* to
) with a total resistance
just as earlier. (If this is too much of a leap, you can also solve the system quickly in full.) The total current will be:

Again, the total current splits two-thirds to one-thirds between R2 and R3, so

We can calculate the voltage at nodes Y and Z from Ohm’s Law:

That’s it! The full solution vector for source V2 only is:

Again, you can confirm these values numerically by clicking the circuit above, clicking “Simulate,” and “Run DC Solver.”

*For current source I1:*

We turn off V1 and V2 by setting their voltages to zero, or replacing them with a wire.

Exercise Click to open and simulate the circuit above.

When we turn off V1 and V2, the circuit becomes very simple, as we can effectively remove resistors R1, R2, and R3 because no current will flow through them ( ). The zero-resistance short circuit path due to V1 will always carry the full current between node X and ground (now that X is a ground!), rather than the finite-resistance path through the resistors.

This circuit is super easy to solve: and . The branch current is the same as (but in the opposite direction of) , so . The full solution vector for source I1 only is:

*Combine the Parts:*

Each of the three sub-problems was quite easy to solve – much easier than the original problems. Now, we can use superposition to combine the three solution vectors into a single one:

This is exactly the same solution as we found when solving the circuit all at once in Solving Circuit Systems.

By using superposition, we were able to break a more complicated circuit down into three much easier ones. Their solutions were easily combined by addition.

Note that while we applied this technique to the *entire* solution vector of all node voltages and branch currents, the same concept applies for any individual value. For example, if we were only interested in the value of the node voltage
, we could apply superposition to quickly see the contribution of each source, without necessarily having to solve for all currents and voltages.

## What’s Next

In the next section, Open Circuit and Short Circuit, we’ll talk about these two common terms and how they’re applied to understanding circuits.

**Ultimate Electronics: Practical Circuit Design and Analysis.**CircuitLab, Inc., 2019, ultimateelectronicsbook.com. Accessed . (Copyright © 2019 CircuitLab, Inc.)