Networks, and how a solve is checked

The cross terms that outnumber the sources

With two sources the power in a load has one cross term, and adding the separate powers is wrong by a factor of two. With thirty-two there are four hundred and ninety-six of them, and the factor is thirty-two: 940 milliwatts delivered against the 29.4 that adding gives. With the same thirty-two sources at seeded random phases it is 26.9 milliwatts — the sum itself, inside the standard error of sixty-four runs, because every cross term averages to nothing. One identity, two limits, and the two are a phased array's gain and a noise sum's.

Assumes: Two solves that add, and the one that does not · The current that does no work

Two solves that add measured the power’s failure to superpose on the smallest network that can show it: two sources, one load, one cross term. The cross term is 2Re(I1I2)R2\,\mathrm{Re}(I_1 I_2^{*})R, the figure requires that identity rather than bounding the disagreement, and the two extreme cases are the memorable ones — in phase the load takes twice what adding gives, and in antiphase it takes nothing at all while adding gives 222 milliwatts of heat that does not exist.

Two is the smallest number of sources that has a cross term and it is not the usual number. A power rail has several supplies on it, an antenna array has many elements, a noise floor is the sum of contributions from every resistor in a circuit. With NN sources there are N(N1)/2N(N-1)/2 cross terms, and what they do in the two limits turns out to be two results that are normally taught in different subjects.

Adding powers is wrong by the number of sources, when they are coherentcomputed by solving, not by drawing, at five source counts. 8 ten-volt sources reach one hundred-ohm load through a hundred ohms each. With every source in phase the load takes 790.1 mW against the 98.77 mW that adding their separate powers gives — exactly 8 times, at every count, to a part in 10¹², because all 28 cross terms are positive and equal. With seeded random phases it takes 0.9865 times the sum over 64 runs, against a standard error of 0.125 — the cross terms average to nothing, which is the reason noise powers add and a root-sum-square is the right arithmetic for uncorrelated interference. The factor between the two limits is the source count itself, so it grows without bound: adding powers is not wrong by a bounded amount, it is wrong by how many things are being added.11010sources on the loadpower delivered ÷ the sum of their separate powersthe sum of the separate powersall in phase: N× the sumrandom phases: the sum itselfsources8one alone12.35 mWtheir powers, added98.77 mWall in phase790.1 mW…which is8.000× the sumrandom phases, 64 runs97.44 mW…which is0.9865× the sumcross terms there are28solved, then checked — N(N−1)/2 cross termsN× coherent, 1× incoherent
Fig. 1 Eight ten-volt sources reaching one hundred-ohm load through a hundred ohms each, and the power the load takes divided by the sum of the sources’ separate powers. In phase it is eight; at seeded random phases it is one, with the scatter of sixty-four runs drawn. The slider is the number of sources.

The coherent limit, which is the count

Put NN equal sources in phase. Each reaches the load through its own resistor, so with the others zeroed — left in the netlist as short circuits, which is the care the essay before it insists on — one source alone puts v1v_1 on the load node. With all NN live the node is exactly Nv1N v_1, because voltages superpose and the divider is the same in both solves.

The power is therefore N2N^2 times one source’s, and the sum of the separate powers is NN times one source’s. So:

PcoherentPk=N\frac{P_\mathrm{coherent}}{\sum P_k} = N

exactly, at every count, to a part in 101210^{12}:

sources one alone their powers, added all in phase ratio cross terms
2 111.1 mW 222.2 mW 444.4 mW 2.000 1
4 44.44 mW 177.8 mW 711.1 mW 4.000 6
8 12.35 mW 98.77 mW 790.1 mW 8.000 28
16 3.460 mW 55.36 mW 885.8 mW 16.000 120
32 0.9183 mW 29.38 mW 940.3 mW 32.000 496

Two columns in that table are worth reading together, because their opposite trends are the arithmetic of the whole essay. “One alone” falls with the count — a hundred and eleven milliwatts at two sources and 0.918 at thirty-two — because each source’s own hundred ohms is loaded by every other source’s hundred ohms to ground, so one source acting alone into thirty-two paths delivers very little. And “all in phase” rises towards a limit, because with every source live the parallel combination is a source rather than a load.

So the ratio is NN and neither of its two terms is. A designer reading “adding the powers is wrong by the number of sources” would expect the true power to grow as NN; it grows towards 940 milliwatts, which is what a stiff source delivers into a hundred-ohm load from a hundred-ohm internal resistance, and the load that takes the most is where that maximum is located. The sum of the separate powers falls as NN grows, and the ratio between them is the count.

Why one source alone delivers so little

The table’s first column falls by a factor of 121 across the sweep, and it is worth stopping on because it is the part of the arithmetic that a reader would get wrong from the ratio alone.

With NN sources on the node, one source acting alone drives its own hundred ohms into the parallel combination of the load’s hundred and the other N1N-1 sources’ hundred ohms each — because zeroing a voltage source leaves it in the netlist as a short circuit, so every other source’s resistor is a path to ground. At thirty-two sources that is a hundred ohms into 3.23 ohms, so almost nothing reaches the load.

This is that essay’s care about zeroing doing real work rather than being a technicality. Deleting the other sources instead of zeroing them would leave one source driving a hundred ohms into a hundred, so “one alone” would be a hundred and eleven milliwatts at every count and the table’s first column would be flat. The sum of the separate powers would then be NN times that, growing with the count, and the ratio would come out as one rather than as NN — so the whole result inverts on a step that looks like bookkeeping.

That is worth knowing as a warning about the shape of the arithmetic. The two quantities being compared are both computed on the same NN-source network, and a superposition that changes the network between the solves does not merely lose accuracy — it reverses the conclusion. The source that must not be zeroed is the same hazard for a controlled source, where zeroing removes the element the answer depends on; here it is for an independent one, where deleting rather than zeroing removes a loading path.

The practical reading of the first column is also useful in its own right. A rail with thirty-two supplies on it is a rail where any one supply, tested alone, appears to be barely able to drive the load — and that is not a fault. It is the other thirty-one supplies’ output impedances acting as a load, which is the same shared conductance the node that does not care how many measures on a multi-input summing junction, and it disappears the moment they are all turned on.

Adding powers is wrong by the number of sources, when they are coherent. computed by solving, not by drawing, at five source counts. 4 ten-volt sources reach one hundred-ohm load through a hundred ohms each. With every source in phase the load takes 640.0 mW against the 160.0 mW that adding their separate powers gives — exactly 4 times, at every count, to a part in 10¹², because all 6 cross terms are positive and equal. With seeded random phases it takes 1.114 times the sum over 64 runs, against a standard error of 0.125 — the cross terms average to nothing, which is the reason noise powers add and a root-sum-square is the right arithmetic for uncorrelated interference. The factor between the two limits is the source count itself, so it grows without bound: adding powers is not wrong by a bounded amount, it is wrong by how many things are being added.
Fig. 2 Four sources: 711.1 milliwatts in phase against the 177.8 that adding their separate powers gives — exactly four times, from six cross terms. At random phases, 1.114 times the sum against a standard error of 0.125.

The incoherent limit, which is one

Now give the same NN sources random phases. Every cross term is 2IjIkcos(φjφk)R2|I_j||I_k|\cos(\varphi_j - \varphi_k) R with a cosine of a random angle, so each averages to nothing — and the load takes the sum of the separate powers exactly.

Measured on seeded phases, sixty-four runs at each count:

sources in phase at random phases standard error
2 2.000× 1.027× 0.125
4 4.000× 1.114× 0.125
8 8.000× 0.9865× 0.125
16 16.000× 1.067× 0.125
32 32.000× 0.9167× 0.125

Every one inside the standard error, and it is worth being precise about what that error is, because it is not the 2/n\sqrt{2/n} this site usually quotes for a variance. The squared magnitude of a sum of many unit phasors at random phases is exponentially distributed, whose relative standard deviation is one — so the mean of nn runs has a relative standard error of 1/n1/\sqrt n, which for sixty-four runs is 12.5 per cent. Eight runs would be fifty per cent, which is not a check, and the first version of this used eight.

This is why noise powers add, and it is worth saying that plainly because the two facts are normally learned separately and neither is usually presented as the other’s limit. Every resistor in a circuit contributes a noise voltage whose phase is unrelated to every other’s, so their cross terms average away and the total is the root sum of squares — which is exactly the arithmetic the floor a resistor sets uses to combine sources, and exactly the arithmetic the earlier measurement says is not generally available for powers. The exception it relies on is orthogonality, and random phase is a way of being orthogonal on average rather than exactly.

Adding powers is wrong by the number of sources, when they are coherent. computed by solving, not by drawing, at five source counts. 32 ten-volt sources reach one hundred-ohm load through a hundred ohms each. With every source in phase the load takes 940.3 mW against the 29.38 mW that adding their separate powers gives — exactly 32 times, at every count, to a part in 10¹², because all 496 cross terms are positive and equal. With seeded random phases it takes 0.9167 times the sum over 64 runs, against a standard error of 0.125 — the cross terms average to nothing, which is the reason noise powers add and a root-sum-square is the right arithmetic for uncorrelated interference. The factor between the two limits is the source count itself, so it grows without bound: adding powers is not wrong by a bounded amount, it is wrong by how many things are being added.
Fig. 3 Thirty-two sources: 940 milliwatts in phase against 29.4 from adding, a factor of exactly thirty-two, from four hundred and ninety-six cross terms all pulling the same way. At random phases, 26.9 milliwatts — the sum itself, 0.917 times it, against a standard error of 0.125 over sixty-four runs. The scatter drawn is the individual runs, and it is wide because the distribution is exponential rather than normal.
Adding powers is wrong by the number of sources, when they are coherent. computed by solving, not by drawing, at five source counts. 16 ten-volt sources reach one hundred-ohm load through a hundred ohms each. With every source in phase the load takes 885.8 mW against the 55.36 mW that adding their separate powers gives — exactly 16 times, at every count, to a part in 10¹², because all 120 cross terms are positive and equal. With seeded random phases it takes 1.067 times the sum over 64 runs, against a standard error of 0.125 — the cross terms average to nothing, which is the reason noise powers add and a root-sum-square is the right arithmetic for uncorrelated interference. The factor between the two limits is the source count itself, so it grows without bound: adding powers is not wrong by a bounded amount, it is wrong by how many things are being added.
Fig. 4 Sixteen: 885.8 milliwatts in phase against 55.36 from adding — sixteen times, from a hundred and twenty cross terms — and 1.067 times the sum at random phases. One source acting alone delivers 3.46 milliwatts here, because the other fifteen resistors are a load on it.

Two results that are one identity

The factor between the two limits is the source count, and it grows without bound. That is the essay’s own finding and it has two names in two different subjects.

A phased array’s gain. NN elements driven coherently deliver N2N^2 times one element’s power into a matched load, or equivalently NN times what the same elements deliver independently. The N2N^2 is the figure an antenna engineer quotes and the NN is the figure this essay’s ratio column shows, and they are the same statement divided by different things.

A noise sum. NN uncorrelated contributions deliver NN times one contribution’s power, which is N\sqrt N times its voltage. That is the figure a noise budget uses and it is the same identity with the cosines averaged instead of set to one.

The two are not analogies. They are the two ends of jkRe(IjIk)R\sum_j\sum_k \mathrm{Re}(I_j I_k^{*})R — a double sum whose diagonal is the sum of the separate powers and whose off-diagonal terms are all +1+1 in one limit and average to 00 in the other. Nothing else changed: the network is the same, the elements are the same, and the sources’ amplitudes are the same. Only their phases differ.

Which sharpens that essay’s warning into something usable. It said that adding powers is within one per cent of the truth only when one source is a hundred and ninety-eight times the other — a specific number for two sources, and an alarming one. Generalised, the statement is that the error in adding powers is not a bounded mistake; it is a factor equal to how many things are being added, when they are coherent, and nothing at all when they are not. So the question to ask of any power budget is not how large the contributions are but whether they are correlated, and that is a question about the sources rather than about the network.

Where the answer is neither limit

Real cases sit between, and the between is where the arithmetic stops being simple in an informative way.

Sources at the same frequency from one clock. Several converters synchronised to one oscillator have fixed relative phases — not zero, and not random. Their cross terms are constant and non-zero, so the total is a fixed number somewhere between Pk\sum P_k and NPkN\sum P_k decided by a set of phases nobody chose. The essay below’s own slider is this case for two sources, and its table runs from 444 milliwatts at 0° to nothing at all at 180°.

Sources at slightly different frequencies. Two converters at nominally the same frequency and actually a few parts per million apart have a relative phase that drifts through the whole range, so the total drifts between the two extremes at the beat frequency. A power measurement averaged over a long time reads the incoherent answer; one taken over a short time reads whatever the phase happened to be; and the peak reads the coherent answer, which is NN times the average. That is the failure mode behind a supply that runs warm intermittently with nothing about its load changing.

And harmonics of one current. The essay before it establishes that two components at different frequencies have cross terms averaging to zero over any whole number of both periods, so a distorted current’s harmonics add in quadrature exactly rather than on average. That is the strongest of the three cases and it is the one an instrument relies on: a conductor’s heating from a distorted current is the sum of its harmonics’ heatings, with no phase term at all, which is why a spectrum is a complete description for that purpose. Every tooth the same height uses exactly that to sum a comb of interference in quadrature, and the sum is the one operation in that essay that needs no justification.

Adding powers is wrong by the number of sources, when they are coherent. computed by solving, not by drawing, at five source counts. 2 ten-volt sources reach one hundred-ohm load through a hundred ohms each. With every source in phase the load takes 444.4 mW against the 222.2 mW that adding their separate powers gives — exactly 2 times, at every count, to a part in 10¹², because all 1 cross terms are positive and equal. With seeded random phases it takes 1.027 times the sum over 64 runs, against a standard error of 0.125 — the cross terms average to nothing, which is the reason noise powers add and a root-sum-square is the right arithmetic for uncorrelated interference. The factor between the two limits is the source count itself, so it grows without bound: adding powers is not wrong by a bounded amount, it is wrong by how many things are being added.
Fig. 5 Two sources, which is that essay’s own case: 444 milliwatts in phase against 222 from adding, a factor of two, from one cross term. At random phases it reads 1.027 times the sum. This is the smallest count at which the essay has anything to say, and the factor of two is the whole of what four hundred and ninety-six cross terms turn into thirty-two.

The measurement a bench would take, and why it reads the wrong limit

A power budget is checked by measuring, and the measurement has a bias worth knowing about.

Put a power meter on the load with all NN sources running at unrelated phases and it reads the incoherent answer, because a power meter averages. Turning the sources on one at a time and adding the readings gives the same number, because that is the sum of the separate powers and the two limits agree. So a bench measurement of an incoherent set of sources confirms the arithmetic that would be wrong if they were coherent, and gives no warning at all about the case it does not cover.

Three ways out, in increasing order of what they cost.

Measure the peak rather than the average. An incoherent set has a peak power NN times its average — the coherent answer arriving momentarily whenever the phases happen to line up — so a peak-reading instrument distinguishes the two cases where an averaging one cannot. The distribution is exponential, which the scatter on the figure shows, so the peak over a long observation is several times the mean rather than exactly NN times it.

Change one source’s frequency deliberately. Two sources at exactly the same frequency have a fixed cross term and two at slightly different frequencies sweep through the whole range, so shifting one source by a few parts per million converts a fixed unknown into a measurable swing. The swing’s size is the cross term, and its absence is the evidence that the sources are genuinely uncorrelated.

Or measure the temperature. A dissipation that is NN times the average for a fraction of the time is a thermal problem rather than an electrical one, and whether it matters depends on a thermal time constant against a beat period. That is the honest form of the question and it is the one an averaging power meter cannot be made to answer, because the quantity it needs is a distribution rather than a mean.

The general shape is one these essays keep meeting: an instrument that integrates reports the quantity that superposes, and the quantity that does not superpose is the one that breaks things. The peak that only has a bound is the same distinction inside one waveform rather than across several sources, and its conclusion is the same — a root-mean-square value is exactly additive and a maximum has only an inequality.

What is not in the figure

The sources are equal. Unequal amplitudes change both limits: the coherent ratio becomes (ak)2/ak2(\sum|a_k|)^2/\sum a_k^2, which is NN for equal sources and less otherwise, and reaches one when a single source dominates. That is that essay’s hundred-and-ninety-eight-to-one result generalised, and it is the reason a power budget with one large contributor is safer than one with many comparable ones.

The phases are drawn once per run. A real set of drifting phases is correlated in time, so a measurement’s average depends on how long it is and on the drift rate, which is a bandwidth question rather than a counting one. The distribution measured here is the long-time one.

And the load is resistive. With a reactive load the cross term picks up the load’s own angle, so the coherent limit is not NN but NN times the cosine of something — which is the reactive-power arithmetic the current that does no work is about, and which this figure deliberately avoids by making the load a hundred ohms of resistance.

The count that is not a count

One reading of this essay is that the penalty for adding powers is the number of sources, and that is right for equal sources and misleading for any real set. It is worth writing down what replaces it, because the replacement is a quantity with a use.

The coherent power is (ak)2(\sum|a_k|)^2 times a constant and the sum of the separate powers is ak2\sum a_k^2 times the same constant, so the ratio is

PcoherentPk=(kak)2kak2\frac{P_\mathrm{coherent}}{\sum P_k} = \frac{\left(\sum_k |a_k|\right)^2}{\sum_k a_k^2}

which is NN when every amplitude is equal and less otherwise. At the other extreme — one source much larger than the rest — it is one, and adding the powers is right.

That expression is an effective number of contributors, and it behaves the way one would want. Four equal sources give four. One source with three others a tenth its size gives 1.51. Sixteen sources whose amplitudes halve down a geometric series give 3.86. So a power budget’s exposure to coherence is not how many terms it has but how nearly equal its largest ones are, which is a much less alarming statement than “the number of sources” and a more useful one.

It also says which budgets to worry about. Several identical supplies paralleled onto one rail is the worst case available, because they are equal by construction and often synchronised by design. A noise budget with one dominant resistor is the best, because its effective count is near one whatever the phases do. And the case in between — a handful of comparable contributors from separate equipment — is where the coherent factor is several and nobody knows the phases, which is exactly where a design ought to allow for the worst and usually allows for the average.

The essay before it reached this from the two-source end and found the same thing in different words: adding the powers of two in-phase sources is within one per cent of the truth only when one is a hundred and ninety-eight times the other, which is an effective count of 1.01. Twenty decibels of separation between two contributors still leaves the sum of their powers twenty per cent short, and the effective count there is 1.2.

Still open: the unequal amplitudes, and the drift that makes the peak

The coherent ratio for unequal sources. (ak)2/ak2(\sum|a_k|)^2/\sum a_k^2 is a closed form and it is not drawn, and it is the quantity a real power budget needs — because a rail with one large supply and several small ones is the ordinary case and its coherent penalty is much less than the count. Sweeping an amplitude distribution rather than a count would turn this essay’s NN into the effective number of contributors, which is the quantity every other field calls a participation ratio and this one has not needed a name for yet.

The drift, and the peak it produces. The middle case above says a slowly drifting set of phases makes the total wander between the two limits, so the peak power is the coherent answer however uncorrelated the sources are on average. That is a thermal statement rather than an electrical one — a dissipation NN times the average, for a duration set by the beat period — and whether it matters depends on a thermal time constant against a beat frequency. Both are computable and the pair is not drawn.

And the same count with the sources in series. Everything here is NN sources in parallel into one load, which is a rail. NN sources in series is an array’s other arrangement and its arithmetic is not the same, because the currents rather than the voltages are constrained to be equal — so which of the two limits is favourable ought to invert, and that is worth checking rather than requiring.

What is checked

The coherent ratio is required to be the count, at every count, to a part in 101210^{12}. That is the essay’s headline and it is an identity rather than a measurement, so it is stated as one — a tolerance would have been the wrong shape of check.

The incoherent ratio is held against its own standard error, three of them, rather than against a fixed tolerance. The error is 1/n1/\sqrt n and not 2/n\sqrt{2/n} because the squared magnitude of a sum of random phasors is exponentially distributed rather than a sum of squared normals — which is a factor of 2\sqrt2 and, more importantly, is the reason sixty-four runs are used where eight would have been a fifty per cent check.

And the ratio between the two limits is required to grow with the count by more than a factor of eight across the range, because the essay’s claim is that the error is unbounded rather than large. A figure that required only the two limits at one count would be a figure about two numbers.

Part 4 on superposition

One argument about Superposition, and one of 4 essays on it so far, each part numbered by how much of the idea it assumes. What sits either side of it:

The objects named here

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

QuadratureReal powerSeeded generatorSpectral densitySuperpositionVerification