---
title: "What Is a Fourier Series? Every Periodic Wave Is a Sum of Sines"
url: https://modsengineeringmath.com/en/learn/fourier-series/introduction/
site: "Mod's Engineering Mathematics (อาจารย์มด)"
language: en
updated: 2026-12-01
---

> Fourier series explained from scratch: periodic signals, the fundamental frequency, the 3rd, 5th and 7th harmonics, the line spectrum, building a square wave from sine waves, reading coefficients from sin³ and cos², why 50 Hz mains carries 150 Hz and 250 Hz, and where engineers use it.

Markdown copy of https://modsengineeringmath.com/en/learn/fourier-series/introduction/ for AI assistants and search tools. Math is LaTeX ($…$ and $$…$$); interactive labs and figures are only on the web page.

# What Is a Fourier Series? Every Periodic Wave Is a Sum of Sines

THภาษาไทยENEnglish
// Fourier series · Lesson 1 · What Is a Fourier Series?


The square wave from a function generator, the output voltage of an inverter, the current a computer draws from the wall socket: none of them is a sine wave. Yet any shape that repeats itself can always be written as a sum of sine waves. That is Joseph Fourier's idea, and it is the language electrical engineers use whenever they talk about harmonics, filters and power quality. This page builds the picture first; the calculations come in the next lessons.

The 30-second version

- A periodic signal $x(t + T) = x(t)$ has a fundamental frequency $f_0 = 1/T$.

- $x(t) = a_0 + \sum_{n=1}^{\infty}\big[a_n\cos n\omega_0 t + b_n \sin n\omega_0 t\big]$ with $\omega_0 = 2\pi f_0$.

- Term number $n$ is the n-th harmonic, at frequency $nf_0$. A 50 Hz supply therefore has harmonics at 150, 250, 350 Hz …

- A plot of $A_n = \sqrt{a_n^2 + b_n^2}$ against $n$ is the spectrum: what the FFT on a scope or a power analyzer shows you.

LevelBasic high school · year 1Intermediate engineering BScAdvanced MSc · research

## The idea: sine waves are the building blocks of every periodic wave Basic

Think of a chord on a guitar. What you hear is several notes sounding at once, and your ear can still tell which notes are in it. A Fourier series does the same thing to an electrical signal: it tells you which sine-wave frequencies a repeating waveform is made of, how big each one is, and how far each one is shifted in phase.

There is only one condition: the signal must be periodic. The waveform has to repeat itself exactly every $T$ seconds. That means the only sine waves allowed in the mix are the ones that fit a whole number of times into that period, namely $f_0, 2f_0, 3f_0, \dots$, and nothing in between.

F1 Periodic signal & fundamental frequency

$$x(t + T) = x(t), \qquad f_0 = \frac{1}{T}, \qquad \omega_0 = 2\pi f_0 = \frac{2\pi}{T}$$

$T$ is the shortest time after which the shape repeats. For the 50 Hz mains: $f_0 = 50$ Hz, $T = 20$ ms, $\omega_0 = 314.16$ rad/s.

F2 Harmonic frequencies

$$f_n = n f_0, \qquad \omega_n = n\omega_0, \qquad n = 1, 2, 3, \dots$$

$n = 1$ is the fundamental, $n = 2$ the second harmonic, and so on. A frequency that is not a whole multiple of $f_0$ is called an interharmonic; it has no place in a Fourier series.

F3 Fourier series (trigonometric form)

$$x(t) = a_0 + \sum_{n=1}^{\infty} \Big[\, a_n \cos(n\omega_0 t) + b_n \sin(n\omega_0 t) \,\Big]$$

$a_0$ is the average (DC) value; $a_n$ and $b_n$ say how much cosine and sine at frequency $nf_0$ the signal contains. How to find them: T6 (in Thai) or the Fourier series calculator. · Some textbooks write $a_0/2$ instead of $a_0$. This series uses $a_0$ = the average over one period, because you can read it straight off as a DC voltage.

F4 Amplitude–phase form (one sine per harmonic)

$$x(t) = a_0 + \sum_{n=1}^{\infty} A_n \cos(n\omega_0 t + \varphi_n), \qquad A_n = \sqrt{a_n^2 + b_n^2}$$

A cosine and a sine of the same frequency combine into a single sinusoid (harmonic addition, see applications of trigonometry). $A_n$ is the amplitude (peak value) of the n-th harmonic. The angle $\varphi_n$ is treated in C3 (in Thai).

A square wave (dashed) and sine waves at $f_0$, $3f_0$ and $5f_0$, with sizes $1, \tfrac13, \tfrac15$ of the first one. The sum of just these three (orange) is already getting square corners.

## Synthesis: adding sines until you get a square wave Basic

A square wave that swings between $\pm A$ has the series $x(t) = \tfrac{4A}{\pi}\big[\sin\omega_0 t + \tfrac13 \sin 3\omega_0 t + \tfrac15 \sin 5\omega_0 t + \cdots\big]$: odd harmonics only, with sizes falling off as $1/n$. Where the formula comes from is worked out in example T-1 (in Thai). For now, take it on trust and check with your own eyes that the terms really add up to a square. The synthesis lab (Thai interface) lets you add one harmonic at a time; the Fourier series calculator gives the coefficients of any waveform you type in.

Example F-1 · Three terms

### Using harmonics 1, 3 and 5 of a $\pm1$ V square wave, find the value at $t = T/4$ and at $t = T/8$, and the percentage of the power these three terms carry

- At $t = T/4$ the angle is $\omega_0 t = \pi/2$: $\sin\tfrac{\pi}{2} = 1$, $\sin\tfrac{3\pi}{2} = -1$, $\sin\tfrac{5\pi}{2} = 1$

$$x_5\!\left(\tfrac{T}{4}\right) = \frac{4}{\pi}\Big(1 - \tfrac13 + \tfrac15\Big) = 1.2732 \times 0.8667 = 1.1035\ \text{V}$$

- At $t = T/8$ the angle is $\pi/4$: $\sin 45^\circ = 0.7071$, $\sin 135^\circ = 0.7071$, $\sin 225^\circ = -0.7071$

$$x_5\!\left(\tfrac{T}{8}\right) = \frac{4}{\pi}\Big(0.7071 + \tfrac{0.7071}{3} - \tfrac{0.7071}{5}\Big) = 1.0204\ \text{V}$$

- The power (RMS²) of the square wave is $A^2 = 1$. Harmonic $n$ carries $A_n^2/2$ (P5):

$$\frac{1}{2}\Big(\frac{4}{\pi}\Big)^2\Big(1 + \tfrac19 + \tfrac1{25}\Big) = 0.8106 \times 1.1511 = 0.9331$$

At T/4 the three-term sum overshoots by 10 %, at T/8 by 2 %, yet those three terms already carry 93.3 % of the total power. The fundamental alone carries 81.1 %; the rest is what makes the corners sharp.

Check in the lab: set N = 5 and read “power included”: 93.31 % ✓

Notice: the more harmonics you add, the sharper the corners get, but the spike next to each jump never goes away. It always reaches about 9 % of the size of the jump. This is the Gibbs phenomenon, explained in convergence and Parseval (in Thai).

## The language of harmonics: terms you need to know Basic

Electrical work uses these words every day: in power-quality reports, in drive datasheets and on the screen of a meter.

F5 DC component = the average value

$$a_0 = \frac{1}{T}\int_{0}^{T} x(t)\,dt$$

A pure sine wave has $a_0 = 0$. A rectified wave, or a 0-to-5 V pulse train, has $a_0 \neq 0$. DC is the “zeroth” harmonic.

F6 Odd, even and triplen harmonics

$$\text{odd: } n = 1, 3, 5, \dots \quad \text{even: } n = 2, 4, \dots \quad \text{triplen: } n = 3, 9, 15, \dots$$

If the negative half-cycle is the positive half-cycle turned upside down, only odd harmonics exist (S4). · Triplen harmonics (odd multiples of 3) add up in the neutral conductor (H10).

F7 Line spectrum: looking at a signal in the frequency domain

$$x(t) \;\longleftrightarrow\; \{\, a_0;\ (A_1, \varphi_1);\ (A_2, \varphi_2);\ \dots \,\} \quad \text{at} \quad 0,\ f_0,\ 2f_0,\ \dots$$

A periodic signal has energy only at the frequencies $nf_0$, so its spectrum is a set of separate bars, spaced $f_0 = 1/T$ apart. Instruments usually show the RMS value $A_n/\sqrt2$, or the size as a % of the fundamental.

One signal, two views. Left: the time domain (what a scope shows). Right: the frequency domain (what an FFT or a power analyzer shows). A 50 Hz voltage with a 3rd and a 5th harmonic.

| Order n | at 50 Hz | at 60 Hz | Typical sources in electrical systems |

| 0 (DC) | 0 Hz | 0 Hz | half-wave rectification, equipment that has failed on one side |

| 1 (fundamental) | 50 Hz | 60 Hz | the utility supply; almost all the real power is here |

| 2 | 100 Hz | 120 Hz | transformer inrush current, asymmetric loads |

| 3 | 150 Hz | 180 Hz | computer SMPS, LED lamps, saturated transformers → hot neutral |

| 5, 7 | 250, 350 Hz | 300, 420 Hz | 6-pulse three-phase rectifiers, VFDs, UPS (rectifiers, in Thai) |

| 11, 13 | 550, 650 Hz | 660, 780 Hz | 6-pulse (next pair) and 12-pulse rectifiers |

| around $m_f$ | kHz | kHz | switching of PWM inverters (inverters, in Thai) |

## Reading off the coefficients without integrating Basic

If a signal is already written as a sum of sinusoids, it is its own Fourier series: just rearrange it to match F3. If it is a power of a sine, the power-reduction formulas from trigonometry turn it into a sum straight away.

Example F-2 · Read it directly

### $v(t) = 12 + 5\cos(100\pi t) - 2\sin(300\pi t)$ V. Find the period, $f_0$, $a_0$, $a_n$, $b_n$ and the RMS value

- The angular frequencies present are $100\pi$ and $300\pi$ rad/s. The largest frequency that both are whole multiples of is $\omega_0 = 100\pi$ → $f_0 = 50$ Hz, $T = 20$ ms.

- Compare with F3: $a_0 = 12$, $a_1 = 5$, $b_3 = -2$; every other coefficient is zero (there is no 2nd harmonic).

- RMS from Parseval (P6): DC counts in full, each sinusoid as $A/\sqrt2$

$$V_{rms} = \sqrt{12^2 + \tfrac{5^2}{2} + \tfrac{2^2}{2}} = \sqrt{144 + 12.5 + 2} = 12.59\ \text{V}$$

$f_0 = 50$ Hz · $a_0 = 12$ V · $a_1 = 5$ V · $b_3 = -2$ V · $V_{rms} = 12.59$ V

Example F-3 · Non-linearity creates harmonics

### Feed $x = \sin\omega t$ into a device whose output is $y = x^2$, and into one whose output is $y = x^3$. Which harmonics come out?

- Power-reduction formula from trigonometry (in Thai):

$$\sin^2\omega t = \tfrac12 - \tfrac12\cos 2\omega t$$

-
$$\sin^3\omega t = \tfrac34\sin\omega t - \tfrac14\sin 3\omega t$$

- Read off: $x^2$ has $a_0 = \tfrac12$, $a_2 = -\tfrac12$ · $x^3$ has $b_1 = \tfrac34$, $b_3 = -\tfrac14$

Squaring (not symmetric) creates DC and even harmonics. Cubing (odd symmetry) creates odd harmonics only. That is why a saturated transformer core (odd characteristic) produces a 3rd harmonic, while a diode (one-sided) produces even harmonics. See S7 (in Thai).

## Why electrical engineers need Fourier series Basic

The same principle works from the circuits lab all the way to the substation. Every job in this table has its own lesson in the series (in Thai).

| Field | The question Fourier answers | Read on |

| Power quality | What is the THD? Does it pass IEEE 519? Why is the power factor low although cos φ looks fine? | power & harmonics |

| Office buildings | Why do the neutral and the transformer run hot when the load is not even full? | H10 |

| Factories | Why do power-factor capacitors fail, and what % detuning reactor is needed? | mitigation |

| Power electronics | Where are the harmonics of a PWM inverter, and at what frequency should the filter sit? | inverters |

| Power supplies | How big is the ripple of a buck converter, and how high in MHz does its EMI reach? | DC-DC converters |

| Signal filters | What comes out when a square wave goes through an RC filter, and why are the corners rounded? | circuit analysis |

| Instruments | How do the FFT on a scope and a power analyzer compute their numbers, and why are they sometimes wrong? | DFT & FFT |

| Control systems | Predicting limit cycles from the fundamental alone (describing function) | U1 |

A teacher's view: a technician can read THD off a meter. An engineer has to be able to say where that number comes from, what to change in the circuit to bring it down, and by how much it will fall. Every one of those answers comes from Fourier's three-line formula.

## What a Fourier series can and cannot handle Intermediate

- Works: periodic signals in steady state that meet the Dirichlet conditions. Every real electrical signal does, even with jumps and sharp corners (P1).

- Not periodic, such as a single pulse: use the Fourier transform, which gives a continuous spectrum. See the signals lab (in Thai).

- Transients, such as the moment a switch closes: use the Laplace transform, then apply Fourier to the steady-state part.

- Unrelated frequencies, such as 50 Hz plus 173 Hz: the sum has no short period. 173 Hz is called an interharmonic, and standard-compliant meters group it separately (D8).

A little history: Joseph Fourier put forward the idea in his work on heat conduction (1807) and published Théorie analytique de la chaleur in 1822. The question of when the series actually converges was answered later by Dirichlet. More in the history of the Fourier and Laplace transforms.

## What to learn next Basic

The rest of the series is in Thai for now; formulas, figures and numbers read the same in any language.

- Finding the coefficients step by step: needs integration (by parts) and trigonometry

- Symmetry: cuts the work in half or more

- Complex form and the spectrum and Parseval's theorem: the bridge to RMS and THD

- Table of waveforms: ready-made results for real work

- Applications: circuits → power → rectifiers → inverters → buck converters → mitigation

- Measuring: FFT and the virtual analyzer lab

- Related, in English: Fourier series calculator · What is a Taylor series? · Laurent series vs Taylor series

## Frequently asked questions

What is a Fourier series, in one sentence?
It writes a signal that repeats every period $T$ as a constant (DC) plus sines and cosines whose frequencies are whole multiples of $f_0 = 1/T$. Each of those sinusoids is called a harmonic.

What frequency is the 3rd harmonic of a 50 Hz supply?
The n-th harmonic is at $n f_0$, so a 50 Hz supply has its 3rd harmonic at 150 Hz, the 5th at 250 Hz and the 7th at 350 Hz. On a 60 Hz system the 3rd harmonic is at 180 Hz.

How is a Fourier series different from the Fourier transform and the Laplace transform?
A Fourier series is for periodic signals and gives a line spectrum at the frequencies $nf_0$. The Fourier transform is for non-periodic signals and gives a continuous spectrum. The Laplace transform uses $s = \sigma + j\omega$ and suits transient responses that start at time 0. Harmonics in a power system are a steady-state problem, so they are handled with the Fourier series.

Why does the supply in a building full of computers have high harmonics?
A switch-mode power supply without PFC draws its current in sharp pulses near the voltage peaks. Broken down with a Fourier series, that current is rich in odd harmonics, especially the 3rd, which adds up in the neutral conductor.

Mod

Ajarn Mod · Teerawut Savangboon
Lecturer in Electrical Engineering, Dhonburi Rajabhat University, Samut Prakan, Thailand · Profile

## Frequently asked questions

**What is a Fourier series, in one sentence?**
It writes a signal that repeats every period $T$ as a constant (DC) plus sines and cosines whose frequencies are whole multiples of $f_0 = 1/T$. Each of those sinusoids is called a harmonic.

**What frequency is the 3rd harmonic of a 50 Hz supply?**
The n-th harmonic is at $n f_0$, so a 50 Hz supply has its 3rd harmonic at 150 Hz, the 5th at 250 Hz and the 7th at 350 Hz. On a 60 Hz system the 3rd harmonic is at 180 Hz.

**How is a Fourier series different from the Fourier transform and the Laplace transform?**
A Fourier series is for periodic signals and gives a line spectrum at the frequencies $nf_0$. The Fourier transform is for non-periodic signals and gives a continuous spectrum. The Laplace transform uses $s = \sigma + j\omega$ and suits transient responses that start at time 0. Harmonics in a power system are a steady-state problem, so they are handled with the Fourier series.

**Why does the supply in a building full of computers have high harmonics?**
A switch-mode power supply without PFC draws its current in sharp pulses near the voltage peaks. Broken down with a Fourier series, that current is rich in odd harmonics, especially the 3rd, which adds up in the neutral conductor.
