Networks, and how a solve is checked

Two solves that add, and the one that does not

Every node voltage and every branch current in a linear network is the sum of the per-source solves, here to the last bit of a double at eighty-one settings. The power is not, and the gap is not a correction: two equal sources in antiphase put nothing at all into a load while adding their powers gives 222 milliwatts, and the sum is within one per cent of the truth only when one source is two hundred times the other.

Assumes: What a network answers, and how the answer is checked · The current that does no work

Superposition is the first theorem anybody meets in this subject and it is almost always stated about a circuit: turn off all the sources but one, solve, repeat, add. Stated that way it invites a question it does not answer, which is add what. The theorem is not about circuits. It is about a class of quantities, and the class has a sharp edge that runs straight through the middle of the things a designer actually wants to know.

Inside the class: every node voltage, every branch current, every charge, every flux. Outside it: every power, every root-mean-square value, every efficiency — everything quadratic in the solution. And the second list is not “approximately inside”. The error has a closed form, it can be larger than either contribution, and it can carry either sign.

Superposition holds for the solution and not for its squarecomputed by solving, not by drawing, at 81 settings of the second source. Two ten-volt sources reach one hundred-ohm load through a hundred ohms each. Every node voltage and every branch current is the sum of the two single-source solves to 3.8e-16 of itself — superposition, exactly. The power is not: the difference is 2·Re(I₁·conj(I₂))·R to 1.0e-15, and at 0° between the sources and equal size it is 444.4 mW against the 222.2 mW that adding gives. Adding the two powers is within one per cent of the truth only when one source is below 0.00505 of the other. The slider is the angle between them: at 90° the two curves coincide to the last bit, and at 180° the true power falls to zero while the sum does not.020040060080000.50011.502the second source, as a multiple of the firstpower into the load (milliwatts)the two powers, addedwhat the load actually getsphase between themat equal size, truly444.4 mWadding the two powers222.2 mWtruth ÷ the sum2.000×within 1% only below0.00505×voltages add to3.8e-16solved, then checked — three solves, one loadpowers add only at 90°, or beyond 198:1
Fig. 1 Two ten-volt sources reach a hundred-ohm load through a hundred ohms each. The lower curve is the power the load actually receives; the upper one is what adding the two sources’ individual powers gives. They agree nowhere on the axis except at the ends. The slider is the angle between the sources, and at ninety degrees the two curves lie on top of one another to the last bit.

The network, and the three solves

Two independent sources, both ten volts root-mean-square at a kilohertz. The first reaches a node through a hundred ohms; so does the second; and a hundred-ohm load runs from that node to ground. Six components with the load, five without, and nothing about it is contrived — it is the shape of two supplies feeding one rail, or two antennas feeding one receiver, or two amplifiers driving one speaker.

Three solves are done at every point on the sweep, and the middle one is worth stating carefully because it is where the theorem is usually mis-stated. “Set the other source to zero” does not mean delete it. A voltage source with no voltage in it is a short circuit and it stays in the netlist, contributing its own equations, because the topology must not change between the three solves. The site’s solver takes a source value of zero and does exactly that; nothing is removed and no node disappears.

A network solved, and checked: a bridge, which no series-parallel reduction reaches. Node potentials from modified nodal analysis. The branch currents are then recomputed from each element's own law and summed at every node; the residual is 2.7e-16 of the largest current in the circuit, which is floating-point rounding and nothing else.
Fig. 2 What a solve is here, and what is done to every one of the two hundred and forty-three solves behind the figure above. The branch currents are rebuilt from the element laws and summed at every node; the resistors’ dissipation is counted against the sources’ delivery by a route that reads no resistance. Both checks run on the combined solve and on each single-source solve independently.

With both sources at ten volts and in phase, the node sits at 6.6667 V. Each source alone puts 3.3333 V there, which is ten volts divided by three: with the other source shorted, its hundred ohms sits in parallel with the load’s hundred, so the live source drives 100 Ω into 50 Ω. The two contributions add.

The worst departure between the combined solve and the sum of the two single-source solves, across eighty-one settings of the second source and all seven angles the slider offers, is 3.8×10163.8\times10^{-16} of the voltage. That is one unit in the last place of a double. There is nothing left to measure: the two computations produced the same number and differ only in which intermediate rounded which way.

The same holds for the current through every element, checked the same way and coming out at 1.1×10161.1\times10^{-16}. So superposition is exact here in the strongest sense the arithmetic allows, and no part of what follows is a criticism of it.

It is worth pausing on how weak an assumption that took. Nothing was said about the frequency, the element values, the topology or the number of sources. Superposition needs one property and one only — that every element’s law be a linear relation between its own voltage and its own current — and every element in this collection except the diode and the transistor has one. That is why the theorem is the load-bearing wall under Thévenin equivalents, transfer functions, phasors, Fourier analysis and the whole of the frequency field: each is superposition applied to a different decomposition of the same input.

Impedance of a resistor in series with a capacitor, measured by driving it. One ampere is forced into the terminals at each frequency and the resulting voltage is the impedance. The minimum is 1.00e+3 Ω at 477 kHz.
Fig. 3 A port’s impedance over frequency, which is a linear quantity like every other one the matrix returns — it superposes, it is well defined for a network with any number of sources in it, and it is exactly what a Thévenin reduction preserves. The power delivered into it is the quantity that does not.

Where the powers go

Now ask the same three solves for the power in the load.

With both sources on, the node is 6.6667 V and the load takes 444.44 mW. With the first source alone it takes 111.11 mW; with the second alone, the same. Their sum is 222.22 mW. The truth is twice the sum.

Nothing has gone wrong. Power is I2R|I|^2R and the current is a sum, so

P=I1+I22R=I12R+I22R+2Re(I1I2)RP = |I_1 + I_2|^2 R = |I_1|^2R + |I_2|^2R + 2\,\mathrm{Re}(I_1 I_2^{*})\,R

and the third term is the whole of the discrepancy. The figure asserts that identity rather than bounding the disagreement: the measured gap and 2Re(I1I2)R2\,\mathrm{Re}(I_1 I_2^{*})R agree to 6×10166\times10^{-16} at every point on every sweep. This is the site’s usual habit — a residual with a closed form is a measurement, and a residual without one is a disappointment.

the two sources load takes adding the powers gives ratio
in phase, equal 444.44 mW 222.22 mW 2.000
60° apart, equal 333.33 mW 222.22 mW 1.500
90° apart, equal 222.22 mW 222.22 mW 1.000
150° apart, equal 29.77 mW 222.22 mW 0.134
180° apart, equal 1.7×10301.7\times10^{-30} mW 222.22 mW 0

The last row is the one to sit with. Two sources, each of which would deliver a ninth of a watt on its own, deliver nothing whatever together. The load is not being under-driven; there is no current in it at all, to thirty digits. Adding the powers gives 222 milliwatts of heat that does not exist.

Superposition holds for the solution and not for its square. computed by solving, not by drawing, at 81 settings of the second source. Two ten-volt sources reach one hundred-ohm load through a hundred ohms each. Every node voltage and every branch current is the sum of the two single-source solves to 3.3e-16 of itself — superposition, exactly. The power is not: the difference is 2·Re(I₁·conj(I₂))·R to 1.3e-15, and at 30° between the sources and equal size it is 414.7 mW against the 222.2 mW that adding gives. Adding the two powers is within one per cent of the truth only when one source is below 0.00505 of the other. The slider is the angle between them: at 90° the two curves coincide to the last bit, and at 180° the true power falls to zero while the sum does not.
Fig. 4 Thirty degrees apart. At equal size the two sources deliver 414.7 mW where adding the separate powers gives 222.2 — nearly twice — and the voltages still superpose to 3.3×10⁻¹⁶. Where the powers go is not into a second solve: they go into the cross term, which is the product of two voltages neither solve contains on its own.

The angle at which the shortcut is exact

The cross term is 2Re(I1I2)R2\,\mathrm{Re}(I_1 I_2^{*})R, and the real part of a product of two phasors is their magnitudes times the cosine of the angle between them. So it vanishes when they are ninety degrees apart — not approximately, and not on average, but identically, at every amplitude ratio on the axis.

That is the one case in which “the powers add” is a theorem rather than a mistake, and the figure tests it directly: at ninety degrees, the two curves agree across the whole sweep to 1×10141\times10^{-14}. Two sources in quadrature contribute independently to the heat.

The generalisation is the one that makes this useful rather than a curiosity. Two sources at different frequencies are orthogonal over any interval containing a whole number of both periods, so their cross term averages to zero and their mean powers add exactly. Driving the same hundred-ohm resistor with 3.3333 V at 1 kHz and 3.3333 V at 1.6 kHz, averaged over five milliseconds — five cycles of the first and eight of the second — gives 222.222 222 2 mW against a sum of 222.222 222 2 mW, agreeing to 3.5×10143.5\times10^{-14}.

This is why noise powers add, why the harmonics of a distorted current can be summed in quadrature to get its heating, and why an equivalent noise bandwidth is a meaningful thing to compute at all. Every one of those is the quadrature case of this identity, and each is used daily by people who would say, if asked, that powers do not superpose.

Superposition holds for the solution and not for its square. computed by solving, not by drawing, at 81 settings of the second source. Two ten-volt sources reach one hundred-ohm load through a hundred ohms each. Every node voltage and every branch current is the sum of the two single-source solves to 1.2e-16 of itself — superposition, exactly. The power is not: the difference is 2·Re(I₁·conj(I₂))·R to 5.0e-16, and at 90° between the sources and equal size it is 222.2 mW against the 222.2 mW that adding gives. Adding the two powers is within one per cent of the truth only when one source is below 0.00505 of the other. The slider is the angle between them: at 90° the two curves coincide to the last bit, and at 180° the true power falls to zero while the sum does not.
Fig. 5 Ninety degrees: 222.2 mW against 222.2 mW. The angle at which the shortcut is exact is exactly this one — quadrature, where the cross term integrates to zero — and it is the only angle at which adding powers is right rather than approximately right.

How far apart the sources have to be

The practical question is not whether the shortcut is exact but when it is close enough, and there is a clean answer. Writing rr for the ratio of the two sources, in phase, the fractional error of the sum against the truth is

P(P1+P2)P=2r(1+r)2\frac{|P - (P_1 + P_2)|}{P} = \frac{2r}{(1 + r)^2}

which is a half at r=1r = 1, falls away on both sides, and reaches one per cent at r=0.005051r = 0.005\,051. Bisected on the solved network rather than on that expression, the figure returns 0.0050510.005\,051one source has to be a hundred and ninety-eight times the other before adding their powers is right to a per cent.

That number is the reason this is worth an essay. A designer’s intuition is that the shortcut fails when two contributions are comparable and works when one dominates, which is true; the intuition about how much domination is needed is wrong by two orders of magnitude. Twenty decibels of separation between two in-phase sources still leaves the sum of their powers twenty per cent short.

What happens when the network is not linear

Everything above rests on the network being linear, and it is worth seeing what the failure looks like rather than being told that it happens.

Take the same two-source arrangement — five volts through a kilohm, three volts through another kilohm, meeting at a node — and put a diode from that node to ground through a hundred ohms. Solve the whole thing with Newton’s method on the netlist, then solve it twice more with one source zeroed each time.

solve node voltage diode drop diode current
both sources 1.249 06 V 0.698 871 V 5.5019 mA
five volts alone 1.126 V 0.683 429 V 3.0276 mA
three volts alone 0.663 V 0.663 385 V 1.3944 mA
the two added 1.789 01 V 1.346 81 V 4.4220 mA

The added node voltage is 43.2% high. The added diode drop, 1.35 V, is a voltage no silicon diode has ever had. And the added current is 19.6% low — the true current is 1.244 times the sum of the two — because the exponential is convex and the sum of the responses to two inputs is less than the response to their sum.

Two things are worth noticing. The failure is not small, and it is not in a consistent direction: the voltages come out high and the current comes out low, because the two quantities sit on opposite sides of a curve. And nothing in the arithmetic complains. Each of the three solves converges, each satisfies the current law rebuilt from the exponentials to a part in 101510^{15}, and adding three correct numbers gives a wrong one.

Superposition holds for the solution and not for its square. computed by solving, not by drawing, at 81 settings of the second source. Two ten-volt sources reach one hundred-ohm load through a hundred ohms each. Every node voltage and every branch current is the sum of the two single-source solves to 1.3e-16 of itself — superposition, exactly. The power is not: the difference is 2·Re(I₁·conj(I₂))·R to 6.6e-16, and at 120° between the sources and equal size it is 111.1 mW against the 222.2 mW that adding gives. Adding the two powers is within one per cent of the truth only when one source is below 0.00505 of the other. The slider is the angle between them: at 90° the two curves coincide to the last bit, and at 180° the true power falls to zero while the sum does not.
Fig. 6 A hundred and twenty degrees: 111.1 mW against 222.2 — half. What happens when the network is not linear is that superposition itself fails, not merely the power addition; here the voltages superpose exactly at every angle and only the powers do not.
Superposition holds for the solution and not for its square. computed by solving, not by drawing, at 81 settings of the second source. Two ten-volt sources reach one hundred-ohm load through a hundred ohms each. Every node voltage and every branch current is the sum of the two single-source solves to 1.5e-16 of itself — superposition, exactly. The power is not: the difference is 2·Re(I₁·conj(I₂))·R to 5.6e-16, and at 180° between the sources and equal size it is 1.666e-30 mW against the 222.2 mW that adding gives. Adding the two powers is within one per cent of the truth only when one source is below 0.00505 of the other. The slider is the angle between them: at 90° the two curves coincide to the last bit, and at 180° the true power falls to zero while the sum does not.
Fig. 7 A hundred and eighty degrees: 1.67×10⁻³⁰ mW against 222.2 mW from adding. Two sources of equal size in antiphase deliver nothing at all, and adding their powers gives a fifth of a watt. Across the angles drawn the true power runs 444.4, 414.7, 333.3, 222.2, 111.1 and 0 mW while the sum of separate powers is 222.2 at every one.

Three places this shows up on a bench

Adding up interference. Several sources of hum and pickup arrive at one input, each measured alone. If they are at the same frequency — and mains-related pickup is — the cross terms are real and the total can be anywhere between the difference and the sum of the amplitudes. Only when the sources are genuinely independent in time does the root-sum-square that everybody uses become correct.

Two supplies sharing a load. Two regulators paralleled onto one rail deliver currents that add; their dissipations do not, and the one that happens to be a few millivolts higher takes very much more than half the heat. The current is a linear quantity and the heat is not, which is why current sharing needs a mechanism and voltage sharing does not.

Reading a distorted waveform. The heating in a wire is the sum of the heating from each harmonic, exactly, because the harmonics are orthogonal. The heating from a fundamental plus an identical-frequency reflection is not the sum of the two, for exactly the reason the table above gives. Same instrument, same arithmetic, two different answers, and which one applies depends on a property of the signal rather than of the circuit.

Superposition holds for the solution and not for its square. computed by solving, not by drawing, at 81 settings of the second source. Two ten-volt sources reach one hundred-ohm load through a hundred ohms each. Every node voltage and every branch current is the sum of the two single-source solves to 2.7e-16 of itself — superposition, exactly. The power is not: the difference is 2·Re(I₁·conj(I₂))·R to 7.5e-16, and at 60° between the sources and equal size it is 333.3 mW against the 222.2 mW that adding gives. Adding the two powers is within one per cent of the truth only when one source is below 0.00505 of the other. The slider is the angle between them: at 90° the two curves coincide to the last bit, and at 180° the true power falls to zero while the sum does not.
Fig. 8 And sixty degrees: 333.3 mW against 222.2. Three places this shows up on a bench are a two-tone intermodulation test, a supply carrying ripple from two converters, and any measurement of a distorted waveform’s heating — in each of them a total is wanted and two separate answers are what is available.

What this essay does not claim

That the cross term is a nuisance. It is the signal, in half the circuits in this collection. A mixer, a phase detector, a lock-in amplifier and a power meter all exist to measure 2Re(I1I2)2\,\mathrm{Re}(I_1I_2^{*}) and would have nothing to do if powers superposed.

That superposition is slow. It is not, and the three-solve route is often the fastest way to understand a network even when one solve would do — separating a supply’s contribution from a signal’s is exactly this construction. What is being warned about is one step further on, where the separated results are recombined into something quadratic.

That the diode result generalises to a bound. It does not. The 43% above is a property of that netlist at those two source values; a different bias gives a different number, and the only general statement is the one the semiconductors field makes, that the error is second order in the drive about any operating point.

That two frequencies are always orthogonal. They are orthogonal over an interval containing a whole number of both periods. Over an arbitrary window they are not, which is the whole content of spectral leakage, and the digital field measures what it costs.

Where superposition is refused

Voltages add and powers do not, and this collection meets the same distinction three more times. Exact outside and wrong within is a reduction exact in the voltages and silent about the dissipation. What a network answers, and how the answer is checked is where energy counted two ways is one of the two standing checks. A bias point is a solution, not a choice is where superposition fails outright rather than only for powers, and The current that does no work is the power field’s own version of the same accounting.

The gate

Superposition is asserted on the solution, not on the answer. Every node voltage and every branch current from the combined solve is compared with the sum of the two single-source solves at eighty-one amplitude ratios and seven angles, and required to agree to 101410^{-14} of the larger contribution.

That normalisation is deliberate and it is the second time this site has needed it. At 180° and equal amplitudes the result is zero by cancellation, and a relative error taken against the result reports 101410^{-14} of nothing as a catastrophe — which is what the first version of this check did, and what the feedback field’s sensitivity figure did a phase earlier where its own curve passes through zero. The scale of a difference between two numbers is the size of the numbers.

The power gap is asserted to equal its closed form, 2Re(I1I2)R2\,\mathrm{Re}(I_1I_2^{*})R, to 101210^{-12} — not merely to exist and not merely to be bounded.

The quadrature case is asserted separately, at every amplitude ratio, because it is the one setting of the slider at which the essay’s claim reverses, and a figure whose slider makes its own headline false at one stop needs that stop tested rather than avoided.

And the hundred-and-ninety-eight-to-one figure is bisected on the netlist, not evaluated from 2r/(1+r)22r/(1+r)^2. The expression is in the prose because a reader can check it; the number in the caption came from solving.

Every quadratic quantity in the collection has the same hole

Superposition failing on power is one instance of a general fact — a quantity quadratic in the sources is not a sum of per-source answers — and it is worth listing the other places that fact decides a result, because in each of them the quadratic quantity is the one somebody actually wanted.

Exact outside and wrong within is the same failure wearing a different hat: six elements reduce to one source and one resistor that no load can distinguish from them, to the last bit of a double, and the reduction is wrong about the heat by a factor of forty-three — reporting nothing dissipated with nothing connected while the network burns 48 milliwatts. A reduction and a superposition are both linear manipulations, and both are exact about voltages and silent about power.

The current that does no work is where the collection makes the distinction structural rather than incidental: a solved network reports its own real power on every page as the second of two checks, and what that check discards is the imaginary half — power that flows out to a reactance and back, does nothing, and is still carried by the cable and still on the bill.

And the load that takes the most is the quadratic quantity being optimised rather than merely computed, with the answer — a load equal to the source resistance, at exactly fifty per cent efficiency — being a statement about a product of two linear quantities that no superposition of either would produce.

The rule they share is short. Solve for voltages and currents, add those, and compute every power at the end. Every failure on this page comes from doing the last two steps in the other order.

Two sources that are not two sources

The arrangement measured here — two independent sources in one network — is rarer in practice than the arrangement it stands in for, which is one source and one disturbance. Three of those appear elsewhere in this collection and each is a superposition being relied on without being named.

What gets through from the rail is a superposition exactly: the reference is set to zero and the rail is driven, which is only a measurement of anything because the two contributions add. The essay’s whole result — sixty decibels between two topologies with identical loops — is a statement about one term of a sum.

The millivolts in the wire is the same construction with the disturbance being somebody else’s load current: half a millivolt added to a ten-millivolt reading, which is an addition and not an interaction, and which is why subtracting the two ends of the conductor removes it at all.

And the rail the load moves is where the superposition is what is being measured: one amplifier’s load step reaching a second amplifier that shares nothing with it but a wire, at 3.84 microvolts per ampere or 17.3 millivolts depending on where one capacitor returns.

In all three the linearity is doing real work and nobody writes it down, which is the reason this essay exists. What none of the three could do is add the powers — the disturbing channel’s dissipation and the disturbed channel’s are not separable that way, and any thermal argument built on summing them is making the mistake measured here at 222 milliwatts. Which is a mistake with no residual to warn about it: both per-source solves are exact, their sum is exact, and only the quantity assembled from them afterwards is wrong.

What links here

Essays that reach for this one mid-argument — the half of a link its own author cannot write down, the 8 sharing most with it of 9.

What this makes readable

Essays that name this one as a prerequisite.

The objects named here

The third axis, after the field and the idea: the things themselves, and every essay that touches each one.

Model rangeModified nodal analysisNonlinearityQuadratureReal powerSuperpositionVerification