C3 · Lesson 20 · Non-sinusoidal waveforms
Harmonics, RMS, distortion and true-RMS meters
The mains voltage is close to a sine wave, but the current a laptop charger or LED lamp draws from it isn't: it arrives in short spikes near each peak. Square waves from switching circuits, triangle waves from integrators and the clipped output of an overdriven amplifier are all periodic but not sinusoidal. Each is a sum of sinusoids, a fundamental plus harmonics at whole multiples of its frequency (A10), and every AC tool in this course handles them one harmonic at a time. Doing so explains distortion figures, why a cheap meter misreads a square wave, and why a building's neutral wire can overheat.
- A periodic waveform built from a fundamental at 50 Hz plus odd harmonics, in time (top) and as a spectrum (bottom).
- The starting weights, , and with alternating signs, are the square-wave recipe, and the trace already looks squarish. Shrink them toward zero and it relaxes back into a sine.
- Each spectral line is solved separately in a circuit, and the RMS readout adds them in squares.
Predict
A square wave switching between +1 V and −1 V is measured by an inexpensive meter that's accurate only for sine waves. It reads about:
1.11 V, 11% high. An averaging meter measures the average of and multiplies by 1.11, the ratio of RMS to average for a sine. A square wave's average is 1 V, so it shows 1.11 V, though the true RMS is 1.00 V. A true-RMS meter computes the real RMS of any waveform.
Name it
Harmonics
A periodic waveform of frequency is a DC term plus sinusoids at , , , ... (A10). Waveforms with half-wave symmetry, like square and triangle waves, have only odd harmonics:
| Waveform (peak ) | Harmonic amplitude | RMS | Crest factor |
|---|---|---|---|
| sine | at only | ||
| square | , odd | 1 | |
| triangle | , odd |
The crest factor is peak over RMS.
RMS and distortion
Harmonics are at different frequencies, so they add in squares (lesson 8):
(each an RMS value). Total harmonic distortion compares everything but the fundamental with the fundamental:
A square wave has 48% THD and a triangle 12%; a good audio amplifier, below 0.01%.
Power with harmonics
Average power comes only from voltage and current harmonics of the same frequency: . When the supply voltage is a clean sine, harmonic currents deliver no power but still heat the wiring, so the power factor falls even with :
In a three-phase system, the third harmonic currents of the three phases are in step (120° × 3 = 360°), so instead of cancelling in the neutral they add: an office full of computers can push more current through the neutral than through any phase.
Worked example
What is the RMS of the fundamental in a ±1 V square wave, and its THD?
Show the solution
- Fundamental. Its peak is V, so its RMS is
- Harmonics. The total RMS is 1.000 V, so the harmonics together are
- THD.
Answer the fundamental is 0.900 V RMS, and the THD is 48%.
Worked example
A rectifier load draws current with 80% THD, its fundamental in phase with the voltage. What is its power factor?
Show the solution
- Power factor. With the fundamental in phase with the voltage,
- What it costs. The load draws 28% more current than its power needs, all because of the harmonics.
- The fix. Power supplies with power factor correction shape their input current into a sine to avoid this.
Answer a power factor of 0.78.
Worked example
A triangle wave has peak A. What are its fundamental's amplitude and its THD?
Show the solution
- Fundamental. Its Fourier series has only odd harmonics, with amplitudes , so the fundamental is
- How fast the harmonics fall. They fall as , much faster than a square wave's .
- THD. against 48.3% for a square wave.
- Why it matters. Smoother waveforms have weaker harmonics, which is why slew-limited edges reduce interference.
Answer the fundamental is 0.811A, and the THD is 12.1%.
Check
A square wave of ±5 V. What is the peak amplitude of its harmonic number 1?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
A voltage has 0 V DC, 5 V RMS at 50 Hz and 3 V RMS at 150 Hz. What is its RMS value?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
A signal's fundamental is 10 V RMS, with 1 V RMS at the 3rd harmonic and 2 V RMS at the 5th. What is its THD?
Check
A square wave of ±2 V is read by an averaging meter calibrated for sine waves. What does it show?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
A load's current has 80% THD, and its fundamental's displacement factor is 0.9. What is its power factor, on a sinusoidal supply?
Check
Each phase of a balanced three-phase load carries 12 A RMS of third-harmonic current. What third-harmonic current flows in the neutral?
Write units the way you normally would: 1.5 A, 1500 mA and 0.0015 kA are the same answer.
Check
A triangle wave and a square wave each have peak 5 V.
(a)
What's the triangle's fundamental amplitude?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
And the square wave's?
Check
A square wave of peak A.
Step 1
What's its fundamental's amplitude?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What's its RMS value?
Step 3
What's its THD?
Explain why
Why can the neutral wire of a building full of computers carry more current than any of the phase wires?
In a balanced three-phase system, the fundamental currents of the three phases are 120° apart and cancel in the neutral. Computer power supplies draw current in sharp pulses, rich in the third harmonic. Shifting a waveform by 120° shifts its third harmonic by 360°, so the three phases' third-harmonic currents are exactly in step and add in the neutral instead of cancelling. The neutral carries three times each phase's third-harmonic current, which can exceed the phase current itself, so such buildings use oversized neutrals.
Practice
Keep practicing
10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.