The total harmonic distortion (THD or THDi) is a measurement of the
harmonic distortion present in a signal and is defined as the ratio of the sum of the powers of all harmonic components to the power of the
fundamental frequency
The fundamental frequency, often referred to simply as the ''fundamental'' (abbreviated as 0 or 1 ), is defined as the lowest frequency of a Periodic signal, periodic waveform. In music, the fundamental is the musical pitch (music), pitch of a n ...
. Distortion factor, a closely related term, is sometimes used as a synonym.
In audio systems, lower distortion means that the components in a loudspeaker, amplifier or microphone or other equipment produce a more accurate reproduction of an audio recording.
In radio communications, devices with lower THD tend to produce less unintentional interference with other electronic devices. Since harmonic distortion can potentially widen the frequency spectrum of the output emissions from a device by adding signals at multiples of the input frequency, devices with high THD are less suitable in applications such as
spectrum sharing and
spectrum sensing.
In power systems, lower THD implies lower peak currents, less heating, lower electromagnetic emissions, and less core loss in motors.
It is a key metric in the stability and quality of the U.S.
electrical grid
An electrical grid (or electricity network) is an interconnected network for electricity delivery from producers to consumers. Electrical grids consist of power stations, electrical substations to step voltage up or down, electric power tran ...
. IEEE Standard 519-2022 covers the recommended practice and requirements for harmonic control in electric power systems.
Definitions and examples
To understand a system with an input and an output, such as an audio amplifier, we start with an ideal system where the
transfer function
In engineering, a transfer function (also known as system function or network function) of a system, sub-system, or component is a function (mathematics), mathematical function that mathematical model, models the system's output for each possible ...
is
linear and time-invariant. When a sinusoidal signal of frequency ''ω'' passes through a non-ideal, non-linear device, additional content is added at multiples ''nω'' (harmonics) of the original frequency. THD is a measure of that additional signal content not present in the input signal.
When the main performance criterion is the "purity" of the original sine wave (in other words, the contribution of the original frequency with respect to its harmonics), the measurement is most commonly defined as the ratio of the
RMS amplitude of a set of higher
harmonic
In physics, acoustics, and telecommunications, a harmonic is a sinusoidal wave with a frequency that is a positive integer multiple of the ''fundamental frequency'' of a periodic signal. The fundamental frequency is also called the ''1st har ...
frequencies to the RMS amplitude of the first harmonic, or
fundamental frequency
[
]
:
where ''V
n'' is the RMS value of the ''n''th harmonic voltage, and ''V''
1 is the RMS value of the fundamental component.
In practice, the THD
F is commonly used in audio distortion specifications (percentage THD); however, THD is a non-standardized specification, and the results between manufacturers are not easily comparable. Since individual harmonic amplitudes are measured, it is required that the manufacturer disclose the test signal frequency range, level and gain conditions, and number of measurements taken. It is possible to measure the full 20 Hz–20 kHz range using a sweep (though distortion for a fundamental above 10 kHz is inaudible).
Measurements for calculating the THD are made at the output of a device under specified conditions. The THD is usually expressed in
percent
In mathematics, a percentage () is a number or ratio expressed as a fraction of 100. It is often denoted using the ''percent sign'' (%), although the abbreviations ''pct.'', ''pct'', and sometimes ''pc'' are also used. A percentage is a dime ...
or in
dB relative to the fundamental as distortion attenuation.
A variant definition uses the fundamental plus harmonics as the reference:
:
These can be distinguished as THD
F (for "fundamental"), and THD
R (for "root mean square"). THD
R cannot exceed 100%. At low distortion levels, the difference between the two calculation methods is negligible. For instance, a signal with THD
F of 10% has a very similar THD
R of 9.95%. However, at higher distortion levels the discrepancy becomes large. For instance, a signal with THD
F 266% has a THD
R of 94%.
A pure
square wave Square wave may refer to:
*Square wave (waveform)
A square wave is a non-sinusoidal waveform, non-sinusoidal periodic waveform in which the amplitude alternates at a steady frequency between fixed minimum and maximum values, with the same ...
with infinite harmonics has THD
F of 48.3%
and THD
R of 43.5%.
Some use the term "distortion factor" as a synonym for THD
R, while others use it as a synonym for THD
F.
The
International Electrotechnical Commission
The International Electrotechnical Commission (IEC; ) is an international standards organization that prepares and publishes international standards for all electrical, electronics, electronic and related technologies. IEC standards cover a va ...
(IEC) also defines another term ''total harmonic factor'' for the "ratio of the RMS value of the harmonic content of an alternating quantity to the RMS value of the quantity" using a different equation.
THD+N
THD+N means total harmonic distortion plus noise. This measurement is much more common and more comparable between devices. It is usually measured by inputting a
sine wave
A sine wave, sinusoidal wave, or sinusoid (symbol: ∿) is a periodic function, periodic wave whose waveform (shape) is the trigonometric function, trigonometric sine, sine function. In mechanics, as a linear motion over time, this is ''simple ...
,
notch-filtering the output, and comparing the ratio between the output signal with and without the sine wave:
:
Like the THD measurement, this is a ratio of RMS amplitudes
and can be measured as THD
F (bandpassed or calculated fundamental as the denominator) or, more commonly, as THD
R (total distorted signal as the denominator).
A meaningful measurement must include the
bandwidth of measurement. This measurement includes effects from
ground-loop power-line hum, high-frequency interference,
intermodulation distortion between these tones and the fundamental, and so on, in addition to harmonic distortion. For psychoacoustic measurements, a weighting curve is applied such as
A-weighting
A-weighting is a form of frequency weighting and the most commonly used of a family of curves defined in the International standard IEC 61672:2003 and various national standards relating to the measurement of sound pressure level. A-weighti ...
or
ITU-R BS.468, which is intended to accentuate what is most audible to the human ear, contributing to a more accurate measurement. A-weighting is a rough way to estimate the frequency sensitivity of every persons' ears, as it does not take into account the
non-linear behavior of the ear. The loudness model proposed by Zwicker includes these complexities. The model is described in the German standard DIN45631
For a given input frequency and amplitude, THD+N is reciprocal to
SINAD
Signal-to-noise and distortion ratio (SNDR) is a term used for a set of measures of the quality of a signal from a communications device. These include SINAD and SINADR.
SINAD
The signal-to-noise and distortion ratio (SINAD) is a measure of the ...
, provided that both measurements are made over the same bandwidth.
Measurement
The distortion of a
waveform
In electronics, acoustics, and related fields, the waveform of a signal is the shape of its Graph of a function, graph as a function of time, independent of its time and Magnitude (mathematics), magnitude Scale (ratio), scales and of any dis ...
relative to a pure sinewave can be measured either by using a
THD analyzer to
analyse the output wave into its constituent harmonics and noting the amplitude of each relative to the fundamental; or by cancelling out the fundamental with a
notch filter
In signal processing, a band-stop filter or band-rejection filter is a filter that passes most frequencies unaltered, but attenuates those in a specific range to very low levels. It is the inverse of a ''band-pass filter''. A notch filter is ...
and measuring the remaining signal, which will be total aggregate harmonic distortion plus noise.
Given a sinewave generator of very low inherent distortion, it can be used as input to amplification equipment, whose distortion at different frequencies and signal levels can be measured by examining the output waveform.
There is electronic equipment both to generate sinewaves and to measure distortion; but a general-purpose
digital computer
A computer is a machine that can be programmed to automatically carry out sequences of arithmetic or logical operations (''computation''). Modern digital electronic computers can perform generic sets of operations known as ''programs'', wh ...
equipped with a
sound card
A sound card (also known as an audio card) is an internal expansion card that provides input and output of audio signals to and from a computer under the control of computer programs. The term ''sound card'' is also applied to external audio ...
can carry out harmonic analysis with suitable software. Different software can be used to generate sinewaves, but the inherent distortion may be too high for measurement of very low-distortion amplifiers.
Interpretation
For many purposes, different types of harmonics are not equivalent. For instance,
crossover distortion at a given THD is much more audible than
clipping distortion at the same THD, since the harmonics produced by crossover distortion are nearly as strong at higher-frequency harmonics, such as 10× to 20× the fundamental, as they are at lower-frequency harmonics like 3× or 5× the fundamental. Those harmonics appearing far away in frequency from a fundamental (desired signal) are not as easily
masked by that fundamental. In contrast, at the onset of clipping, harmonics first appear at low-order frequencies and gradually start to occupy higher-frequency harmonics. A single THD number is therefore inadequate to specify audibility and must be interpreted with care. Taking THD measurements at different output levels would expose whether the distortion is clipping (which decreases with an decreasing level) or crossover (which stays constant with varying output level, and thus is a ''greater percentage'' of the sound produced at low volumes).
THD is a summation of a number of harmonics equally weighted, even though research performed decades ago identifies that lower-order harmonics are harder to hear at the same level, compared with higher-order ones. In addition, even-order harmonics are said to be generally harder to hear than odd-order. A number of methods have been developed to estimate the actual audibility of THD, used to quantify crossover distortion or loudspeaker rub and buzz, such as "high-order harmonic distortion" (HOHD) or "higher harmonic distortion" (HHD) which measures only the 10th and higher harmonics, or metrics that apply psychoacoustic loudness curves to the residual.
Examples
For many standard signals, the above criterion may be calculated analytically in a closed form.
For example, a pure
square wave Square wave may refer to:
*Square wave (waveform)
A square wave is a non-sinusoidal waveform, non-sinusoidal periodic waveform in which the amplitude alternates at a steady frequency between fixed minimum and maximum values, with the same ...
has THD
F equal to
:
The
sawtooth signal possesses
:
The pure symmetrical
triangle wave has
:
For the rectangular
pulse train with the ''
duty cycle
A duty cycle or power cycle is the fraction of one period in which a signal or system is active. Duty cycle is commonly expressed as a percentage or a ratio. A period is the time it takes for a signal to complete an on-and-off cycle. As a for ...
'' ''μ'' (called sometimes the ''cyclic ratio''), the THD
F has the form
:
and logically, reaches the minimum (≈0.483) when the signal becomes symmetrical ''μ'' = 0.5, i.e. the pure
square wave Square wave may refer to:
*Square wave (waveform)
A square wave is a non-sinusoidal waveform, non-sinusoidal periodic waveform in which the amplitude alternates at a steady frequency between fixed minimum and maximum values, with the same ...
.
Appropriate filtering of these signals may drastically reduce the resulting THD. For instance, the pure
square wave Square wave may refer to:
*Square wave (waveform)
A square wave is a non-sinusoidal waveform, non-sinusoidal periodic waveform in which the amplitude alternates at a steady frequency between fixed minimum and maximum values, with the same ...
filtered by the
Butterworth low-pass filter of the second order (with the
cutoff frequency
In physics and electrical engineering, a cutoff frequency, corner frequency, or break frequency is a boundary in a system's frequency response at which energy flowing through the system begins to be reduced ( attenuated or reflected) rather than ...
set equal to the fundamental frequency) has THD
F of 5.3%, while the same signal filtered by the fourth-order filter has THD
F of 0.6%.
However, analytic computation of the THD
F for complicated waveforms and filters often represents a difficult task, and the resulting expressions may be quite laborious to obtain. For example, the closed-form expression for the THD
F of the
sawtooth wave
The sawtooth wave (or saw wave) is a kind of non-sinusoidal waveform. It is so named based on its resemblance to the teeth of a plain-toothed saw with a zero rake angle. A single sawtooth, or an intermittently triggered sawtooth, is called a ...
filtered by the first-order
Butterworth low-pass filter is simply
:
while that for the same signal filtered by the second-order
Butterworth filter
The Butterworth filter is a type of signal processing filter designed to have a frequency response that is as flat as possible in the passband. It is also referred to as a maximally flat magnitude filter. It was first described in 1930 by the B ...
is given by a rather cumbersome formula
:
Yet, the closed-form expression for the THD
F of the
pulse train filtered by the ''p''th-order
Butterworth low-pass filter is even more complicated and has the following form:
:
where ''μ'' is the
duty cycle
A duty cycle or power cycle is the fraction of one period in which a signal or system is active. Duty cycle is commonly expressed as a percentage or a ratio. A period is the time it takes for a signal to complete an on-and-off cycle. As a for ...
, 0 < ''μ'' < 1, and
:
See also
*
Audio system measurements
Audio system measurements are used to quantify audio system performance. These measurements are made for several purposes. Designers take measurements to specify the performance of a piece of equipment. Maintenance engineers make them to ensur ...
*
Signal-to-noise ratio
Signal-to-noise ratio (SNR or S/N) is a measure used in science and engineering that compares the level of a desired signal to the level of background noise. SNR is defined as the ratio of signal power to noise power, often expressed in deci ...
*
Timbre
In music, timbre (), also known as tone color or tone quality (from psychoacoustics), is the perceived sound of a musical note, sound or tone. Timbre distinguishes sounds according to their source, such as choir voices and musical instrument ...
References
{{Reflist, 30em
External links
Conversion: Distortion attenuation in dB to distortion factor THD in %Swept Harmonic Distortion MeasurementsHarmonic Distortion Measurements in the Presence of Noise
Electrical parameters
Audio amplifier specifications