Networks, and how a solve is checked

The peak that only has a bound

Power does not superpose and the gap has a closed form — two times the real part of one current times the conjugate of the other, exact at every setting. A peak has nothing of the kind. A ten-volt fundamental with a third harmonic a third its size has one root-mean-square value, 7.454 volts at every relative phase because the two are orthogonal, and a peak running from 9.428 to 13.333 volts across the same sweep — reaching the sum of the two peaks exactly at 180 degrees, where the harmonic's own crest lands on the fundamental's, and having no closed form at all at the other end.

Assumes: Two solves that add, and the one that does not · What a meter multiplies by

Two solves that add, and the one that does not drew the line this sequence of essays is about: every node voltage and every branch current in a linear network is the sum of the per-source solves, to the last bit of a double, and every power is not. What made that essay a measurement rather than a warning is that the failure has a closed form. The gap between the true power and the sum of the separate powers is 2Re(I1I2)R2\,\mathrm{Re}(I_1 I_2^{*})R, exactly, at every amplitude ratio and every angle, so the discrepancy is a quantity rather than an error bar.

There is a second class of quantity that does not superpose, and it is worse in a specific way: it has no cross term at all. Only an inequality.

One rms value, and a peak that moves 41 per cent with a phaseA 10 V fundamental and a 3.33 V 3th harmonic, summed, with the harmonic's relative phase swept. The two are orthogonal over a period, so the root-mean-square value is the quadrature sum 7.45356 V at every phase — to 6.2e-15, which is the one case superposition allows and is a theorem rather than an approximation. The peak is not a sum of anything: it runs from 9.428 V to 13.33 V, a factor of 1.414, against a bound of 13.33 V that it reaches exactly at 180° — where this harmonic's own crest lands on the fundamental's, which for n ≡ 3 (mod 4) is that end of the sweep and not the other. At the far end it flattens the crest to 9.428 V, and there the peak has no closed form at all. So one signal has one heating and a headroom requirement that varies by 41 per cent, decided by a phase that no magnitude spectrum carries.-10010voltspeak 9.428 V0510050100150relative phase of the harmonic (degrees)voltsthe bound: 13.33 Vrms, 7.454 V at every phasefundamental10.0 V3th harmonic3.33 Vrelative phaserms, at every phase7.4536 Vpeak here9.428 Vpeak, over the sweep9.428 to 13.33 Vthe bound, |a₁| + |a₂|13.33 Vcrest factor here1.265solved, then checked — a maximum, not an integralrms exact, peak only bounded
Fig. 1 A ten-volt fundamental and a third harmonic a third its size, summed, with the harmonic’s relative phase swept. The upper panel is the waveform; the lower one is its peak and its root-mean-square value against the phase. One of the two curves is flat. The slider is the phase.

The one that is exactly additive

Start with the quantity that does work, because the essay before it already established why and this is the case it applies to most cleanly.

A fundamental and a harmonic are orthogonal over a period: the integral of their product is exactly zero, because one completes a whole number of cycles while the other completes a different whole number. So their mean squares add, and the root-mean-square value of the sum is

Vrms=V12+V22V_\mathrm{rms} = \sqrt{V_1^2 + V_2^2}

which for ten volts and 3.333 is 7.454 volts. Measured across a hundred and eighty-one relative phases, it is 7.454 volts at every one of them, to better than a part in a million.

That is that essay’s quadrature case, and it is worth noting how much stronger it is here than there. There, two sources at the same frequency had to be ninety degrees apart for their powers to add, and the slider had one setting at which the shortcut was exact. Here the two components are at different frequencies, so the cross term averages to nothing over every whole number of both periods and the addition is exact at every setting of the slider. There is no phase at which a harmonic’s power fails to add to a fundamental’s.

Which is the whole reason a distorted current’s heating can be computed from its harmonic amplitudes — what the power field calls the total harmonic distortion arithmetic, and what the current that does no work is careful about in a different direction. Every harmonic’s contribution to the heating in a resistance is independent of every other’s, including of their phases, so a spectrum is a complete description for that purpose.

The one that only has a bound

Now ask the same signal for its peak.

The peak of a sum is bounded above by the sum of the peaks — the triangle inequality, and it is the only general statement there is — and where it sits inside that bound is a function of the relative phase:

relative phase peak rms crest factor
9.428 V 7.454 V 1.265
30° 10.58 V 7.454 V 1.419
60° 11.55 V 7.454 V 1.549
90° 12.32 V 7.454 V 1.653
120° 12.88 V 7.454 V 1.728
150° 13.22 V 7.454 V 1.774
180° 13.333 V 7.454 V 1.789

One root-mean-square value, and a peak that moves by forty-one per cent. The crest factor moves by the same forty-one per cent, because it is the ratio of one thing that moves to one thing that does not.

The two ends of that table are the two shapes anybody working with distorted waveforms would recognise. At 180 degrees the harmonic’s crest coincides with the fundamental’s and the peak is 13.333 volts, which is exactly the sum of the two amplitudes. At 0 degrees the harmonic subtracts at the fundamental’s crest, the top of the waveform is flattened, and the peak has moved off the fundamental’s own crest to somewhere near fifty degrees — where it is 9.428 volts, and where there is no closed form for it at all, because it is the maximum of a transcendental function of the phase.

One rms value, and a peak that moves 41 per cent with a phase. A 10 V fundamental and a 3.33 V 3th harmonic, summed, with the harmonic's relative phase swept. The two are orthogonal over a period, so the root-mean-square value is the quadrature sum 7.45356 V at every phase — to 6.2e-15, which is the one case superposition allows and is a theorem rather than an approximation. The peak is not a sum of anything: it runs from 9.428 V to 13.33 V, a factor of 1.414, against a bound of 13.33 V that it reaches exactly at 180° — where this harmonic's own crest lands on the fundamental's, which for n ≡ 3 (mod 4) is that end of the sweep and not the other. At the far end it flattens the crest to 9.428 V, and there the peak has no closed form at all. So one signal has one heating and a headroom requirement that varies by 41 per cent, decided by a phase that no magnitude spectrum carries.
Fig. 2 Thirty degrees: the peak is 10.58 volts and the root-mean-square value is the same 7.454 it is everywhere on this sweep. A third of the way round and the headroom requirement has already moved twelve per cent, with neither amplitude touched.

Which end reaches the bound, and why it is not the obvious one

That the bound is reached exactly at one end of the sweep is worth being precise about, because the natural way to state it is wrong.

At the fundamental’s crest, θ=90°\theta = 90°, the nn-th harmonic contributes sin(90n+φ)\sin(90n + \varphi). For a third harmonic that is sin(270+φ)\sin(270 + \varphi), which is +1+1 at φ=180°\varphi = 180° — so the two crests coincide in antiphase. For a fifth it is sin(450+φ)=sin(90+φ)\sin(450 + \varphi) = \sin(90 + \varphi), which is +1+1 at φ=0\varphi = 0 — so they coincide in phase.

So the end of the sweep at which the peak reaches the bound is decided by the harmonic number modulo four and by nothing else. “The antiphase case is the worst” is a true statement about a third harmonic and a false one about a fifth, and the difference is a property of the arithmetic rather than of the amplitudes. Written as a check on the figure it is the kind of claim that would have survived review and failed a slider, and this one did: the requirement was first written for the third harmonic and refused the fifth.

For a fifth harmonic at the same amplitude ratio the peak runs from 11.61 volts to 13.333 — a spread of fifteen per cent rather than forty-one, with the same 7.454 volts of root-mean-square throughout. So the size of the phase dependence is a property of the harmonic too, and only its existence is general.

One rms value, and a peak that moves 41 per cent with a phase. A 10 V fundamental and a 3.33 V 3th harmonic, summed, with the harmonic's relative phase swept. The two are orthogonal over a period, so the root-mean-square value is the quadrature sum 7.45356 V at every phase — to 6.2e-15, which is the one case superposition allows and is a theorem rather than an approximation. The peak is not a sum of anything: it runs from 9.428 V to 13.33 V, a factor of 1.414, against a bound of 13.33 V that it reaches exactly at 180° — where this harmonic's own crest lands on the fundamental's, which for n ≡ 3 (mod 4) is that end of the sweep and not the other. At the far end it flattens the crest to 9.428 V, and there the peak has no closed form at all. So one signal has one heating and a headroom requirement that varies by 41 per cent, decided by a phase that no magnitude spectrum carries.
Fig. 3 A hundred and eighty degrees: the peak is 13.333 volts, which is ten plus three and a third exactly, because the third harmonic’s own crest lands on the fundamental’s. The root-mean-square value is the 7.454 volts it is at every other setting. This is the worst case for headroom and it is indistinguishable from the best case by any measurement of heating.
One rms value, and a peak that moves 41 per cent with a phase. A 10 V fundamental and a 3.33 V 3th harmonic, summed, with the harmonic's relative phase swept. The two are orthogonal over a period, so the root-mean-square value is the quadrature sum 7.45356 V at every phase — to 6.2e-15, which is the one case superposition allows and is a theorem rather than an approximation. The peak is not a sum of anything: it runs from 9.428 V to 13.33 V, a factor of 1.414, against a bound of 13.33 V that it reaches exactly at 180° — where this harmonic's own crest lands on the fundamental's, which for n ≡ 3 (mod 4) is that end of the sweep and not the other. At the far end it flattens the crest to 9.428 V, and there the peak has no closed form at all. So one signal has one heating and a headroom requirement that varies by 41 per cent, decided by a phase that no magnitude spectrum carries.
Fig. 4 Ninety degrees, halfway: 12.32 volts of peak, the same 7.454 of root-mean-square, and a crest factor of 1.653 against a sinusoid’s 1.414. The peak has moved 31 per cent from the in-phase case and nothing about the signal’s spectrum has changed — the amplitudes are the same two numbers at every setting of this slider.

What a design pays for each of them

The two quantities buy different things and it is worth separating them, because a specification usually gives one and needs both.

The root-mean-square value decides the heating, and the heating is what a conductor, a resistor and a transformer are sized for. It also decides what a true-rms meter reads, and what a meter multiplies by is where the distinction between that and an averaging meter’s reading is measured — an averaging meter scaled for a sinusoid reads a distorted waveform wrong by its form factor, which is a third quantity again.

The peak decides the headroom, and the headroom is what an amplifier’s rails, a converter’s full scale and an insulation rating are sized for. Nothing about the root-mean-square value bounds it usefully: a crest factor can be anything from one upwards, and this figure shows it moving by 41 per cent with the amplitudes held fixed.

So a signal characterised by its spectrum is characterised for the first purpose and not the second, and the missing information is the phases. That is an unusual thing for a spectrum to be missing, because a magnitude spectrum is normally treated as a complete description of what a signal does to a linear system — and for a linear system it is, which is that essay’s point about voltages superposing. It stops being complete the moment something asks for a maximum, and the things that ask for maxima are the things that break: a rail, a full scale, a breakdown voltage.

Two of the neighbouring measurements are about exactly that gap. The direct voltage that is a sawtooth finds a rectifier drawing its 157 milliamps of average as a 2.098-ampere pulse — a crest factor of 13.4, which gets worse as the reservoir capacitor is made larger, so the component that improves one quantity degrades the other. And the first cycle no steady state contains finds the first conduction after switch-on at 32.4 amperes against a repetitive peak of 1.23 — a factor of twenty-six that no steady-state spectrum contains at all, because it happens once.

Half a bit, from a phase

The place this costs something measurable is in front of a converter, because a converter has both quantities in its specification and they are specified against different things.

A converter’s full scale is a peak limit: exceed it and the output clips, which is not a graceful degradation. Its signal-to-noise ratio is an rms quantity: the quantisation floor is q/12q/\sqrt{12} and what it is compared against is the signal’s root-mean-square value. So the useful dynamic range of the pair is the rms value a signal can have with its peak at full scale, which is full scale divided by the crest factor — and this figure’s crest factor moves by forty-one per cent with a phase.

relative phase crest factor rms at full scale against a sinusoid
1.265 0.791 FS +0.97 dB
90° 1.653 0.605 FS −1.37 dB
180° 1.789 0.559 FS −2.04 dB
a sinusoid 1.414 0.707 FS 0 dB

Three decibels between the two ends of the sweep, which is half a bit — and the two signals are spectrally identical. A twelve-bit converter fed the favourable phase performs like a twelve-and-a-quarter bit one and fed the unfavourable phase like an eleven-and-three-quarter, with the same two amplitudes at the same two frequencies in both cases.

Three decibels is a small number and the reason to state it is what it is not available from. It is not available from the spectrum, it is not available from the converter’s data sheet, and it is not available from the signal’s rms value — and a designer chasing the last half-bit of a converter’s performance, which is a thing people do, is chasing a quantity of the same size as this. The digital field’s own the floor a converter sets measures where a converter’s quantisation floor crosses its source resistance’s thermal one — 18.8 bits for a kilohm in a hundred kilohertz — and the half-bit here sits comfortably inside the range where that crossing matters.

It is also the one term in this arithmetic a design can choose. Amplitudes are set by the signal and the converter’s bits by the part, and the relative phase of a harmonic is set by whatever filtering sits in front — so an anti-alias filter chosen for its skirt, which what the filter in front costs prices in clock rate, is also choosing this half-bit without anybody noticing. A Bessel filter’s flat delay leaves harmonic phases where they were; a Chebyshev’s 49 per cent delay variation does not.

Where the phase comes from, when nobody chose it

The slider on the figure is a free parameter, which is a way of avoiding the question of what sets it in a real signal. Three answers, and they are different in kind.

A nonlinearity sets it. The harmonics a distorting element produces have phases fixed by the nonlinearity’s own shape: a symmetric compression produces odd harmonics in the phase that flattens the crest, which is the 0° end of this sweep and is why clipping reduces the peak-to-rms ratio rather than raising it. That is the one case where the phase is not free and the answer is the favourable one.

A filter moves it. Any network with a frequency-dependent phase — which is every network — shifts a harmonic relative to its fundamental by the difference between the phase responses at the two frequencies. So a distorted waveform’s crest factor changes as it passes through a filter that does not change its spectrum at all. That is worth stating as a sentence because it sounds impossible: a filter flat in magnitude over the band containing both components alters the peak by tens of per cent while leaving every amplitude and the root-mean-square value exactly where they were. The filters field’s own group-delay measurements are measurements of precisely that phase difference.

And two independent sources leave it undetermined. Two converters running at unrelated frequencies, two signals from different equipment, a fundamental and interference: the relative phase drifts, so the peak drifts with it and the worst case is the bound. A design that must not clip has to be built for the bound, and the bound is the arithmetic sum of the amplitudes — which for NN components is ak\sum |a_k| where the heating is ak2\sqrt{\sum a_k^2}, and those two diverge as N\sqrt N.

That last ratio is the useful form of the whole essay. A signal of NN comparable components has a worst-case crest factor N\sqrt N times a single component’s, and its heating has not changed at all. Sixteen interferers of equal size need four times the headroom of one and put the same total power into a load.

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 The essay before it at its own exact case: two same-frequency sources ninety degrees apart, where the powers add to the last bit. The contrast with this essay is the frequency — two components at the same frequency need that one angle for their powers to add, and two at different frequencies need nothing at all, because the cross term integrates to zero over any whole number of both periods.

Two routes to a number with no closed form

The site’s habit is to compute a quantity twice by routes sharing nothing but the netlist, and a maximum is the one quantity on this page where that is awkward — which is worth saying, because it is the reason the figure’s numbers are stated to four figures rather than to twelve.

The root-mean-square value has two routes and they are both exact. Integrate the square of the waveform over a period, numerically; or take the quadrature sum of the amplitudes, in closed form. They agree to a part in a million, and the residue is the quadrature rather than the physics.

The peak has one route, and it is a search. The waveform’s maximum is where its derivative vanishes, which for a fundamental plus a third harmonic is cosθ+313cos(3θ+φ)=0\cos\theta + 3\cdot\tfrac13\cos(3\theta + \varphi) = 0 — a cubic in cosθ\cos\theta whose roots exist in closed form and are not worth having, because there are three of them and which is the maximum depends on the phase. So the figure sweeps twenty thousand points of a period and takes the largest, which locates the peak to a part in 10810^8 of the period and therefore to about a part in 101610^{16} of the value, since the function is stationary there.

That is the one case in this collection where a fine sweep is the right instrument rather than a fallback, and the reason is the stationarity: a quantity being searched for at a maximum is quadratically insensitive to the search’s own resolution. The site’s usual complaint about locating a feature on a grid — the loop gain of a three-pole amplifier being bisected rather than read off a sixty-point sweep, because four points near a crossover is several degrees of margin — does not apply here, and the difference is that a crossover is located where a curve is steep.

One consequence worth having: the two ends of the sweep are not equally trustworthy. At 180° the peak is at the fundamental’s own crest, exactly, so the value is the sum of the amplitudes in closed form and is required to a part in 10910^9. At 0° the peak has moved off the crest to somewhere near fifty degrees, there is no closed form, and the figure reports a number from a search. The essay’s two headline numbers are therefore of different kinds — one a theorem and one a measurement — and the check treats them differently for that reason.

What this does not claim

That the peak is unbounded. It is bounded, tightly, by the sum of the amplitudes, and the bound is reached — so a worst case is always available and is always computable from a magnitude spectrum alone. What is unavailable is the actual peak of an actual signal, which needs the phases.

That the root-mean-square value is always exactly additive. It is additive for orthogonal components, and two components 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 is what the bandwidth a bin is not measures in the noise field. A reading taken over 3.7 cycles of a fundamental has a cross term in it, and its size is a property of the window rather than of the signal.

And nothing here is about a nonlinear network. Both quantities are computed from one waveform. What happens when that waveform drives something whose response depends on its amplitude is that essay’s diode result — three correct solves added giving a wrong answer, with the added diode drop being a voltage no silicon diode has ever had — and a peak is exactly the quantity such an element responds to.

Still open: the filter that changes a crest factor, and the worst case over N

The filter with no magnitude in it. The claim above that an all-pass network changes a crest factor by tens of per cent while changing no amplitude is stated and not drawn. It is a one-figure measurement — a distorted waveform through a delay equaliser, with the spectrum before and after and the peak before and after — and it would be the sharpest available demonstration that a magnitude spectrum is not a complete description of a signal. The filters field already has the sections for it.

The bound at N components, and how often it is approached. ak\sum|a_k| against ak2\sqrt{\sum a_k^2} diverges as N\sqrt N, which is the worst case; what a design needs is how much headroom to allow for a given probability of exceeding it, which for random phases is a distribution rather than a bound. That is a measurement over seeded phases and it is the arithmetic behind every crest-factor allowance in a multi-tone system.

And the nonlinearity that fixes the phase. The section above requires that a symmetric compression produces its odd harmonics in the crest-flattening phase, which is why clipping lowers a crest factor. It follows from the shape of the nonlinearity and it is not solved here — and the case that matters is the asymmetric one, where the harmonics arrive in a phase nothing obvious predicts.

What is checked

The root-mean-square value is required to be the quadrature sum at every phase, to a part in a million, across a hundred and eighty-one settings. That is the theorem, and requiring it at one setting would say nothing, because the claim is that the phase is absent.

The peak is required not to exceed the bound, which is the only general statement about it, and required to move by more than ten per cent across the sweep, which is the claim that the bound is not a description.

The bound is required to be reached exactly, to a part in 10910^9, at the end of the sweep that the harmonic number modulo four selects — and required to be missed by at least five per cent at the other. Written for the third harmonic alone the first of those said “in antiphase”, which is true of a third and false of a fifth; the measurement refused the fifth, which is how the modulo-four rule got into the figure.

And the variation threshold is ten per cent rather than thirty. A third harmonic moves the peak by 41 per cent and a fifth by 15, so a bound fitted to the third refuses the fifth — the standing defect in this ledger, where a requirement with a number in it turns out to be a fact about the first placement rather than about the family.

Part 2 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:

What links here

Essays that reach for this one mid-argument — the half of a link its own author cannot write down.

The objects named here

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

Crest factorHarmonic contentModel rangeQuadratureReal powerSuperposition