---
title: Power and harmonics in nonsinusoidal systems
heading: Average power from same-frequency voltage and current components only, RMS values of distorted waveforms, total harmonic distortion, distortion and displacement factors, and the poor power factor of peak-detecting rectifiers
eyebrow: S11 · Lesson 29 · Power and harmonics in nonsinusoidal systems
xp: 50
---

::: hook
A computer power supply with a plain diode bridge and a big capacitor draws current from the outlet only in short spikes near the peaks of the voltage. It uses the right real power, but its RMS current is far higher than a resistor's would be, so wiring and transformers heat up as if it drew much more. Fourier analysis makes this precise: only the harmonic of the current that matches the voltage's frequency delivers power, and the rest only adds to the RMS. This lesson defines the measures, and the next three show how rectifiers and PFC circuits produce or cure them.
:::

::: play
- A line current made of pulses centered on the voltage peaks, conducting for a total angle θ in each half cycle, with its spectrum: odd harmonics only.
- A full square wave (θ = 180°) has a distortion factor of 0.90. Narrow pulses (small θ) have rich harmonics and a much lower factor.
- With the voltage sinusoidal and the pulses in phase with it, the power factor equals the distortion factor.
:::

```sim plot
view: spectrum
x: t = 0..0.05 s
y: i = -1.5..1.5
slider: q = 20..180 = 60 °
plot: step(sin(2*pi*60*t) - cos(q*pi/360)) - step(-sin(2*pi*60*t) - cos(q*pi/360)) | label: line current
samples: 1024
freq: f = 0..1200 Hz
readout: power factor = 2*sqrt(2)/pi*sin(q*pi/360)/sqrt(q/180) | digits: 3
```

::: predict
## A load's current has a THD of 100%, and its fundamental is in phase with the sinusoidal voltage. What's its power factor?

- [ ] 1, since it's in phase
- [x] 0.71
- [ ] 0.5
- [ ] 0

::: reveal
With a sinusoidal voltage, only the fundamental current delivers power, so PF = $I_1/I_\text{rms}$, the distortion factor, which is $1/\sqrt{1 + \text{THD}^2} = 1/\sqrt{2}$ = 0.707. Peak-detecting rectifiers often have THD above 100% and power factors of 0.5 to 0.65.
:::
:::

::: nameit
## Average power

With $v(t) = V_0 + \sum V_n\cos(n\omega t - \phi_n)$ and $i(t) = I_0 + \sum I_n\cos(n\omega t - \theta_n)$, the average power is

$$P = V_0I_0 + \sum_n\frac{V_nI_n}{2}\cos(\phi_n - \theta_n)$$

Only voltage and current components at the same frequency contribute. With a sinusoidal voltage, current harmonics deliver no power.

## RMS

$I_\text{rms} = \sqrt{I_0^2 + \sum I_{n,\text{rms}}^2}$: harmonics add in RMS.

## Distortion and power factor

$$\text{THD} = \frac{\sqrt{\sum_{n\ge2}I_{n,\text{rms}}^2}}{I_{1,\text{rms}}}, \qquad \text{distortion factor} = \frac{I_{1,\text{rms}}}{I_\text{rms}} = \frac{1}{\sqrt{1 + \text{THD}^2}}$$

With a sinusoidal voltage, the power factor is the product of the distortion factor and the **displacement factor** $\cos\theta_1$:

$$\text{PF} = \frac{P}{V_\text{rms}I_\text{rms}} = \frac{I_{1,\text{rms}}}{I_\text{rms}}\cos\theta_1$$

## Standard waveforms

A square wave (single-phase bridge with a large DC inductor) has distortion factor $2\sqrt{2}/\pi$ = 0.900 and THD 48.3%. A six-pulse three-phase bridge's line current has 3/π = 0.955 and 31.1%. Narrow peak-charging pulses do much worse.
:::

::: example
## A current is made of pulses conducting 60° in each half cycle, centered on a sinusoidal voltage's peaks. Find its power factor.

::: solution
1. **RMS and fundamental of the pulses.** For pulses of unit height and total width θ per half cycle:
   $$\begin{aligned} I_\text{rms} &= \sqrt{\theta/\pi} \\ I_{1,\text{pk}} &= \frac{4}{\pi}\sin(\theta/2) \end{aligned}$$
2. **Distortion factor.** With θ = 60°:
   $$\begin{aligned} \text{DF} &= \frac{2\sqrt{2}}{\pi}\frac{\sin(\theta/2)}{\sqrt{\theta/\pi}} \\ &= 0.900 \times \frac{0.5}{0.577} \\ &= 0.780 \end{aligned}$$
3. **Displacement factor.** The pulses are centered on the voltage, so the displacement factor is 1 and
   $$\text{PF} = 0.78$$

**Answer:** the power factor is 0.78, all of it from the distortion factor since the displacement factor is 1.
:::
:::

::: example
## A load draws 5 A of fundamental at 30° lag plus 2 A of 3rd and 1.5 A of 5th harmonic, from 120 V. Find P, S and PF.

::: solution
1. **RMS current.**
   $$\begin{aligned} I_\text{rms} &= \sqrt{25 + 4 + 2.25} \\ &= 5.59\ \text{A} \end{aligned}$$
2. **Apparent power.**
   $$\begin{aligned} S &= 120 \times 5.59 \\ &= 671\ \text{VA} \end{aligned}$$
3. **Real power.**
   $$\begin{aligned} P &= 120 \times 5 \times \cos 30° \\ &= 520\ \text{W} \end{aligned}$$
4. **Power factor.**
   $$\begin{aligned} \text{PF} &= 520/671 \\ &= 0.775 \end{aligned}$$
   a distortion factor of 5/5.59 = 0.894 times a displacement factor of 0.866.

**Answer:** P = 520 W, S = 671 VA and PF = 0.775.
:::
:::

::: example
## A power supply without power-factor correction draws current with 120% THD, its fundamental lagging the line voltage by 5°. What is its power factor?

::: solution
1. **Distortion factor.**
   $$\begin{aligned} \text{DF} &= \frac{1}{\sqrt{1 + \text{THD}^2}} \\ &= \frac{1}{\sqrt{2.44}} \\ &= 0.640 \end{aligned}$$
2. **Displacement factor.**
   $$\cos 5° = 0.996$$
3. **Power factor.**
   $$\begin{aligned} \text{PF} &= \text{DF} \times \cos 5° \\ &= 0.638 \end{aligned}$$
4. **Where the shortfall comes from.** Nearly all of it comes from distortion, since cos 5° is so close to 1: the peaky current carries no power at its harmonics, and only active power-factor correction removes them.

**Answer:** the power factor is 0.638.
:::
:::

::: check
given: a = 5 | 10 | 20; b = 1 | 3 | 6; c = 0.5 | 2
answer: sqrt(a^2 + b^2 + c^2)
unit: A
tolerance: 0.5%

## A current has {a} A RMS fundamental, {b} A RMS 3rd harmonic and {c} A RMS 5th. What's its total RMS value?

::: right
Right. $\sqrt{\sum I_n^2}$ = {answer} A.
:::

::: misses
- [a + b + c] Components at different frequencies add as the root of the sum of their squares.
- [any] Not yet. Square, add, root.
:::
:::

::: check
given: T = 10 | 48 | 100 | 150
answer: 1/sqrt(1 + (T/100)^2)
tolerance: 0.5%

## A current's THD is {T}%. What's its distortion factor?

::: right
Right. $1/\sqrt{1 + \text{THD}^2}$ = {answer}.
:::

::: misses
- [1 - T/100] The relation isn't linear.
- [any] Not yet. $I_1/I_\text{rms}$.
:::
:::

::: check
given: T = 20 | 60 | 120; p = 0 | 20 | 40
answer: cos(p*pi/180)/sqrt(1 + (T/100)^2)
tolerance: 0.5%

## A load has THD {T}% and its fundamental lags the sinusoidal voltage by {p}°. What's its power factor?

::: right
Right. Distortion factor × displacement factor = {answer}.
:::

::: misses
- [cos(p*pi/180)] Include the distortion factor.
- [any] Not yet. PF = $\frac{1}{\sqrt{1 + \text{THD}^2}}\cos\theta_1$.
:::
:::

::: check
given: V = 120 | 230; a = 2 | 8; p = 15 | 35; b = 1 | 4
answer: V*a*cos(p*pi/180)
unit: W
tolerance: 0.5%

## A sinusoidal {V} V source supplies {a} A of fundamental at {p}° lag and {b} A of 3rd harmonic. What real power flows?

::: right
Right. Only the fundamental counts: $V I_1\cos\theta_1$ = {answer} W.
:::

::: misses
- [V*sqrt(a^2 + b^2)*cos(p*pi/180)] The harmonic current delivers no power from a sinusoidal voltage.
- [any] Not yet. Average power needs voltage and current at the same frequency.
:::
:::

::: check
given: q = 40 | 90 | 150
answer: 2*sqrt(2)/pi*sin(q*pi/360)/sqrt(q/180)
tolerance: 0.5%

## A rectifier draws unit-height current pulses conducting {q}° in each half cycle, centered on the voltage peaks. What's its power factor?

::: right
Right. $\frac{2\sqrt{2}}{\pi}\frac{\sin(\theta/2)}{\sqrt{\theta/\pi}}$ = {answer}.
:::

::: misses
- [any] Not yet. Fundamental RMS over total RMS.
:::
:::

::: check
given: V = 120 | 230; a = 4 | 10; b = 1 | 3; c = 0.5 | 2; p = 10 | 30
answer: V*a*cos(p*pi/180)/(V*sqrt(a^2 + b^2 + c^2))
tolerance: 0.5%

## A {V} V sinusoidal source supplies a fundamental of {a} A at {p}° lag plus {b} A and {c} A of harmonics. What's the power factor?

::: right
Right. P/S = {answer}.
:::

::: misses
- [cos(p*pi/180)] That's only the displacement factor.
- [any] Not yet. P from the fundamental, S from the total RMS.
:::
:::

::: check
kind: parts
given: T = 30 | 80 | 150; p = 0 | 10 | 30

## A load's current has THD {T}%, and its fundamental lags the sinusoidal voltage by {p}°.

::: part
answer: 1/sqrt(1 + (T/100)^2)
tolerance: 0.5%

### What is its distortion factor?

::: misses
- [any] $1/\sqrt{1 + \text{THD}^2}$.
:::
:::

::: part
answer: cos(p*pi/180)/sqrt(1 + (T/100)^2)
tolerance: 0.5%

### What is its power factor?

::: misses
- [cos(p*pi/180)] Distortion lowers it too.
- [any] Distortion factor times $\cos\phi$.
:::
:::
:::

::: check
kind: derivation
vars: V = 100..500, a = 0.5..20, p = 0..1.2, b = 0..10, c = 0..10

## A sinusoidal V (RMS) supplies a fundamental of a A RMS lagging by p radians, plus b and c A RMS of harmonics.

::: step
answer: V*a*cos(p)

### What real power?
:::

::: step
answer: V*sqrt(a^2 + b^2 + c^2)

### What apparent power?
:::

::: step
answer: a*cos(p)/sqrt(a^2 + b^2 + c^2)

### What power factor?
:::

::: right
Right. Harmonics raise the RMS current, and so the apparent power, without adding any real power.
:::
:::

::: explain
## Why do current harmonics lower the power factor even though they deliver no power?

::: model
Power factor compares the real power delivered with the product of RMS voltage and RMS current, the apparent power that the wiring, transformers and generators must be sized for. With a sinusoidal voltage, current at harmonic frequencies averages to zero power against it, so it contributes nothing to P. But it still flows in every conductor and adds to the RMS current in quadrature, so it raises the apparent power and the $I^2R$ losses. The result is a ratio of real to apparent power below one even when the current's fundamental is exactly in phase with the voltage. That's why regulations limit the harmonics that equipment may draw.
:::
:::

::: practice

::: check
given: T = 30 | 80 | 200
answer: 1/sqrt(1 + (T/100)^2)
tolerance: 0.5%

## Distortion factor at THD {T}%?

::: misses
- [any] $1/\sqrt{1 + \text{THD}^2}$.
:::
:::

::: check
given: a = 3 | 12; b = 0.5 | 5; c = 0.3 | 3
answer: sqrt(a^2 + b^2 + c^2)
unit: A
tolerance: 0.5%

## RMS of {a}, {b} and {c} A components?

::: misses
- [any] $\sqrt{\sum I^2}$.
:::
:::

::: check
given: T = 40 | 100; p = 10 | 45
answer: cos(p*pi/180)/sqrt(1 + (T/100)^2)
tolerance: 0.5%

## Power factor: THD {T}%, {p}° displacement?

::: misses
- [any] $\cos\theta_1/\sqrt{1 + \text{THD}^2}$.
:::
:::
:::
