Concept

Total harmonic distortion — where it appears

The energy in every harmonic above the fundamental as a fraction of the fundamental, and the usual single number for a departure from linearity. It is measured here on a transform of a solved transfer curve, so no expression for it is ever used to produce the number it is checked against.

Named by 16 essays across 6 fields — each of them below, with the objects they name alongside it.

An exponential driven 10.0 mV either side of its bias. computed by solving, not by drawing. A sinusoid in, and out comes a waveform whose peaks are taller than its troughs are deep. The second harmonic is 9.61% of the fundamental, measured by transforming 512 samples and predicted independently as I₂(0.387)/I₁(0.387) = 9.61%. The two routes agree to 5e-10 over the 5 harmonics that stand above the arithmetic's own floor, and share nothing but the amplitude.

The distortion a linear model cannot have

A small-signal model's output is a scaled copy of its input by construction, so it has no second harmonic and asking it for one is not a hard question but a meaningless one. Measured on the curve itself, an exponential produces one per cent of harmonic distortion at 1.03 mV of drive — seven times sooner than the 7.30 mV at which its gain is one per cent wrong.

semiconductors · Distortion
Linearising an exponential at 27 °C, and what it costs. The linear model understates the gain by 1% at 7.30 mV and by 10% at 22.8 mV. The thermal voltage at this temperature is 25.9 mV, so "small compared with Vₜ" is not the criterion — 28% of Vₜ is already 1% wrong.

How small is small signal

Linearising an exponential replaces a curve by its tangent, which is exact at a point and progressively wrong away from it. The amplitude at which it is one per cent wrong is 7.3 millivolts at room temperature — 28 per cent of the thermal voltage, not a small fraction of it, and a good deal smaller than "small signal" suggests.

limits · Small-signal
The limit cycle's spectrum at a gain of 3.20. Ten lines of the settled waveform. The third is 5.692% of the fundamental and the fifth 0.982%; the second and fourth are 6.8e-7, which is the arithmetic's floor and not a small residue. Two diodes facing opposite ways make a symmetric characteristic and a symmetric characteristic produces no even harmonic at all.

What the limiter charges for

The diodes that set the amplitude are the only nonlinear thing in the loop, so every harmonic in the output is theirs. Across the gain slider the amplitude rises by a factor of 1.51 and the distortion by 15.4 — an amplitude that goes as the 0.11 power of the excess gain and a distortion that goes as the 0.74 power. Two diodes facing opposite ways produce no even harmonic at all, at seven parts in ten million, which is the arithmetic's floor rather than a small residue.

applied · Oscillator
Three balanced rectifier loads conducting 60°, and their neutral. computed by solving, not by drawing. The three phase currents are drawn faint and the neutral heavy. Balanced loads, identical in every respect, and the neutral carries 0.968 A against a line current of 0.559 A — a ratio of 1.7321, where √3 is 1.7321. The pulse trains are disjoint, so the neutral is their union and its mean square is three times one phase's. Rebuilding the same current from the multiples of three in one phase's spectrum gives 0.966 A, 0.13% away, by a route sharing only the waveform.

The neutral that carries more than a line

Three balanced loads draw currents summing to 5.3 × 10⁻¹⁵ amperes in the neutral. That is a theorem about sinusoids, and it uses nothing except that each current is a single frequency. A harmonic of order three is shifted by 360° between phases, which is no shift at all — so the third harmonics add, and for any conduction angle narrow enough that the pulse trains stay disjoint the neutral carries exactly √3 times a line current.

power · Three-phase
6.02 bits + 1.76 dB, measured — and the overload that is blamed on it. computed by solving, not by drawing. A coherent sinusoid is quantised and the ratio is read off the error sequence, never from the formula. One step inside full scale the two agree to 0.15 dB at every bit count from 8 to 16. Driven to exactly full scale the same converter measures 0.83 dB worse at 8 bits when driven to exactly full scale, and the reason is in the count beside it: 327 of 8192 samples hit the top code. A mid-tread converter's largest code is one step below full scale, so a sinusoid that reaches full scale is already overloading — half a step of overload, at the peak, where the error correlates with the signal. The loss halves with every bit for the same reason the clipped count does — 0.83, 0.47, 0.21, 0.06, -0.13 dB — and by sixteen bits it is inside the measurement's own scatter. The formula was never the approximation.

Six decibels a bit, and the half step blamed on it

Every converter data sheet quotes 6.02N + 1.76 dB and every bench measurement comes up short of it, which is usually explained by calling the formula an approximation. Measured one step inside full scale it agrees to 0.15 dB at every bit count from eight to sixteen. Driven to exactly full scale the same converter loses 0.83 dB at eight bits — because 327 of 8192 samples hit the top code, and a mid-tread converter's largest code is one step below full scale.

digital · Quantisation
Two meters, one current, and neither of them measuring the heat. computed by solving, not by drawing, at 35 conduction angles. The first curve is an average-responding meter: it rectifies, averages and multiplies by 1.1107, which is exactly right for a sinusoid — -7.8e-5% here — and exactly 11.07% high on a square wave, because the error is the ratio of two form factors and contains neither the amplitude nor the frequency. On a rectifier drawing its 100 W in sixty degrees of conduction it is -35.90% low. The second curve is a true-RMS meter that reaches 9 harmonics, which has no shape assumption in it and a bandwidth instead: it returns the root-sum-square of the lines it can see, and is one per cent low below every angle here of conduction. The crest factor at sixty degrees is 1.733, which is inside every instrument's rating — neither meter is failing because the peak is large. One is failing because the shape is not a sinusoid and the other because the spectrum is wider than it is.

What a meter multiplies by

An average-responding meter rectifies, averages and multiplies by 1.1107, which makes it exactly right for a sinusoid and wrong for everything else by the ratio of two form factors — 11.07 per cent high on a square wave and 35.9 per cent low on a rectifier drawing its current in sixty degrees. It is also exactly right at one other waveform, a 145.90 degree conduction angle, which is nobody's sinusoid. Beside it a true-RMS meter that reaches nine harmonics is two per cent low on a square wave and never within one per cent of anything narrower.

power · RMS and average
The amplitude at which a converter's floor becomes distortion. computed by solving, not by drawing. The quantisation error is transformed and the power in harmonics of the input is measured directly, at the bins those harmonics occupy. Undithered, the share rises from 0.29% at 230 levels to 76.5% at 1.3: the error has stopped being spread and has become a deterministic staircase locked to the signal. The sweep is drawn against the levels the input uses rather than against volts because it is then the same sweep for every converter — a twelve-bit part and a sixteen-bit part agree here to 0.0e+0, so what decides the character of the error is how many levels the signal crosses and not how many the converter owns. With 1 least significant bit of dither the share stays under 0.34% at every amplitude, for 3.03 dB of signal to noise. Adding noise to a converter's input improves what comes out of it, which is true and sounds like it should not be — and the amount is one whole step, not "some": a quarter of a step leaves 52.7% and a half leaves 25.6%, because a dither smaller than a step cannot make the quantiser cross one.

When a floor stops being a floor

Quantisation error is treated as noise and behaves like noise while the input crosses many levels. As the amplitude falls it stops: measured at the bins its harmonics occupy, the share of the error's power sitting in harmonics of the input rises from 0.29% at 230 levels to 76% at 1.3. The floor has not moved. It has become a distortion product locked to the signal, and the fix is to add noise on purpose — one whole least significant bit, and no more.

digital · Quantisation
An exponential with 6× of degeneration: both edges move, and not together. computed by solving, not by drawing at 61 amplitudes. Total harmonic distortion reaches one per cent at 36.6 mV and the gain falls one per cent short of its small-signal value at 85.0 mV. An emitter resistor dividing the gain by 6 moves the distortion edge by 35.4 times — the square of the factor, because the resistor both divides the drive reaching the junction and linearises what the junction does with it — while the gain edge moves by only 11.6 times. So the two edges close up: 2.32 times apart here against 7.06 bare, and a well-degenerated stage stops being limited by its linearity and starts being limited by how accurately its gain is known.

What a resistor in the emitter buys

Degeneration is described as a trade: give up gain, get linearity. Measured on the transfer curve, the two sides of that trade are not the same size. Dividing the gain by six moves the amplitude at which distortion reaches one per cent by thirty-five times — the square of the factor — and the amplitude at which the gain is one per cent out by only twelve. So the two edges close up, and a well-degenerated stage stops being limited by its linearity and starts being limited by how accurately its gain is known.

semiconductors · Emitter degeneration
Three capacitances, all correct: 2.000 µF, 5.814 µF and 2.105 µF at 5 V. computed by solving, not by drawing. The charge is C∞·v + Q_s·tanh(v/V_k) — a linear backbone and a polarisation that saturates — with both parameters pinned by the capacitance at zero volts and at the rated voltage, so there is no third degree of freedom to tune the answer with. The three curves are three questions. The small-signal value is the slope at the bias, which is what a ripple sees. The charge-average is the total charge moved from zero divided by the voltage, which is what a reservoir or a hold capacitor obeys. What a bridge reads is neither: it is the fundamental of the charge waveform under a one-volt test, which is a measurement condition. At 5 V they are 2.000 µF, 5.814 µF and 2.105 µF — a factor of 2.91 between the extremes, and every one of them is the capacitance.

The capacitance that is not one number

A ten-microfarad ceramic at its rated five volts is 2.000 µF as a slope, 5.814 µF as a charge average and 2.105 µF as a bridge reads it — three answers to three different questions, all correct, all called the capacitance. At zero bias the standard one-volt test alone reads 5.2 per cent low. Marched in a circuit the same part distorts as the square of the drive with no bias and in proportion to it with a bias, because the bias is what puts a second harmonic there.

frequency · Real capacitor
An exponential with 6× of degeneration: both edges move, and not together. computed by solving, not by drawing at 61 amplitudes. Total harmonic distortion reaches one per cent at 36.6 mV and the gain falls one per cent short of its small-signal value at 85.0 mV. An emitter resistor dividing the gain by 6 moves the distortion edge by 35.4 times — the square of the factor, because the resistor both divides the drive reaching the junction and linearises what the junction does with it — while the gain edge moves by only 11.6 times. So the two edges close up: 2.32 times apart here against 7.06 bare, and a well-degenerated stage stops being limited by its linearity and starts being limited by how accurately its gain is known.

Where the two exponents come from

What a resistor in the emitter buys measured two exponents and could explain neither: the distortion edge moves as the square of the degeneration factor and the gain edge as its 0.950 power, and at a factor of exactly three halves the gain error vanished. The degenerated transfer curve has no closed form forwards and an exact one backwards, and reverting that series gives all three. The distortion exponent is exactly two; the gain edge is proportional to D squared over the root of the absolute value of three minus twice D, which is infinite at three halves and tends to a three-halves power; and the two edges are 7.07 apart on the bare device and 1.62 at a factor of eleven, against 7.06 and 1.61 measured.

semiconductors · Emitter degeneration
A pair's third-order intercept is 7.8 dB above anything it can produce. computed by solving, not by drawing. Two equal tones through a differential pair, transformed coherently so every product lands in a bin of its own. The fundamental rises with slope 1.000 and the third-order product with slope 3.000, both fitted over the decade marked, and the dashed extensions are the extrapolation a specification quotes. They meet at a drive of 4.00 thermal voltages and an output of 2.00 — against a largest output of 0.8108, which is 8/π² and is what two equal tones give through a limiter. The intercept is 7.84 dB above it, which is π²/4 exactly.

The point the device is never at

A device's linearity is specified by one number, and that number is a place on no curve. The third-order intercept is where two straight lines would cross if both went on being straight, and neither does. For a differential pair the crossing sits π²/4 — 7.84 decibels — above the largest output the device can produce at any drive whatever, and the arithmetic that says so contains no tail current and no temperature.

semiconductors · Distortion
The fourth-order term explains 95% of what the third leaves out. computed by solving, not by drawing. Two closed forms for the amplitude at which a degenerated stage reaches 1% of second harmonic, each against the same measurement — a bisection on the harmonic content of a Newton-solved curve, which shares no arithmetic with either. The leading expression is 4Vₜ·t·D², derived at the rung below this one and exact in the limit of small drive; its error grows as the 1.96 power of the drive it is evaluated at. At a degeneration of eleven that drive is 4.53 thermal voltages and the expression is 6.89% optimistic. Carrying the reversion one order further takes it to 0.362%.

What the fourth order says about the third

A closed form derived by neglecting the fourth-order term is a claim with an error, and the error is a quantity the fourth-order term can be asked about. Carried one order further, the degenerated exponential's reversion predicts 7.33 per cent where the leading expression was measured to be 6.89 per cent optimistic — and takes the residue to 0.362 per cent. The correction has its own edge, in the same quantity, and it is measured too.

semiconductors · Emitter degeneration
Every order buys less range than the one before, and above 9 Vₜ the sixth is worse than the fourth. computed by solving, not by drawing. The error of the same expression truncated at three orders, against the drive it is evaluated at, with the measurement it is chasing being a Newton-solved transfer curve that knows about no series at all. Each truncation's error grows as its own order in the drive — fitted at 2.00, 4.00, 5.88 against 2, 4 and 6 — so each buys a further range at a stated accuracy: inside 1% the leading expression is good to 1.12 thermal voltages, the fourth order to 3.88 and the sixth to 7.03, factors of 3.46 and 1.81. Beyond all of them the series stops helping: at 8.9 thermal voltages, where the second harmonic is 11.4%, the sixth-order expression is exactly as wrong as the fourth and is worse above it. What a designer does there is bisect the curve.

The order that stops helping

Three essays in this field have derived expressions for the amplitude at which a degenerated stage's distortion reaches a target, each one order longer than the last, and each one nearer the measurement. This is where that stops. The error of an expression truncated at order m grows as the m-th power of the drive — 2.00, 4.00 and 5.88 measured — so every added order buys a range that ends sooner than the last one bought, and above 8.9 thermal voltages the six-term expression is further from the device than the four-term one.

semiconductors · Emitter degeneration
Against its own shaping the error is 17.4× tonal, not 51×. computed by solving, not by drawing. The share of an order-1 loop's in-band error sitting in its five largest lines, from 0.02 to 0.9 of full scale, with both nulls drawn. The lower level is 1.953 per cent — five lines of a FLAT error over 256 — and it is what this measurement has always been quoted against. The upper level is 5.74 per cent, which is what five lines of the loop's OWN shaping hold with no tone anywhere in them. Measured against the first the error is 51 times tonal at 0.02 of full scale and 26 at 0.9; against the second, 17.4 and 8.9. The direction survives the correction and the size does not.

A floor, or five tones

The field's sharpest statement about a one-bit loop is that three quarters of its in-band error sits in five lines, against the 1.953 per cent a white error would put in any five — a factor of thirty-eight. The comparison is to a white error, and a shaping loop exists to make its error anything but white. Measured against the loop's own transfer function, which the loop reproduces line by line to a part in five hundred when it is dithered, the same error is 17.4 times tonal at a fiftieth of full scale and 8.9 times at nine tenths. And 99.5 per cent of it at the quiet end is two harmonics of the input.

digital · Noise shaping
A whole number of steps: 1, 2, 3 and 4 agree to 7% and a step and a half is 1.9× worse. computed by solving, not by drawing. The upper panel is the share of the quantisation error sitting in harmonics of the input against the amount of dither added — the upper curve the largest share anywhere on the amplitude sweep, with the spread across the five tones each point averages drawn as a bar, and the lower curve that sweep's mean. Undithered the worst is 76.5 per cent. It falls steeply up to one whole step (4.70 per cent at three quarters, 0.34 at one) and then stops improving — but only AT whole steps. The sweep means at 1, 2, 3, 4 steps are 0.283, 0.297, 0.297, 0.301 per cent, flat to 7 per cent; at 1.5, 2.5, 3.5 they are 0.526, 0.345, 0.311, each above both whole steps beside it. The lower panel is what each costs in signal-to-noise ratio, with 10·log₁₀(1 + L²) drawn through it — the measurement is that curve to 0.118 dB everywhere, so the price is known in advance and only the benefit has to be measured. The choice is a corner and a comb: nothing here is minimised, something stops improving, and between the places where it has stopped it is worse again.

The dither that is a decision

One whole least significant bit is quoted everywhere as the dither, which makes a decision look like a constant. Swept, the axis is a corner and a comb. An eighth of a step leaves 64.5 per cent of the error locked to the signal and one whole step leaves 0.34; above that the sweep mean is 0.283, 0.297, 0.297 and 0.301 per cent at one, two, three and four steps and 0.526 at a step and a half, which fails at exactly the small amplitudes dither exists for. The price is 10·log₁₀(1 + L²) to 0.118 of a decibel, and four steps cost 12.41 for nothing.

digital · Quantisation
Three amplitudes, all of them "one per cent wrong". computed by solving, not by drawing. An exponential driven by a sinusoid has I₀(a) as its mean, 2I₁(a) as its fundamental and 2Iₙ(a) as its harmonics, all checked here against a numerical transform of the waveform itself, agreeing to 9.0e-11. Each gives a different one-per-cent boundary at 27 °C: 1.03 mV for the second harmonic, 5.17 mV for the shift in the operating point the model was linearised about, and 7.30 mV for the gain — which is 1 : 5 : 5√2 at this criterion, and the largest of them is the one usually quoted. The spacing is not a property of the device: the second harmonic is first order in the amplitude and the other two are second, so tightening the criterion to a part in ten thousand spreads the same three to 1 : 50.0 : 70.71. At a drive of one thermal voltage the bias current is 26.6% above quiescent, which is the boundary nobody counts because it moves the thing the model was built at rather than what the model predicts.

Three amplitudes, all of them one per cent

The amplitude at which linearising an exponential is one per cent wrong is 7.30 mV, and that is a statement about the gain. Two other quantities are also one per cent wrong somewhere: the second harmonic reaches one per cent at 1.03 mV and the shift in the operating point the model was linearised about reaches it at 5.17 — which is √2 below the gain boundary exactly, because the mean goes as a²/4 and the fundamental as a²/8. And the spacing is not a property of the device: tighten the criterion to a part in ten thousand and the same three spread to 1 : 50 : 70.7.

limits · Small-signal

Named alongside it

The objects these essays reach for when they reach for this one.

Model rangeGain compressionEmitter degenerationQuantisationClosed formDesign tradeoffEffective bitsTransfer curveConvergence orderDitherLinearisationLocal feedback

All concepts