Power, and the part that does no work

The average a square root pulls low

A true-RMS converter squares, averages and takes the root, and the root of a quantity that ripples averages below the root of its mean. With a hundred-millisecond averager a sine is read one per cent low below 1.86 hertz, where the ripple is still ±20 per cent — and a second filter that steadies the display takes the ripple away and leaves the reading exactly as low as it was. A square wave is read exactly at any averaging time; a rectifier current conducting for twenty degrees needs 2.41 times the averaging a sine does. The implicit converter is the explicit one at half the time constant, and a reading falls 1.38 times slower than it rises.

Assumes: What a meter multiplies by · The current that does no work

What a meter multiplies by put two instruments on one current and found each wrong for a reason the other does not have: the averaging meter carries a constant that belongs to a sine, and the true-RMS meter carries a bandwidth. Its list of what it did not claim included a third contributor to a true-RMS meter’s error, named and left alone — the averaging time.

That one is worth taking seriously, because it is the reason a true-RMS instrument has a lowest frequency as well as a highest, and the reason is not the one the specification suggests. It is not that a slow signal makes the reading wobble, although it does. It is that a square root is applied to something that wobbles, and a square root is curved.

The square is averaged, and the root is not

An explicit converter does three things in order. It squares the input, it averages the square through a one-pole filter of time constant τ, and it takes the square root of the average. Every figure here has τ = 100 ms, a common value for a meter, and every input has a root-mean-square value of exactly one, so that an error is a fraction of the truth.

On a sine the square is a constant plus a single line at twice the frequency: for a unit sine, 1 − cos 2ωt. The averager passes the constant exactly and the line reduced by its gain at 2ω, which far above its corner is 1/(2ωτ). So the averaged square has a mean of exactly one, whatever the frequency, and a ripple whose size is that gain. The converter’s reading is the root of it.

A true-RMS reading of a 2 Hz sine, 0.88% low on average. Two periods of a unit sine's square, that square averaged through a one-pole of τ = 100 ms, and its square root, which is what an explicit converter reads, at 2 Hz in steady state. The averaged square has a mean of exactly one; its root has a mean of 0.991166, −0.883% from the truth, and moves by 37.64% peak to peak.
Fig. 1 Two periods of a 2 Hz sine’s square, the square averaged through 100 ms, and its root, which is the reading. The averaged square has a mean of exactly one. Its root has a mean of 0.991166 — 0.883 per cent low — and moves by 37.64 per cent peak to peak.

The averaged square is right on average and the reading is not, and the gap between them is Jensen’s inequality in its most ordinary form. The square root is concave, so the mean of the root of anything that varies is below the root of its mean. A true-RMS converter reads low whenever its averaged square has any ripple on it, and it never reads high.

The size of the error follows from two terms of a series. Writing the averaged square as 1+e1 + e, the root is 1+e/2e2/81 + e/2 - e^2/8 and a little more. The first term averages to nothing, because ee is a ripple. The second does not, because e2e^2 is never negative. So the reading is low by an eighth of the averaged square’s ripple power, and on a sine, whose averaged square carries a single line of amplitude kk, that is k2/16k^2/16, with kk the averager’s gain at twice the signal frequency.

It is the same arithmetic how small is small signal applies to an exponential. A smooth curve driven by a small wobble about a point shifts its average by half its curvature times the wobble’s variance, because the curvature is the part of the response that does not average away. There the curve was a junction’s exponential and the shift was a distortion product; here it is a square root, whose curvature at one is −¼, and the shift is a reading that is low. Nothing about the averager is nonlinear. The nonlinearity is the root, placed after a filter that could only ever leave some ripple behind.

The ripple falls as the frequency, and the bias as its square

Those two quantities — how much the reading moves and how far its mean is low — are both set by k, and they depend on it at different powers. That difference is what makes the error hard to see.

A true-RMS reading of a sine: ripple a second filter removes, and a bias it cannot. An explicit converter — square, average through a one-pole of τ = 100 ms, take the root — in steady state on a sine of unit root-mean-square value, integrated exactly over a period at 91 frequencies and by a fourth-order march of its own equation at 6, which agree to 1.9e-8. The upper curve is half the ripple on the reading and the lower one the amount by which its mean is low. The reading is low at every frequency, because the square root is concave; it is 1% low below 1.86 Hz, while the ripple is inside ±1% only above 39.8 Hz. The dashed curve is the small-ripple form, an eighth of the averaged square's ripple power, which the bias approaches as the ripple shrinks.
Fig. 2 A true-RMS converter with a 100 ms averager on a unit sine, from 0.1 to 100 Hz. The upper curve is half the ripple on the reading and the lower one the amount by which its mean is low, found as the exact steady state of the converter’s equation and, at six frequencies, by marching that equation, which agree to 1.9 × 10⁻⁸. The reading is 1% low below 1.86 Hz, and the ripple is inside ±1% only above 39.8 Hz.

The reading is one per cent low below 1.86 Hz and its ripple is within ±1 per cent only above 39.8 Hz, a factor of 21 higher. So in the whole band where the bias matters, the reading is visibly swinging — by about ±20 per cent at 1.86 Hz — and the bias sits underneath the swing where nobody looks for it. Above the band where the swing stops being visible, the bias is already negligible: at 5 Hz it is −0.155 per cent, at 100 Hz a few parts per million.

That ordering would be harmless if the swing were what a user saw. It is not what a user is allowed to see, for a reason with its own section below.

The two routes to that figure share nothing but the converter’s equation. The exact steady state joins the input’s samples with straight lines, solves each interval in closed form, and closes one period on itself; the march integrates the same equation forwards with a fourth-order rule, from the true reading, until the start-up is gone. The dashed curve is the small-ripple series, the eighth of the ripple power, which the measured bias approaches from below as the frequency rises and meets to half a per cent at 100 Hz.

A second filter steadies the reading and leaves it low

A reading that swings by ±20 per cent is not presented to anybody. Meters smooth their display; data acquisition averages its readings; a converter feeding a slower loop is filtered by the loop. Each of those is a filter after the square root.

A second filter takes the ripple off a true-RMS reading and leaves it 0.88% low. Two periods of a unit sine's square, that square averaged through a one-pole of τ = 100 ms, and its square root, which is what an explicit converter reads, at 2 Hz in steady state. The averaged square has a mean of exactly one; its root has a mean of 0.991166, −0.883% from the truth, and moves by 37.64% peak to peak. The fourth curve is that reading through a second one-pole of 1000 ms: its ripple is 1.489% and its mean is 0.991166, the same to every figure, because a linear filter with unit gain at direct current cannot move a mean.
Fig. 3 The same 2 Hz reading passed through a second one-pole of 1 s. Its ripple falls from 37.64 to 1.489 per cent peak to peak, and its mean is 0.991166 — the same, to every figure printed, as before the second filter.

The second filter does what it is for: the ripple is cut by twenty-five times and the display settles. Its mean does not move at all, and it cannot. A linear filter with unit gain at direct current passes the mean of its input through untouched, so whatever was below the truth before it is below the truth by the same amount after it. The reading that was a wobbling 0.88 per cent low on average is now a steady reading 0.88 per cent low — which is the worst form the error can take, because nothing about it looks wrong.

The only filtering that reduces the bias is filtering before the root. A longer time constant in the averager itself shrinks k and the bias with its square; a filter after the root shrinks nothing but the ripple. The difference between the two is invisible in the reading’s steadiness and is the whole of its accuracy.

There is a second way, and it is exact. An average of the square taken over a whole number of periods is the mean square exactly, with no ripple to take a root of, which is what the filter an average is calls a null: a rectangle of whole periods rejects the square’s line at twice the frequency completely. A sampling converter that computes the sum of squares over whole cycles has no bias of this kind at any frequency, and trades it for needing to know how long a cycle is.

The shape decides how much averaging is enough

A sine’s square has one line. Other waveforms’ squares have more, and the error is set by how much a waveform’s square moves rather than by how much the waveform does.

The same converter on four waveforms of one RMS value: 1% low below 1.86 Hz on a sine and 4.49 Hz on a narrow pulse. An explicit converter with τ = 100 ms on waveforms of unit root-mean-square value, each from its own exact periodic steady state. What decides the error is how much the waveform's square moves: a square wave's square is constant, so it is read exactly at every averaging time. On a sine the reading is 1% low below 1.86 Hz; on a triangle the reading is 1% low below 2.33 Hz; on a rectifier current, 60° the reading is 1% low below 3.35 Hz; on a rectifier current, 20° the reading is 1% low below 4.49 Hz. A narrow rectifier pulse, whose square is nearly all ripple, needs 2.41 times the averaging a sine does for the same error.
Fig. 4 The same converter on waveforms of one root-mean-square value. A square wave’s square is constant and is read exactly at every averaging time. The reading is 1% low below 1.86 Hz on a sine, 2.33 Hz on a triangle, 3.35 Hz on a rectifier current conducting for 60° and 4.49 Hz for 20° — 2.41 times the averaging a sine needs.

The square wave is the instructive case. Its value is ±1 and its square is 1 at every instant, so the averager has nothing to smooth, the root is taken of a constant, and the converter is exact at any time constant down to none. The waveform with the largest possible swing between its extremes is the one the converter has no trouble with at all.

The rectifier current is the opposite case, and the same one what a meter multiplies by found the averaging meter misreading by a form factor. A current drawn in two narrow pulses a cycle has a square that is nearly all ripple — zero for most of the cycle and large in between — so the averaged square moves a great deal for a given averager, and the converter needs more averaging to read it. At 60° of conduction the one per cent edge is 1.80 times a sine’s; at 20° it is 2.41.

Which of those a converter meets is decided by somebody else’s reservoir capacitor. The direct voltage that is a sawtooth finds a rectifier’s conduction interval shortening as its reservoir grows, so a supply redesigned with a larger capacitor, for less ripple on its own output, draws a current that a true-RMS converter needs more averaging to read. The averaging meter’s form factor and the true-RMS meter’s bandwidth both depended on the same design choice, and this is the third instrument error to arrive from it.

A lowest-frequency specification is quoted for a sine. On the currents that the current that sizes the transformer measures — root-mean-square values three times the direct current, crest factors of thirteen — it is optimistic by more than a factor of two.

A true-RMS reading of a rectifier current, 20°: ripple a second filter removes, and a bias it cannot. An explicit converter — square, average through a one-pole of τ = 100 ms, take the root — in steady state on a rectifier current, 20° of unit root-mean-square value, integrated exactly over a period at 91 frequencies and by a fourth-order march of its own equation at 6, which agree to 3.2e-8. The upper curve is half the ripple on the reading and the lower one the amount by which its mean is low. The reading is low at every frequency, because the square root is concave; it is 1% low below 4.49 Hz, while the ripple is inside ±1% only above 111 Hz. The dashed curve is the small-ripple form, an eighth of the averaged square's ripple power, which the bias approaches as the ripple shrinks.
Fig. 5 The converter on a rectifier current conducting for 20°. It is 1% low below 4.49 Hz and 0.806% low at 5 Hz, and its reading is inside ±1% only above 111 Hz; the exact steady state and the march agree to 3.2 × 10⁻⁸.

The narrow pulse keeps the shape the sine had — ripple falling as the frequency, bias as its square — with both edges pushed up together: the bias edge by 2.41 times and the ripple edge from 39.8 to 111 Hz, 2.79 times. So the distance between the band where a reading visibly swings and the band where it is biased stays about the same for every waveform, between twenty-one and twenty-five times, and the place the bias hides under the swing is the same place. What moves is where the whole picture sits on the frequency axis, and it moves up for exactly the currents a rectifier draws.

A heater switched in whole seconds

The frequency that matters to the averager is not always the one printed on the supply. A burst-fire heater controller switches the mains on for some number of whole cycles and off for some number, so that the element sees 50 Hz and the averager sees the bursts. The square of that current is a 50 Hz sine squared and gated, and its slow part is a square wave in power — the power itself switching between nothing and twice its mean — which is the case the averager has the most trouble with rather than, like a square wave in current, none.

A 100 ms averager reading a heater run at half power in bursts of five cycles on and five off reads it 1.00 per cent low. With bursts of 25 cycles it reads 11.97 per cent low, with 50 cycles 19.60 per cent, and with 250 cycles 27.33 per cent, on its way to the limit a reading that followed each burst exactly would give: 2\sqrt 2 times the truth for half the time and nothing for the other half, which averages to 0.707 of it and is 29.3 per cent low. At that extreme a display’s second filter produces a steady reading of seven tenths of the heating current, from a heater doing nothing unusual, and the averaging time needed to read it properly is set by the controller’s burst period rather than by anything about the mains.

Two converters that are one converter

The other common form of true-RMS converter does not square and then root. It divides: its output yy is fed back, the input’s square is divided by yy, and the quotient is averaged, so that in steady state the average of x2/yx^2/y equals yy and yy is the root-mean-square value. The reason usually given for it is range, since the quotient spans the input’s range rather than the square of it.

Its averaging is not a different kind of averaging. The equation is y=(x2/yy)/τy' = (x^2/y - y)/\tau, and writing the output as the root of zz turns it into z=2(x2z)/τz' = 2(x^2 - z)/\tau — the explicit converter’s averager with the time constant halved. The implicit converter is the explicit one at τ/2\tau/2, exactly, for every input.

The implicit converter is the explicit one at half the time constant, and four times as far low. Two true-RMS converters on a unit sine with the same averaging time constant of 100 ms. The explicit one squares, averages and takes the root; the implicit one divides the square by its own output and averages that. Writing the implicit output as the root of z turns its equation into z′ = 2(x² − z)/τ, which is the explicit averager at τ/2, and the dots are the implicit equation marched as written, landing on the explicit converter's curve at half the time constant to 3.7e-13. So at one time constant the implicit reading is 1% low below 3.73 Hz against the explicit one's 1.86 Hz, and 3.999 times as far low at 100 Hz.
Fig. 6 Both converters with the same 100 ms averager on a unit sine. The dots are the implicit equation marched as written, dividing by its own output; they land on the explicit converter’s curve at half the time constant to 3.7 × 10⁻¹³. The implicit reading is 1% low below 3.73 Hz against the explicit one’s 1.86 Hz, and 3.999 times as far low at 100 Hz.

So at the same capacitor the implicit form is four times as far low far above its corner and one per cent low below twice the frequency, and it settles in half the time, which is the other face of the same factor of two. Nothing about the division helps or hurts the bias beyond that; two converters of the two kinds compared at equal averaging have identical low-frequency errors. A comparison of their specifications that does not say which of them divides is a comparison of two capacitors.

The march is worth a sentence, because the identity is exactly the kind of thing that ought to be measured rather than accepted. The implicit equation has the output in a denominator, which is a different equation to integrate from the explicit one — stiffer where the output is small, and with no square root anywhere — and it arrives at the explicit converter’s answer at half the time constant to 3.7 × 10⁻¹³ of the reading.

A reading falls more slowly than it rises

The averaging time also decides how long a reading takes to arrive after the input changes, and here the square root does something else.

A true-RMS reading falls 1.38 times slower than it rises, and the implicit converter does both twice as fast. The reading of a true-RMS converter after its input's root-mean-square value steps by a factor of 2, up and down, marched from a steady reading and timed to within one per cent of the new one. The explicit converter rises in 3.629 time constants and falls in 5.006, because its averaged square relaxes exponentially and the root compresses an approach from below more than one from above. The implicit converter rises in 1.815 and falls in 2.503, exactly half, being the same averager at half the time constant.
Fig. 7 The reading after the input’s root-mean-square value steps by a factor of two, up and down, timed to within 1% of the new value. The explicit converter rises in 3.629 time constants and falls in 5.006; the implicit converter rises in 1.815 and falls in 2.503, exactly half. A fall takes 1.379 times as long as the rise.

The averaged square relaxes exponentially between the two squares, 0.25 and 1, and it relaxes the same way in both directions. What differs is the target. A reading within one per cent of 1 needs the square within about 2 per cent of 1, which is 2.7 per cent of the gap between the squares; a reading within one per cent of 0.5 needs the square within 2 per cent of 0.25, which is 0.67 per cent of the same gap. The fall has a target four times narrower in the quantity that is actually relaxing, and it takes 1.379 times as long to hit it.

So the settling time of a true-RMS meter is two numbers, and the one a user meets when a load is switched off is the longer. For a converter with a 100 ms averager, a reading that halves is within one per cent after half a second, and one that doubles after 363 ms.

It is a small instance of the complaint the corner that says nothing about an edge makes about a coupled input: one time constant printed on a specification describes a response to sinusoids, and the response to a change is shaped by whatever the instrument does after its filter. It also makes a reading taken just after a load is switched untrustworthy in a known direction — too high for a while after a fall, too low after a rise — during the few time constants that the first cycle, which no steady state contains would call the only interval in which anything interesting happened.

How the numbers were obtained

Every steady state is computed exactly for the converter’s own equation. The input is sampled 4,096 times a period and its square joined by straight lines; each interval is then solved in closed form, one period becomes an affine map of the averaged square onto itself, and the periodic solution is its fixed point, so nothing is marched in from a start-up and nothing is truncated. The second route integrates both converters’ equations forwards with a fourth-order rule, stepping on the sample boundaries, from the true reading until twelve time constants and at least three periods have passed, and averages the reading over two whole periods. Each one per cent edge is found by bisection on the exact steady state, and each settling time by marching a step and held against the closed form τln((r02r12)/(re2r12))\tau\ln\big((r_0^2 - r_1^2)/(r_e^2 - r_1^2)\big), for a step from a reading r0r_0 to r1r_1 that counts as settled once it passes rer_e.

What it does not say

It treats a one-pole averager and nothing else. Converters use multi-pole averagers to trade settling for ripple, and a second pole before the root does reduce the bias, where one after it does not; how much, for a given settling time, is a different measurement. The squarer and the root are ideal, so none of the bandwidth the true-RMS meter ran out of is here, and nor is the offset that limits a converter at small inputs.

It says nothing about a thermal converter, which averages the heating in a resistor and compares it with a second heater rather than taking a root of an averaged square, and whose low-frequency error has a thermal time constant in it instead.

And every input is deterministic. A true-RMS reading of noise has an averaged square that ripples at random rather than at twice a frequency, and the same concavity applies to it.

Still open: noise, whole cycles, and a heater

A true-RMS reading of noise. The averaged square of a white noise voltage has a random ripple whose power is set by the ratio of the averager’s noise bandwidth to the noise’s own, and the root pulls its mean low by an eighth of that power just as it does a sine’s. If the arithmetic carries over, a converter reading noise of a kilohertz of bandwidth through a 100 ms averager is low by a part in a few thousand, and a narrow-band noise measurement is low by much more. That is a prediction from the series above rather than a measurement, and the seeded measurement is the next distinct question on this subject. For flicker noise the ratio has no floor at all, which is where the corner where averaging stops working found averaging itself running out.

A converter that knows the cycle. Summing squares over whole periods removes the bias exactly and moves the error into the period estimate. How far a sampling converter’s reading moves when its assumed cycle is one per cent long — which is the same one per cent that leaves a mean forty decibels short of its null — would put a number on what the exact method costs when the frequency drifts.

The heater and the thermocouple. A thermal converter averages power in a mass and never takes the root of a rippling quantity, and it is what calibrates every other instrument. Solved as a thermal network driven by a slow sine, it would say whether its lowest frequency is set by ripple in temperature — which falls only as the first power of frequency — or by something it shares with the converters here.

Part 2 on RMS and average

One argument about RMS and average, 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.

AveragingConduction angleForm factorMeasurement conditionModel rangeSettling timeTrue-RMS