Devices, and the amplitude they stop being linear at

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.

Assumes: A bias point is a solution, not a choice · How small is small signal

There is a question a small-signal model cannot be asked. Not one it answers badly — one that does not exist for it.

A linear model’s output is, by its definition, a scaled copy of its input. Feed it a sinusoid and a sinusoid comes out, at the same frequency, always. It has no second harmonic, not because the second harmonic is small but because the model has no term that could produce one. Every distortion figure in every datasheet describes a quantity that lives entirely outside the model most of the analysis is done with.

An exponential driven 10.0 mV either side of its biascomputed 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 drive: a sinusoidthe current out, and a symmetric one for comparisonone cyclemeasured, against the Bessel ratioharmonic 29.61%harmonic 30.62%harmonic 40.03%harmonic 51.2e-5harmonic 63.7e-7agreement: 5e-10 relativesolved, then checked — a transform against a seriessecond harmonic 9.6% at 10.0 mV
Fig. 1 An exponential driven ten millivolts either side of its bias. A sinusoid goes in and something with taller peaks than troughs comes out; the bars are what it is made of. Each one is measured by transforming five hundred and twelve samples of one period and is predicted independently by a Bessel series that the measurement knows nothing about. The slider is the drive amplitude.

Where the harmonics come from

The mechanism is easier than it looks. Expand a device’s transfer characteristic about its bias point as a power series:

i = a₀ + av + av² + av³ + …

The small-signal model is the first two terms and nothing else; a₁ is the transconductance. Drive that series with v = cos ωt and each power produces its own harmonics: the square of a cosine is a constant plus a cosine at twice the frequency, the cube is a cosine at the fundamental plus one at three times it, and so on.

Two consequences fall straight out, and they explain everything measured below.

The second harmonic is first order in the drive. It comes from a²/2, so its amplitude is proportional to ², and the ratio of second harmonic to fundamental — which is what “distortion” means — is proportional to . Double the drive, double the distortion.

The gain error is second order. The fundamental picks up a correction from the cubic term, 3a³/4, so the gain’s fractional departure from a₁ goes as ². Double the drive, and the gain error quadruples from a much smaller starting point.

That difference in order is why the two boundaries in the title are seven times apart rather than close together, and it is not a property of this particular device.

The check that shares no arithmetic

An exponential driven by a sinusoid has harmonic amplitudes that are known exactly, in closed form, and they are the modified Bessel functions of the first kind: the nth harmonic of exp(v^cosθ/VT)\exp(\hat v \cos\theta / V_T) is proportional to In(v^/VT)I_n(\hat v/V_T). So the ratio of the second harmonic to the fundamental is I2(x)/I1(x)I_2(x)/I_1(x) with x=v^/VTx = \hat v/V_T, and nothing else.

Nothing in the measurement knows that. The figure samples the curve five hundred and twelve times, transforms the samples, and reads off the ratios. The prediction sums a power series. They share the drive amplitude and the thermal voltage and no arithmetic at all.

At ten millivolts of drive the measured second harmonic is 9.6107% of the fundamental and I₂/I₁ at x = 0.3868 is 9.6107%. The worst relative disagreement over the harmonics the arithmetic can resolve is at the level of 10⁻¹⁴.

That last phrase is doing real work. At a millivolt of drive the sixth harmonic sits at 3.8×10⁻¹² of the fundamental, and a transform of samples of order one carries about fifteen digits, so comparing it is comparing rounding error. The check therefore runs only on harmonics above 10⁻⁸ of the fundamental — a floor set by measurement rather than taste: the relative error of a harmonic of size m runs at about 1.2×10⁻¹⁵/m across four decades of drive, so 10⁻⁸ buys agreement to better than 1.2×10⁻⁷, two decades inside the tolerance asserted. Harmonics below the floor are still drawn, with their measured values; they are simply not claimed about.

An exponential driven 26.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 24.15% of the fundamental, measured by transforming 512 samples and predicted independently as I₂(1.006)/I₁(1.006) = 24.15%. The two routes agree to 5e-12 over the 5 harmonics that stand above the arithmetic's own floor, and share nothing but the amplitude.
Fig. 2 The same device at twenty-six millivolts — one thermal voltage of drive, which is where most readers’ intuition puts the boundary of “small”. The second harmonic is 24.1% of the fundamental and the third is 4.0%. The output waveform’s peaks are now about three times the depth of its troughs, and the ghost line showing a symmetric waveform of the same fundamental is nowhere near it.

Why a transform rather than a series

The measurement could have been done by differentiating the transfer characteristic three times and reading a₂ and a₃ off, and it deliberately is not. The reason is generality, and it is the same reason the rest of the site solves networks rather than manipulating expressions.

A transform takes samples. It does not care where the samples came from, so the identical routine measures the distortion of an exponential written in closed form, of a hyperbolic tangent, and of a network solved point by point with the Newton loop from a bias point is a solution. A series expansion cares a great deal: it needs symbolic derivatives, it needs them about the right point, and it stops being available the moment the characteristic is something a solver produced rather than something an author wrote down.

The cost of the transform is that it has a floor and a truncation, which the previous section had to spend two paragraphs on. That is a fair trade — a stated floor on a general method is worth more than exactness on a method that only works for the cases where the answer was already known.

A diode fed from 5 V through 1.0 kΩ. computed by solving, not by drawing. The operating point is where the exponential meets the load line: 0.692544 V and 4.3075 mA, reached in 13 damped Newton steps from a cold start. The one-line Newton on Vs = v + R·i(v), which touches no matrix, gives 0.692544 V. The "drop" is not a constant: it moves 59.53 mV per decade of current, measured between two solved operating points.
Fig. 3 Where the series above is expanded. Every coefficient in a₀ + av + av² + … is a derivative of the characteristic at the operating point, so all of the distortion numbers on this page are properties of a point as much as of a device. Move the bias and every coefficient changes; for the exponential the ratios happen not to, which is a special property of that curve and not a general one.

For the exponential there is a striking consequence of that last point. Every derivative of exp(v/VT)\exp(v/V_T) is the function itself divided by a power of VTV_T, so the ratios a2/a1a_2/a_1 and a3/a1a_3/a_1 do not depend on the bias current at all. The distortion of an exponential transconductor at a given drive voltage is the same at ten microamperes and at ten milliamperes, which is why the boundary in this essay is quoted as a voltage with no current beside it, and why the site’s existing measurement found the same 28.2% of VTV_T at every bias current tested. That is unusual. For almost any other characteristic the bias point matters enormously, and a stage biased near a point of inflection has a third-order coefficient that passes through zero — which is the basis of every “sweet spot” in a device datasheet and of a family of biasing tricks that trade one harmonic for another.

Two boundaries, seven times apart

The site already carries one number for the edge of the small-signal model. How small is small signal measures the drive at which the linearised gain is one per cent optimistic, and gets 7.30 mV — 28.2% of the thermal voltage, a fraction that turns out to be the same at every temperature and every bias current.

That number is about the gain. Measuring the same device’s distortion gives a completely different answer.

An exponential: distortion arrives seven times sooner than gain error. computed by solving, not by drawing at 61 amplitudes. Total harmonic distortion reaches one per cent at 1.03 mV and the gain falls one per cent short of its small-signal value at 7.30 mV. They are 7.1 times apart, and the reason is that a second harmonic is first order in the drive while a gain error is second order.
Fig. 4 Harmonic distortion and gain error against drive amplitude, on the same axes, with both one-per-cent crossings bisected on the measured curves. Distortion reaches one per cent at 1.03 mV; the gain reaches one per cent at 7.30 mV, which is the number the limits field already carries. The two curves have visibly different slopes, and the difference in slope is the difference between first and second order.

One per cent of total harmonic distortion arrives at 1.0341 mV. One per cent of gain error arrives at 7.2999 mV. The ratio is 7.06.

Both numbers describe the same device and the same word — small — and they differ by a factor of seven, so any statement of the form “the signal is small enough” has to say small enough for what. A stage biased to run comfortably inside its gain-error budget at five millivolts of drive is producing 4.8% of second harmonic, which for an audio amplifier is a catastrophe and for a limiter is irrelevant.

The general shape holds beyond this device, because it follows from the orders. Wherever a nonlinearity is smooth, distortion grows as the first power of the drive and gain error as the second, so the distortion boundary always arrives first, and the ratio between the two boundaries grows as the tolerance tightens.

That last sentence is a prediction rather than a summary, and it can be checked. If distortion is first order and gain error second, then tightening the tolerance by a decade should move the distortion boundary down by ten and the gain boundary down by only √10 — so the ratio between them should grow by √10 = 3.162 per decade of tolerance.

Bisecting both boundaries at four tolerances gives 2.190, 7.059, 22.357 and 70.710 for ten per cent, one per cent, a tenth and a hundredth. The successive ratios are 3.223, 3.167 and 3.163. The last two are √10 to three figures, and the first is a little high because at ten per cent the drive is large enough that the higher terms of the series are no longer negligible — which is exactly the condition under which the argument was derived to fail.

A prediction that comes out right, and comes out wrong in the place its own derivation says it should, is worth more than either half alone.

An exponential driven 1.00 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 0.97% of the fundamental, measured by transforming 512 samples and predicted independently as I₂(0.039)/I₁(0.039) = 0.97%. The two routes agree to 4e-9 over the 3 harmonics that stand above the arithmetic's own floor, and share nothing but the amplitude.
Fig. 5 A millivolt of drive, which is 0.039 thermal voltages. The second harmonic is 0.97% and the third 0.006% — the second is essentially the whole of the distortion, and it is proportional to the amplitude while the third goes as its square.

What total harmonic distortion actually totals

The figures quote a single number for distortion, and it is worth saying exactly what goes into it, because the definition contains two choices.

Total harmonic distortion here is the root-sum-square of every harmonic above the fundamental, divided by the fundamental. At ten millivolts that is 9.631%, against a second harmonic alone of 9.611% — so the second harmonic is very nearly the whole of it, and it stays that way until the drive is comparable with the thermal voltage. At fifty millivolts the second harmonic is 42.2% and the total is 44.2%, with the third contributing 12.7%.

The first choice is that the direct-current term is excluded. That is the usual convention and it is a choice: a bias shift is not distortion of the signal in the sense meant here, and including it would make a stage’s distortion figure depend on where its output happened to sit. It is worth noticing that the exponential does shift its average as the drive grows — that is what I₀(x) > 1 means — and that shift is a real effect which this measure deliberately does not report.

The second choice is the harmonic count. Truncating at twelve is fine here because the series falls away quickly, and the check that it is fine comes free: Parseval’s identity requires the mean square of the samples to equal the sum of the squares of the harmonic amplitudes, and any energy in harmonics beyond the count shows up as a discrepancy. On a square wave truncated at twenty harmonics that discrepancy is 1.01% and correctly so; on every waveform in this field it is at the level of the arithmetic.

The topology that removes half of them

An exponential driven 50.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 42.23% of the fundamental, measured by transforming 512 samples and predicted independently as I₂(1.934)/I₁(1.934) = 42.23%. The two routes agree to 9e-14 over the 5 harmonics that stand above the arithmetic's own floor, and share nothing but the amplitude.
Fig. 6 Fifty millivolts, 1.934 thermal voltages: HD2 42.23%, HD3 12.667%, 44.19% in total. The proportionality has gone — the second harmonic can no longer grow linearly because there is not that much signal left — and the exponential is no longer usefully described by any small number of terms.

That figure is the argument of what a pair cancels and is placed here for one reason: it is the answer to the problem this essay poses, and it is a structural answer rather than a numerical one. The even harmonics do not become small; they become zero, because an odd function driven symmetrically cannot produce them. No amount of biasing, trimming or matching is involved, and no tolerance is attached.

It is the strongest kind of result available in this area, and it is worth contrasting with the alternative approach of driving the device less hard. Halving the drive halves the second harmonic. Making the characteristic odd removes it.

What the numbers mean for a stage that has to work

It is worth turning the boundaries into the constraint they actually impose, because the arithmetic is not encouraging and the way out of it is the whole of amplifier design.

A stage whose distortion must stay below a tenth of a per cent may be driven to 103 µV. A single bipolar transconductor with a load resistance chosen to give a gain of a hundred therefore has an output swing of about ten millivolts, which is not a useful amplifier. Ask for a hundredth of a per cent and the drive falls to 10 µV and the swing to a millivolt.

Three things are done about that, and each is a different part of this collection.

Make the characteristic odd, which removes the second harmonic entirely and buys a factor of about eighteen in allowable drive at one per cent — the differential pair reaches one per cent of distortion at 18.2 mV against the single stage’s 1.03 mV. That is the largest single improvement available and it costs a second device.

Degenerate the stage, which is to say put a resistance in series with the emitter so that most of the input voltage falls across something linear. The device sees a fraction of the drive, its distortion falls with that fraction, and the gain falls by the same factor. This is the trade nobody escapes: linearity bought at exactly the price of gain.

Apply feedback, which is the feedback field and reduces distortion by the loop gain — the same loop gain that sets the bandwidth, the margin and the ringing. A stage with forty decibels of loop gain has a hundredth of the distortion, and has spent its forty decibels.

All three are the same transaction seen from different sides: gain is the currency and linearity is what it buys. The reason the boundaries in this essay are worth measuring rather than assuming is that they set the price.

What the field’s rule looks like here

Every figure on this site carries the frequency, amplitude or size at which the model in it stops being true, and this page is one of the few where the answer is squarely an amplitude and where there are two of them.

The honest statement of the small-signal model’s domain therefore has two numbers in it: excursions below about a millivolt if harmonic content matters, and below about seven millivolts if only the gain does. Quoting one without saying which is being measured is how a specification comes to mean two different things to the person who wrote it and the person who reads it.

An exponential driven 100.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 64.81% of the fundamental, measured by transforming 512 samples and predicted independently as I₂(3.868)/I₁(3.868) = 64.81%. The two routes agree to 2e-14 over the 5 harmonics that stand above the arithmetic's own floor, and share nothing but the amplitude.
Fig. 7 A hundred millivolts, 3.868 thermal voltages, and 74.16% total distortion with a second harmonic of 64.81%. Across the drives this page has drawn — 1, 10, 26, 50 and 100 mV — the total runs 0.97%, 9.63%, 24.47%, 44.19% and 74.16%, and only the first two of those are on the line the small-signal model would draw. The field’s rule is that a model is quoted with the amplitude at which it stops being true, and here that amplitude is a few millivolts.

What moves an amplitude edge, given that frequency does not

Three things do, and each has an essay measuring by how much.

Symmetry, which removes a whole harmonic rather than reducing it. What a pair cancels, and what it only halves measures both halves of what that is worth: a differential pair’s second harmonic comes out at 101610^{-16} of the fundamental — the arithmetic’s own floor, not a small physical residue — while its third comes out at exactly half the single stage’s, which is a reduction and not a cancellation. So the odd-order edge moves by a factor of two and the even-order one moves to infinity.

Local feedback, which linearises the curve. What a resistor in the emitter buys measures the exchange rate and finds the two sides of the trade different sizes: dividing the gain by six moves the distortion edge by thirty-five times — the square of the factor — and the gain edge by only twelve, so the two close up and a well-degenerated stage stops being limited by its linearity.

And temperature, which moves the edge without anybody touching the circuit. The edges that move with the room finds the small-signal edge proportional to the thermal voltage, running from 5.67 millivolts at −40 °C to 9.69 at +125 — a factor of 1.71, the ratio of the absolute temperatures exactly.

Which is the useful summary. An amplitude edge is moved by the arrangement rather than by the bandwidth, it is moved a long way by symmetry and a modest way by feedback, and it moves on its own with the room by rather more than most designs allow for.

There is a fourth thing that does not move it, and naming it is the point of this essay’s title. Global feedback around a stage divides the distortion by 1+T1+T and moves nothing about the stage itself — and how much of the amplifier gets through shows that division running out exactly as fast as the loop gain does, rising above one near crossover so that the loop makes the distortion worse there than no loop at all. So a distortion figure quoted at a kilohertz for a circuit crossing over at six megahertz is not a property of that circuit at twenty, and the amplitude at which the underlying curve bends has not moved by anything.

Which is the distinction the title is about, stated at the end rather than the beginning. A small-signal model has no second harmonic because it is linear by construction, and a feedback loop has less second harmonic because it divides one that exists. The first is a property of a description and the second is a property of a circuit, and only the second has a number, an amplitude and a frequency above which it stops.

What the harmonics are used for

Harmonic content is the measurement four later results in this field are fitted to. What a pair cancels, and what it only halves removes the even ones exactly. What a resistor in the emitter buys moves the amplitude at which they arrive. Where the two exponents come from derives the exponents this measurement fits, and The point the device is never at extrapolates them to a figure of merit the device never reaches. How small is small signal is the boundary all four are distances from.

Part 1 on distortion

One argument about Distortion, and one of 3 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 8 sharing most with it of 18.

What this makes readable

Essays that name this one as a prerequisite.

The objects named here

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

Bessel functionsGain compressionTotal harmonic distortionTransfer curve